Opened 7 years ago

Last modified 4 years ago

#4379 new enhancement

Arbitrary starting resources in the gamesetup

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: UI – Game setup Keywords:
Cc: Patch:

Description (last modified by elexis)

The current starting resources setting in the gamesetup is a multiple choice decision. Depending on which value is selected (low, medium, high, very high, deathmatch...), the same amount is given for each resource.

It were great if the players could specify custom starting resources, for example 500 food, 2000 wood, 300 metal, 300 stone, to be able to shape the playability, pace and required strategy of the game wisely in advance.

There should be one setting (either dropdown or text input) per resource. It should likely use the format Food: 500 <food_icon>.

So as not to rewrite the feature, #4381 should be done before probably.

Change History (4)

comment:1 by elexis, 7 years ago

Description: modified (diff)

comment:2 by Imarok, 5 years ago

Component: UI & SimulationGame setup

Move tickets to Game Setup as UI & Simulation got some sub components.

comment:3 by elexis, 4 years ago

Description: modified (diff)

refs #812

comment:4 by elexis, 4 years ago

In 23413:

Gamesetup subpages support.

Split SetupWindow from GameSetupPage class.
Create Gamesetup/Pages subfolder, starting with the existing GameSetupPage and LoadingPage.
Run the subpage in the same GUI script context instead of separate pages.
Planned subpages are AIConfigPage (refs D2577), MapBrowser (D1703), hero selection dialog, civ selection (refs #3987), starting resources, population capacity (refs #4379, #812...).

This allows:

  • subpages to benefit from direct access and reuse of the gamesetup controlers, (f.e. gameSettingsControl, playerAssignmentsControl, mapCache, netMessages, ...), deduplication.
  • subpages to handle events and control gamesettings even if the according subpage is closed (for example deleting AIBehavior if there is no AI assigned).
  • to keep gamesettings decoupled, i.e. exactly one class per setting (for this example avoiding that both GameSetupPage/AIConfigButton and AIConfigPage/AIBehavior control the AIBehavior setting value.).

Differential Revision: https://code.wildfiregames.com/D2581
Comments By: Vladislav (http://irclogs.wildfiregames.com/2020-01/2020-01-18-QuakeNet-%230ad-dev.log), nani (PM)

Note: See TracTickets for help on using tickets.