Are you running into the corrupt resource (or game.xml) bug?

Jon

  • *
  • Posts: 17523
This is the issue where your game fails to open and complains either about the resource listing being corrupted or game.xml being corrupted.

We're well aware of the issue, but nobody on the support team is able to reproduce it, making it virtually impossible to address it.

For now, we recommend continually grabbing the latest patch once per day (we update it at about that interval)
http://community.stencyl.com/index.php/topic,1131.0.html

I've slowly adding in more logging around key parts that I think could help us pin the issue down.

If you run into the issue, please bring it to our attention by doing the following:

1) Starting a new topic about it or replying here.
2) Posting a ZIP of your game.
3) Posting your logs. (http://community.stencyl.com/index.php/topic,1190.0.html)

Thanks!


---

As a precaution, if you have a game you've worked on for a long time, we recommend doing a simple backup of it nightly just as good practice, regardless of the bug - just ZIP the game up and stick it somewhere safe. We have an upcoming extension that automatically does this for you in StencylWorks 1.1.

almyki

  • Posts: 156
Do you know of why someone might get a 'Resource Listing being corrupt' prompt (asking me to post a zip, etc.), but then nothing bad happening?  I had uploaded then downloaded a game I was working on from Forge a few days back, and when I downloaded it, I believe I got that popup, but then after X-ing out of it, nothing went wrong and I continued my business.  Nothing else hinky has turned up since.  I'm not sure if it was important, but I thought I should mention it at least.

<3 ali
dA |

Skills:  Drawn art, writing/story concepts, drawn backgrounds.
Preferred Games:  Visual Novels, RPGs, Simulations, Sandboxes, Dress-Ups
Current Projects:  Pokepet Eevee!

Jon

  • *
  • Posts: 17523
I'd have to see the logs, but if the game opened up just fine, you're probably fine.

kantieno

  • *
  • Posts: 242
This has happened to me several times, Epic428 helped me to get it running but when we got it back up it was completely messed up, having scenes and actors deleted and i couldnt even test a scene. After that i decided to start over and I made 3 back up copies. It was working fine when I got off but when I got back on Stencyl it was loading very slowly and wasn't showing some of my games. When I was finally able to get on my game I found that not only was it was showing the error message but so were my 3 back ups when i tried to get on them. Please fix this. I finally found a game developing software that I can use only to find out that I can't complete a game and share it without it being wiped. I really want to make this game, I have so many ideas for it and sequels. Please fix this issue. I have included a zip of my original game that had been hit with the error first having most of the data wiped once i could get back on it. I would have also included a zip of my attempt to remake my original game that encoutered the error message for no apparent reason, but do do Stencyls inability to load i could not. I have also included my log.

« Last Edit: June 25, 2011, 11:58:30 pm by kantieno »
Play my new game "Hidden Valley Ninja" here: http://www.kongregate.com/games/kantieno/hidden-valley-ninja

mGilbee

  • Posts: 26
Just happened to me as well  :'( Everything was working great, saved fine, but when I came back to it a couple hours later, I got the message "Could not open the game because of a corrupt resource listing." I posted the games zip and the logs in the post. I tried re-updating, and downloading and replacing the sw.jar file, but no luck.  I really hope someone can help me, because I'm clueless on how to fix it... lol
Breaker for Android My first game Breaker is now out for Android!
Get the free version here

Jon

  • *
  • Posts: 17523
The latest patch doesn't fix a broken a game. It prevents it from happening in the first place. We'd like to deploy the latest version to all users but due to half our team being out, it's been a challenging week for us and we're not going to be able to for another few days.

Your game's resource listing is entirely hosed in a way that I find kind of hard to believe and is not recoverable because there's no more data in that file. Out of curiosity, did you edit [game]/resources/data.xml in any way?

It ends simply as:

</sprite>
</pack>

Which makes no sense to me and isn't consistent with every case we've seen to date. What we've always seen to date is that the file gets partially written out, so the first X lines are written out. I have never seen, nor do I understand how just the last couple would be written out.

Your logs indicate that it was trying to save, but then it gets cut off at the end but does say that it finished saving. Were you trying to quit out and used the save feature there?

Your last chance to grab the listing in any form is to peek at sandbox/temp/resources/data.xml. If it's there, it's there. If not, you'll need to start over. Copy the game folder somewhere else and use that as a basis for re-importing resources. And make sure you've picked up the latest patch. It auto corrects and backs up the critical files now. Not a true fix but it will, at worst, protect your data from this scenario.

WannaDev

  • Posts: 4
I was trying to test the scene, and got stuck at an infinite compiling screen. I CTRL+ALT+DEL'd out, reloaded, patched, THEN tried to run the game - but got this error. Any way known to at-least partially recover work?

Epic428

  • Posts: 1118
I'm going to look at your game, but I found this was your error during testing.


java.lang.OutOfMemoryError: Java heap space
   at java.awt.image.DataBufferInt.<init>(Unknown Source)
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

Epic428

  • Posts: 1118
The only error I received was one saying the "images had failed to load and substitutes would be added" then game opened fine. you sure you have the latest patch?
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

WannaDev

  • Posts: 4
Yes. Re-updated twice. Still get the error, with screen attatched.

I'll try uninstalling, re-installing, and using the files I linked you if they're working on your end.

Epic428

  • Posts: 1118
You need to use the latest patch as shown at the top of the thread. That patch will auto create the necessary resources. I was capable of opening the game fine.
James Moore - Official Support & Documentation.
We cannot and will not respond to PM's asking questions. Please make a new thread in the forums if you have any questions, Thank you.
For better support and faster response times, please post your logs regarding any Stencyl related issues. Debug > Logs > Generate Logs

WannaDev

  • Posts: 4
Worked. Sorry, I assumed the auto-updating would correct that.

mGilbee

  • Posts: 26
This keeps happening to me everyday. I update it everyday, and always save and close my games properly. Everything seems to be working fine, then out of the blue, I come back later that day and my game's corrupted. Does anyone know what I could be doing wrong? I attached the logs and game zip, and would appreciate it immensely if someone had any spare time to scan over them.
Breaker for Android My first game Breaker is now out for Android!
Get the free version here

Rob

  • *
  • Posts: 1268
Have you updated your SW with latest patches (both sw.jar and engine.sw)?

http://community.stencyl.com/index.php/topic,1131.0.html

Also, see Jon's post in this thread.

« Last Edit: June 28, 2011, 10:37:38 pm by Rob »
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

mGilbee

  • Posts: 26
I updated the sw.jar, but I still get a bunch of behavior errors when I try to run my game. I also tried downloading the engine.sw, but instead of the file downloading, a browser page opened up with a bunch if gibberish displayed on it.

I also had a backup of my game, but it's corrupted as well.
Breaker for Android My first game Breaker is now out for Android!
Get the free version here