[PC] Zula

How to translate the files of a game
chphat11
Posts: 37
Joined: Wed Feb 13, 2019 4:08 pm

[PC] Zula

Post by chphat11 »

can anyone help me make tool for export/import lang_en.gen file ? :D
sharlatan
Posts: 6
Joined: Thu May 30, 2019 7:14 pm

Re: [PC] Zula

Post by sharlatan »

What do you want to do?
chphat11
Posts: 37
Joined: Wed Feb 13, 2019 4:08 pm

Re: [PC] Zula

Post by chphat11 »

sharlatan wrote:What do you want to do?

i want anyone make tool for export that file and import that file
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: [PC] Zula

Post by swuforce »

Try aluigi's script. https://aluigi.altervista.org/bms/acknex_engine.bms
For pack, try Quickbms reimport, or this modified script.

Code: Select all

set MEMORY_FILE binary "WRS4\x00\x00\x00\x00"
log "NEWfile.gen" 0 8 MEMORY_FILE
set KEY binary "\xaa"
comtype lzss0   # lzss or lzss0? same results with samples
endian big
idstring "WRS4"
get INFO_OFF long
savepos OFFSET
goto INFO_OFF
get ZSIZE long
get SIZE long
savepos INFO_OFF
log MEMORY_FILE 0 0
clog MEMORY_FILE INFO_OFF ZSIZE SIZE
xmath FILES "SIZE / (0x20 + 4 + 4)"
comtype lzss0_compress
log MEMORY_FILE2 0 0
for i = 0 < FILES
    getdstring NAME 0x20 MEMORY_FILE
   putdstring NAME 0x20 MEMORY_FILE2
    string NAME ^ KEY
    get ZSIZE long MEMORY_FILE
    get SIZE long MEMORY_FILE
   math OFFSET + ZSIZE
    Open FDSE NAME 2
   get asize asize 2
   log MEMORY_FILE3 0 0
   clog MEMORY_FILE3 0 asize asize 2
   get zasize asize MEMORY_FILE3
   put zasize long MEMORY_FILE2
   put asize long MEMORY_FILE2
   append
   log "NEWfile.gen" 0 zasize MEMORY_FILE3
   append
next i
Open FDSE "NEWfile.gen" 1
get INFO_OFF asize 1
log MEMORY_FILE 0 0
log MEMORY_FILE 0 INFO_OFF 1
putvarchr MEMORY_FILE 4 INFO_OFF long
get asize asize MEMORY_FILE2
log MEMORY_FILE3 0 0
clog MEMORY_FILE3 0 asize asize MEMORY_FILE2
goto INFO_OFF MEMORY_FILE
get zasize asize MEMORY_FILE3
put zasize long MEMORY_FILE
put asize long MEMORY_FILE
getdstring info zasize MEMORY_FILE3
putdstring info zasize MEMORY_FILE
get asize asize MEMORY_FILE
log "NEWfile.gen" 0 asize MEMORY_FILE

Usage
quickbms acknex_engine.bms filename.gen .
quickbms pack.bms filename.gen .
chphat11
Posts: 37
Joined: Wed Feb 13, 2019 4:08 pm

Re: [PC] Zula

Post by chphat11 »

swuforce wrote:Try aluigi's script. https://aluigi.altervista.org/bms/acknex_engine.bms
For pack, try Quickbms reimport, or this modified script.

Code: Select all

set MEMORY_FILE binary "WRS4\x00\x00\x00\x00"
log "NEWfile.gen" 0 8 MEMORY_FILE
set KEY binary "\xaa"
comtype lzss0   # lzss or lzss0? same results with samples
endian big
idstring "WRS4"
get INFO_OFF long
savepos OFFSET
goto INFO_OFF
get ZSIZE long
get SIZE long
savepos INFO_OFF
log MEMORY_FILE 0 0
clog MEMORY_FILE INFO_OFF ZSIZE SIZE
xmath FILES "SIZE / (0x20 + 4 + 4)"
comtype lzss0_compress
log MEMORY_FILE2 0 0
for i = 0 < FILES
    getdstring NAME 0x20 MEMORY_FILE
   putdstring NAME 0x20 MEMORY_FILE2
    string NAME ^ KEY
    get ZSIZE long MEMORY_FILE
    get SIZE long MEMORY_FILE
   math OFFSET + ZSIZE
    Open FDSE NAME 2
   get asize asize 2
   log MEMORY_FILE3 0 0
   clog MEMORY_FILE3 0 asize asize 2
   get zasize asize MEMORY_FILE3
   put zasize long MEMORY_FILE2
   put asize long MEMORY_FILE2
   append
   log "NEWfile.gen" 0 zasize MEMORY_FILE3
   append
