Okay, I'm trying to set my label's text to Game.GetLocationName because it seems that if I use @OVERHOTSPOT@ it will be translated even if the game is paused...
In any case, the game crashes out with an error as soon as I load it:
Quote---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0043F6FD ; program pointer is -42, ACI version 2.72.920, gtags (35,24)
AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.
in MonkeyTemplate (line 86)
from MonkeyTemplate (line 112)
Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OK
---------------------------
Line 86 reads as:
lblVerbbar.Text = lblVerbbar.Text.Append(Game.GetLocationName(mouse.x, mouse.y));
I've also tried storing the name into a String first, but it crashed on the line where I called Game.GetLocationName.
I'm not entirely sure if it's relevant, but I am calling the function from repeatedly_execute_always(), however, appending the text from within rep_ex_al itself (of course adding a check to prevent it being appended several times) seems to work.
So are you saying that the problem only happens if you call GetLocationName from rep_exec_always?
Actually...it happens when I call a function that calls it.
The function I call goes something like this:
//pseudo-code:
function UpdateLabelText() {
if (mouse.Mode == eModeWalkto) lblVerbbar.Text = "Walk to ";
/* ... */
if (mouse.Mode == eModePull) lblVerbbar.Text = "Pull ";
// lblVerbbar.Text = lblVerbbar.Text.Append(Game.GetLocationName(mouse.x, mouse.y));
// OR
// String Location = Game.GetLocation(mouse.x, mouse.y);
// lblVerbbar.Text = lblVerbbar.Text.Append(Location);
// BOTH of these crash on the line containing "Game.GetLocationName(mouse.x, mouse.y)"
}
function repeatedly_execute_always() {
UpdateLabelText();
}
If I leave the "Game.GetLocationName" lines out of the UpdateLabelText function, and then do this:
function repeatedly_execute_always() {
UpdateLabelText();
lblVerbbar.Text = lblVerbbar.Text.Append(Game.GetLocationName(mouse.x, mouse.y); // Doesn't crash
}
Then, as denoted by the comments, it won't crash. If you need me to post the real code I could do that, but really it's just a matter of naming conventions in the differences, not a matter of what I've actually done.
Is your game/module suitable for uploading for me to try and reproduce it?
Yes I can upload the game.
And...here it is:
http://www.meleepta.com/ags/MI_Temp.rar
(Right-click Save As!)
Hmm, I got an error trying to download that file, said server not found?
It works for me...maybe the server was down? I don't know.
I tried to upload to American Girl Scouts, but I get this error "550 FilePath('/home/httpd/vhosts/americangirlscouts.org/web_users/agsuploads/monkey_05_06/-al'): No such file or directory." which I have absolutely no idea how to fix.
Soo...I uploaded it via YouSendIt (emailed the file to myself) and the link here (http://www.yousendit.com/transfer.php?action=download&ufid=F08EE45B1683F90E) should be good for 7 days.
meleepta.com doesn't work for me either (just as it didn't a few a hours ago when I tried it). It cannot find the domain.
...Now I can't access my site either. Nor can I connect to my FTP. I'd like to say it might have something to do with my host upgrading to CPanel which is going to require them deleting all of their accounts (:o), however it says the accounts shouldn't be deleted before 16 or 17 September...so...I don't know what's up with the server being down.
When the server's up it seems like a good host, but if they can't keep the servers up I might move elsewhere....maybe. Of course, when you're using free hosting... :-\