So I'm having a little trouble here. I can't seem to figure out why this isn't working right. I'm trying to multiply the value in the variable "DIRS" by 16 and have the script goto the offset of DIRS*16. It is absolutely not working. Any ideas?
Endian Big;
Get HEADERSIZE Short;
Get UNK1 Long;
IDString "MECC";
Goto 0x56;
Get DIRS Short;
Get FILES Long;
Math DIRS *= 16;
Goto DIRS;
For i = 0 < FILES;
Getdstring TYPE 0x08;
Get NAME Long;
String TYPE += NAME;
Get OFFSET Long;
Get FILESIZE Long;
log TYPE FILESIZE OFFSET;
next i;
Could it be that DIRS is getting overflowed because it's a short (two bytes, unless I'm mistaken)? Keep in mind I don't know that much about using MexScript, let alone QuickBMS, so I could be wrong/completely off-base. =/