next i
Open FDSE "NEWfile.gen" 1
get INFO_OFF asize 1
log MEMORY_FILE 0 0
log MEMORY_FILE 0 INFO_OFF 1
putvarchr MEMORY_FILE 4 INFO_OFF long
get asize asize MEMORY_FILE2
log MEMORY_FILE3 0 0
clog MEMORY_FILE3 0 asize asize MEMORY_FILE2
goto INFO_OFF MEMORY_FILE
get zasize asize MEMORY_FILE3
put zasize long MEMORY_FILE
put asize long MEMORY_FILE
getdstring info zasize MEMORY_FILE3
putdstring info zasize MEMORY_FILE
get asize asize MEMORY_FILE
log "NEWfile.gen" 0 asize MEMORY_FILE

Usage
quickbms acknex_engine.bms filename.gen .
quickbms pack.bms filename.gen .

there is not cardstrings.pak in my folder game
Image
chphat11
Posts: 37
Joined: Wed Feb 13, 2019 4:08 pm

Re: [PC] Zula

Post by chphat11 »

chphat11 wrote:
swuforce wrote:Try aluigi's script. https://aluigi.altervista.org/bms/acknex_engine.bms
For pack, try Quickbms reimport, or this modified script.

Code: Select all

set MEMORY_FILE binary "WRS4\x00\x00\x00\x00"
log "NEWfile.gen" 0 8 MEMORY_FILE
set KEY binary "\xaa"
comtype lzss0   # lzss or lzss0? same results with samples
endian big
idstring "WRS4"
get INFO_OFF long
savepos OFFSET
goto INFO_OFF
get ZSIZE long
get SIZE long
savepos INFO_OFF
log MEMORY_FILE 0 0
clog MEMORY_FILE INFO_OFF ZSIZE SIZE
xmath FILES "SIZE / (0x20 + 4 + 4)"
comtype lzss0_compress
log MEMORY_FILE2 0 0
for i = 0 < FILES
    getdstring NAME 0x20 MEMORY_FILE
   putdstring NAME 0x20 MEMORY_FILE2
    string NAME ^ KEY
    get ZSIZE long MEMORY_FILE
    get SIZE long MEMORY_FILE
   math OFFSET + ZSIZE
    Open FDSE NAME 2
   get asize asize 2
   log MEMORY_FILE3 0 0
   clog MEMORY_FILE3 0 asize asize 2
   get zasize asize MEMORY_FILE3
   put zasize long MEMORY_FILE2
   put asize long MEMORY_FILE2
   append
   log "NEWfile.gen" 0 zasize MEMORY_FILE3
   append
next i
Open FDSE "NEWfile.gen" 1
get INFO_OFF asize 1
log MEMORY_FILE 0 0
log MEMORY_FILE 0 INFO_OFF 1
putvarchr MEMORY_FILE 4 INFO_OFF long
get asize asize MEMORY_FILE2
log MEMORY_FILE3 0 0
clog MEMORY_FILE3 0 asize asize MEMORY_FILE2
goto INFO_OFF MEMORY_FILE
get zasize asize MEMORY_FILE3
put zasize long MEMORY_FILE
put asize long MEMORY_FILE
getdstring info zasize MEMORY_FILE3
putdstring info zasize MEMORY_FILE
get asize asize MEMORY_FILE
log "NEWfile.gen" 0 asize MEMORY_FILE

Usage
quickbms acknex_engine.bms filename.gen .
quickbms pack.bms filename.gen .

there is not cardstrings.pak in my folder game
Image

Ok, It work :D
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: [PC] Zula

Post by swuforce »

There is no need to quote the full post. Especially two times...
Watch for it next time! You can also use edit if it's needed.
chphat11
Posts: 37
Joined: Wed Feb 13, 2019 4:08 pm

Re: [PC] Zula

Post by chphat11 »

swuforce wrote:There is no need to quote the full post. Especially two times...
Watch for it next time! You can also use edit if it's needed.

ok, thanks
sharlatan
Posts: 6
Joined: Thu May 30, 2019 7:14 pm

Re: [PC] Zula

Post by sharlatan »

chphat11 wrote:can anyone help me make tool for export/import lang_en.gen file ? :D

بی خیال حاجی
gamerboy
Posts: 3
Joined: Wed Aug 26, 2020 1:33 pm

Re: [PC] Zula

Post by gamerboy »

Hello, how can I do it.