From what I can see from the script:
- get OFFSET and TEX_SIZE from the file
- copy TEX_SIZE data from offset 0x80 from the other file to memory
- copy TEX_SIZE data from offset OFFSET from the memory
I guess there is something wrong because memory has a size of TEX_SIZE so the only valid OFFSET is zero, any other number means that the memory file has a size of OFFSET+TEX_SIZE which is impossible.
If you want to copy data to a specific offset using "append 1" you just need to use Goto, for example:
Code:
log MEMORY_FILE 0 TEX_ARCHIVE_SIZE
goto OFFSET MEMORY_FILE
append 1
log MEMORY_FILE1 0 TEX_SIZE MEMORY_FILE2
append 1