Hi everyone!
So Lord of the Rings: War in the North uses .paq files, for which bacter on another forum wrote a neat QuickBMS extract script.
It can unpack the archive, but the files within have some strange extensions (every file has a different extension consisting of numbers) and can't be directly edited (well, hex edit is a bit of a burden). I'm mainly interested in the texts of the game, since I'm trying to translate it to my native language.Code:# Lord of the Rings: War in the North [.paq files] # QuickBMS script - created by The Bacter # work-in-progress version! IDString "pc\x00\x00" get UNK_40000000 long if UNK_40000000 != 0x40000000 print "Error! Exiting. Current value: %UNK_40000000|h% Expected: 0x40000000" cleanexit endif get DATASIZE long get UNK_00000004 long if UNK_00000004 != 4 print "Error! Exiting. Current value: %UNK_00000004|h% Expected: 0x4" cleanexit endif get DATASTART long getdstring DUMMY 112 get NR_OF_FILES long set TTSIZE long DATASTART math TTSIZE -= 128 log MEMORY_FILE 128 TTSIZE for i = 0 < NR_OF_FILES get FN_pos long get FN_len long get DIR_pos long get DIR_len long get DUMMY long get DUMMY long get File_REL_START long get File_Size long set THE_POS long DATASTART math THE_POS += File_REL_START goto FN_pos MEMORY_FILE getdstring FN FN_len MEMORY_FILE goto DIR_pos MEMORY_FILE getdstring DIR DIR_len MEMORY_FILE set FULLPATH string DIR string FULLPATH += "\" string FULLPATH += FN string FULLPATH += "." string FULLPATH += i log FULLPATH THE_POS File_Size next i
Can anyone shed some light on these, if they can be edited and/or repacked?
Thank you in advance.
Please register or login to download attachments.