MantisBT - Zandronum
View Issue Details
0000319Zandronum[All Projects] Bugpublic2011-03-08 18:372018-09-30 19:57
Edward-san 
Torr Samaho 
normalmajoralways
closedfixed 
LinuxUbuntu10.10 x86-64
98d 
1.0 
0000319: Ammo count with deus vult 2 is wrong online
When you load dvii-1i.wad:map31, skill 3, online, you get these values of ammo (with the berserk pack):

bullets: 260/400
shells: 72/100
rockets: 56/100
cells: 360/600

against the full ammo you get offline.
The consequence is that if you use the bfg, it fires the spheres until you have only 80 ammo left, then it won't shoot anymore, but the ammo count decreases.

This happens also in 98e latest alpha.
start a new server:
./skulltag -host 1 -iwad doom2.wad -file dvii-1i.wad -warp 31 +skill 3 -nobroadcast

connect to the server:
./skulltag -connect 127.0.0.1:10667 -iwad doom2.wad -file dvii-1i.wad

join the game and check the ammo.
voodoo doll
? voodoo_doll_test_01.wad (8,027) 2011-03-13 12:21
/tracker/file_download.php?file_id=197&type=bug
? 2011.03.27_19.33.31_voodoo_doll_test_01.cld (48,969) 2011-03-27 17:40
/tracker/file_download.php?file_id=223&type=bug
png Screenshot_Doom_20110328_051702.png (27,432) 2011-03-28 03:28
/tracker/file_download.php?file_id=224&type=bug
png
Issue History
2011-03-08 18:37Edward-sanNew Issue
2011-03-12 23:08unknownnaNote Added: 0001151
2011-03-12 23:08unknownnaStatusnew => confirmed
2011-03-13 12:21unknownnaFile Added: voodoo_doll_test_01.wad
2011-03-13 12:22unknownnaNote Added: 0001156
2011-03-15 00:41Edward-sanNote Added: 0001157
2011-03-15 01:33unknownnaNote Added: 0001158
2011-03-15 01:43unknownnaNote Edited: 0001158bug_revision_view_page.php?bugnote_id=1158#r568
2011-03-15 02:14unknownnaNote Edited: 0001158bug_revision_view_page.php?bugnote_id=1158#r569
2011-03-15 09:16Edward-sanNote Added: 0001159
2011-03-15 09:19Edward-sanNote Edited: 0001159bug_revision_view_page.php?bugnote_id=1159#r571
2011-03-15 09:55Edward-sanNote Edited: 0001159bug_revision_view_page.php?bugnote_id=1159#r572
2011-03-15 09:56Edward-sanNote Edited: 0001159bug_revision_view_page.php?bugnote_id=1159#r573
2011-03-27 16:29Torr SamahoNote Added: 0001198
2011-03-27 16:31Torr SamahoNote Edited: 0001198bug_revision_view_page.php?bugnote_id=1198#r615
2011-03-27 16:33Torr SamahoNote Edited: 0001198bug_revision_view_page.php?bugnote_id=1198#r616
2011-03-27 16:38Torr SamahoStatusconfirmed => feedback
2011-03-27 16:51unknownnaNote Added: 0001200
2011-03-27 16:53unknownnaNote Edited: 0001200bug_revision_view_page.php?bugnote_id=1200#r618
2011-03-27 17:11Torr SamahoNote Added: 0001203
2011-03-27 17:37unknownnaNote Added: 0001204
2011-03-27 17:40unknownnaFile Added: 2011.03.27_19.33.31_voodoo_doll_test_01.cld
2011-03-27 17:55Torr SamahoNote Added: 0001205
2011-03-27 18:16Torr SamahoNote Edited: 0001205bug_revision_view_page.php?bugnote_id=1205#r620
2011-03-27 18:16Torr SamahoNote Edited: 0001205bug_revision_view_page.php?bugnote_id=1205#r621
2011-03-27 18:23Edward-sanNote Added: 0001206
2011-03-27 18:23Edward-sanStatusfeedback => new
2011-03-27 18:39Edward-sanNote Edited: 0001206bug_revision_view_page.php?bugnote_id=1206#r623
2011-03-27 19:01Torr SamahoNote Added: 0001207
2011-03-27 19:04Torr SamahoAssigned To => Torr Samaho
2011-03-27 19:04Torr SamahoStatusnew => feedback
2011-03-27 19:08Edward-sanNote Edited: 0001206bug_revision_view_page.php?bugnote_id=1206#r624
2011-03-27 23:48unknownnaNote Added: 0001212
2011-03-27 23:56unknownnaNote Edited: 0001212bug_revision_view_page.php?bugnote_id=1212#r626
2011-03-27 23:59unknownnaNote Edited: 0001212bug_revision_view_page.php?bugnote_id=1212#r627
2011-03-28 01:40Torr SamahoNote Added: 0001215
2011-03-28 03:23unknownnaNote Added: 0001216
2011-03-28 03:28unknownnaFile Added: Screenshot_Doom_20110328_051702.png
2011-04-04 13:36Edward-sanNote Added: 0001289
2011-04-04 13:36Edward-sanStatusfeedback => assigned
2011-04-04 13:42Edward-sanNote Edited: 0001289bug_revision_view_page.php?bugnote_id=1289#r663
2011-04-05 00:58Torr SamahoNote Added: 0001290
2011-10-08 13:47Edward-sanNote Added: 0002225
2012-01-14 21:45Torr SamahoNote Added: 0002393
2012-01-14 21:45Torr SamahoStatusassigned => resolved
2012-01-14 21:45Torr SamahoFixed in Version => 1.0
2012-01-14 21:45Torr SamahoResolutionopen => fixed
2012-01-14 21:46Torr SamahoNote Edited: 0002393bug_revision_view_page.php?bugnote_id=2393#r1216
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2018-09-30 19:57Blzut3Statusresolved => closed

