What files and tags allow Great General to build Military Academy?

wotan321

Emperor
Joined
Oct 25, 2001
Messages
1,228
Location
NC, USA
I don't see where in the xml files it allows for the Great General to build the Military Academy. I would like to mod it to allow the Great General to build other buildings.

Any help is appreciated.
 
I don't see where in the xml files it allows for the Great General to build the Military Academy. I would like to mod it to allow the Great General to build other buildings.

Any help is appreciated.
It's probably in either Python and/or Gamecore.DLL. In fact, the more I think about it... just giving him a button to rush or build something would almost certainly be in the Gamecore.DLL, not in XML.

But I'd like to think the Great General could at least rush Heroic Epic, West Point and/or the Pentagon Wonders.
 
I don't see where in the xml files it allows for the Great General to build the Military Academy. I would like to mod it to allow the Great General to build other buildings.

Any help is appreciated.
Not sure if this is it but... try looking in the Civ4BuildingInfos.xml file inder the building you want him to build for the following:


<GreatPeopleUnitClass>NONE</GreatPeopleUnitClass>

and change it to:

<GreatPeopleUnitClass>UNITCLASS_GREAT_GENERAL</GreatPeopleUnitClass>

See if that works.
 
No Python/SDK needed here, its all in the XML.
The Ability to make a special building is in the Civ4UnitInfos.xml in the definition of that unit - i dont remember the tag of the top of my head, just scan the Great General definition there for MILITARY_ACADEMY, to get the exact syntax.

<GreatPeopleUnitClass> is what type of GPP the building will give you (Thats why it should say "NONE" for mil academy - it does not give GPP ;))
 
Refar, is that the same or not as the Great Engineer helping to build something... like if I wanted West Point to be buildable like it already is AND have the option for a Great General to finish it and/or donate points towards its construction (like a great engineer does), is that in XML?
 
<GreatPeopleUnitClass> is what type of GPP the building will give you (Thats why it should say "NONE" for mil academy - it does not give GPP ;))
Ah, wasn't sure. Figured it was worth a try. Thanks.
 
Refar, is that the same or not as the Great Engineer helping to build something... like if I wanted West Point to be buildable like it already is AND have the option for a Great General to finish it and/or donate points towards its construction (like a great engineer does), is that in XML?

It's the same as Great Scientists, Prophets os Spy's special Building stuff.

It's not the same as Great Engineers rushing ability (which will apply to any building). I am not sure where that one is, and cant look up till tomorrow.
 
That would be interesting to see... I'd like a two-fold approach... you could construct West Point and/or the Pentagon as normal, but a Great General could also build it for you. A Prophet or Great Scientist building is ONLY buildable by the GP, not by normal means.
 
That would be interesting to see... I'd like a two-fold approach... you could construct West Point and/or the Pentagon as normal, but a Great General could also build it for you. A Prophet or Great Scientist building is ONLY buildable by the GP, not by normal means.
As far as I know (I haven't tried it) those things can only be built by their respective great people simply because they can't be built normally. It's as easy putting a hammer cost on the buildings.
 
I looked into the files (but did not try it either), and it seems Dryhad is right.
Those special buildings have hammer cost set to -1 Giving them a positive hammer cost will make them buildable and rushable with a GE, or - indipendant from your building queue - to create them from the appropriate Great Person.
<iCost>-1</iCost>
 
I looked into the files (but did not try it either), and it seems Dryhad is right.
Those special buildings have hammer cost set to -1 Giving them a positive hammer cost will make them buildable and rushable with a GE, or - indipendant from your building queue - to create them from the appropriate Great Person.
<iCost>-1</iCost>
I guess this is something that should/could be tested in-game.
 
Okay, here is what I found.

In the "WW2 War in the Pacific" mod, under Civ4UnitInfos.xml there is a tag <Buildings> that give the option for rush making buildings....
 
Wotan is right,

The <Buildings> Tag in the UnitInfos.xml is where you would put the building you want the unit to instantly build (Academy for GS, Military Academy for GG, etc..)

Incidently there is a tag directly below the <Buildings> called <ForceBuildings> which I havent gotten around to test.

I forget the hierarchy of the <Buildings> tag off the top of my head, just do a search for the Academy and it should give you a template.
 
Wotan is right,

The <Buildings> Tag in the UnitInfos.xml is where you would put the building you want the unit to instantly build (Academy for GS, Military Academy for GG, etc..)

Incidently there is a tag directly below the <Buildings> called <ForceBuildings> which I havent gotten around to test.

I forget the hierarchy of the <Buildings> tag off the top of my head, just do a search for the Academy and it should give you a template.
Yes... my question now would be... can you put MULTIPLE buildings in there... like Military Academy, West Point and the Pentagon, or something like that?
 
Yes, obviously you can - see grat prophet.
 
You can put multiple buildings, the Pacific war mod lets the Great General build a Military Academy or a Naval Academy.
 
Back
Top Bottom