Continuing an observed online game offline?
Moderator: OpenTTD Developers
Continuing an observed online game offline?
Is it possible to continue an online game offline? I'm aware there's a save option when playing online, but it doesn't seem to do what I want.
Specifically, I'm observing a game right now, where one of the companies has some errors in its railroad network. And I'd like to save that game, load it offline and see if I'm able to fix them. However, when I do load the game, and select that company through the "Playing as Player X" cheat, I cannot build anything.
Specifically, I'm observing a game right now, where one of the companies has some errors in its railroad network. And I'd like to save that game, load it offline and see if I'm able to fix them. However, when I do load the game, and select that company through the "Playing as Player X" cheat, I cannot build anything.
CHaSE: What I do is start a dedicated server on my machine with the saved game and then connect to it locally:
then run openttd (again), search for the game on the LAN, and then choose the company I want to control.
It takes twice the CPU because the game's running twice, but it does the trick.
Code: Select all
./openttd -D -g <savegame.sav>
It takes twice the CPU because the game's running twice, but it does the trick.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
He, there was a "-p" switch to force the game to play as another player but that was removed not so far ago 
Why doesn't the cheat work? It should be.

Why doesn't the cheat work? It should be.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Darkvater
Here's exactly, step-by-step what I do: I join a game as a spectator, save the game, abandon the game, load that saved game, select one of the companies in the cheat menu. At that moment building tools are available, but don't actually build anything.
Perhaps I missed some important step or nuance?
Here's exactly, step-by-step what I do: I join a game as a spectator, save the game, abandon the game, load that saved game, select one of the companies in the cheat menu. At that moment building tools are available, but don't actually build anything.
Perhaps I missed some important step or nuance?
Darkvater wrote:He, there was a "-p" switch to force the game to play as another player but that was removed not so far ago
Why doesn't the cheat work? It should be.
Euh.... DV....
The -p switch was only for joining network clients, and it is merged with -n, to force this behavoir and not let people think that it has any effect in single player. With -n you can do: -n 127.0.0.1#4, which will join company 5 (0 .. 7).
Not really. It's a big project, and people often don't have a complete picture with every detail. Given that the devs also have less time to actually play (as opposed to testing), it doesn't surprise me that some details, especially ones of little consequence, escape them.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
I know intimately how PPCIS works (see my web site). That said, when people ask me how to do something, I usually have to check, because I don't use the UI all that often myself - and I'm the only dev.Moriarty wrote:I don't play the game I dev (PHP), but I know the ins and outs intimately. Many of the OTTD devs have been doing this for years now. I'd figured they had also gotton to know their code that well.
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 16 guests