Latest Posts

Topic: save frequency setting broken?

Tibor

Topic Opener
Joined: 2009-03-23, 23:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2016-05-11, 13:53

Hi, it seems my changes to automatical save frequency are ignored, the "7" is restored everytime. Of course when I changed it in config file the value from therein is accepted.

Do you see the same behavior?


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-05-11, 15:41

7 would be a really odd default value. I have no trouble changing "Save game automatically every:" in the options to whatever I want.


Busy indexing nil values

Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 23:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2016-05-11, 19:59

I had that value (420) in config file, is it possible that GUI is not able to change what is in config? Strange...


Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 23:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2016-05-11, 23:22

Another question - can anybody verify/confirm that if game is paused no autosave is taking place? It is supposed to be so, but my testing shows that autosave is still runnning


Top Quote
No0815
Avatar
Joined: 2016-05-01, 14:52
Posts: 49
Ranking
Pry about Widelands
Posted at: 2016-05-12, 10:37

I can confirm that the game autosaves when paused, even when it was paused the whole time since the last autosave (or loading, in my case).


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-05-12, 11:39

Autosave timing generally needs an overhaul - I'm not sure if it is tie to realtime (desired) or gametime(bad) at the moment.

Tibor wrote:

I had that value (420) in config file, is it possible that GUI is not able to change what is in config? Strange...

I can change the setting in the GUI and Widelands remembers it, so I have no idea right now where your problem is coming from face-sad.png

Maybe the value was out of range, causing the problem?

Edited: 2016-05-12, 11:39

Busy indexing nil values

Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 23:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2016-05-12, 13:21

It seems that game.game_controller()->is_paused() function is not working properly, I will look at this....


Top Quote
MiroslavR

Joined: 2010-10-16, 17:56
Posts: 35
Ranking
Pry about Widelands
Location: Slovakia
Posted at: 2016-05-12, 19:31

Using Pause Break to pause the game instead of lowering the speed to 0 with Page Down seems to stop the autosave mechanism as intended.


Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 23:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2016-05-12, 20:25

MiroslavR wrote:

Using Pause Break to pause the game instead of lowering the speed to 0 with Page Down seems to stop the autosave mechanism as intended.

I had no idea about Pause Break feature, thanks for info. BTW setting speed to 0x should have the same effect, should it not?


Top Quote
MiroslavR

Joined: 2010-10-16, 17:56
Posts: 35
Ranking
Pry about Widelands
Location: Slovakia
Posted at: 2016-05-12, 21:06

Tibor wrote:

MiroslavR wrote:

Using Pause Break to pause the game instead of lowering the speed to 0 with Page Down seems to stop the autosave mechanism as intended.

I had no idea about Pause Break feature, thanks for info. BTW setting speed to 0x should have the same effect, should it not?

From what I can tell, there is no difference other than is_paused() not working properly. The only place I could find this function used was in the autosave code. I think the fix should be as simple as "is_paused() { return real_speed() == 0; }" instead of returning paused_, because lowering the speed to 0 does not seem to set paused_ to true.


Top Quote