The Dink Network

Bane of Magi bug

June 7th 2004, 09:49 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
I have a bit of time and this problem still bugs me.
Many people have found a major bug in Bane when they talk to people in town, ask a question and it crashes. Once again I tried duplicating that to no avail. If anyone is currently playing it and it crashes please try the 'debug mode' (alt-d) and post or email me the debug text at that point.
Or if anyone sees a problem in it here just say.

void talk()
{
if (&invis == 1)
{
external("item-inv","visable");
say_stop("`4Oh, I didn't see you.",&current_sprite);
}
freeze(&current_sprite);
freeze(1);
choice_start()
"Ask about any trouble in town"
"Ask about the Bringer of light"
"Leave"
choice_end()
if (&result == 1)
{
say_stop("Hi, is everyone in this town o.k.?",1);
wait (250);
say_stop("`4As long as we follow the Bringer of light we're o.k.",&current_sprite);
}
if (&result == 2)
{
say_stop("Hello, what can you tell me about the Bringer of light?",1);
wait (200);
say_stop("`4shhh.. not now.",&current_sprite);
}
if (&result == 3)
{
say_stop("Excuse me.",1);
}
unfreeze (&current_sprite);
unfreeze (1);
}
}
//
apparently it crashes (for some people only) as soon as the first choice is picked. Grrr....
*edit*
I pasted in the rest of the talk () to show the unfreeze.
June 10th 2004, 03:03 AM
knight.gif
legolas
Peasant He/Him
 
It does not unfreeze after talking
June 10th 2004, 05:10 AM
pq_frog.gif
Ric
Peasant They/Them Canada
 
It should. It now shows the full talk () with the unfreeze included. Did it leave you frozen?
June 10th 2004, 07:14 AM
duck.gif
Tal
Noble He/Him United States
Super Sexy Tal Pal 
I looked up and down and all around what you posted, and I still can't fathom why you have two }'s at the end. It seems like you only need one there.

Of course, I don't know enough about DinkC yet to know whether or not that'd cause a problem.

Edit: By the way, Ric, precisely which script is that?
June 10th 2004, 07:45 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
Your right tal, the second bracket is not needed.
June 10th 2004, 08:47 AM
duck.gif
Tal
Noble He/Him United States
Super Sexy Tal Pal 
I believe I've located the problem.

Ok, I downloaded Bane of the Magi today and began to play it. As soon as I chose the first dialogue choice while talking to a little girl in town, the game crashed. Curious, I went into WinDinkEdit and checked which script the girl had: chat-sh.c. I perused through there in search of the mistake, and I found this within:

if (&result == 1)
{
say_stop("Hi, is everyone in this town o.k.?",1);
wait

There was no specification of time to wait behind the wait procedure... it was merely "wait". After changing it to wait(200); the script worked well.

I also found the same problem in chat-h.c.

What you posted looks correct (though again, ditch that bracket ), but it seems as though you fixed it and never made it public.

Edit: Out of boredom, I decided to download the 1.1 patch file, despite the fact that I downloaded BOTM 1.1 Full. Upon investigation, you never made any updates to chat-sh.c or chat-h.c, supporting my theory that you fixed the crash problem and never made the fix public... however, I did stumble across some other interesting things.

key-80.c - The version of key-80.c in the patch file is more recent, and is as follows:

void main ()
{
if(&story < 2)
{
return;
}
show_bmp("graphics\map.bmp", 0,0);
}

The version in the full release is a day older, and is as follows:

void main ()
{
if(&map < 10)
{
return;
}
show_bmp("graphics\map.bmp", 0,0);
}

Interesting difference in requirements. Which one should be the appropriate one?

mteach.c - Oddly enough, the version in the full release is more recent than the version in the patch file, and has one more line of dialogue near the end:

say_stop("`4Erm....how nice.",&current_sprite);

Just thought you'd be interested in this info.
June 10th 2004, 03:21 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
But, how? but, but....
Aggg!.
Time for 1.2 and thanx so much.
*edit*
I have no idea how, but it looks like some of the files in the 'update' were from the wrong archive.( I sometimes keep obsolete files.)
That bracket is just on the board. Snuck in when I pasted in the rest of the talk ()
June 21st 2004, 08:43 PM
pq_frog.gif
Ric
Peasant They/Them Canada
 
Alright. 1.2 has been submitted. As penance for my foolishnesh in 1.1, I added a creature in 1.2. Then I figured I'd better send it in soon or I'd modify more bugs into it.