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
0001341Zandronum[All Projects] Bugpublic2013-05-14 22:422015-09-05 18:01
ReporterIjon Tichy 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionout of scope 
PlatformOSOS Version
Product Version1.0 
Target VersionFixed in Version 
Summary0001341: OPEN scripts run *after* ENTER scripts in anything but coop
DescriptionOPEN scripts should run before ENTER scripts, and they do... but only in single player. In literally every other mode, ENTER runs first. This is inconsistent and very much undesired.
Steps To Reproduce1. Run opennotfirst.pk3.
2. "map map01"
3. Notice that "Enter has run" is what you see on the screen.
3a. Check the console to see "Open has run" is before "Enter has run".
4. "deathmatch 1; map map01"
5. "Open has run" is what you see on the screen.
5a. "Enter has run" is now before "Open has run" on the console.
Additional InformationThis has screwed Samsara up heavily. It has a new mode, called Punchdrunk, where all weapons are removed save melee weapons. It relies on the OPEN script running first to set a map variable called IsPunchdrunk, which a bunch of other scripts then check; as it stands, in all non-coop modes (including Survival), for the first tic of a map, Punchdrunk is effectively disabled. This is not a good thing.
Attached Files? file icon opennotfirst.pk3 [^] (563 bytes) 2013-05-14 22:42
? file icon opennotfirst-timer.pk3 [^] (592 bytes) 2013-05-14 23:22

- Relationships

-  Notes
User avatar (0006329)
Ijon Tichy (reporter)
2013-05-14 22:54

Update: It seems OPEN runs first in deathmatch online, but *not* in LMS online.
User avatar (0006330)
Ijon Tichy (reporter)
2013-05-14 23:08

18:06 <+Hypnotoad> okay this is what i can ascertain ijon
18:06 <+Hypnotoad> on map change/start, open runs first, but on round start
18:06 <+Hypnotoad> enter runs first
18:07 <+Hypnotoad> you can confirm this by exiting a map
18:07 <+Hypnotoad> on survival
User avatar (0006331)
Ijon Tichy (reporter)
2013-05-14 23:22

screenshots of the console:

'http://i.imgur.com/hxQ3ArE.png [^]' - deathmatch
'http://i.imgur.com/LB7MBtY.png [^]' - LMS
'http://i.imgur.com/DVlYOTM.png [^]' - deathmatch, Timer() added
User avatar (0007610)
Hypnotoad (reporter)
2013-11-26 18:27

Any update on this? This is causing problems for me currently.
User avatar (0007630)
Dusk (developer)
2013-11-28 13:02

Is it specifically defined behavior that OPEN scripts are to run before ENTER ones? It sounds like we're hitting a case of "Don't do that!" for me.
User avatar (0007650)
Torr Samaho (administrator)
2013-12-01 11:20
edited on: 2013-12-01 11:28

Actually I'd assume that open OPEN scripts are meant to be executed before ENTER ones. It sounds very natural to me that you have to open a map, before anyone can enter it. If the behavior in deathmatch and LMS differs online, that sounds like a bug in the map reset system to me. I'll have a look.

EDIT: Yeah, it seems to a bug in the map reset logic.

User avatar (0007651)
Torr Samaho (administrator)
2013-12-01 11:43

This should fix the issue. I'm not sure if the fix (which only affects map resets) has any undesired side effects though. Needs to be tested thoroughly.
User avatar (0007720)
Ijon Tichy (reporter)
2013-12-23 03:37

Now ENTER scripts consistently run before OPEN scripts in competitive game modes. I'm not entirely sure if that constitutes a fix, since now competitive and cooperative game modes are inconsistent in how they run OPEN and ENTER scripts.

Is joining players handled differently in competitive game modes?
User avatar (0007723)
Torr Samaho (administrator)
2013-12-23 09:35

FYI, my fix only affects the behavior of map resets.

I had a quick look at GZDoom 880 and it seems to be doing the same as Zandronum in Deathmatch. Can you check the latest GZDoom version?
User avatar (0007724)
Ijon Tichy (reporter)
2013-12-23 22:21

Apparently, ENTER before OPEN is how it's done in GZDoom as well. That's... kind of weird.
User avatar (0007725)
Torr Samaho (administrator)
2013-12-24 09:04

I'd say that GZDoom doesn't intentionally do this, just that it's an oversight nobody ever noticed. Can you ask over there to confirm this?
User avatar (0007726)
Ijon Tichy (reporter)
2013-12-25 05:16

It's undefined in ZDoom, apparently. I'd recommend changing that by making OPEN scripts always run before ENTER scripts.
User avatar (0007727)
Dusk (developer)
2013-12-25 17:48

'http://forum.zdoom.org/viewtopic.php?p=736112#p736112 [^]'

So I was right. Don't do that! Going to close this unless we want to specifically change the zdoom behavior here.
User avatar (0007743)
Torr Samaho (administrator)
2013-12-27 15:57

I'd definitely like to know why ZDoom keeps the behavior undefined and what's making the actual script order depend on the game mode before deciding what to do here.
User avatar (0007746)
Ijon Tichy (reporter)
2013-12-27 22:47

For that, I'd seriously recommend getting direct contact with Randy or Graf, since I might be a bit biased as proxies go and they'd have a better rationale for it, if one exists at all.

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: Combinebobnt Hypnotoad RusselCS Catastrophe WaTaKiD
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2013-05-14 22:42 Ijon Tichy New Issue
2013-05-14 22:42 Ijon Tichy File Added: opennotfirst.pk3
2013-05-14 22:54 Ijon Tichy Note Added: 0006329
2013-05-14 23:08 Ijon Tichy Note Added: 0006330
2013-05-14 23:22 Ijon Tichy Note Added: 0006331
2013-05-14 23:22 Ijon Tichy File Added: opennotfirst-timer.pk3
2013-11-26 18:27 Hypnotoad Note Added: 0007610
2013-11-28 13:02 Dusk Note Added: 0007630
2013-12-01 11:20 Torr Samaho Note Added: 0007650
2013-12-01 11:20 Torr Samaho Assigned To => Torr Samaho
2013-12-01 11:20 Torr Samaho Status new => assigned
2013-12-01 11:28 Torr Samaho Note Edited: 0007650 View Revisions
2013-12-01 11:43 Torr Samaho Note Added: 0007651
2013-12-04 20:31 Torr Samaho Status assigned => needs testing
2013-12-23 03:37 Ijon Tichy Note Added: 0007720
2013-12-23 09:35 Torr Samaho Note Added: 0007723
2013-12-23 22:21 Ijon Tichy Note Added: 0007724
2013-12-24 09:04 Torr Samaho Note Added: 0007725
2013-12-25 05:16 Ijon Tichy Note Added: 0007726
2013-12-25 17:48 Dusk Note Added: 0007727
2013-12-27 15:57 Torr Samaho Note Added: 0007743
2013-12-27 15:58 Torr Samaho Status needs testing => needs review
2013-12-27 15:58 Torr Samaho Status needs review => feedback
2013-12-27 22:47 Ijon Tichy Note Added: 0007746
2013-12-27 22:47 Ijon Tichy Status feedback => assigned
2015-09-05 18:01 Dusk Status assigned => closed
2015-09-05 18:01 Dusk Assigned To Torr Samaho =>
2015-09-05 18:01 Dusk Resolution open => out of scope






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker