AGS v2.55 RC2 - Back to Basics edition

Started by Pumaman, Tue 15/04/2003 22:58:49

Previous topic - Next topic

Gilbert

Hmmm this time it is:

Exception C0000005 at EIP=0x00475479, AGSE V2.55.350

I'll try it at home to see if the same error is generated (for the last one in beta3a, I have exactly the same error message in both my home WIN95 comp. and this WINME comp. at work).

remixor

#81
Quote from: CJ on Tue 15/04/2003 22:58:49
* Added support for New Game Templates, to enable the user to choose between a new game Sierra-style, Lucasarts-style, and so forth. The default blank game also now includes a simple custom inventory window.


Where is this simple custom inventory window found?

EDIT: Ah, never mind, I didn't realize you had to create a new game to get it.
Writer, Idle Thumbs!! - "We're probably all about video games!"
News Editor, Adventure Gamers

Rui 'Trovatore' Pires

I screwed something up while using the beta3. It was my fault, and I realize that. I'd like to try using the beta2, see if I could make my game work again. Could you provide the link, please?

By the way, in case you're interested, it said it had exited the game and told me the game engine had crashed, asking me to make sure it was in the proper folder (it was). As I said, this is no bug report - just my mess-up.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

Quote from: Gilbot V7000a on Wed 30/04/2003 07:29:19
Hmmm this time it is:

Exception C0000005 at EIP=0x00475479, AGSE V2.55.350

I'll try it at home to see if the same error is generated (for the last one in beta3a, I have exactly the same error message in both my home WIN95 comp. and this WINME comp. at work).

Hmm, ok... could you try this build:
http://www.agsforums.com/agsedit.zip?newtry

Sorry about this, it is just trial and error as I have no idea why it's crashing under Win9x. By the way, do you get the same problem if you try and drag one of the new game templates in the New Game window? I ask because it's the same control that the sprite manager uses.

QuoteI screwed something up while using the beta3. It was my fault, and I realize that. I'd like to try using the beta2, see if I could make my game work again. Could you provide the link, please?

Even though it's your fault, can I ask what you did in case there's a way I can make it cope better in future?

Sorry, beta 2 is no longer available - if beta 3 won't load it, neither will beta 2. You'll have to continue from the backup you made before trying the beta version I'm afraid.

cerebrit

'read_gui: unknown version, update this program'


Hmm.. I just tried out the new version (3a, the link in the first post) and it worked the first time, loading my current game from a copied folder no problem.. close AGS, go get a drink..

now I'm back and I just tried to open my game by choosing the correct folder on the list (the copy of my game i had loaded earlier), and it gives me that message and closes.  I'm using windows 2000, I haven't been following this thread, but i didn't see anything about this after skimming through all the pages, and I haven't had a problem updating my AGS games in the past.


can't be all negative with it though, awesome additions once again, being able to add more objects really helps me out.

Chrille

I think I've found a region related bug. If you use a NewRoom command from a Player Steps Onto Region thingy,  it appears to ignore the "player enters screen" and the "ENTER_ROOM" parts of the on_event function.
GASPOP software
http://www.gaspop.com

Spyros

cerebrit : Check if in your game's folder is an older acwin.exe .

Pumaman

Chrille: well spotted, this is now fixed in beta 3b.

cerebrit: make sure you used the beta 3 AGSEDIT to load the game with, you will get that message if you try and load it with v2.54.

Rui 'Trovatore' Pires

What I did was -

I wanted to start checkin' out the FileOpen, FileWrite, FileWriteRawLine, etc. stuff (if you go to the general forum, you may find out why  ;) ).

So, in my first room after the intro, I added, on First Time Player Enters, the following code -


 handle = FileOpen ("temp.tmp", FILE_WRITE);
 FileWrite (handle, "test string");
 FileClose (handle);

