Currently Online

Latest Posts

Topic: Converting Savegame into Naval

WorldSavior
Avatar
Topic Opener
Joined: 2016-10-15, 03:10
Posts: 2094
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2024-03-31, 11:39

How can you modify a savegame so the naval warfare option becomes active? Especially savegames which are out of older versions.


Wanted to save the world, then I got widetracked

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 17:07
Posts: 1962
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2024-03-31, 18:25

This isn't really intended but there is a way:

  1. Start Widelands with the command-line option --enable_development_testing_tools
  2. In the game, press Ctrl+Shift+Space to open the scripting console.
  3. Type wl.Game().allow_naval_warfare=true and press Enter.

If you want to get a working replay or use the savegame for a multiplayer game, save and reload after using the Lua console.


Top Quote
WorldSavior
Avatar
Topic Opener
Joined: 2016-10-15, 03:10
Posts: 2094
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2024-03-31, 19:14

Nordfriese wrote:

This isn't really intended but there is a way:

  1. Start Widelands with the command-line option --enable_development_testing_tools
  2. In the game, press Ctrl+Shift+Space to open the scripting console.
  3. Type wl.Game().allow_naval_warfare=true and press Enter.

If you want to get a working replay or use the savegame for a multiplayer game, save and reload after using the Lua console.

This worked easily for single player

Thanks face-smile.png


Wanted to save the world, then I got widetracked

Top Quote