phungus420
Deity
- Joined
- Mar 1, 2003
- Messages
- 6,296
Yeah, added new unit combat types, a few actually, considering the main focus of the Wolfshanze mod, one of the core mods I'm using (merged with RevDCM) has steamship navies.
Do you really want to see the python exception?
I also need to go in and see about the added trait not displaying I asked about before, it confuses me that it's not listed, this is what I've added to Trait Util btw, you said you wanted to see it:
The other thing I need to do is add in a new list, "Legends" Units that can only be built once, defined in UnitClassInfos.xml, using the maxGlobalInstance tag. I'd like them to be listed in a different list, like how wonders are in their own category in the sevopedia, I'd like the same to occur with legends. Any idea on where to start with this?
Do you really want to see the python exception?
Cool I'll try that.You can rip out Unit Naming by removing the <load "Unit Naming"/> line from init.xml.
I also need to go in and see about the added trait not displaying I asked about before, it confuses me that it's not listed, this is what I've added to Trait Util btw, you said you wanted to see it:
Code:
def init():
"Performs one-time initialization after the game starts up."
game = gc.getGame()
global GENERIC_ICON
GENERIC_ICON = u"%c" % game.getSymbolID(FontSymbols.MAP_CHAR)
addTrait("AGGRESSIVE", game.getSymbolID(FontSymbols.STRENGTH_CHAR), "Art/Interface/Buttons/Promotions/Combat1.dds")
addTrait("CHARISMATIC", game.getSymbolID(FontSymbols.HAPPY_CHAR), "Art/Interface/Buttons/TechTree/MassMedia.dds")
addTrait("CREATIVE", gc.getCommerceInfo(CommerceTypes.COMMERCE_CULTURE).getChar(), "Art/Interface/Buttons/TechTree/Music.dds")
[B]addTrait("ENLIGHTENED", gc.getCommerceInfo(CommerceTypes.COMMERCE_RESEARCH).getChar(), "Art/Interface/Buttons/TechTree/Liberalisms.dds")[/B]
addTrait("EXPANSIVE", game.getSymbolID(FontSymbols.HEALTHY_CHAR), "Art/Interface/Buttons/Actions/Heal.dds")
addTrait("FINANCIAL", gc.getCommerceInfo(CommerceTypes.COMMERCE_GOLD).getChar(), "Art/Interface/Buttons/TechTree/Banking.dds")
addTrait("IMPERIALIST", game.getSymbolID(FontSymbols.OCCUPATION_CHAR), "Art/Interface/Buttons/Actions/FoundCity.dds")
addTrait("INDUSTRIOUS", gc.getYieldInfo(YieldTypes.YIELD_PRODUCTION).getChar(), "Art/Interface/Buttons/TechTree/Industrialism.dds")
addTrait("ORGANIZED", game.getSymbolID(FontSymbols.TRADE_CHAR), "Art/Interface/Buttons/Buildings/Courthouse.dds")
addTrait("PHILOSOPHICAL", game.getSymbolID(FontSymbols.GREAT_PEOPLE_CHAR), "Art/Interface/Buttons/TechTree/Philosophy.dds")
addTrait("PROTECTIVE", game.getSymbolID(FontSymbols.DEFENSE_CHAR), "Art/Interface/Buttons/Promotions/CityGarrison1.dds")
addTrait("SPIRITUAL", game.getSymbolID(FontSymbols.RELIGION_CHAR), "Art/Interface/Buttons/TechTree/Meditation.dds")
The other thing I need to do is add in a new list, "Legends" Units that can only be built once, defined in UnitClassInfos.xml, using the maxGlobalInstance tag. I'd like them to be listed in a different list, like how wonders are in their own category in the sevopedia, I'd like the same to occur with legends. Any idea on where to start with this?