Over the last several months I have gone from understand absolutely nothing about civ xml to now feeling fairly confident with basic xml stuff like creating units thanks to @topsecretHi Arizona15G, I can try to help you. But first I'd recommend in the future that if you have specific files that you want to modify (Sipahi etc), you should zip them with their xml (if you can find it) and post it. You'll be more likely to get help from other modders this way.
It sounds like you need to learn XML. If you're not using it already, I would recommend an xml program like Notepad++.
Please upload the Sipahi with its corresponding xml and then maybe topsecret or I can get back to you.![]()
This might be a Bounding Sphere issue. clanky4 details it here:is there an xml code that controls the range at which a units click radius is? I'm sorry I don't really know how to explain it but I have a couple of new units I created that when activated will not let me click onto other unis whether they are 1 tile away or 6 tiles away. Even If I fortify them or use up all their movement for the turn. If I click on a different unit it will go back to activating the new unit.
Wow never heard of this. Check out the thread that tantanmen posted.is there an xml code that controls the range at which a units click radius is? I'm sorry I don't really know how to explain it but I have a couple of new units I created that when activated will not let me click onto other unis whether they are 1 tile away or 6 tiles away. Even If I fortify them or use up all their movement for the turn. If I click on a different unit it will go back to activating the new unit.
I can't remember how the legendary units work, XML wise, but I think the key is in UnitClassInfos. I think you need to set it to only be buildable by ONE civ.Over the last several months I have gone from understand absolutely nothing about civ xml to now feeling fairly confident with basic xml stuff like creating units thanks to @topsecretI do already use Notepad++ again thanks to TopSecret.
I actually cannot find a Sipahi in the database. I've tried to search for one and skim through the civ4 unit downloads. Kinda surprising to me since it was a Civ3 UU. certainly possibly that I looked over it somewhere.
I have uploaded the WWII Yamato that I would like to turn into a legendary unit in my LoR updated game. I think I zipped all the necessary files. I apologized if I missed something![]()
<UnitClassInfo>
<Type>UNITCLASS_LEGEND_WHATEVER</Type>
<Description>TXT_KEY_UNIT_LEGEND_WHATEVER</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<iInstanceCostModifier>0</iInstanceCostModifier>
<DefaultUnit>UNIT_LEGEND_WHATEVER</DefaultUnit>
</UnitClassInfo>
<UnitClassInfo>
<Type>UNITCLASS_LEGEND_WHATEVER</Type>
<Description>TXT_KEY_UNIT_LEGEND_WHATEVER</Description>
<iMaxGlobalInstances>1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<iInstanceCostModifier>0</iInstanceCostModifier>
<DefaultUnit>UNIT_LEGEND_WHATEVER</DefaultUnit>
</UnitClassInfo>
I think you're totally on to something here. I tried to follow along with the thread you sent me but I got confused with the instructions. I've never messed with nifscope beforeThis might be a Bounding Sphere issue. clanky4 details it here:
Dacubz145's Unit Thread
Finished. Dido Class uses the destroyer animation, Illustrious Class uses the carrier animation, and U Class uses the basic submarine animation. These ships didn't really have many moving parts so they don't move all that much but they do work. I tested them in game for once ;)forums.civfanatics.com
You might also want to ask in the Quick Modding Questions Thread - there are a lot of experienced modders who pass through there on a daily basis.
Oh okay, so <iMaxGlobalInstances> determines how many units can be in a game. Whether it's 1, 5, or infinite? -1 = infinite?Yeah, make a new unit and class. But in the Unit Class files, change this:
Code:<UnitClassInfo> <Type>UNITCLASS_LEGEND_WHATEVER</Type> <Description>TXT_KEY_UNIT_LEGEND_WHATEVER</Description> <iMaxGlobalInstances>-1</iMaxGlobalInstances> <iMaxTeamInstances>-1</iMaxTeamInstances> <iMaxPlayerInstances>-1</iMaxPlayerInstances> <iInstanceCostModifier>0</iInstanceCostModifier> <DefaultUnit>UNIT_LEGEND_WHATEVER</DefaultUnit> </UnitClassInfo>
To this:
Code:<UnitClassInfo> <Type>UNITCLASS_LEGEND_WHATEVER</Type> <Description>TXT_KEY_UNIT_LEGEND_WHATEVER</Description> <iMaxGlobalInstances>1</iMaxGlobalInstances> <iMaxTeamInstances>-1</iMaxTeamInstances> <iMaxPlayerInstances>-1</iMaxPlayerInstances> <iInstanceCostModifier>0</iInstanceCostModifier> <DefaultUnit>UNIT_LEGEND_WHATEVER</DefaultUnit> </UnitClassInfo>
<iMaxGlobalInstances> needs to be 1
Yes, -1 is infinite in this case.Oh okay, so <iMaxGlobalInstances> determines how many units can be in a game. Whether it's 1, 5, or infinite? -1 = infinite?
What do those other tag lines mean?Yes, -1 is infinite in this case.
There's some. I'll probably do a video on it soon if I remember.@topsecret I'd be curious about a quick little video on adding new promotions to the game. I'm surprised there are not more promotions for download on here, or am I looking in the wrong places?