Star Trek Fan Games
http://bote2.square7.ch/forum/

Minor Races Structures
http://bote2.square7.ch/forum/viewtopic.php?f=32&t=3262
Page 1 of 1

Author:  starfleet.command [ 10 Sep 2009, 12:56 ]
Post subject:  Minor Races Structures

I took as example the Hardened Bunkers for a curious detail. If we look the Obsoleted Items and Upgrade Options sections below, the Hardened Bunkers make the Basic Shelters obsolete and upgrade the Heavy Bunkers:

<Building Key="MINOR_HARDENED_BUNKERS">
<TechRequirements>
<BioTech>4</BioTech>
<Energy>5</Energy>
<Computers>4</Computers>
<Construction>5</Construction>
</TechRequirements>
<BuildCost>3260</BuildCost>
<IsUniversallyAvailable>false</IsUniversallyAvailable>
<Prerequisites>
<EquivalentPrerequisites>
<Prerequisite>MINOR_BASIC_SHELTERS</Prerequisite>
</EquivalentPrerequisites>
</Prerequisites>
<ObsoletedItems>
<ObsoletedItem>MINOR_BASIC_SHELTERS</ObsoletedItem>
</ObsoletedItems>
<UpgradeOptions>
<UpgradeOption>MINOR_HEAVY_BUNKERS</UpgradeOption>
</UpgradeOptions>
<EnergyCost>25</EnergyCost>
<Restrictions>
<Restriction>OnePerSystem</Restriction>
<Restriction>HomeSystem</Restriction>
</Restrictions>
<Bonuses>
<Bonus Type="PercentGroundDefense" Amount="20" />
</Bonuses>
</Building>

In the picture below, the Obsoleted Items and Upgrade Options sections don't appears. It is a bug? (it's the same thing for the other (only) races minor structures such Combat Grid, Heavy Bunkers etc...)

Image

Author:  Matress_of_evil [ 10 Sep 2009, 20:02 ]
Post subject:  Re: Minor Races Structures

That's odd. I can't see anything wrong in the code above the image that could cause this to happen. I guess Mike will have to look into the cause.

Odd... :confused:

Author:  mstrobel [ 10 Sep 2009, 21:11 ]
Post subject:  Re: Minor Races Structures

Matress_of_evil wrote:
That's odd. I can't see anything wrong in the code above the image that could cause this to happen. I guess Mike will have to look into the cause.

Odd... :confused:

My first guess would be that the upgrade option/obsoleted item aren't in the player empire's tech tree. If they aren't in the player empire's tech tree, they won't show up (unless IsUniversallyAvailable=true). That's why, for example, you don't see the medium Cardassian shipyard as an upgrade option for the small Federation shipyard when playing as the Federation, but you would see it as an upgrade option on a conquered Federation planet when playing as the Cardassians.

Author:  Matress_of_evil [ 10 Sep 2009, 22:02 ]
Post subject:  Re: Minor Races Structures

This structure is a minor race buildable structure, and both it's upgrades and prerequisites are minor race structures too. None of these structures are included in the Empire build lists though. So that must be what has happened. These structures were intended to be for minor race defence against attack, and I didn't think that the build list could be affected when said minor race joined another empire.

If I add these structures to the build lists of the empires though, that would mean the Empires would be able to build them in their own systems. Do you know of any way around this problem, Mike?

*Edit - I just discussed this with starfleet.command. The NonNativeSystem restriction might be able to do what we need. He's going to test it.

Author:  mstrobel [ 11 Sep 2009, 03:15 ]
Post subject:  Re: Minor Races Structures

If it's a minor race structure, then it won't show up because of a bug. I'm working on it this week. Don't add them to the empire's tech tree.

Author:  Matress_of_evil [ 11 Sep 2009, 10:35 ]
Post subject:  Re: Minor Races Structures

I haven't really touched the files since the editor stopped working, Mike. That's why i've been compiling a list of fixes that need to be done instead, ready for when the editor works again. I'll leave this out until you say the game is ready.

Author:  starfleet.command [ 11 Sep 2009, 12:11 ]
Post subject:  Re: Minor Races Structures

Mike & Matress, in my demo, for the minor races structures who's got the prefix MINOR_ and the minor shipyards, i put them in:
<IsUniversallyAvailable>true</IsUniversallyAvailable>
and replace:
<Restriction>HomeSystem</Restriction>
by
<Restriction>NonNativeSystem</Restriction>

They appears now on the minor race system & in the encyclopedy.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/