Game came back to a previous "saved status"

captaincomic

  • *
  • Posts: 6109
You could also try the nightly build (again: backup your games first). Does this happen to you with the nightly build as well?

Konador

  • Posts: 34
Yes I've tried a few different nightly builds and also the official build. I'll let you know how the clean install goes - thanks for helping me through this, I love stencyl so far but I can't progress any further at the mo!

Rob

  • *
  • Posts: 1268
Very important. Look for stencylwork.prefs file under User document (next to stencylworks folder). Make sure you remove it and do a fresh install. Then test all these sample games.
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

Konador

  • Posts: 34
Okay so here's what I did.

Deleted the stenclyworks.prefs file in Users
Deleted the stencylworks folder in Users
Deleted the stencylworks folder in Program Files
Downloaded and installed the latest nightly build

I can now make changes to bundled games but still not my game (which I'd backed up)

I noticed an error writing to scenes/0.xml - it said the disk version would be used instead. I went to that folder and realised that some things were Read Only so I set the whole folder to Read/Write. I was hoping that would fix it but still no joy :(

I've attached the game folder as a zip file - see if you have any joy with it. Bear in mind that it's my first game and more of a prototype and getting used to the software than anything else. I can't currently take it any further though which is frustrating.

Try the following in one or more scenes:
Change the background gradient colour
Add the "Reach Goal" scene behaviour (goes to next scene when you hit the arrow)
Add/remove some tiles

Thanks for trying to help me out guys!

captaincomic

  • *
  • Posts: 6109
I tried your game, and I didn't have any problems at all. I'm also using the latest nightly build.
I could change the background color, add tiles, and add behaviors. After saving, closing, reopening everything was still there.

Apparently there's nothing wrong with your game, but something wrong with your StencylWorks.

Konador

  • Posts: 34
Thanks for testing it out, it's really strange! I'm not sure what's going on then! I started a new game today and everything seems to be working fine so far in that one, but still having problems with the old one. But it's works fine for you - bizarre!

Rob

  • *
  • Posts: 1268
With your new setup, are all your new games OK now?

The probable reason is that your old workspace (where all your data files are stored) is set to Program Files folder. If you do not have admin priviledge on windows, you will have write issue and thus all the saving problem. The stencylwork.prefs file govern where the workspace is set. If you remove it, the default workspace will be set to user Doc folder instead of Program Files folder.

You can check your workspace now under File->preferences and it should be somewhere in User Document.

If you add a new actor/tiles to your new game, it should be reflected in User Docs/Stencylworks/games/<your game>/resources folder. Try to monitor that for a while.

For anyone who see this thread, please correct me if any info I provided above is not accurate.

« Last Edit: February 19, 2012, 04:51:34 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

Konador

  • Posts: 34
Hi again. This has just started happening again with my latest game - changes to scenes are not saving. Everything else saves fine, just not scene edits.

I have admin rights on my PC and my workspace is set to C:\Users\Ben

Rob

  • *
  • Posts: 1268
Can you go to Debug and post your log using Generate Logs?

Are you using 2.0 nightlies?
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

Konador

  • Posts: 34
Thanks Rob,
I've attached my logs.

This problem started in the nightly build from a week or so ago, but I did a new install of the 2.0 beta .zip in a separate folder in Program Files but the problem carries over into that one too. All my behavior changes and things like that save without a problem, it is just scenes that revert to an older version.

In the logs I went in and changed the background gradient from blue to green and saved. When I loaded again the scene was blue again.

Rob

  • *
  • Posts: 1268
Can you do more testing with scene? Are you losing actors and tiles also? Anything besides resetting the gradient?
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

Konador

  • Posts: 34
I lose any changes I make to the scene, including tiles, background/foreground, adding behaviours, etc.

However, on 2 occasions that I've uploaded a build of the game to the Stencyl website it has crashed when compiling, so I've had to quit the program. Strangely, on these 2 occasions (and only those 2 occasions), the work I'd done on the scene has been saved.

Rob

  • *
  • Posts: 1268
OK. If you do not mind. Let is just start fresh again. Make sure you follow all the steps below.

1. Go to stecnylworks/games folder under User Document and save all your games to a personal folder.

2. Make sure you have admin priveledge as a window user.

3. Note that if you use window installer to download sw, you will see two areas of sw.

a. You should see Stencylworks folder under Program files. This is the program executable of sw.

b, You should see another Stencylworks folder, .stencylworks folder and stencylwork.prefs under User Document. This is mostly the data files and game centric files.

4. Manually remove all of the above.

5. Now come here and install with the window installer version (second one).

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

The whole database should be a little over 50MB.

6. After installing, you should see all the files/folders that I mentioned in 3. .stencylworks may not be there under user Document but that's OK.

7. Now make a quick game and test if you are still losing scenes or resources.

8. Anytime you add a resource like actor or tiles, you should see it under:

User Document/Stencylworks/games/<your_game>/resouces

Hope this works out.
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

Konador

  • Posts: 34
Thanks Rob,

Following that method I can make changes to scenes in test games or new games, but as soon as I load up my backed-up game the problem persists. Which is strange because when I send it to you, you can make changes without a problem.

Rob

  • *
  • Posts: 1268
I never tried your game. Are you talking about Aazor a few post up which you have problems? I'll download and try it in 2.0 and see if I can make and retain scene changes.

« Last Edit: February 29, 2012, 06:02:19 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