Could quickbms also works for editing script?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Could quickbms also works for editing script?

Post by sigroon365 »

I attached sample file. Although it has simple structure, would it be possible to edit script file with quickbms? I mean extract text and repacking it.

Code: Select all

get texts long
for i = 0 < texts
get offset long
savepos tmp

goto offset
get name 0x100

log ...???

goto tmp
next i
get total_size long


This sample file is written by Unicode.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Could quickbms also works for editing script?

Post by aluigi »

The slog command is very good and works in reimport mode with the usual limitations of that mode... and probably also additional limitations because it's sort of particular:

Code: Select all

get STRINGS long
for i = 0 < STRINGS
    get OFFSET long
    slog "strings.txt" OFFSET -1 unicode
next i

In this specific case the strings have the special unicode character 0xfffe at the beginning so I had to use the "unicode" type or the new line wasn't visible.
I guess there are other alternatives to do the job but this one seems to work.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Could quickbms also works for editing script?

Post by sigroon365 »

aluigi wrote:The slog command is very good and works in reimport mode with the usual limitations of that mode... and probably also additional limitations because it's sort of particular:

Code: Select all

get STRINGS long
for i = 0 < STRINGS
    get OFFSET long
    slog "strings.txt" OFFSET -1 unicode
next i

In this specific case the strings have the special unicode character 0xfffe at the beginning so I had to use the "unicode" type or the new line wasn't visible.
I guess there are other alternatives to do the job but this one seems to work.


Great! Thank you :)