SaveGame in multiplayer (4.4pre-39)

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

SaveGame in multiplayer (4.4pre-39)

Postby yura_111 » Fri Feb 28, 2020 12:06 pm

Question on multiplayer in GZDOOM (sorry for my english):

Let's say we play together in a cooperative. Save the game, exit. After some time, we make a save load, but now the 3rd player is already connected (he starts normally at the starting point as a new character). With such a scheme, everything works fine, except that for a newly connected player, the game independently selects the player's class (out of 13 existing ones), ignoring what is indicated on the command line at the time the game loads. And with each update of GZDOOM, he selects different characters for the newly connected. If this not a bug - please tell me how, in this case, i can correctly select the character for the new player (without arbitrary randomness)?

Thanks!
yura_111
 
Joined: 12 Oct 2019
Operating System: Windows Vista/7 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: SaveGame in multiplayer (4.4pre-39)

Postby _mental_ » Sun Mar 01, 2020 7:02 am

yura_111 wrote:ignoring what is indicated on the command line at the time the game loads.

Please provide those command lines. +playerclass <NameOfPlayerClass> works for me.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: SaveGame in multiplayer (4.4pre-39)

Postby Eugene Bunville » Sun Mar 01, 2020 12:26 pm

Sorry, maybe you didn’t understand me because of my very bad english.
Run the game for two players. Save the game (for example: SAVE4.zds). After that, load this "SAVE4.zds", but for three players (the third player will be new and his character will be chosen randomly by the GZDOOM, no matter what is written on the command line)
Eugene Bunville
 

Re: SaveGame in multiplayer (4.4pre-39)

Postby _mental_ » Sun Mar 01, 2020 1:05 pm

Once again, how do you run GZDoom? I’m asking about command lines for all three players.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: SaveGame in multiplayer (4.4pre-39)

Postby yura_111 » Mon Mar 02, 2020 12:12 am

Server:
GZDOOM -iwad doom_Original_full -host 3 +sv_cheats 1 -warp 01 -skill 4 -dup 2 -netmode 0 -extratic +sv_fastweapons 0 +dmflags 1040236544 +dmflags2 58720256 +playerclass Leprechaun +name YURY -file newwar3 -loadgame save0

Client1:
GZDOOM -join 192.168.1.13 +sv_cheats 1 -iwad DOOM_ORIGINAL_FULL -skill 4 -dup 2 -netmode 1 -extratic +sv_fastweapons 0 +dmflags 1040236544 +dmflags2 58720256 +playerclass Commando +name Daniel -file newwar3 -loadgame save0

Client2: (This is a new ACTOR, because he was not present in SaveGame (the SaveGame was for two). But in order for him to connect to our game, he also needs a savegame file ("save0") - and in this case, character selection is not possible)
GZDOOM -join 192.168.1.13 +sv_cheats 1 -iwad DOOM_ORIGINAL_FULL -skill 4 -dup 2 -netmode 1 -extratic +sv_fastweapons 0 +dmflags 1040236544 +dmflags2 58720256 +playerclass Marine +name AWOp -file newwar3 -loadgame save0
yura_111
 
Joined: 12 Oct 2019
Operating System: Windows Vista/7 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: SaveGame in multiplayer (4.4pre-39)

Postby _mental_ » Sat Mar 07, 2020 7:25 am

It appeared that playerclass CVAR is ignored when loading a saved game. Classes are chosen for all eight players during game creation, and restored from the save.
So far, I found no obvious way to change player class in such situation. It can be that there is no way to do it at all.
Probably, I just was lucky when checking this with Hexen.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: SaveGame in multiplayer (4.4pre-39)

Postby Graf Zahl » Sat Mar 07, 2020 9:11 am

Since player classes are tied to actual class definitions they cannot be trivially swapped out - they may contain entirely different coding.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: SaveGame in multiplayer (4.4pre-39)

Postby yura_111 » Sun Mar 08, 2020 3:07 am

Many thanks, but it's a pity because in the Multiplayer-Game it is very relevant.
yura_111
 
Joined: 12 Oct 2019
Operating System: Windows Vista/7 64-bit
Graphics Processor: nVidia (Modern GZDoom)


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest