#4838 closed defect (fixed)
Map-specific gamesetup settings
Reported by: | elexis | Owned by: | elexis |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 24 |
Component: | UI – Game setup | Keywords: | |
Cc: | Patch: |
Description (last modified by )
It would be really awesome if maps could specify custom gamesetup options.
Use cases:
- Scripted enemy strength on Survival Of The Fittest and Danubius
- Water level rising speed for Extinct Volcano
- Which of the 10+ map variations of the Unknown map
- Which of the two Fert map variants to generate (Phab:D1634)
- Player placement options #4110
- Which character we want to represent in a specific scenario
- ...
As of Phab:D322 (gamesetup option unification), a new gamesetup option only requires a small hunk to add a new option.
The JSON file of the map could specify the short mapname_gamesetup.js
file to be loaded (just like it can specify a trigger script file)
refs #3049
Change History (13)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
Priority: | Nice to Have → Should Have |
---|
comment:3 by , 6 years ago
Description: | modified (diff) |
---|
comment:5 by , 5 years ago
Owner: | set to |
---|
JSON isn't sufficient because we also need JS logic. Seems like I didn't mention that I'm sitting on a patch for this.
comment:6 by , 5 years ago
Component: | UI & Simulation → Game setup |
---|
Move tickets to Game Setup
as UI & Simulation
got some sub components.
comment:7 by , 4 years ago
There is also the analogous improvement for the session, i.e. map-specific session code, refs #5387.
The incentive to use that would be having a triggerscript that uses GUIInterface PushNotification with a custom event type and event data, and the map provides GUI session code processing that map event.
comment:9 by , 4 years ago
Description: | modified (diff) |
---|
comment:12 by , 4 years ago
Milestone: | Backlog → Alpha 24 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
The infrastructure, the example settings described in the ticket are there (Phab:D2607 another, except for Danubius difficulty, but that doesn't really need the ticket to be implemented, nor isn't a must-have).
Yes, yes, yes! Please, please, please ;)
It could be realized by adding a new tag to the map.json file (e.g. CustomOptions) that holds an associative array(key/value pairs] with the keys being the strings of the setting seen in gamesetup and the value can be and translates to GUI object:
And there could be more ofc.