Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000267Zandronum[All Projects] Bugpublic2011-01-24 03:362018-09-30 20:11
ReporterMister Nobody 
Assigned ToTorr Samaho 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version98d 
Target VersionFixed in Version1.0 
Summary0000267: FadeTo doesn't reset on spectate.
DescriptionIf you use FadeTo, and then spectate, the screen will remain the faded color.
Steps To ReproduceWith the attatched wad file, enter a map, puke script 27, and then spectate. The screen will remain tinted blue.
Attached Files? file icon fadeto.wad [^] (260 bytes) 2011-01-24 03:36
? file icon fadeto_test.wad [^] (1,801 bytes) 2011-01-24 04:39

- Relationships

-  Notes
User avatar (0000860)
Torr Samaho (administrator)
2011-01-24 03:47

This should fix the issue, I tested the fix only very briefly though.
User avatar (0000861)
unknownna (updater)
2011-01-24 04:39

If you turn into a spectator before the fade fully fades in, the effect will not be cleared from the viewpoint. I made a new example WAD.
User avatar (0000864)
Torr Samaho (administrator)
2011-01-24 12:14

Ah, I see. This should also cover these issues.
User avatar (0000867)
unknownna (updater)
2011-01-24 22:18
edited on: 2011-01-24 22:19

It fixed the issue, but are spectators supposed to be affected by the fade if they activate/puke the script?

And if a spectator activates the script before a player in-game does, the next time the script is activated by a player, the spectator will be affected by the fade, but the player will not. Perhaps this is due to the "suspend" function in the script.

Here is the script from the example WAD:

Script 1 (Void)
{
    Print (s:"\clRed");
    FadeTo (255, 0, 0, 0.20, 1.0);
    Suspend;
    Print (s:"\cdGreen");
    FadeTo (0, 255, 0, 0.20, 1.0);
    Suspend;
    Print (s:"\chBlue");
    FadeTo (0, 0, 255, 0.20, 1.0);
    Suspend;
    Print (s:"Normal");
    FadeTo (0, 0, 0, 0, 1.0);
}

User avatar (0000868)
Torr Samaho (administrator)
2011-01-25 00:45

> It fixed the issue, but are spectators supposed to be affected by the fade if they activate/puke the script?

Well, AFAIK spectators can't activate scripts at all since they are not part of the game. The only exemption is the puke cheat. I don't think that there is anything I can do about this except for disallowing spectators from using the puke cheat.

> And if a spectator activates the script before a player in-game does, the next time the script is activated by a player, the spectator will be affected by the fade, but the player will not. Perhaps this is due to the "suspend" function in the script.

Yes, I'd say because the script is just suspended, the original activator is kept once the script resumes. So from what I can tell what's happening is the intended behavior.
User avatar (0000871)
unknownna (updater)
2011-01-25 02:06
edited on: 2011-01-25 02:08

> Well, AFAIK spectators can't activate scripts at all since they are not part of the game. The only exemption is the puke cheat. I don't think that there is anything I can do about this except for disallowing spectators from using the puke cheat.

Would it then be possible to have all cheats, minus the "chase" one, be disabled for spectators? Perhaps with a warning message along the lines of: "You cannot/can't use this cheat as a spectator!".

'http://www.skulltag.com/forum/viewtopic.php?f=33&t=22538 [^]'

> Yes, I'd say because the script is just suspended, the original activator is kept once the script resumes. So from what I can tell what's happening is the intended behavior.

Indeed, you are right.

User avatar (0000875)
Torr Samaho (administrator)
2011-01-26 02:44

> Would it then be possible to have all cheats, minus the "chase" one, be disabled for spectators? Perhaps with a warning message along the lines of: "You cannot/can't use this cheat as a spectator!".

That's certainly possible, but let's continue this discussing in the thread you linked.

Since the FadeTo bug is fixed now, I'm marking this report as resolved.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2011-01-24 03:36 Mister Nobody New Issue
2011-01-24 03:36 Mister Nobody File Added: fadeto.wad
2011-01-24 03:47 Torr Samaho Note Added: 0000860
2011-01-24 03:47 Torr Samaho Assigned To => Torr Samaho
2011-01-24 03:47 Torr Samaho Status new => feedback
2011-01-24 04:39 unknownna Note Added: 0000861
2011-01-24 04:39 unknownna File Added: fadeto_test.wad
2011-01-24 12:14 Torr Samaho Note Added: 0000864
2011-01-24 22:18 unknownna Note Added: 0000867
2011-01-24 22:19 unknownna Note Edited: 0000867 View Revisions
2011-01-25 00:45 Torr Samaho Note Added: 0000868
2011-01-25 02:06 unknownna Note Added: 0000871
2011-01-25 02:08 unknownna Note Edited: 0000871 View Revisions
2011-01-26 02:44 Torr Samaho Note Added: 0000875
2011-01-26 02:44 Torr Samaho Status feedback => resolved
2011-01-26 02:44 Torr Samaho Fixed in Version => 1.0
2011-01-26 02:44 Torr Samaho Resolution open => fixed
2011-01-26 02:45 Torr Samaho Product Version => 98d
2012-06-09 13:22 Torr Samaho Category General => Bug
2018-09-30 20:11 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker