Q: Removing Unit Categories

jenks

Prince
Joined
Jan 9, 2006
Messages
494
Location
Yorkshire, UK
Having created new unit categories for Roanoake (psionic/fibersea etc.) using XML, im now trying to get rid of the old ones (archery/helicopter/melee etc.), if for no other reason than to make the civilopedia look nicer :)

Can anyone help?
 
jenks said:
Having created new unit categories for Roanoake (psionic/fibersea etc.) using XML, im now trying to get rid of the old ones (archery/helicopter/melee etc.), if for no other reason than to make the civilopedia look nicer :)

Can anyone help?

Yeah, its not to hard to do. I removed them from FfH without an issue. As I recall I just removed them from the CIV4BasicInfos.xml. You may run into some weird popups ("Congradulations on building your first helicopter unit" when you make a settler) which have to be cleaned out of the CvAdvisorUtils.py file.

Oh, I almost forgot, there is a physical array of unitcombats in the PyHelpers.py file. You will want to remove any you remove from that list as well.
 
jenks said:
ah nice one :) thats working great

we dont seem to have a PyHelpers.py file though, will this be an issue later do you think?

Not having one just means you are using the default one. I would copy the default one from the Civ4 dir into the mod and modify it to remove the unitcombats.
 
Nice one again ! :cool: had a quick test and hit the 'congratulations' when building a civil engineer :rolleyes: for loads of unit categories which were removed!

I went and removed them from the CvAdvisorUtils.py file and it worked a treat.

Any idea of the purpose of the array of unitcombats in the PyHelpers.py file? Ive renamed them all to the Roanoake unit categories and have no problems, just curious as to what it actually is doing? :)
 
jenks said:
Nice one again ! :cool: had a quick test and hit the 'congratulations' when building a civil engineer :rolleyes: for loads of unit categories which were removed!

I went and removed them from the CvAdvisorUtils.py file and it worked a treat.

Any idea of the purpose of the array of unitcombats in the PyHelpers.py file? Ive renamed them all to the Roanoake unit categories and have no problems, just curious as to what it actually is doing? :)

I dont know what functions call it, but anyone that calls it is going to get those returns so its probably improtant that the returns are valid. ;)
 
Back
Top Bottom