Dungeon Lords Steam Edition .DAT, .PAK etc files

How to translate the files of a game
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Dungeon Lords Steam Edition .DAT, .PAK etc files

Post by makc_ar »

swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Dungeon Lords Steam Edition .DAT, .PAK etc files

Post by swuforce »

I have a tool for the old game NPCDATA.PAK only.
You can try. You need Quickbms in the folder.

Here script for export import QUESTTEXT.PAK and TALKPAK.00x
export

Code: Select all

log MEMORY_FILE 0 0
get name filename
string name += .txt
get files long
for i = 1 to files
get id long
get offset long
get size long
savepos off
goto offset
getdstring str size
if size > 0
math size -= 1
endif
putdstring str size MEMORY_FILE
put 0x0a0d short MEMORY_FILE
goto off
next i
get size asize MEMORY_FILE
log name 0 size MEMORY_FILE

import

Code: Select all

log MEMORY_FILE 0 0
log MEMORY_FILE2 0 0
get name basename
open fdse name 1
get files long 1
put files long MEMORY_FILE
xmath offset "files*12+4"
for i = 1 to files
getct str string 0x0d
get a byte
strlen size str
math size += 1
putdstring str size MEMORY_FILE2
get id long 1
put id long MEMORY_FILE
get d longlong 1
put offset long MEMORY_FILE
put size long MEMORY_FILE
math offset += size
next i
get size asize MEMORY_FILE2
append
log MEMORY_FILE 0 size MEMORY_FILE2
append
get size asize MEMORY_FILE
string name p= "NEW_%s" name
log name 0 size MEMORY_FILE
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Dungeon Lords Steam Edition .DAT, .PAK etc files

Post by makc_ar »

Thanks a lot swuforce. How about this files?
Divan-Emperor
Posts: 1
Joined: Fri Mar 31, 2017 4:57 pm

Re: Dungeon Lords Steam Edition .DAT, .PAK etc files

Post by Divan-Emperor »

Скажите пожалуйста, а в какой программе вы открыли файлы из Dungeon Lords?
Godran65
Posts: 3
Joined: Sun May 08, 2022 4:07 pm

Re: Dungeon Lords Steam Edition .DAT, .PAK etc files

Post by Godran65 »

Hi, I would like to make an Italian translation of this game.
With the attached scripts I was able to export and import the files:

D6STRING.DAT; mname.dat; pname.dat; QUESTTEXT.PAK.

I am unable to extract:

D6ITEM.DAT; D6MONS.DAT; NPCDATA.PAK

i tried to download dungeonlordsmmxii_npcdata.7z to export npcdata.pak but my antivirus reports a troyan.
it's probably a false positive.
i deactivated the antivirus and launched the .bat but it generates an error.
attached i put the three files above.
can someone help me?
thanks.
Godran65