Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rcavanah on Mon 09/06/2008 23:23:08

Title: Problem in 3.0.1, upating Scumm-style status bar crashes game...
Post by: rcavanah on Mon 09/06/2008 23:23:08
Hi, i've tried using AGS for spots here and there, but naturally every time i decide to update i lose my grasp of scripting...

So, i'm trying to create my own MI/FOA/scumm-style GUI, pretty standard stuff.

It seems anything i put in repeatedly_execute crashes. The label in the status bar is called lblStatusBar, but even a simple

lblStatusBar.Text = line;

(where line is the complete, formatted contents of the status bar)  is crashing it. So i'm wondering if anyone has any ideas; do i have to handle everything outside of repeatedly_execute? it seems like even defining a string screws it up.

Also, i guess more effective: if anyone has a scumm-style template that works in 3.0.1... let me at it.

Thanks very much!
Title: Re: Problem in 3.0.1, upating Scumm-style status bar crashes game...
Post by: Pumaman on Tue 10/06/2008 00:01:21
Rather than just saying "it crashes", how about telling us what error message you're getting?
Title: Re: Problem in 3.0.1, upating Scumm-style status bar crashes game...
Post by: rcavanah on Tue 10/06/2008 00:34:08
Naturally i think i've figured this part out now; ha, now i actually can't seem to do what i was doing to get the message to appear.

Sorry! Bad first post, i know, my mind is still stuck in the script.
Title: Re: Problem in 3.0.1, upating Scumm-style status bar crashes game...
Post by: rcavanah on Tue 10/06/2008 04:48:30
WAIT!

OK, got it.

Went back to version 2.72, restarted from that version's proskrito MI2 template, and am now receiving this error:

Error: run_text_script1: error -6 running function 'repeatedly_execute':
Error: Null pointer referenced in Global Script (line 728)
Title: Re: Problem in 3.0.1, upating Scumm-style status bar crashes game...
Post by: Khris on Tue 10/06/2008 09:18:02
Where did you download that template? The newest I found is for version 2.61.

What's line 728 of the global script?

Please post it, together with the surrounding code.