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
---------------------------
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.
Um...I'm going off the vanilla came-with-the-program scripts.
" if (keycode==9) InventoryScreen(); // Tab, show inventory "
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)).
Did you happen to delete some of teh sprites used in inventory objects?