Topic: play as another player in singleplayer
Tibor Topic Opener |
Posted at: 2016-07-23, 19:46
Hi, I wonder, is it possible to load singleplayer saved game as another player? I mean I played as blue, but I want to load game and go on as red. Top Quote |
GunChleoc |
Posted at: 2016-07-24, 10:53
Since the game immediately loads after the savegame is selected, no, you can't. Busy indexing nil values Top Quote |
stdh |
Posted at: 2016-09-03, 22:48
A late reply, but I have a question as well: In build 18 (and before) I used to do this by starting a multiplayer game from the latest saved game, then I could take another player's spot. But this seems to no longer work, single- and multi-player savegames appear to be segregated. Is this a feature or a bug ? Top Quote |
GunChleoc |
Posted at: 2016-09-04, 08:02
We segregated them on purpose in order to unclutter the savegame list. If you plan to switch players later, you will have to use multiplayer mode when you create the game. Busy indexing nil values Top Quote |
stdh |
Posted at: 2016-10-04, 21:50
For the record: it is actually possible to change a single player game to multiplayer, but it requires some digging. You can unzip the .wgf file, and you'll find in the folder a file named 'preload'. This is a text file, at the bottom of which is the line 'gametype="1"'. Change the number to 3, save and zip again (take care of the extension), and you'll be able to load this game in multiplayer mode. Making the AI take your place controlling the side you previously played has been described as 'fragile', and I uncovered two crashes doing so. But those have been fixed, and I think it works well enough. I don't know what happens if you set the gametype to 2... Top Quote |
Tibor Topic Opener |
Posted at: 2016-10-04, 22:34
Thanks stdh, For now I managed to live without this, but I will remember about this post for a case I will need it in future... Top Quote |
GunChleoc |
Posted at: 2016-10-05, 06:06
Game types are:
Busy indexing nil values Top Quote |
Tibor Topic Opener |
Posted at: 2016-10-28, 08:05
Well, I just unpacked one savegame and gametype is allready 3 and still it is loaded as a blue position as human. One more clarification - game was initialized as AI-only game so there is no "overtaking human player by AI" Top Quote |
GunChleoc |
Posted at: 2016-10-28, 08:28
The preload packet also has
You could have a look at what those do. Busy indexing nil values Top Quote |
Tibor Topic Opener |
Posted at: 2016-10-28, 11:57
Well, I modified this:
But widelands does not even start:
Anyway, I am afraid that it would not work anyway - I looked into code a bit Top Quote |