How does ZDoom handle DIALOGUE in multiplayer?

Talk about multiplayer ZDoom games here.
Forum rules
Image
User avatar
juizzysquirt
Posts: 126
Joined: Sun Jan 04, 2009 3:29 pm
Location: Knee-Deep in L.A. Meltdown

How does ZDoom handle DIALOGUE in multiplayer?

Post by juizzysquirt »

Using search I only found one very old topic about this subject, around 2004 when Strife conversations used to cause immediate desyncing in multiplayer, and Graf was quite annoyed about even thinking of fixing it. :)

So where are we now? My current project is relying heavily on them, and I'd like to know should I even consider adding coop-support?
User avatar
Rachael
Posts: 13793
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by Rachael »

Well Graf isn't much into the multiplayer part of ZDoom, though our main "network man" is kind of on hiatus right now due to real life stuff.

I'd say go for it, and report any bugs you find. Let Graf get annoyed. There will likely be someone who can fix them. Don't forget the "-host 2" and "-join 127.0.0.1" trick for local testing. :)
User avatar
arookas
Posts: 265
Joined: Mon Jan 24, 2011 6:04 pm

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by arookas »

Eruanna wrote:Don't forget the "-host 2" and "-join 127.0.0.1" trick for local testing. :)
Not to derail, but, speaking of this, do you know of any way to get g/zdoom to keep rendering while the other "player's" window is not focused? It makes local testing quite difficult when nothing updates on the non-focused window. I've tried [wiki=Command_line_parameters#noidle]-noidle[/wiki], but it doesn't seem to have any effect.
User avatar
Rachael
Posts: 13793
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by Rachael »

ZDoom will update just fine - but GZDoom, I do not know. It's probably a simple line of code that does that. I'd like to see consistent behavior for both, possibly controlled by a command-line option. (There's very good reasons to stop updating the window when it's no longer in focus, but that choice should not be forced upon the player)
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by Nash »

Re local testing with GZDoom - I notice that both windows will only update if I don't tab out of the initial window I was given control to upon running all the instances. Once I start switching to other windows - any previous windows will stop updating its graphics output.

To help me with this, I made 2 .bat files which also position the 2 windows side-by-side so that I can avoid tabbing between windows and be able to see both as soon as the game is launched.

coop host 2.bat

Code: Select all

LADgame -file src +name Player1 +sv_cheats 1 -noidle -host 2 +map "nash test 01" +fullscreen 0 +vid_defwidth 800 +vid_defheight 450 +win_x 41 +win_y 523

exit
coop join - player 2.bat

Code: Select all

LADgame -file src +name Player2 -noidle -join localhost +fullscreen 0 +vid_defwidth 800 +vid_defheight 450 +win_x 864 +win_y 523

exit
 
As Eruanna said; this doesn't happen with ZDoom. Only GZDoom (OpenGL renderer).
User avatar
Rachael
Posts: 13793
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by Rachael »

When I get some time I'll see about adding a PR for command-line options to control this behavior. No guarantee it'll get accepted, though. :(
User avatar
juizzysquirt
Posts: 126
Joined: Sun Jan 04, 2009 3:29 pm
Location: Knee-Deep in L.A. Meltdown

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by juizzysquirt »

I could use my laptop to test DIALOGUE-scripts in mp, though only with ZDoom since it has one of those integrated GPU's that don't play well with GZD.
User avatar
Tapwave
Posts: 2096
Joined: Sat Aug 20, 2011 8:54 am
Preferred Pronouns: No Preference
Graphics Processor: nVidia with Vulkan support

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by Tapwave »

Not sure if this is relevant, but something I've found while playing Stronghold with Undead is that only one person can talk to a DIALOGUE-bound NPC. If I decide to chat up Randy, and then Undead comes and uses him, even after I closed the dialogue box, nothing happens. I can reinitiate dialogue with Randy (or any NPC I talked to first), whereas he can not, and vice-versa.
User avatar
Nash
 
 
Posts: 17465
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by Nash »

Tapwave: that sounds like a bug.
User avatar
Rachael
Posts: 13793
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: How does ZDoom handle DIALOGUE in multiplayer?

Post by Rachael »

That is a bug, and should definitely be reported.

Return to “Networking”