Created
July 29, 2022 19:37
-
-
Save taubenangriff/9136c3704d5c788970d6dde253ea8e41 to your computer and use it in GitHub Desktop.
Create Anno 1800 Island from patch
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
@ECHO off | |
::this just sets the island name to the executing directories name. | |
::if the island name should be fixed: | |
::set island_name="colony01_m_04" | |
call :set_islandname "%cd%" | |
ECHO Applying XML patches | |
CD /D %island_name% | |
START /W xmltest gamedata_original.xml gamedata_patch.xml | |
MOVE /Y patched.xml gamedata.xml | |
CD .. | |
START /W xmltest %island_name%_river_01_original.xml %island_name%_river_01_patch.xml | |
MOVE /Y patched.xml %island_name%_river_01.xml | |
ECHO Recompressing FileDBs... | |
CD /D %island_name% | |
START /W FileDBReader compress -f gamedata.xml -i ../../Island_Gamedata.xml -c 2 -y -o data | |
DEL gamedata.xml | |
CD .. | |
ECHO Packing RDA... | |
START RdaConsole pack -f %island_name%/gamedata.data %island_name%/rd3d.data -o %island_name%_river_01.a7m -y -v 2 | |
START /W FileDBReader compress -f %island_name%_river_01.xml -o a7minfo -i ../a7minfo.xml -c 2 -y | |
DEL %island_name%_river_01.xml | |
ECHO Finished Packing Island! | |
:set_islandname | |
set island_name=%~n1 | |
goto :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This needs
installed under a PATH variable path