Posted by: swatmansmith - Wednesday, July 25, 2012 1:03:30 AM
Im new to modding and this website, so i was just wondering how i can use the Chinese Troop Crawler on the american side?
And no I am not talking by having my rangers capture the chinese buildings needed, im talking about being able to build the troop crawler from the american war factory
Posted by: precision_bomber - Wednesday, July 25, 2012 2:15:25 AM
First.
Change Unit Prerequisites for ChinaVehicleTroopCrawler
[code]
Prerequisites = OBJECT AmericaWarFactory
[/code]
Second.
Change the CommandSet for AmericaWarFactoryCommandSet
replace x with the command number[1 to 12 for Non-ZH, 1 to 14 for ZH]...
[code]
X = Command_ConstructChinaVehicleTroopCrawler
[/code]
Enjoy.
Posted by: swatmansmith - Wednesday, July 25, 2012 3:15:48 AM
Everything works except after the troop crawler is built and is just about to leave the american war factory garage when the game crashes. A "A Serious Error Has Occured" window pops up and shuts the game down. How do I fix that?
Posted by: NewNightmare - Wednesday, July 25, 2012 8:06:50 AM
Check for typos in commandset.ini
Also, since unit spawned will be filled with red guards, change the initial payload of transport contain from:
[code=plain] Behavior = TransportContain ModuleTag_06
InitialPayload = ChinaInfantryRedguard 8
[/code]
to
[code=plain] Behavior = TransportContain ModuleTag_06
InitialPayload = AmericaInfantryRanger 8
[/code]
Posted by: swatmansmith - Wednesday, July 25, 2012 9:57:43 PM
Changed the initial payload, no mispellings... i dont get it, still isnt working.
Posted by: NewNightmare - Thursday, July 26, 2012 10:56:11 AM
post the code you have so far: whole object from Object XXX to geometry options, and commandset of warfactory. I had similar problem with a misspelled upgrade for a unit, it crashed the moment unit should appear. Use code not quote when pasting it though.
Posted by: precision_bomber - Thursday, July 26, 2012 11:32:37 AM