Modding Pioneers and Lookouts

In an attempt to test a solution to pioneer spamming, I have tried to mod the pioneer unit so that it costs more production and population, but does not create outposts.  I also created a copy of the original pioneer unit and renamed it a "Lookout", removing the city creation ability, but keeping the outpost ability.  I changed the internal name and description, but the Lookout unit is not showing up in the unit training list.  The pioneer is there with its new cost and it cannot create an outpost as I wanted.  I tried changing the class of the Lookout as well, but that didn't work either and I suspect the AI uses the class to know what unit to create when it wants to found a city.

Any clues as to why the new unit doesn't show up?

4,384 views 4 replies
Reply #1 Top

If a unit has

<IsStartingUnitType>1</IsStartingUnitType>

it must be included in the racetype such as found in CoreRaceTypes.xml

 

Another solution:

Delete the line <IsStartingUnitType>1</IsStartingUnitType> and it should appear for all races. You can then limit it to particular races using

      <Prereq>
        <Type>Race</Type>
        <Attribute>Race_Type_Altarians</Attribute>
      </Prereq>

or whatever is the race for your particular faction

 


 

Just a warning, the AI will likely fail to use what you are attempting to do.

Reply #2 Top


Fantastic plan!

Let us know how it goes...

 

Reply #3 Top

You cant make it so that Pioneers do not build outposts. It might work for the player but the AI will still build outposts with pioneers. I already tried to do this. You can stop a faction from being able to build pioneers but then they wont be able to build cities or outposts at all. Even if you design new units that can, I do not think they will use them to do it.

Reply #4 Top

Quoting BlackRainZ, reply 3
You cant make it so that Pioneers do not build outposts. It might work for the player but the AI will still build outposts with pioneers. I already tried to do this. You can stop a faction from being able to build pioneers but then they wont be able to build cities or outposts at all. Even if you design new units that can, I do not think they will use them to do it.

So if you gave a scout the ability to build outposts the AI will not use them to do it?