Skip to content

Instantly share code, notes, and snippets.

@taubenangriff
Created July 29, 2022 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taubenangriff/9136c3704d5c788970d6dde253ea8e41 to your computer and use it in GitHub Desktop.
Save taubenangriff/9136c3704d5c788970d6dde253ea8e41 to your computer and use it in GitHub Desktop.
Create Anno 1800 Island from patch
@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
@taubenangriff
Copy link
Author

This needs

installed under a PATH variable path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment