An Error when clicking btnIconAbout(solved[kind of])

Started by xerca, Sun 17/01/2010 12:48:26

Previous topic - Next topic

xerca

While I play my game, there seems to be no problem. But when you click the "?" signed button on the icon bar, suddenly an error occurs. It says this:
---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x0043FBE7 ; program pointer is +379, ACI version 3.12.1074, gtags (97,1)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and post the details on the AGS Technical Forum.

Also its all clicking script is this: " gPanel.Visible=true;
                                                   gIconbar.Visible=false;
                                                   mouse.UseModeGraphic(eModePointer);" I tried to remove something from there to find out where is the problem and I found that the problem is in the first code(gPanel.Visible=true;). I don't know what is the problem with Panel gui.
What can I do? Please help me.

I also uploaded the crash info file: http://ul.to/befrlw

Dualnames

xerca, you have created an interaction butthen you went deleting it. To make more sense and fix it, find the button on the GUI,  click on the thunder and then on the ....

Right now, you have a function "btn ?ScriptNameHere_function( ec..)" on the global script, you have the button, but you're missing the link. If you do as a mentioned abov you'll manage to fix it.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Khris

I don't think so; deleting the function name in the event field or even entering a name of a non-existent function doesn't crash the game but leads simply to nothing happening when the button is clicked.

Lufia

Well, does gPanel exist ? Maybe you deleted or renamed it. You might as well Ctrl + F it in your scripts to see if you're doing anything weird to it at some point.

xerca

thank you for trying to help me but nothing worked  :(. There is nothing about creating and deleting interaction. I checked it and it has only one event (clicking) and I didn't delete it.

gPanel does exist. I'm sure.

Also before trying to click that "about button" I edited gPanel gui a bit. But only visually. Like background image.

Gilbert

Can you upload your game files for us to investigate?

Dualnames

#6
Quote from: Gilbet V7000a on Sun 17/01/2010 16:24:21
Can you upload your game files for us to investigate?

Trust the dual! Just do as I say, it'll work.



Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

xerca

Quote from: Gilbet V7000a on Sun 17/01/2010 16:24:21
Can you upload your game files for us to investigate?
Which ones? All of them?

@Dualnames It didn't work

Dualnames

Try and open the gPanel GUI somewhere else, to see if it's something to dowith the GUI or just with the GUI coming up at that point.
Code: ags

if (keycode==eKeySpace) gPanel.Visible=true;
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

xerca

Quote from: Dualnames on Sun 17/01/2010 16:40:41
Try and open the gPanel GUI somewhere else, to see if it's something to dowith the GUI or just with the GUI coming up at that point.
Code: ags

if (keycode==eKeySpace) gPanel.Visible=true;

The same error occurs.

xerca

I wonder if there could be any problems if I changed the texts of buttons and things?

xerca

I created a new default game and exported it's gpanel gui to my game and deleted my game's original gpanel. It now works. I will re-edit it like the old one but I will check in every step so if the same error occurs i will be able to find out why. So, the problem is kind of solved.

By the way, thank all of you who helped me.

Khris

I guess AGS crashes when trying to draw the now visible gPanel; so the issue is probably with a character in the button texts or one of the sprites you used to change its appearance.

SMF spam blocked by CleanTalk