View Full Version : Custom Unit: Crash in Build Queue


phungus420
Jul 21, 2007, 07:09 AM
I'm at a loss of what to do now, so figure I'll ask here, and hopefully someone can help me.

I've followed the directions here to add units. And everything works, animations, stats, availability, Civilipedia, all lines up where I want it. Heck I can even upgrade my old units. However if I or the AI attempts to build the unit in a city, CTD. Any common areas where people like me mess up here? I've reviewed the unit in XML many, many times, and can't find anything out of place. Even Stranger I've moved the Korean Hwacha Unit as a unique unit replacement (it's an early era cannon to replace catapults in the mid Renesaince) for the Unit Class, and it works fine. No CTD when Hwacha is placed in the build queue, so I'm pretty sure it's not a problem with teching and references from other units.

The following files have been changed and are in Custom Assets XML (also the button and image files which work properly are in the Art folder):
Text folder:
CIV4GameText_Civilopedia_Units
CIV4GameText_Strategy
CIV4GameTextInfos_Objects

Units folder:
CIV4UnitInfos
CIV4UnitClassInfos

Art folder:
CIV4ArtDefines_Unit

NikNaks
Jul 21, 2007, 07:16 AM
Sounds like an art bug. Make sure that if you're using a custom button, remove the comma at the front, and make sure the art is all referenced correctly.

phungus420
Jul 21, 2007, 07:36 AM
Sounds like an art bug. Make sure that if you're using a custom button, remove the comma at the front, and make sure the art is all referenced correctly.


Thank you so much, it was the comma in front of the button reference in the artdefinesunit file. Problem solved. I would have never figured out it was that friggin comma, Thanks again.

NikNaks
Jul 21, 2007, 08:44 AM
It's a weird bug that one. Glad I could help :D