Grim Dawn (*.arc)
Posted: Fri May 17, 2013 8:51 pm
Hi, i tired to use archivetool ( from titan quest for repack the language files, but no works anymore... ), i think is zlib, so will be cool to have unpack/repack.
ThX
ThX
The game is only in alpha, right? So there's no point in developing a tool for it right now, it could change a lot until it gets to release. Further more the devs told us on the official forum, that they'll release a tool for translations (I can't find the topic for that now, but believe me, they will:))hyndai wrote:Hi, i tired to use archivetool ( from titan quest for repack the language files, but no works anymore... ), i think is zlib, so will be cool to have unpack/repack.
ThX
Code: Select all
################################################################
# QuickBMS simple script for Grim Dawn .ARC
# created by The Bacter
################################################################
idstring "ARC\0"
get VERSION long
if VERSION == 1 # Titan Quest
comtype zlib
elif VERSION == 2 # Grim Dawn - old files
comtype zlib
elif VERSION == 3 # Grim Dawn - new files
comtype lz4
else # unknown version
# unknown game
endif
get NR_OF_FILES long
get NR_OF_FILES_AGAIN long
get DIR_TABLE_SIZE long
get NAME_TABLE_SIZE long
get DIR_START long
math NAME_TABLE_START = DIR_START
math NAME_TABLE_START += DIR_TABLE_SIZE
goto NAME_TABLE_START
log MEMORY_FILE NAME_TABLE_START NAME_TABLE_SIZE
goto DIR_START
for i = 0 < NR_OF_FILES
get FILE_START long
get FILE_PACKED_SIZE long
get FILE_ORIGINAL_SIZE long
get FILE_NAME string MEMORY_FILE
clog FILE_NAME FILE_START FILE_PACKED_SIZE FILE_ORIGINAL_SIZE
next i
Can you maybe share the method, please?hyndai wrote:Hi bacter thx for your script, and i have found another way to made my modification and re-inject inside *.arc file.
Code: Select all
tags_uimain.txt = 0x800 - 0x1d23 / length = 1524 = 2415
tags_ui.txt = 0x1d24 - 0x52FF = / length = 35DC = DC35
tags_creatures.txt = 0x5300 - 0x658F / length = 1290 = 9012
tags_tutorial.txt = 0x6590 - 0x78F4 / length = 1365 = 6513
tags_storyelements.txt = 0x78F5 - 0xA3D0 / length = 2ADC = DC2A
tags_skills.txt = 0xA3D1 - 0xEDCA / length = 49FA = FA49
tags_items.txt = 0xEDCB -0x124DA / length = 3710 = 1037
Code: Select all
:: GRIM DAWN COMPRESSION TXT EN ZLIB taux de compression 6 (789C) et pas 9 (78DA)
:: 0°) Ne pas mettre d'accent sur le fichier de traduction *.txt
ren tags_uimain.txt 1-tags_uimain.txt
ren tags_ui.txt 2-tags_ui.txt
ren tags_creatures.txt 3-tags_creatures.txt
ren tags_tutorial.txt 4-tags_tutorial.txt
ren tags_storyelements.txt 5-tags_storyelements.txt
ren tags_skills.txt 6-tags_skills.txt
ren tags_items.txt 7-tags_items.txt
pause
zlibc -k C:\GRIM\fan-translation\1-tags_uimain.txt C:\GRIM\fan-translation\1-tags_uimain.zlb 6
zlibc -k C:\GRIM\fan-translation\2-tags_ui.txt C:\GRIM\fan-translation\2-tags_ui.zlb 6
zlibc -k C:\GRIM\fan-translation\3-tags_creatures.txt C:\GRIM\fan-translation\3-tags_creatures.zlb 6
zlibc -k C:\GRIM\fan-translation\4-tags_tutorial.txt C:\GRIM\fan-translation\4-tags_tutorial.zlb 6
zlibc -k C:\GRIM\fan-translation\5-tags_storyelements.txt C:\GRIM\fan-translation\5-tags_storyelements.zlb 6
zlibc -k C:\GRIM\fan-translation\6-tags_skills.txt C:\GRIM\fan-translation\6-tags_skills.zlb 6
zlibc -k C:\GRIM\fan-translation\7-tags_items.txt C:\GRIM\fan-translation\7-tags_items.zlb 6
pause
:: ASSEMBLAGE EN 1 SEUL *.ZLB DANS l'ordre
copy /b c:\GRIM\fan-translation\*.zlb GRIM-DAWN-TXT-TRADUIS-RESULTAT.ZLB
pause
Code: Select all
tags_uimain.zlb = length = 17A4 = A417
tags_ui.zlb = length = 393C = 3C39
tags_creatures.zlb = length = 1290 = 9012
tags_tutorial.zlb = length = 15CE = CE15
tags_storyelements.zlb = length = 2AE3 = E32A
tags_skills.zlb = length = 49FA = FA49
tags_items.zlb = = length = 3710 = 1037
Code: Select all
tags_uimain.zlb = length = 1524 = 2415
tags_ui.zlb = length 35DC = DC35
tags_creatures.zlb = length = 1290 = 9012
tags_tutorial.zlb = length = 1365 = 6513
tags_storyelements.zlb = length = 2ADC = DC2A
tags_skills.zlb = length = 49FA = FA49
tags_items.zlb = length = 3710 = 1037
Code: Select all
tags_uimain.zlb = length = 17A4 = A417
tags_ui.zlb = length = 393C = 3C39
tags_creatures.zlb = length = 1290 = 9012
tags_tutorial.zlb = length = 15CE = CE15
tags_storyelements.zlb = length = 2AE3 = E32A
tags_skills.zlb = length = 49FA = FA49
tags_items.zlb = = length = 3710 = 1037
Code: Select all
http://www.jheberg.net/captcha/v7xSdV-gm-b11-rar