Memory problem/Missing Sprite File? (3.02) [SOLVED]

Started by freshpaint, Sat 21/06/2008 23:02:52

Previous topic - Next topic

freshpaint

Have been having no problem running my game from within the debugger, either full screen or windowed.  Went to compile (under Final RC2 -- just noticed you made it prod), file compiled, but when I ran the exe I got the following:



I rebooted, removed virus protection and anything else that might be running and taking up memory, and still get the same error.  It runs just fine within the debugger, even if I have my huge graphic program running in background.  What's the scoop?  Since releasing my demo a week or so ago, I haven't added a whole lot to the game -- in fact, I removed a lot of sprites I hadn't been using.

UPDATE:  I get the same message if I compile and try to execute the demo game outside of the debugger.



Pumaman

Are you using the "split resource files" option? Try turning it on/off and see if that makes any difference.

I'm not sure why you would be getting this message, would you be able to upload the EXE file so that I can investigate it?

freshpaint

AGS Demo Game.zip

The above link is the compiled exe of the current demo game, which gets the same error.  It was compiled using whatever defaults were in the demo source -- I didn't resave it or anything.

No, I didn't split resource files -- have played around with size of sprite files in the winsetup, but didn't do anything with the AGS Demo setup.

I have a Dell 5150 running xp service pak 3.0, with security patches as of the latest (the June 20th revised bluetooth patch), 512 memory, other specs you can see from the dump.

The only thing I haven't done is uninstall all versions of AGS and reinstall.  I'll try that if you suggest.

This was the first time I tried compiling an exe file since I uploaded Darkdevil County 1.01 (link in the "in production" thread), which works just fine -- exe is dated June 10, ver. 3.02.1024 .

Here's hoping it's something dumb I've done....if you need it, I'll upload the Darkdevil compiled folder.

Pumaman

Hmm, it looks like the sprite index file has got corrupted somehow.

Can you try deleting the SPRINDEX.DAT file from the game folder, then load the editor and compile the game again?

TwinMoon

#4
For the record: I just downloaded 3.0.2 and opened a game I made in 3.0.0. There also was the "could not load sprite set" message when I tried to run the compiled game. Deleting SPRINDEX.DAT fixed it.

Ah, those forums. Always ready with an answer to every problem I have ;)


freshpaint

That fixed it for me, too.  Thanks.  I love you guys. 

My Darkdevil game, like Twinmoon's, was started using  the first 3.00.  I've upgraded to every beta you've posted along the way ever since.

Is interesting -- the game I created the other day for my hotspot misunderstanding and uploaded (probably using one of the beer releases, or latest Final RC1 -- you may still have it, if not, it's still online, including all source) does compile to an exe and runs.  I created it from the default game template and only used the default sprites (roger, the key) that came with.

Pumaman

Hmm, strange ... let me know if it happens again.

freshpaint

#7
If I just edit room and global scripts, then rebuild the exe, everything works fine.  Once I remove a sprite, running the exe tosses up the same message consistently.

EDIT: Ok, I tried adding a sprite, and it gets the same message.  It looks like any time there's a sprindex.dat file present in the game directory the exe will fail.

So, to work around this right now I have to 1) compile exe 2) exit AGS editor 3) go to game directory and delete sprindex.dat file.  4) execute exe

(error continues if I try to run exe in editor without exiting) Then the exe appears to work (at least thru the first few rooms -- main character's walkcycles, a few inventory objects -- haven't tried playing thru to see if there's downstream problems yet.)

Pumaman

#8
I've investigated further and this is actually a rather serious bug with the EXE generation in 3.0.2 -- I'm kinda wishing I hadn't just made it an official release!!

Please can you try this patch:
[Patch removed, please re-download AGS 3.0.2]

Just unzip it into your AGS 3.0.2 folder and overwrite the file, then try again. Assuming it works, I'll update the official release to include it.


freshpaint

It works!  I deleted a sprite, compiled, and it works.  Also works with adding a sprite and moving it into a different folder.  You are a genius

What ended up being the problem?

Pumaman

#10
Glad to hear it, I'll try to get a release out with the fix ASAP.

The problem was actually caused by a fix I put in to the way that game template files are generated, but in a fit of idiocy I forgot that it shared some code with the EXE generation ;)

EDIT: ok, the 3.0.2 release has been updated.

SMF spam blocked by CleanTalk