Anonymous | Login | Signup for a new account | 2023-10-04 09:05 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0002158 | Zandronum | [All Projects] Bug | public | 2015-04-01 23:55 | 2023-08-25 12:11 | ||||||||
Reporter | AlexMax | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Platform | OS | OS Version | |||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0002158: GameType() returns incorrect values for some gametypes. | ||||||||||||
Description | So I just came across this issue when trying to make a mod that calculates experience differently between team games and non-team games. GameType() erroniously returns GAME_NET_DEATHMATCH in Team Deathmatch, Team Last Man Standing, and Team Possession. Domination, CTF, Skulltag and the generic "Team Game" work fine. | ||||||||||||
Additional Information | The gametype check in PCD_GAMETYPE is very basic and only checks teamgame for truth. | ||||||||||||
Attached Files | ![]() | ||||||||||||
![]() |
||||||
|
![]() |
|
Torr Samaho (administrator) 2015-04-02 06:12 |
Zandronum distinguishes between GMF_TEAMGAME and GMF_PLAYERSONTEAMS, ZDoom doesn't have anything like this. I could easily have the function map GMF_PLAYERSONTEAMS to GAME_NET_TEAMGAME. Is this what we want? |
arkore (reporter) 2017-08-13 17:22 |
I'm having a similar issue where GameType() is returning GAME_NET_COOPERATIVE during offline single-player. I'll add a test wad. Notice the CMPGNINF, DECORATE, and SCRIPT lumps. I'm using docs athttps://zdoom.org/wiki/GameType [^] and I am checking for GAME_SINGLE_PLAYER or GAME_TITLE_MAP as validation for my "IsSinglePlayerGame()" function. My mod needs to detect if it's in singleplayer mode or not, so this bug is a little game-breaking for me at the moment. And PlayerCounting= 1 stuff won't suffice. Zan v3.0-alpha (2.8pre-441-g458e1b1) 170709-2004 |
Dusk (developer) 2017-08-13 18:10 |
Quote I don't think so. IMO it's better to have a new function for that. |
Only registered users can voice their support. Click here to register, or here to log in. | |
Supporters: | No one explicitly supports this issue yet. |
Opponents: | No one explicitly opposes this issue yet. |
![]() |
|||
Date Modified | Username | Field | Change |
2015-04-01 23:55 | AlexMax | New Issue | |
2015-04-02 06:12 | Torr Samaho | Note Added: 0011979 | |
2017-08-13 17:22 | arkore | Note Added: 0018185 | |
2017-08-13 17:22 | arkore | File Added: invasion-gametype-acs.wad | |
2017-08-13 18:10 | Dusk | Note Added: 0018188 | |
2023-08-25 12:11 | WaTaKiD | Relationship added | related to 0004156 |
Copyright © 2000 - 2023 MantisBT Team |