Danko Treasure Map res

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Danko Treasure Map res

Post by AntonZab »

Can my system is not suitable (Windows XP 32bit)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Danko Treasure Map res

Post by aluigi »

I can replicate the problem on Windows 98 so I will be able to fix it in the next quickbms.
You can use the old script you already have (the original one) because it works, it's just a bit slow.
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Danko Treasure Map res

Post by AntonZab »

I just tried alonedarkx.bms the topic "alone in the dark pak" . And it gives exactly the same mistake as here. So it is not the case in the script. There is something wrong in the new quickbms 0.7.0. Surely other scripts compression algorithms will give the same error.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Danko Treasure Map res

Post by aluigi »

Thanks for the information.
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Danko Treasure Map res

Post by AntonZab »

We are waiting for an update :roll:
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Danko Treasure Map res

Post by AntonZab »

WOOOOOORK witch all scripts. Thanks. I wonder what was the reason? You have to work and I have no
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Danko Treasure Map res

Post by aluigi »

The cause was a NULL pointer used for a string comparison function (stricmp), the problem happened with MEMORY_FILEs.
Systems like Windows XP and Linux have a crash when stricmp tries to access a NULL pointer while on newer Windows OS the API simply ignores it and doesn't crash.
Other than fixing that location I have also made all the string comparison functions (strcmp/stricmp/strncmp/strnicmp) compatible with NULL pointers so that there will be no crashes in any case now and in the future even with bugged code.
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Danko Treasure Map res

Post by AntonZab »

Very big thanx.
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Danko Treasure Map res

Post by AntonZab »

I've tried to unpack the archive at the beginning of the topic. But for some reason he gave an error:

https://gyazo.com/65217c0652882c50c47e579ecace3ad5

Script: http://aluigi.altervista.org/bms/sexgamedevil.bms

System: WinXP 32 bit

File: https://drive.google.com/file/d/0B0oEDr ... sp=sharing
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Danko Treasure Map res

Post by aluigi »

Script 0.2.1.

Technical details:
"unfortunately not all the games use the Vector3D keyword so let's use another way to guess the xor byte"
AntonZab
Posts: 461
Joined: Thu Oct 01, 2015 5:03 pm

Re: Danko Treasure Map res

Post by AntonZab »

Thanks