Notes
(0001151)
unknownna   
2011-03-12 23:08   
Another voodoo doll issue. The map uses multiple voodoo dolls for each player combined with scrolling floors. Even worse, your client is confused about your weapons. Sometimes it thinks that your BFG is your fist, your SSG is your chaingun, your plasma rifle is your fist.
(0001156)
unknownna   
2011-03-13 12:22   
I made a stripped-down MAP31 (MAP01 in the example WAD) from Deus Vult 2. It should illustrate the desync nicely.

Just remember to turn into a spectator before a changemap map change. When you join the game in the next round, the weapons will desync. Your client thinks that it has all the weapons, but it really only has the pistol, fist and berserk.
(0001157)
Edward-san   
2011-03-15 00:41   
> Your client thinks that it has all the weapons, but it really only has the pistol, fist and berserk.

uh? Offline i have all the weapons and the ammo, but online some items are ignored, it seems.
(0001158)
unknownna   
2011-03-15 01:33   
(edited on: 2011-03-15 02:14)
> uh? Offline i have all the weapons and the ammo, but online some items are ignored, it seems.

When I say client, I usually mean online play. What you say is correct though.

Edit:

BTW: It seems that no voodoo dolls are spawned if the game is in an emulated multiplayer state.

(0001159)
Edward-san   
2011-03-15 09:16   
(edited on: 2011-03-15 09:56)
> BTW: It seems that no voodoo dolls are spawned if the game is in an emulated multiplayer state.

Yeah, I reported something related some time ago: "map01 of deus vult 2 cannot be finished because of the impossibility of gathering the blue key in emulated multiplayer state", but Torr said a sort of no. I don't remember why and cannot find the the bug thread, it seems it was deleted.

BTW: Why online the voodoo dolls are invisible and not shootable?

(0001198)
Torr Samaho   
2011-03-27 16:29   
(edited on: 2011-03-27 16:33)
> BTW: It seems that no voodoo dolls are spawned if the game is in an emulated multiplayer state.

> BTW: Why online the voodoo dolls are invisible and not shootable?

This is intended. The voodoo doll system is inherently incompatible with Skulltag's client / server architecture for several reasons, e.g. in game joining, more than 4 player slots available, etc. Currently I try to emulate the most commonly used effects to make some of the maps requiring voodoo dolls work online. I didn't spend any time to make them work with the multiplayer emulation. If you want to use them offline, just play single player.

> Your client thinks that it has all the weapons, but it really only has the pistol, fist and berserk.

I couldn't reproduce this with the latest 98e version and didn't test 98d. Can you check if it still happens in 98e and if so, explain how to reproduce it (including how to set up the server)? Limitations of the voodoo doll system aside, any kind of ammo/weapon sync problems are bugs that should be fixed.

(0001200)
unknownna   
2011-03-27 16:51   
(edited on: 2011-03-27 16:53)
> Can you check if it still happens in 98e and if so, explain how to reproduce it (including how to set up the server)? Limitations of the voodoo doll system aside, any kind of ammo/weapon sync problems are bugs that should be fixed.

Using r3113M, I was able to reproduce it there as well.

Steps to reproduce:

1) Start a standard coop server with the example WAD loaded.
2) Connect a client to the server.
3) Join the game.

