diff --git a/README.txt b/README.txt index f1cc8d22f..c28cf3456 100644 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ https://www.youtube.com/@ServerClean The most advanced YouTube channel on Metin2 development. - +Discord: https://discord.gg/5CR5s3kSwZ Base: Marty Sama 5.8 with addons: offlineshop and multilanguage @@ -19,8 +19,14 @@ Operating system: FreeBSD 13.2 Client compiler: VisualStudio 2022 v143 Server compiler: gcc12 portable to clang +Access: +Virtual machine: +root +password +Database: +root +your_password -Supporting Content: Required Programs: @@ -29,6 +35,7 @@ VirtualBox Navicat WinSCP PuTTY +Git GitHub Desktop Notepad++ ChatGPT (desktop) @@ -37,25 +44,39 @@ Beyond Compare (optional) paint.net Everything -Installation Steps: +Git project: https://github.com/metin2clean/Marty-v58.git +Token: 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 +Clone link: https://@github.com/metin2clean/Marty-v58.git +Clone link placed: https://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@github.com/metin2clean/Marty-v58.git +Virtual machine: https://drive.google.com/file/d/16RNCuQbcx4v_h9WJzoeotl40qfLIitY1/view?usp=sharing -- Compile binary (src client) -- Import machine to FreeBSD -- Compile server -- Prepare server files: create db, gen, compile quest, and create symlink, customize locale_string.txt and translate.lua -- Compile DumpProto -- Modify serverinfo.py in the client pack -- Compile pack -- Activate firewall +Installation Steps for local: + +1. Obtain all the necessary files. +2. Compile binary (src client) +3. Import machine to FreeBSD +4. Compile server +5. Compile qc (optional) +6. Prepare server files: create db, bind_ip, gen, compile quest, and create symlink, protos +7. Compile DumpProto +8. Edit serverinfo.py and Compile pack +9. Activate firewall +10. Run and test +11. Make backup + +Note: The proto was changed to txt in the configuration. Customizations and Error Handling: - Virtualization enabled in BIOS - Option to view hidden files and folders and view file extensions -- Executing dummy protocol commands +- WinSCP: Executing dummy protocol commands +- WinSCP: Remember session. +- WinSCP: Show hidden files: Preferences>Panels>Show hidden files - Remove pause from PML -- Set Notepad++ as default in WinSCP and Windows -- In Notepad++, show spaces and tabs -- Compile binary with output to client +- Notepad++: Set as default in WinSCP and Windows +- Notepad++: Show spaces and tabs +- Notepad++: Identation with tab: Preferences>Indentation>python>Tab character (selected) +- Compile binary with output to client (done) - Create symbolic links to source, main, and quest - Search filter in Notepad++ - Compare plugin in Notepad++ @@ -78,12 +99,6 @@ Base changelog: https://martysama0134.com/Source_files/Changelog Multilanguage system: https://martysama0134.com/Source_addons/Mali_MultiLanguage Offlineshop system: https://martysama0134.com/Source_addons/Ikarus_Offlineshop -Forums: -https://metin2.dev/ -https://metin2hub.com/ -https://www.metin2.network/ -https://forum.turkmmo.com/ -https://metin2leak.com/ Download Links for Programs: @@ -92,6 +107,7 @@ VirtualBox: https://www.virtualbox.org/wiki/Downloads (direct: https://download. Navicat (licence): https://www.navicat.com/en/download/navicat-premium WinSCP: https://winscp.net/download/WinSCP-6.3.1-Setup.exe PuTTY: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html (direct https://the.earth.li/~sgtatham/putty/latest/w64/putty-64bit-0.80-installer.msi) +Git: https://git-scm.com/downloads/win (direct https://github.com/git-for-windows/git/releases/download/v2.47.0.windows.1/Git-2.47.0-64-bit.exe) GitHub Desktop: https://desktop.github.com/ (direct https://central.github.com/deployments/desktop/desktop/latest/win32) Notepad++: https://notepad-plus-plus.org/downloads/v8.6.4/ (direct: https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.6.4/npp.8.6.4.Installer.x64.exe) ChatGPT (desktop): https://github.com/lencx/ChatGPT (direct: https://github.com/lencx/ChatGPT/releases/download/v1.1.0/ChatGPT_1.1.0_windows_x86_64.msi) diff --git a/client/loca.cfg b/client/loca.cfg index b88e61d6c..63a1de670 100644 --- a/client/loca.cfg +++ b/client/loca.cfg @@ -1 +1 @@ -1252 es \ No newline at end of file +1252 en \ No newline at end of file diff --git a/serverfiles/baks/db/Makefile b/serverfiles/baks/db/Makefile index 669b21f29..b5fb1afb8 100644 --- a/serverfiles/baks/db/Makefile +++ b/serverfiles/baks/db/Makefile @@ -1,15 +1,15 @@ #### @martysama0134 backup scripts #### ### Inside /etc/crontab paste: ## for automatic backups every hour: -# 0 * * * * root make -C /home/metin2/baks/db dump +# 0 * * * * root make -C /home/serverfiles/baks/db dump ## for automatic clean of backups older than 7 days every week: -# 0 0 * * 1 root make -C /home/metin2/baks/db wclean +# 0 0 * * 1 root make -C /home/serverfiles/baks/db wclean DATE != date +%Y%m%d-%H%M%S MY_HOST = localhost MY_USER = root -MY_PASS = password +MY_PASS = your_password MY_LOGF = log.txt PREFIX = srv1_ OUTPATH = . @@ -21,11 +21,11 @@ all: dump: @echo "### dump begin $(DATE)" >> $(MY_LOGF) @mkdir $(DATE)/ - @/usr/local/bin/mysqldump --set-gtid-purged=OFF -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)account | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)account.sql.gz 2>> $(MY_LOGF) - @/usr/local/bin/mysqldump --set-gtid-purged=OFF -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)common | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)common.sql.gz 2>> $(MY_LOGF) - @/usr/local/bin/mysqldump --set-gtid-purged=OFF -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)player | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)player.sql.gz 2>> $(MY_LOGF) - @/usr/local/bin/mysqldump --set-gtid-purged=OFF --no-data -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)log | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)log.sql.gz 2>> $(MY_LOGF) - @/usr/local/bin/mysqldump --set-gtid-purged=OFF -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) mysql | gzip -9 > $(OUTPATH)/$(DATE)/mysql.sql.gz 2>> $(MY_LOGF) + @/usr/local/bin/mysqldump -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)account | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)account.sql.gz 2>> $(MY_LOGF) + @/usr/local/bin/mysqldump -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)common | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)common.sql.gz 2>> $(MY_LOGF) + @/usr/local/bin/mysqldump -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)player | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)player.sql.gz 2>> $(MY_LOGF) + @/usr/local/bin/mysqldump --no-data -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) $(PREFIX)log | gzip -9 > $(OUTPATH)/$(DATE)/$(PREFIX)log.sql.gz 2>> $(MY_LOGF) + @/usr/local/bin/mysqldump -u $(MY_USER) -p$(MY_PASS) -h $(MY_HOST) mysql | gzip -9 > $(OUTPATH)/$(DATE)/mysql.sql.gz 2>> $(MY_LOGF) @echo "### dump end $(DATE)" >> $(MY_LOGF) recovery: diff --git a/serverfiles/baks/fs/Makefile b/serverfiles/baks/fs/Makefile index a494b25a1..4b559ae25 100644 --- a/serverfiles/baks/fs/Makefile +++ b/serverfiles/baks/fs/Makefile @@ -1,8 +1,8 @@ #### @martysama0134 backup scripts #### ## Inside /etc/crontab paste: (for automatic backups every hour) -# 0 * * * * root make -C /home/metin2/baks/fs dump +# 0 * * * * root make -C /home/serverfiles/baks/fs dump ## for automatic clean of backups older than 7 days every week: -# 0 0 * * 1 root make -C /home/metin2/baks/fs wclean +# 0 0 * * 1 root make -C /home/serverfiles/baks/fs wclean DATE != date +%Y%m%d-%H%M%S