Page 1 of 1

More intelligent track reloading and resetting

PostPosted: 06 Aug 2014, 03:03
by Wuzzy
Hi! I think Stunt Rally quite often wants to reload tracks when it is actually not neccessary.

For example, when passing a track of a challenge has failed and the player clicks “continue”, SR reloads the entire track. But I think this is not nessesary, everything has already been loaded. I think a simple reset is totally sufficient.

Also, would it really be neccessary to reload the entire track if everything which has changed is the driving direction or the car?

And I noticed that dynamic objects get not reset to their starting positions when a simple track reset is made. This can be sometimes annoying if some objects went to the round because of crashes from the previous try. Or objects previously blocking the road were pushed away, thereby making the next try easier. So I think all objects must be reset on a track restart.

Re: More intelligent track reloading and resetting

PostPosted: 06 Aug 2014, 07:37
by CryHam
True. I agree.
This is because dynamic objects aren't set with reset, are with reload.
IIRC only this reason, but need to check.

Re: More intelligent track reloading and resetting

PostPosted: 06 Aug 2014, 17:42
by Calinou
In order to make sure it's entirely fair, only a reload will completely clean up the scene currently. I don't know whether it's possible for dynamic objects to be reset upon using F4.

Re: More intelligent track reloading and resetting

PostPosted: 06 Aug 2014, 19:52
by CryHam
Should be possible, even if not, then we could just delete all and create again. Still faster than reloading whole scene.
I had also plans to not reload track if only car changed. Nope, that isn't the nicest code there.

Re: More intelligent track reloading and resetting

PostPosted: 15 Aug 2015, 13:56
by CryHam
Is on master. Please test.
So, F4 resets objects always.
And now F5 doesn't reload track if it is the same, just resets objects,
it does always reload cars and Hud etc. But it is quite fast now.
Probably if cars were same F5 should just reset objects like F4. IDK if worth it.

Re: More intelligent track reloading and resetting

PostPosted: 10 Sep 2015, 01:32
by scrawl
Since this new reloading code was added, I can no longer apply graphics settings marked with "need new game" by pressing "new game" on the same track. Is that intended?

Re: More intelligent track reloading and resetting

PostPosted: 10 Sep 2015, 05:56
by CryHam
Ah crap, forgot about that. Thanks. Fixed.