MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001267 | Zandronum | [All Projects] Bug | public | 2013-01-29 11:52 | 2018-09-30 20:29 |
|
Reporter | StrikerMan780 | |
Assigned To | Dusk | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 1.0 | |
Target Version | 1.1 | Fixed in Version | 1.1 | |
|
Summary | 0001267: All LIGHTNING scripts are treated CLIENTSIDE |
Description | Continuing from 0000283: it appears all LIGHTNING scripts are sent to the client to execute no matter if they're CLIENTSIDE or not. |
Steps To Reproduce | - Host a server with example wad and connect a client to it.
- Hit the switch - this calls Light_ForceLightning to trigger lightning.
- Two log messages are printed out, "CLIENTSIDE LIGHTNING" - this is produced by a LIGHTNING CLIENTSIDE script, and "SERVERSIDE LIGHTNING", this is produced by a normal LIGHTNING script.
The serverside message should be printed into the server log, not onto the client. This shows that the client is executing all LIGHTNING scripts. |
Additional Information | |
Tags | No tags attached. |
Relationships | child of | 0000283 | closed | Torr Samaho | Lightning strikes cause massive traffic spikes |
|
Attached Files | LightningScriptTest.wad.zip (1,359) 2013-01-29 11:52 /tracker/file_download.php?file_id=928&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2013-01-29 11:52 | Dusk | New Issue | |
2013-01-29 11:52 | Dusk | File Added: LightningScriptTest.wad.zip | |
2013-01-29 11:52 | Dusk | Relationship added | child of 0000283 |
2013-01-29 11:52 | Dusk | Reporter | Dusk => StrikerMan780 |
2013-01-29 12:07 | Dusk | Assigned To | => Dusk |
2013-01-29 12:07 | Dusk | Status | new => assigned |
2013-01-29 13:08 | Dusk | Note Added: 0005860 | |
2013-01-29 13:08 | Dusk | Status | assigned => needs review |
2013-01-29 13:08 | Dusk | Note Edited: 0005860 | bug_revision_view_page.php?bugnote_id=5860#r3202 |
2013-02-02 08:45 | Torr Samaho | Note Added: 0005911 | |
2013-02-02 08:45 | Torr Samaho | Status | needs review => feedback |
2013-02-02 10:48 | Dusk | Note Added: 0005914 | |
2013-02-10 11:04 | Torr Samaho | Note Added: 0005979 | |
2013-02-10 14:31 | Dusk | Note Added: 0005981 | |
2013-02-10 14:31 | Dusk | Status | feedback => needs review |
2013-02-10 19:33 | Torr Samaho | Note Added: 0005983 | |
2013-02-16 23:03 | Dusk | Note Added: 0006031 | |
2013-02-17 08:56 | Torr Samaho | Note Added: 0006039 | |
2013-02-17 08:58 | Torr Samaho | Status | needs review => needs testing |
2013-02-17 08:58 | Torr Samaho | Product Version | 1.1 => 1.0 |
2013-02-17 08:58 | Torr Samaho | Target Version | => 1.1 |
2013-02-21 02:57 | StrikerMan780 | Note Added: 0006057 | |
2013-02-23 08:09 | Torr Samaho | Note Added: 0006061 | |
2013-02-24 08:59 | StrikerMan780 | Note Added: 0006069 | |
2013-02-24 12:52 | Dusk | Status | needs testing => resolved |
2013-02-24 12:52 | Dusk | Resolution | open => fixed |
2013-02-24 12:52 | Dusk | Status | resolved => feedback |
2013-02-24 12:52 | Dusk | Resolution | fixed => reopened |
2013-02-24 12:52 | Dusk | Status | feedback => resolved |
2013-02-24 12:52 | Dusk | Fixed in Version | => 1.1 |
2013-02-24 12:52 | Dusk | Resolution | reopened => fixed |
2018-09-30 20:29 | Blzut3 | Status | resolved => closed |
Notes |
|
(0005860)
|
Dusk
|
2013-01-29 13:08
|
|
|
|
|
Can you elaborate your changes in DLightningThinker::Tick? If the server is supposed to handle the synchronization, how can it avoid calling parts of the code like
LightningFlashCount = (pr_lightning()&7)+8;
flashLight = 200+(pr_lightning()&31);
Or are the flashes still supposed to be not fully synchronized (they weren't synchronized before either)? |
|
|
(0005914)
|
Dusk
|
2013-02-02 10:48
|
|
That stuff is determines lightning duration and strength, it has nothing to do with the logic to decide when a lightning strikes.
The first call to ::Tick sets those variables you quoted and performs initial flash, sky mask, sounds, etc. After, it is called repeadetly as long as LightningFlashCount is > 0 and said counter is decreased each time - this is for the fade-out effect. The clients can decide how long and strong each lightning flash is so the server jumps past it. |
|
|
|
I see, intentionally not syncing the length and strength between client and server is fine with me.
I think you can simplify the code slightly by removing the StaticStartTypedScripts from the server block and moving the nextflash above the StaticStartTypedScripts calls. |
|
|
(0005981)
|
Dusk
|
2013-02-10 14:31
|
|
|
|
|
Yes, looks good to me now. Thanks!
I didn't test this at all though, so I'll assume you tested it sufficiently. |
|
|
(0006031)
|
Dusk
|
2013-02-16 23:03
|
|
|
|
|
|
|
|
I can test this if another build is made. |
|
|
|
This should contain Dusk's fix. |
|
|
|
Confirmed to work. Thanks. |
|