Topic: auto_speed problem
hessenfarmer![]() |
Posted at:
2021-12-05, 22:16 UTC+1.0
actual speed is displayed in the status bar which is in the bottom now. look in the left corner. ![]() ![]() |
Tibor Topic Opener |
Posted at:
2021-12-06, 15:46 UTC+1.0
I had a feeling that command line is not parsed properly, but indeed it works. Indeed, when I manually increase the speed, the new entry with speed occurs, so yes, it is there.... I did not know ![]() ![]() |
hessenfarmer![]() |
Posted at:
2021-12-06, 16:00 UTC+1.0
glad to hear it is working. ![]() ![]() |
Tibor Topic Opener |
Posted at:
2021-12-06, 16:09 UTC+1.0
Well, I did not said it worked I am POSITIVE that game().is_auto_speed() returns NO, even if CLI argument is properly parsed. Maybe the problem is how I run it. I have savegames of single player games and load them like: widelands --autosave=50000 --loadgame=/home/tibor/.widelands/save/crossing_barb.wgf --script=/home/tibor/.widelands/scripting/125min_extra_res.lua --datadir=/var/widelands2/git/trunk/data --nosound --auto_speed --ai_training --verbose So either:
What do you think? The second option would be better, because It would not require preparation of savegames ![]() ![]() |
Nordfriese![]() |
Posted at:
2021-12-06, 16:14 UTC+1.0
auto_speed only works in multiplayer, --loadgame starts a singleplayer game ![]() ![]() |
Tibor Topic Opener |
Posted at:
2021-12-06, 16:21 UTC+1.0
Yes, this matches my observations. ![]() ![]() |
Nordfriese![]() |
Posted at:
2021-12-06, 16:22 UTC+1.0
Just create a game template and use ![]() ![]() |
Tibor Topic Opener |
Posted at:
2021-12-06, 16:32 UTC+1.0
I will investigate ![]() ![]() |
Tibor Topic Opener |
Posted at:
2021-12-06, 16:34 UTC+1.0
How can I pass custom lua script? EDIT: I presume that I can use --script parameter
Edited:
2021-12-06, 16:41 UTC+1.0
![]() ![]() |
Tibor Topic Opener |
Posted at:
2021-12-06, 16:57 UTC+1.0
--new_game_from_template=/var/widelands2/TRAINING/template1.txt Is this OK? Or is there prescribed location where the template should be. I am getting:
I put it also in data/templates/ and the same result
Edited:
2021-12-06, 16:58 UTC+1.0
![]() ![]() |