Author Topic: Saving and Moving Objects  (Read 190 times)

Wander

  • Newbie
  • *
  • Posts: 10
    • View Profile
Saving and Moving Objects
« on: June 16, 2010, 11:04:44 PM »
Hello everyone. A quick question.

I have two games I'm working on (at least one will DEFINITELY be available to play in full very soon) and both have elements of the genre platforming. As platformers, there are platforms, blocks and things, constantly moving in each level. The problem is moving objects (meshes) and saving. It seems as though saving while an object is moving and then reloading the save file restarts the objects movement from the position it was in when you saved. Also, let's say you save in a level with a movable object who's move is triggered when stood on. If you save before you stand on it, then stand on it it will move as it should, but if you reload the file from before you stood on it, it will already have moved in the reloaded file.

My general problem is: My game works great, until anyone tries to save and load files from levels with moving meshes. Has anyone else had this problem or does anyone know of a fix?

Thanks !

(If I can just figure this one roadblock out then I promise I'll have a really fun playable game for everyone very soon!)
...That place... began from the resonance of intersecting points... They are memories replaced by ens and naught and etched into stone....

c^5

  • Hero Member
  • *****
  • Posts: 951
  • c^5=ccccc
    • View Profile
Re: Saving and Moving Objects
« Reply #1 on: June 16, 2010, 11:18:55 PM »
Which version of the engine are you using? If you can wait for the next stable release, lots of these problems should be cleared up.
Quote from: Brian Barnes
What's mine is mine, and what's steve belongs to me.


DomReardon

  • Sr. Member
  • ****
  • Posts: 295
    • View Profile
    • Email
Re: Saving and Moving Objects
« Reply #2 on: June 17, 2010, 02:34:27 AM »
Hey Wander,

How about either using carefully placed save points or autosaves? I can't think of all that many platform that let you save whenever you want (although I'm sure plenty exist). Part of the fun of older platform games, for me, is that fact that you might have to do certain bits over and over in order to get to the next level where you can save the game.

Oddity(007)

  • Hero Member
  • *****
  • Posts: 620
  • Oliver Daids
    • View Profile
    • Ep-7
    • Email
Re: Saving and Moving Objects
« Reply #3 on: June 17, 2010, 03:33:09 AM »
Save games in dim3 have always been buggy, it's why I've asked for direct file access from Brian :/
My Site
Quote from: IRC
[21:13] <+`teh1> hella people and i pulled a new trick out of my ass so now i know another trick :D
[21:14] <+danielragsdale> i thought you could only pull crap out of your ass :)


Wander

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Saving and Moving Objects
« Reply #4 on: June 17, 2010, 07:58:40 AM »
Thanks for the responses.
I'm working using dim3_3_Beta_8-1, but I've tested even the most recent stable build and the engine still has just as much trouble with saving and moving objects.

I've definitely considered creating save points or something of that nature where you can only save at one certain spot, but I'm afraid I'm not even close to capable enough at scripting to make this happen... I've gotten by for the past 3 years by learning how to understand and modify dim3 scripts but I still haven't written anything from the ground up.

Alright here's the deal:
to anyone who thinks they could make me a save point script I would be willing to give you HUGE credit in my game.

And PLEASE understand that I am not some new guy coming and saying "Yo I wanna make a cool game with guns n' stuff! Can anybody script that up 4 me? kthnx!"

I know it says I've only posted 6 or 7 times but I've been part of this forum and using Dim3 for the past 3 years, even if I rarely post here.

I have been working on this game for a year and it is SO CLOSE to completion. In fact the only reason I procrastinated so much recently was that I knew in the back of my mind I might not be able to set up a save point system and that my game might go unfinished. 

If you agree to help me out with this script than you will be helping out (and getting credit in) One of the only Dim3 games that actually gets finished and released.

Thanks to anyone who responds!
(I'm beginning to think no one would want to blindly help a project that they have no visual confirmation of, so I will soon start a thread in the showcase section revealing my game: Hypercube)
...That place... began from the resonance of intersecting points... They are memories replaced by ens and naught and etched into stone....

jesseoffy

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
    • Email
Re: Saving and Moving Objects
« Reply #5 on: June 17, 2010, 08:00:48 AM »
Wait a little bit for the next release to come out - been a while since the last beta/alpha (whatever) version, so I'm guessing Brian is up to a lot of fixes... maybe one of them is a save feature update. ;)
-Jesse O.

"Good artists copy; Great ones steal." -Picasso

c^5

  • Hero Member
  • *****
  • Posts: 951
  • c^5=ccccc
    • View Profile
Re: Saving and Moving Objects
« Reply #6 on: June 17, 2010, 08:11:10 AM »
You misunderstood---I meant wait for the next stable build to be released. In 3.0, saving and loading is going to be fixed up.


[EDIT]Actually, possible in the next beta.
Also note that the new save/load game is completely re-written.  There's still an event sent to all the scripts when a save/load happens, but it should be completely transparent for most users.  All script state should be saved and restored completely the way it was on the save, without any intervention on the project creators part.


The new core object system (which is what's taking most of my time, along with the networking which is very close) tracks everything and can create/re-create it on the fly without a lot of problem.  This should solve most all the save/load problems.  I can't really guarantee it working through major project or map changes, but it should work perfectly otherwise.


[>] Brian

Quote from: Brian Barnes
What's mine is mine, and what's steve belongs to me.


Wander

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Saving and Moving Objects
« Reply #7 on: June 17, 2010, 08:13:26 AM »
FANTASTIC!

Haha, how did I misread that? I can definitely wait!
...That place... began from the resonance of intersecting points... They are memories replaced by ens and naught and etched into stone....

_Aaron_

  • Hero Member
  • *****
  • Posts: 1265
  • ._.
    • ICQ Messenger - 599215104
    • MSN Messenger - aasrd@gmx.com
    • Yahoo Instant Messenger - btd.metalman@yahoo.com
    • View Profile
    • Better Than Dirt Game Studios
    • Email
Re: Saving and Moving Objects
« Reply #8 on: June 17, 2010, 08:22:04 AM »
FANTASTIC!

Haha, how did I misread that? I can definitely wait!

So you're working on a game? How soon can we seen some screens? :D
||  Blog:Wuddahfug?
Quote from: Dim3 IRC
AlexSmithCFG: I wasn't a maroon like that
_Aaron_: I'm not a maroon either.