Anonymous | Login | Signup for a new account | 2025-06-18 09:06 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 | ||||
0003557 | Zandronum | [All Projects] Suggestion | public | 2018-10-20 18:35 | 2021-07-26 12:50 | ||||
Reporter | Michaelis | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | closed | Resolution | duplicate | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0003557: Letting modders change game mode without ConsoleCommand | ||||||||
Description | Part of phasing out the dangerous ConsoleCommand (https://zandronum.com/tracker/view.php?id=1070). It would be great to have SetGameMode(gamemode); to replace ConsoleCommand("deathmatch true");. Game mode might be specified either by enum or by name -- whichever is more convenient to implement. All built-in game modes and modifiers listed on'https://wiki.zandronum.com/Game_Modes [^]' should be supported. Primary use case is scripts that set up game mode, as a replacement for mod-provided aliases which are considered untrusted by 3.1 beta. | ||||||||
Attached Files | ![]() | ||||||||
![]() |
|||||||||||
|
![]() |
|
DrinkyBird (developer) 2018-11-03 00:04 |
So I've been working on this, this is my current state: 'https://bitbucket.org/csnxs/zandronum-stable2/branches/compare/csnxs/zandronum-stable2:sb-setgamemode%0DTorr_Samaho/zandronum-stable:default#diff [^]' and'https://bitbucket.org/csnxs/acc-zan/branches/compare/csnxs/acc-zan:sb-setgamemode%0DTorr_Samaho/acc:master [^]' Michaelis also asked for a parameter to reset the map, but I couldn't figure out how to implement that in a non-hacky way. |
Michaelis (reporter) 2018-11-05 13:19 edited on: 2018-11-05 13:19 |
I'm testing it with this map (gameset.wad:map01). Has 16 switches for 16 implemented game modes. Press once to apply SetGameMode(#), press twice to also apply ConsoleCommand("map map01"). Also has some game mode objects for game modes not to bug out. |
Michaelis (reporter) 2018-11-05 13:30 |
Offline, works fine. In netgame on localhost, server crashes when map executes ConsoleCommand("map map01");, but rconning `map map01` works fine. |
This issue is already marked as resolved. If you feel that is not the case, please reopen it and explain why. |
|
Supporters: | DrPyspy eagle dbthanatos Ivan Mr. Satan |
Opponents: | No one explicitly opposes this issue yet. |
![]() |
|||
Date Modified | Username | Field | Change |
2018-10-20 18:35 | Michaelis | New Issue | |
2018-10-21 12:21 | Leonard | Relationship added | child of 0001070 |
2018-11-03 00:04 | DrinkyBird | Note Added: 0020169 | |
2018-11-05 13:19 | Michaelis | File Added: gameset.wad | |
2018-11-05 13:19 | Michaelis | Note Added: 0020171 | |
2018-11-05 13:19 | Michaelis | Note Edited: 0020171 | View Revisions |
2018-11-05 13:30 | Michaelis | Note Added: 0020172 | |
2021-07-23 20:39 | Kaminsky | Relationship added | duplicate of 0003313 |
2021-07-26 12:50 | Kaminsky | Status | new => closed |
2021-07-26 12:50 | Kaminsky | Resolution | open => duplicate |
Copyright © 2000 - 2025 MantisBT Team |