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

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002158Zandronum[All Projects] Bugpublic2015-04-01 23:552023-08-25 12:11
ReporterAlexMax 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002158: GameType() returns incorrect values for some gametypes.
DescriptionSo 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 InformationThe gametype check in PCD_GAMETYPE is very basic and only checks teamgame for truth.
Attached Files? file icon invasion-gametype-acs.wad [^] (3,459 bytes) 2017-08-13 17:22

- Relationships
related to 0004156new Make GameType() calls in Coop (multiplayer emulation) return GAME_NET_COOPERATIVE instead of returning GAME_SINGLE_PLAYER. 

-  Notes
User avatar (0011979)
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?
User avatar (0018185)
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 at'https://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
User avatar (0018188)
Dusk (developer)
2017-08-13 18:10

Quote
I could easily have the function map GMF_PLAYERSONTEAMS to GAME_NET_TEAMGAME. Is this what we want?

I don't think so. IMO it's better to have a new function for that.

Issue Community Support
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.

- Issue History
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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker