Game engine crashes when I press TAB

Started by , Mon 18/09/2006 16:03:41

Previous topic - Next topic

zerodin

When I have nothing in my inventory and I press tab, it tells me the standard "Nothing in your inventory" message, but when I pick up my test object and press tab I get the following error, I have my pickup object pointing to the proper item number.

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x00472157 ; program pointer is +6, ACI version 2.72.920, gtags (0,0)

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.



Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OK   
---------------------------

monkey0506

What is the script for pressing tab? Without posting that there's really no way for us to know what the system is doing that's making it crash.

zerodin

Um...I'm going off the vanilla came-with-the-program scripts.

"  if (keycode==9) InventoryScreen(); // Tab, show inventory "

monkey0506

Okay, just to be clear, the game crashes with this error after adding your inventory item, and then when you press the tab key?

I don't see anything wrong with this code, however posting the code you used to add the inventory item could prove useful (this also probably belongs in the Tech Forum not Beginners Tech (the mods can move it if they see the need. don't post a new thread)).

Gilbert

Did you happen to delete some of teh sprites used in inventory objects?

SMF spam blocked by CleanTalk