The Dink Network

Seth's Profile

Peasant Male Japan
I like makin' games. How couldn't you?

Web Page
Private Message

2017-09-17 19:36:30
Peasant Male Japan
Thanks, that save state was very helpful. Yeah, the crash happens when the magic hits the rock, the rock tries to ask the missile sprite what its script is, but the script doesn't exist, but the sprite doesn't know that and tries to access a null pointer.

I fixed it so it won't crash. (will be in 1.74) From the save state I saved at the "strange machine", carried that save to Dink 1.08 and verified it also did crash with that, so the memory access error was also in the original.

I also found the underlying engine bug that causes it in the first place but I'm afraid to fix it so leaving it commented out for now.

//NOTE: This would fix a bug where a script doesn't properly remove itself from an owner sprite but.. could cause behavior differences so not enabling it for now
if (g_scriptInstance[k]->sprite > 0 && g_scriptInstance[k]->sprite < C_MAX_SPRITES_AT_ONCE)
if (g_sprite[g_scriptInstance[k]->sprite].active && g_sprite[g_scriptInstance[k]->sprite].script == k)
//um.. guess we should tell the sprite it no longer has an associated script, right?!
g_sprite[g_scriptInstance[k]->sprite].script = 0;


Seth has released 9 files

Dink Smallwood HDOfficialExceptional 9.5June 7th, 2018
Mystery IslandD-Mod, Quest, OfficialGood 8.1January 2nd, 2010
Dink Smallwood CD AudioOfficialGood 8.2August 7th, 2006
Dink SmallwoodOfficialExceptional 9.5March 10th, 2006
Dink Smallwood 1.08 Source CodeDevelopment, Source, Official, Dink.exeExceptional 9.9March 10th, 2006
Search for Milli Vanilli (The)D-Mod, RompFair 5.2February 26th, 2006
Making of Mystery Island (The)Development, Tutorial, OfficialFair 5.8January 1st, 1990
Dink Smallwood BMP GraphicsDevelopment, Graphics, OfficialExceptional 9.3January 1st, 1990
Mystery Island BMP GraphicsDevelopment, Graphics, OfficialExceptional 9.4January 1st, 1990