Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0043DCA2 ; program pointer is +157, ACI version 2.55.560, gtags (13,77)
I talk to character, he replies and than the game guit.
You haven't deleted any sprites recently, have you?
If not, it might be worth uploading the game files for me to take a look at.
Oh, and please use more descriptive topic titles. :P
I did deleted some sprites... So Im f...ed?
NO NO NO!
Well, if the code still calls for a sprite that you deleted earlier, it will look for it, and then find it gone, thus producing the error, in theory.
-DD
Usually with those kind of messages related to dialogs I get also "All dialog options turned off"...
Just import plenty of sprites until you see the sprites numbers counting normally again... then you know you're importing into unused slots.
That should make the game work, although you still need to fix your animations.
Yeah, but this only works practically if he deleted sprites that he imported on his own, as some of the original sprites' slot numbers are quite large (for example, the OK button sprite for the default inv. interface is number 2043).
The best solution is:
1. Track down what sprites slots you had removed which are causing the problem (by checking the scripts, GUI's etc., to see if they point to some sprite numbers that are not existing anymore, or if this failed, start up a blank new game, and write down which sprite numbers are initially used, then compare them with your now defective game to see what sprites are missing). Now write down all the sprite numbers in question.
2a. Modify all the affected scripts, GUI, views, etc. to remove the references of these no-longer-exist sprites, or change them to other existing sprites. OR:
2b. Import some sprites, then one-by-one:
(i) right-click on it
(ii) select 'change sprite number...'
(iii) Change it to a sprite slot number which you want to put a sprite back
until you're rescued all your deleted slots.
(Note: changing a sprite's slot number is not recommended for normal users, it's more for the technies who know what they're doing or if method 2a failed to work.)
ALWAYS BACK UP YOUR GAME FILES BEFORE DOING ANYTHING MENTIONED ABOVE.
Which sprites did you delete?
There is a message box that explicitly warns you when you try to delete a sprite, about the possible consequences.
This sort of thing is the reason AGS never used to support deleting sprites :P
The prob is I deleted almost all sprites from the Defaults folder. Damn! And if I wanna rename sprite, I just cannot do that.
Pity! It was such a good game? Isnt there some upload I should download to replace the missing sprites?
In case I understood right, I think you could do this:
Create a new game, and import all the sprites you need, into it. Then, from the new game's folder copy the sprset.spr file over you current game's one, open the game up, and re-arrange the sprites into views, GUIs, etc.
BUT BACK UP FIRST
I needed to do almost this with one project I worked on... It should finnish it, maybe... :P
Thank you very much. I really appreciate what you do for us. For us all. I know it may sounds cold from a stranger, but... You helped me, and you will see my adventure game.
Thanks