Jibble

Author Topic: Illegal exception (SOLVED)  (Read 2216 times)

MissyChelle

  • It's a meee...Michellio.
    • I can help with proof reading
    • I can help with story design
    • I can help with voice acting
Illegal exception (SOLVED)
« on: 28 Sep 2005, 05:23 »
 ???I am trying to have my character get in inventory item from a room. She gets it just fine and it's in her inventory. But then when I press tab and goto the inventory screen this message pops up:

Illegal exception
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0041D7A2 ; program is +6, ACI version 2.70.864, gtags (19,20)
AGS cannot continue, this exception was fatal. Please not down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

I have no idea what to do or what I did wrong, lol. Can anyone help me?
I also have a nother question. There's no menu bar at the top of my game's screen when I test it out. How do I get one there? I checked the tutorial and help sections but I couldn't find anything on it.  ???

I have read previous posts on the same issue but I still don't understand. Could someone please help me out?
« Last Edit: 21 Feb 2006, 18:41 by strazer »
~*MissyChelle*~

Re: Illegal exception??
« Reply #1 on: 28 Sep 2005, 05:36 »
Have you started your game using the "Empty game" template? If so, the sprites used by the built-in inventory GUI are probably missing, causing the crash.

So you have to use a custom inventory GUI or simply start your game using the "Default game" template.

Edit:

What you can also try is recreating the missing sprites:
Import 5 sprites or use existing ones, right-click each of them in the Sprite manager and select "Change sprite number...". Give them these numbers:
4 - Up arrow
1 - Down arrow
2041 - Look at
2042 - Select
2043 - OK/Close
« Last Edit: 28 Sep 2005, 05:47 by strazer »

Pumaman

  • Creator of AGS
  • Administrator
  • Mittens King
  • I sense danger.
    • Lifetime Achievement Award Winner
    • Pumaman worked on one or more games that won an AGS Award!
    •  
    • Pumaman worked on one or more games that was nominated for an AGS Award!
Re: Illegal exception??
« Reply #2 on: 28 Sep 2005, 20:03 »
As for the menu at the top of the screen, you need a GUI for it.

As strazer asks, which template did you use to start your game? If it's the Empty Game template, you may need to add a Mouse Ypos GUI yourself.

MissyChelle

  • It's a meee...Michellio.
    • I can help with proof reading
    • I can help with story design
    • I can help with voice acting
Re: Illegal exception??
« Reply #3 on: 29 Sep 2005, 05:05 »
I started with an empty template. And I feel so stupid cause I have no idea what either of you guys r talking about :(
~*MissyChelle*~

Kweepa

  • Mutated Guano Deviser
    • Best Innovation Award Winner 2009, for his modules and plugins
    • Kweepa worked on one or more games that won an AGS Award!
    •  
    • Kweepa worked on one or more games that was nominated for an AGS Award!
Re: Illegal exception??
« Reply #4 on: 29 Sep 2005, 05:13 »
The empty template should probably be a separate download, so that people don't make this mistake...

If you haven't done much I'd recommend starting again, with the default game rather than the empty template.
Still waiting for Purity of the Surf II

MissyChelle

  • It's a meee...Michellio.
    • I can help with proof reading
    • I can help with story design
    • I can help with voice acting
Re: Illegal exception??
« Reply #5 on: 29 Sep 2005, 05:20 »
I'm about 40% done :( I don't wanna start over. I just wanna know how to make my inventory work and how to have a menu bar at the top of my screen. :(
~*MissyChelle*~

Rui 'Trovatore' Pires

  • Lunge da lei per me non v'ha diletto!
    • I can help with AGS tutoring
    • I can help with play testing
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • I can help with translating
    • I can help with voice acting
Re: Illegal exception??
« Reply #6 on: 29 Sep 2005, 10:17 »
Then you COULD try doing what strazer suggested - import and re-number those sprites.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Re: Illegal exception??
« Reply #7 on: 29 Sep 2005, 10:44 »
For the menu bar, you could try:
1. Start a new game, using the 'Default Template'.
2. Go to the GUI window, and export the 'ICONBAR' gui. ('Export this GUI' from the dropdown menu.)
4. Load up your game.
5. Import the 'ICONBAR' GUI ('Import another GUI' from the dropdown menu.)

For the inventory:
1. While in the new, 'Default Template' game, go to the 'Sprite Manager', and copy (or save to file) the missing sprites strazer mentioned.
2. In your game, import & re-number the missing spites. (You might have to renumber some of your sprites (1 & 4), and change any reference to them in the editor and script.)

Alternatively, you could also export the INVENTORY GUI from the new game, import it into yours, and change the script to use that, instead of the built in one.

Maybe this now belongs in Beginners Tech?
« Last Edit: 29 Sep 2005, 10:49 by Ashen »
I know what you're thinking ... Don't think that.

MissyChelle

  • It's a meee...Michellio.
    • I can help with proof reading
    • I can help with story design
    • I can help with voice acting
Re: Illegal exception??
« Reply #8 on: 30 Sep 2005, 17:32 »
Thanks you guys!!! I finally got it working!  ;D

You guys r awesome!
~*MissyChelle*~