(please understand I was messin' with these for the 1st time)

and, to check if it worked, i place the following code on keycode pressed 90 ('Z') -


if (keycode==90) {
handle = FileOpen ("temp.tmp", FILE_READ);
if (handle == 0) Display("Error opening file.");
else {
FileRead (handle, file);
FileWriteRawLine(handle, file);
FileClose(handle);
}
}

 
Well, when I tried to test the game, it happened. Oddly enough, it goes through the intro nicely, but when the time comes for the player to actually be in control, zip. I tried changing the starting room and/or player character - no good. I AM using the cutscene commands, but I don't think they have anything to do with it, so I didn't bother taking them out.

The message says something like  'the game has crashed, you should have already had a message displayed to inform you (i never had) and make sure ACWIN is in the correct folder (it is).

Oddly enough, I can still acess the editor like nothing had happened, so if things stay like this nothing prevents me from copying stuff to a new file.

Oh, and other AGSs work - I tested it with my own templates. Similarly, the template I made from MY game (made after the s**t hit the fan) doesn't work.

No backups - serves me right!
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

#89
I'm not quite clear on what isn't working for you.

When does the crash happen? When you press Z, or when it enters the room? Can you provide the complete text of the error message?

One thing that's definately wrong is this bit of script:

FileRead (handle, file);
FileWriteRawLine(handle, file);

You opened the file for FILE_READ, so you cannot write to it with FileWriteRawLine - that may be the cause of some problems.

Rui 'Trovatore' Pires

The error actually occurs when the main character gets to a playable room (ANY OF THEM), whoever the main character IS, as soon as it enters. Intro rooms are, somehow, the exemption.
Here follow the error massage -

There was a problem running the game engine. It may have crashed, in which case should have already informed you. (It never has.)  Otherwise, make sure ACWIN.EXE is in the editor directory.

Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

If you run it outside of the editor (by running the EXE from the Compiled folder), does it do the same?

Has this only started happening since you added the File code? What if you comment out all your FileOpen/FileWrite type code, does it still do this?

Rui 'Trovatore' Pires

Running the EXE or ACWIN does not provide the message, but it still doesn't work It doesn't actallu crash, by the way - it just exites the game.

This has only happened since I added the code, and yes, I did try removing it. Didn't work.

Also tried AGSEDIT3b - didn't work.

Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

Would you like to upload your game files somewhere for me to take a look at?

Klaus

WinME still crashes when trying to drag sprites. The new agsedit file comes along with this error message:  Exception 0xC0000005 at EIP=0x00425B85, AGSEv2.55.351

The system only crashes when the focus is set to the frame that includes the drag-n-drop elements. So you can try to move the sprites as long as the focus is on the main menu or the folder tree. But after a click on the background of the sprites area or on a sprite picture the next try to drag an image causes the error.

As expected it is the same problem with dragging one of the new game templates, but only if you try to move a template right after opening the new game window. The error message never appears in case you click on the background or folder name field below first and then try to drag. You then can even go back to the main selection and select "Start a new game" again and move whatever you want - no error appears in the new game window.

I hope this all doesn't sound too confusing now...

Rui 'Trovatore' Pires

#95
Sure. I'm writing this at 7:50 am, and I'll go right away upload the files. Because I can have a hell of a time doing it (doesn't work properly) wait about 30, 45 minutes before checking out www.freewebs.com/skimbleshanks/

And thank you very much.

EDIT - actually, suprisingly, extraordinarily, and so on and so forth, it's already done! You can check it out now.

Oh, I just remembered - the "file" code is NOT in, but it is exactly the one I showed you a few posts earlier, so a quick copy/paste should perfectly reproduce the state of the game.


I see what you mean about the faulty script. Would this work instead? -

 if (keycode==90) {
 handle = FileOpen ("temp.tmp", FILE_READ);
 if (handle == 0) Display("Error opening file.");
 else {
 FileRead (handle, file);
 FileClose(handle);
 handle = FileOpen ("story.txt", FILE_WRITE);
 FileWriteRawLine(handle, file);
 FileClose(handle);
 }
 }
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

#96
Klaus: thanks for the info. I'm really lost as to the cause of this, so for beta 4 I'm just catching the exception and ignoring it, and hoping that will fix the problem.

redrum: thanks for that, I've found and fixed the bug for beta 4.
It was due to you having "@SCORETEXT" in a GUI Label, and the engine was crashing because you didn't have the terminating '@'. That's now fixed.

QuoteI see what you mean about the faulty script. Would this work instead? -

Yep it should do. Remember though, FILE_WRITE overwrites the current contents of the file so you'll only ever get one line in the file that way.

Gilbert

Okay, no crash in beta4 now, dragging a sprite just did nothing for me. ;D

Erica McLane

Quote* Added game.text_align variable to allow you to centre text within message boxes.
Thanks CJ. Also I haven`t found any serious problems under Linux using the emulator.

Joseph DiPerla

Yay!!!! With this new feature in Beta 4, we can have a think bubble!

Joey
Joseph DiPerla--- http://www.adventurestockpile.com
Play my Star Wars MMORPG: http://sw-bfs.com
See my Fiverr page for translation and other services: https://www.fiverr.com/josephdiperla
Google Plus Adventure Community: https://plus.google.com/communities/116504865864458899575

SMF spam blocked by CleanTalk