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:
Line 86 reads as:
Code: ags
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.
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.