Hey there Luigi. I'm analysed most of the functions/operators and almost is clearing for me. But some questions are still inaccessibly for me =)
1) Questions about "Get <variable> string". For example:
my code:
Code:
Get NULL short # take first two NULL bytes
Get TEXT string # takes 4 bytes of string text or not ?
Get SIZE long # decompressed file size
Get CSIZE long # compressed file size
Savepos POS # Offset where is zlib starting
Clog ....
But I'v got an error with result. How much bytes the "get string" is taken ? What characters is it taken ? Because if I'm replacing "Get TEXT string" with "GetDString TEXT 0x04" or "IDString TEXT "test"" - all works fine
2) The same satuation. My code:
Code:
Get NULL short # take first two NULL bytes
GetCT TEXT string 0x3F # Must takes four bytes (0x02-0x06) until delimiter byte
My code....
So I'v got an error again. What's I'm doing wrong ? Why GetCT didn't takes four bytes and don't staying on offset 0x06 ?
3) if i have a file and I need so simply remove 5 (for example) first bytes. How can I done it ? Because something like
Code:
Get FSIZE asize
math FSIZE -= 5
removes last 5 bytes
4) Is it possible to create simple replace operation script ? I mean "find text1" and if found then "PutVarChr string" ?