Page 1 of 1

[ADVANCED CLIMBING] Dev build/LInux: climbing state not restored by saving/reloading [RESOLVED 0.10.23]

Posted: Tue Apr 16, 2019 10:49 pm
by pango
If you create a gamesave while hanging from a wall or a ceiling, you may be in for a surprise when reloading because you'll be falling immediately, in some cases to your death if you have no levitation or slowfalling.
The only way out if you really must use that save is to use console commands.
(There may be an extra corner case if you try reloading after disabling Advanced Climbing; But let's assume game is reloaded with similar options).

This can be tested just about anywhere, attached gamesave is near the top of a dungeon shaft.

Re: Dev build/LInux: climbing state not restored by saving/reloading

Posted: Wed Apr 17, 2019 2:57 am
by BansheeXYZ
Hmmm. Anything that requires a key to be held down is going to stop when you load a save. That seems normal.

Re: Dev build/LInux: climbing state not restored by saving/reloading

Posted: Wed Apr 17, 2019 3:38 am
by Jay_H
I know that, at least with the Advanced Climbing System, you grip to the wall without button presses once climbing mode activates. This does indeed fail when reloading, which can be extremely dangerous.

Re: Dev build/LInux: climbing state not restored by saving/reloading

Posted: Wed Apr 17, 2019 6:41 am
by BansheeXYZ
I also know that in classic climbing (both classic and DFU), the moment you hit esc to save, you drop, so you'd be saving in mid-air. In other words, it's only possible to save in the usual climb mode via quicksaving in DFU.

As for advanced climb mode, yeah, there is no held key, so it's possible to save while climbing, so you'd figure that IsClimbing would be a status that would be saved and restored.

Re: [ADVANCED CLIMBING] Dev build/LInux: climbing state not restored by saving/reloading

Posted: Wed Jan 29, 2020 6:45 pm
by JorisVanEijden
I took a stab at it and saving and loading the IsClimbing state is real easy.
Unfortunately at the first few climbing checks the player's capsule collider is not touching the walls yet so climbing is immediately deactivated and you start falling.

If someone knows from the top of their heads why this is I'd love to hear it. Otherwise I'll take another stab at it later on.

The easiest "fix" might be to disallow saving when climbing :)

Re: [ADVANCED CLIMBING] Dev build/LInux: climbing state not restored by saving/reloading

Posted: Sat Apr 25, 2020 9:27 pm
by pango
JorisVanEijden wrote: Wed Jan 29, 2020 6:45 pm The easiest "fix" might be to disallow saving when climbing :)
Saw a streamer ruin his quicksave that way. I was around so I saved the day by suggestion "tgm", but I'm really thinking that, unless saving/restoring climbing state is not too difficult to get right, then prevent saving while climbing would be a very good workaround.

Re: [ADVANCED CLIMBING] Dev build/LInux: climbing state not restored by saving/reloading

Posted: Sat Apr 25, 2020 10:52 pm
by Interkarma
This was the next advanced climbing issue I was going to look at. Once this one is solved, climbing should be reasonable stable.

Re: [ADVANCED CLIMBING] Dev build/LInux: climbing state not restored by saving/reloading

Posted: Sat Apr 25, 2020 11:19 pm
by pango
In case it proves too tricky, or if it can buy you some time, I wrote the workaround that I described above:
https://github.com/Interkarma/daggerfal ... e-climbing