Topic: auto_speed problem
hessenfarmer |
Posted at: 2021-12-05, 22:16
actual speed is displayed in the status bar which is in the bottom now. look in the left corner. Top Quote |
Tibor Topic Opener |
Posted at: 2021-12-06, 15:46
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 Top Quote |
hessenfarmer |
Posted at: 2021-12-06, 16:00
glad to hear it is working. Top Quote |
Tibor Topic Opener |
Posted at: 2021-12-06, 16:09
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 Top Quote |
Nordfriese |
Posted at: 2021-12-06, 16:14
auto_speed only works in multiplayer, --loadgame starts a singleplayer game Top Quote |
Tibor Topic Opener |
Posted at: 2021-12-06, 16:21
Yes, this matches my observations. Top Quote |
Nordfriese |
Posted at: 2021-12-06, 16:22
Just create a game template and use Top Quote |
Tibor Topic Opener |
Posted at: 2021-12-06, 16:32
I will investigate Top Quote |
Tibor Topic Opener |
Posted at: 2021-12-06, 16:34
How can I pass custom lua script? EDIT: I presume that I can use --script parameter Edited: 2021-12-06, 16:41
Top Quote |
Tibor Topic Opener |
Posted at: 2021-12-06, 16:57
--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
Top Quote |