Created
July 29, 2022 19:37
-
-
Save taubenangriff/52498fa57eae1bba0e51a0a8c4b1007b to your computer and use it in GitHub Desktop.
Unpack Anno 1800 island
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 | |
call :set_islandname "%cd%" | |
ECHO unpacking island | |
::A7M unpacking | |
START /W RdaConsole ^extract -f %island_name%_river_01.a7m -o %island_name% -y | |
CD /D %island_name% | |
::this is only because of version 3. ignore if needed | |
START /W FileDBReader decompress -f rd3d.data -y | |
START /W FileDBReader compress -f rd3d.xml -c 2 -o data -y | |
DEL rd3d.xml | |
START /W FileDBReader decompress -f gamedata.data -i ../../Island_Gamedata.xml -y | |
MOVE /Y gamedata.xml gamedata_original.xml | |
IF NOT exist gamedata_patch.xml ( | |
ECHO ^<ModOps^> > gamedata_patch.xml | |
ECHO. >> gamedata_patch.xml | |
ECHO ^<^/ModOps^> >> gamedata_patch.xml | |
) | |
CD .. | |
::A7MINFO unpacking | |
START /W FileDBReader decompress -f %island_name%_river_01.a7minfo -y -i ../a7minfo.xml | |
MOVE /Y %island_name%_river_01.xml %island_name%_river_01_original.xml | |
IF NOT exist %island_name%_river_01_patch.xml ( | |
ECHO ^<ModOps^> > %island_name%_river_01_patch.xml | |
ECHO. >> %island_name%_river_01_patch.xml | |
ECHO ^<^/ModOps^> >> %island_name%_river_01_patch.xml | |
) | |
: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