That's basically it. Hold +attack while cycling through the weapons. You'll see pistol puffs. But if you reconnect, you can't reproduce it anymore.

(0001203)
Torr Samaho   
2011-03-27 17:11   
I still can't reproduce it. I start the server with

skulltag.exe -file voodoo_doll_test_01.wad -host

and connect the client with

skulltag.exe -file voodoo_doll_test_01.wad -connect localhost

After I joined, the client has all weapons and can use all of them.

Probably there is some setting in your ini that makes Skulltag behave differently for you.
(0001204)
unknownna   
2011-03-27 17:37   
I see. I use IDE to create/join servers. This is probably making a difference here. I can't reproduce it if I create a server with your method. For your convenience, I recorded a demo of it with 98d.
(0001205)
Torr Samaho   
2011-03-27 17:55   
(edited on: 2011-03-27 18:16)
Now that's interesting. I can reproduce the problem when I start the server with IDE (doesn't matter if I join with IDE or with the command I posted above).

EDIT: I tracked down what IDE is doing to triger this: One needs to set "alwaysapplydmflags 1" to reproduce the error.

(0001206)
Edward-san   
2011-03-27 18:23   
(edited on: 2011-03-27 19:08)
> Your client thinks that it has all the weapons, but it really only has the pistol, fist and berserk.

I thought unknownna was smoking something bad, because neither me reproduced that by terminal way. Good to know we're close to solution :D

EDIT: why every time I add a new comment the status changes back to "new" instead of staying "feedback"?

EDIT2: another question: is it possible to check if the map has voodoo dolls?

(0001207)
Torr Samaho   
2011-03-27 19:01   
This should fix the sync issues.

Note that player who were not in the game when the map started, still don't get the ammo the voodoo dolls touched while the players were not in the map. This is not a bug, but a consequence of in game joining. Skulltag just explicitly keeps tracks of all weapons and keys the voodoo dolls gathered to ensure that the players have those.

> EDIT: why every time I add a new comment the status changes back to "new" instead of staying "feedback"?

The status "feedback" means that the devs need feedback, usually from the original reported. Thus, when the original reported adds a note, the system assumes this is the feedback the devs wanted and changes the status from "feedback" to "new (if nobody is assigned to the report) or to "assigned" (if somebody is assigned to the report.
(0001212)
unknownna   
2011-03-27 23:48   
(edited on: 2011-03-27 23:59)
> I tracked down what IDE is doing to triger this: One needs to set "alwaysapplydmflags 1" to reproduce the error.

Good finding.

> This should fix the sync issues.

Yes, it did.

> Note that player who were not in the game when the map started, still don't get the ammo the voodoo dolls touched while the players were not in the map. This is not a bug, but a consequence of in game joining. Skulltag just explicitly keeps tracks of all weapons and keys the voodoo dolls gathered to ensure that the players have those.

Will this behavior ever change?

Edit:

But the backpack and berserk pick-up messages aren't displayed after a changemap map change online.

(0001215)
Torr Samaho   
2011-03-28 01:40   
> Will this behavior ever change?

Well, the problem is that there is no way to handle voodoo dolls with Skulltag's c/s architecture that would work for all wads.

Currently the best way to play with voodoo dolls online, is to use assigned voodoo dolls (the default ones are unassigned) in survial and only using the first n player slots, where n is the number of players the voodoo doll wad was designed for. If you do so, it should work as intended by the wad.

> But the backpack and berserk pick-up messages aren't displayed after a changemap map change online.

Now that you mention it, it looks like none of the pickup messages are displayed anymore. Should work better in 3020.
(0001216)
unknownna   
2011-03-28 03:23   
> Should work better in 3020.

You're right, it does. The only thing I noticed is that some of the messages are displayed before you're in-game.
(0001289)
Edward-san   
2011-04-04 13:36   
(edited on: 2011-04-04 13:42)
I can't check the different skulltag versions, but in the example wad, I noticed that the megasphere floats and stays firm in the platform, both offline and online. It doesn't happen in zdoom 1551 or in recent ones, neither in prboom.

(0001290)
Torr Samaho   
2011-04-05 00:58   
> I can't check the different skulltag versions, but in the example wad, I noticed that the megasphere floats and stays firm in the platform, both offline and online.

0000363
(0002225)
Edward-san   
2011-10-08 13:47   
Should this be closed or there's something yet to fix?
(0002393)
Torr Samaho   
2012-01-14 21:45   
(edited on: 2012-01-14 21:46)
I think it can be closed now. The bugs seem to be fixed, the remaining things are limitations of the combination of Voodoo dolls with in game joining.