Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: muffinzown on Sat 21/07/2007 06:38:44

Title: Item and Dialog Error
Post by: muffinzown on Sat 21/07/2007 06:38:44
Ok so i decided today to go back and start working on a new game. I havent been working on one in a while so i am a little rusty :P Anyway, one problem i had was an item problem. In inventory items it is set to 3 so do i put in the room as 3? or as 1? Help on that i would be thankful.
I also decided to take the item out and see how the game would run. I have the main player have a conversation with another( whom i will call player 2). But when i switch the cursor the talk and click on player 2 an illegal exception box appeared stopping the game and stated:


                        "  An exception 0xc00000005 occured in ACWIN.EXE
                           at EIP = 0x0041e5e9; program pointer is +155,
                           ACI version 2.72.920, gtags (1,0)

                           AGS cannot continue, this exception was fatal. "


So i have no idea what this could possibly mean, so if anyone can help me on this probelm please give me any info that may seem helpful

Thanks for your time!
Title: Re: Item and Dialog Error
Post by: Khris on Sat 21/07/2007 07:10:55
1. The number of the object doesn't have to be the same as the inventory item's; after picking up the object, you'd turn it off, then add the inv item, so the index numbers don't have to be related in any way (since objects and inv items aren't either, other than in the designers imagination).

2. What is the contents of "talk to character 2"? Did you use a script? Actions?
We obviously can't help you without knowing what you've tried.
Title: Re: Item and Dialog Error
Post by: muffinzown on Sat 21/07/2007 07:55:24
oh, well i used script
Title: Re: Item and Dialog Error
Post by: Khris on Sat 21/07/2007 08:02:01
Hmm, right. Care to post it?
Title: Re: Item and Dialog Error
Post by: muffinzown on Sat 21/07/2007 08:20:39
// dialog script file
@S  // dialog startup entry point
MAN: "Greetings"
EGO: " Hello "
MAN: "Take this key to proceed through the next door"
EGO:  " Ok, thanks for your help "
stop


:P ive compared this to my other games dialogs that seem to work just fine..but I'm not sure about what i may be doing wrong
Title: Re: Item and Dialog Error
Post by: Khris on Sat 21/07/2007 09:43:53
That's the dialog script.
What's the contents of the RunScript-Action in the "talk to character"-event?
I guess something like dDialog.Start();, right?
Title: Re: Item and Dialog Error
Post by: muffinzown on Sat 21/07/2007 16:12:16
yes..
Title: Re: Item and Dialog Error
Post by: Khris on Sat 21/07/2007 17:25:50
Would you please post the actual contents?

Or is it actually "dDialog.Start();"??

If you are unable to post in a normal way, look who's gonna help you.

Is the dialog's scriptname correct?
Is the character MAN in the same room as the player?
Did you assign a talking view to him?
Title: Re: Item and Dialog Error
Post by: muffinzown on Sat 21/07/2007 17:26:38
Can i just use run dialog as well?
Title: Re: Item and Dialog Error
Post by: Khris on Sat 21/07/2007 17:27:55
I guess you're talking about the interaction editor command? Yes, you can.
Title: Re: Item and Dialog Error
Post by: muffinzown on Sat 21/07/2007 17:29:31
ok I'm using this, but it does the same thing? i have checked a previous game were i used interaction editor and they seem to be the same in using dialog.
Title: Re: Item and Dialog Error
Post by: muffinzown on Sat 21/07/2007 17:42:34
ok i am using the interaction editor for the two to have a conversation.
Game - run dialog (0) I just have a few brief lines between them and then stop no options. When i get into the room i switch the cursor to dialog and click him and the game closes out and tells me of this illegal operation. I am using the same character as roger for the man.
Title: Re: Item and Dialog Error
Post by: Scorpiorus on Sat 21/07/2007 17:48:20
What I would recommend is to start a new test game, put the player and the other character into the first room, add the Run Dialog action and the dialog script and run it and see if it works at all, on a fresh start.

By the way...

Quote from: muffinzown on Sat 21/07/2007 06:38:44I also decided to take the item out and see how the game would run.

What do mean by "to take the item out"?
1. Are you referring to an Inventory Item or a Room Object?
2. Do you mean you remove it from the game project in the AGS Editor? Or, in case it's an inventory item, do you mean to remove it from the player's inventory when the game is actually running? Or, if it's a room object, are you saying you removed it in the room editor?