Legacy-Edition-Minigames / Minigames

Remakes of the Mini Games from the Legacy Editions of Minecraft to Java Edition
https://www.legacyminigames.net
Other
127 stars 7 forks source link

There is absolutely no guide on updating the server #18

Closed DBTDerpbox closed 2 years ago

DBTDerpbox commented 2 years ago

Currently, updating the server is done via deleting the entire world folder excluding advancements and redownloading the source from github and copying everything excluding advancements back into the world folder

a proper guide needs to be made about this

PiporGames commented 2 years ago

Maybe an auto-update script could be added

DBTDerpbox commented 2 years ago

would would you handle that? like upon launch of LEB?

PiporGames commented 2 years ago

I will try my best, altough I don't really know that much at python (looking at the linux side). As for Windows, I can try to add (an independent) GUI aswell, .Net Framework is already part of the Windows 10 Core so I can work without any dependencies.

DBTDerpbox commented 2 years ago

a thing to consider is dedicated servers (which LEB public also runs on) most of the time run some form of Linux, and many hosts do not support supplying launching a .py file instead of .jar

DBTDerpbox commented 2 years ago

i'm willing to make an updater when i figure out how to take an existing file and rewrite parts of it in python (which is also why LEB-ModTools is completely stuck again)

PiporGames commented 2 years ago

I tought the updater objective was to replace the old files with new ones, not rewriting parts of the files itself.

DBTDerpbox commented 2 years ago

well thats mostly its job, but also updating the MOTD to display the correct commit

PiporGames commented 2 years ago

Don't worry about It, feel free to focus on other things. I'll make the program when I finish some stuff I have to do.

DBTDerpbox commented 2 years ago

i see MOTDs arent the most important thing, i actually dont think public LEB's MOTD is on this repo or anywhere else

do you need it?

PiporGames commented 2 years ago

Yes. Besides the MOTD, does the program need to do anything else?

DBTDerpbox commented 2 years ago

pretty much no, maybe the ability to select what branch to download from? might be complicated to add and honestly not worth it since main is the only branch that receives updates at all

PiporGames commented 2 years ago

GUIs and branch selector is done. What files do you want to backup?

DBTDerpbox commented 2 years ago

the advancements folder inside of the world folder is the only thing that should be backed up, the only thing you'll be replacing is the world folder itself and the SRP config in config/switchableresourcepacksconfig.json5

DBTDerpbox commented 2 years ago

this has been solved with the existence of LEB-ToolBox being used for updates now