Prerequisite.Theater

Bug #895102 reported by Nighthawk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ares
Fix Released
Wishlist
DCoder DCoder

Bug Description

After seeing the various prerequisite requests, this one popped into my head. Basically, like I suggested for the original RockPatch - you can only build this object when playing on a map of the defined theater (or perhaps multiple theaters if more than one can be put in the list).

Example:
[UNIT]
Prerequisite=GAWEAP
Prerequisite.Theater=TEMPERATE

[LUNIT]
Prerequisite=GAWEAP
Prerequisite.Theater=LUNAR

[DUNIT]
Prerequisite=GAWEAP
Prerequisite.Theater=DESERT

[UUNIT]
Prerequisite=GAWEAP
Prerequisite.Theater=URBAN,NEWURBAN

And so on. I'm not entirely sure what way this would work if new theaters were implemented though.

Tags: theaters
Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Implemented using Prerequisite.RequiredTheaters=a,b,c,d . Defaulting to all theaters of course.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

A silly problem creeped into the code, any unit with this defined is _never_ available to be built. Fixed now, will be included in the next release instead.

Revision history for this message
modder666 (modder666) wrote :

Would like to add that this seems to be broken. Prerequisite.Theater=TEMPERATE yielded no results to modifying the Prerequisites.

Revision history for this message
Renegade (renegade) wrote :

Reopening as per comment above.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

Uhhh... Read first comment?

Please try again with the right flag and report back.

Revision history for this message
Nighthawk (nighthawk) wrote :

Did some testing. Works apart from a couple of things:
- Prerequisite.RequiredTheaters=URBAN seems to have no effect - the object is still buildable regardless of theater.
- Prerequisite.RequiredTheaters=NEWURBAN seems to have the inverse effect - the object never seems to be buildable, even on two maps I tested it on that I believe were in the NEWURBAN theater.

Revision history for this message
DCoder DCoder (dcoder1337) wrote :

I cannot reproduce this now - all theater names appear to be mapped and tested correctly. Got a sample of rules I could look at?

Revision history for this message
Nighthawk (nighthawk) wrote :

It was a clean rules file with Prerequisite.RequiredTheaters=URBAN added to [GAAIRC] and then later Prerequisite.RequiredTheaters=NEWURBAN added to [GAPOWR]. I'll try it again with another one incase I screwed up something though.

Revision history for this message
Nighthawk (nighthawk) wrote :

Okay, I can confirm it works now. I must have made a typo in the first rules file or something. Oh well. Sorry for the mixup.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.