MantisBT - Zandronum
View Issue Details
0002021Zandronum[All Projects] Bugpublic2014-12-06 02:342017-08-15 10:56
StrikerMan780 
 
normalmajoralways
newopen 
1.3 
 
0002021: Clients are not made aware of Target pointer if bulletpuff has +PUFFGETSOWNER
It seems that bullet puffs that have +PUFFGETSOWNER, do not inform clients of the owner of the puff. This can cause some issues with some effects that rely on knowing this information, such as bullet tracers, or other effects.
zandronum -host -nomonsters -file decorate.txt
zandronum -file decorate.txt -connect localhost

Shoot a hitscan weapon, the fire should be spawning in your face, not at the impact site.
Quote

22:03 <TheEnigma> The bullet tracer code that I put together works wonderfully offline, but has a major fucking freakout online.
22:05 <TheEnigma> I'm guessing the pointers of bullet puffs are either not sent to clients at all
22:06 <TheEnigma> or, the pointers of an actor spawned by the server rather than clientside, aren't transferred to clientside spawned actors/effects later (which is a major problem).

✂ ✂ ✂ ✂ ✂

22:26 <Dusk> it needs to know the target pointer of the puff?
22:26 <TheEnigma> It needs to know the target, and the rearranged pointers to the tracer.
22:26 <Dusk> okay well the client doesn't know this
22:26 <Dusk> which is why this isn't working
No tags attached.
txt decorate.txt (780) 2014-12-06 03:45
/tracker/file_download.php?file_id=1341&type=bug
Issue History
2014-12-06 02:34StrikerMan780New Issue
2014-12-06 03:17DuskAssigned To => Dusk
2014-12-06 03:17DuskStatusnew => assigned
2014-12-06 03:27DuskSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6102#r6102
2014-12-06 03:27DuskAdditional Information Updatedbug_revision_view_page.php?rev_id=6104#r6104
2014-12-06 03:28DuskFile Added: decorate.txt
2014-12-06 03:40StrikerMan780Note Added: 0011039
2014-12-06 03:41DuskFile Deleted: decorate.txt
2014-12-06 03:41StrikerMan780Note Edited: 0011039bug_revision_view_page.php?bugnote_id=11039#r6108
2014-12-06 03:42StrikerMan780Note Edited: 0011039bug_revision_view_page.php?bugnote_id=11039#r6109
2014-12-06 03:43StrikerMan780Note Edited: 0011039bug_revision_view_page.php?bugnote_id=11039#r6110
2014-12-06 03:45DuskFile Added: decorate.txt
2014-12-06 03:46DuskNote Edited: 0011039bug_revision_view_page.php?bugnote_id=11039#r6111
2014-12-06 03:46DuskNote Edited: 0011039bug_revision_view_page.php?bugnote_id=11039#r6112
2014-12-06 16:27DuskNote Added: 0011040
2014-12-06 16:28DuskPrioritynormal => high
2014-12-06 16:28DuskProduct Version => 2.0-beta
2014-12-06 16:28DuskTarget Version => 2.0
2014-12-06 17:16DuskNote Edited: 0011040bug_revision_view_page.php?bugnote_id=11040#r6114
2014-12-06 17:16DuskAdditional Information Updatedbug_revision_view_page.php?rev_id=6115#r6115
2014-12-06 19:27DuskNote Edited: 0011040bug_revision_view_page.php?bugnote_id=11040#r6116
2015-01-04 17:30Torr SamahoNote Added: 0011276
2015-01-11 16:18DuskTarget Version2.0 =>
2015-01-14 12:19DuskNote Added: 0011373
2015-01-14 12:19DuskAssigned ToDusk =>
2015-01-14 12:19DuskStatusassigned => new
2015-01-14 12:20DuskPriorityhigh => normal
2015-01-14 12:20DuskProduct Version2.0-beta => 1.3
2015-01-17 21:28StrikerMan780Note Added: 0011410
2015-01-17 21:31DuskNote Deleted: 0011410
2017-08-15 06:19CatastropheNote Added: 0018192

Notes
(0011039)
StrikerMan780   
2014-12-06 03:40   
(edited on: 2014-12-06 03:46)
The test decorate.txt included is messed up, use this code instead:
Detached posted code into a new testcase decorate.txt --Dusk

(0011040)
Dusk   
2014-12-06 16:27   
(edited on: 2014-12-06 19:27)
We have a problem. Starting from 2.0 Zandronum starts getting ZDoom's pointer manipulation functionality. I don't think that the netcode is designed to handle this. We need to assess this issue or pointer manipulation functions will potentially be a massive trainwreck online!

Note: I'm not sure if we need to actually do anything regards to pointer manipulation, however I see a potential problem and we should discuss that in more detail. The problem in this ticket is that clients don't know what a puff has hit.

(0011276)
Torr Samaho   
2015-01-04 17:30   
Quote from Dusk

Starting from 2.0 Zandronum starts getting ZDoom's pointer manipulation functionality. I don't think that the netcode is designed to handle this.

I think that fact that this are pointers internally doesn't matter. Our netID can be used for the identification. What may be a problem is that we don't sync target, master or tracer in general.
(0011373)
Dusk   
2015-01-14 12:19   
As for the actual bullet puff scripting, this is something we need to discuss more about.
(0018192)
Catastrophe   
2017-08-15 06:19   
Was anything done about this?