Problem in 3.0.1, upating Scumm-style status bar crashes game...

Started by rcavanah, Mon 09/06/2008 23:23:08

Previous topic - Next topic

rcavanah

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!

Pumaman

Rather than just saying "it crashes", how about telling us what error message you're getting?

rcavanah

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.

rcavanah

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)

Khris

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.

SMF spam blocked by CleanTalk