-
-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] - Automatically unzip world.zip in world folder if otbm…
… file doesn't exist on server start (#205) This change will allow the server to automatically extract the map from the zip (to the global server) in case the .otbm file is not found. It is necessary to install "libzippp", through the command "./vcpkg install libzippp"
- Loading branch information
Showing
7 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
"curl", | ||
"jsoncpp", | ||
"cryptopp", | ||
"libzippp", | ||
{ | ||
"name": "luajit", | ||
"platform": "windows" | ||
|
6b23e6f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uma sugestão, em vez de ser ("data/world/world.zip") o diretório direto poderia mudar o nome do arquivo via config.lua
6b23e6f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
não há necessidade, o diretório e nome padrão do zip sempre será esse, o processo de extrair o otbm só acontecerá uma vez em uma situação normal(caso você não delete o .otbm da pasta, claro)
caso seu mapa for custom, o processo não irá acontecer.
6b23e6f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não entendi bem sua sugestão mais já pega o nome do mapa pelo config.lua, esse diretório que vc citou é o mapa zipado ele sempre vai chamar "world.zip" e sempre vai ficar em "data/world/", o mapa zipado vc pode escolher qualquer nome para ele. Ex "beats.otbm" vc seta no config.lua e pode zipar esse beats.otbm como world.zip.