Questions about Unit Art Styles

zulu9812

The Newbie Nightmare
Joined
Jan 29, 2002
Messages
6,388
Location
Athens of the North
With reference to Unit Art Styles:

can you only have Early, Middle and Late tags for each style?

Can you change which eras these tags refer to?

Currently, it seems that Early refers to Ancient & Classical, Middle refers to Medieval, Renaissance & Industrial and Late refers to Modern. If I am restricted to 3 era tags, I'd rather that they refer like so:

Early - Ancient, Classical & Medieval
Middle - Renaissance
Late - Industrial & Modern

Any thoughts?
 
my thoughts are; to do what you want to do will require way more work than its worth

its possible, but probably only with SDK modification
 
You can change everything. And yes, you need the SDK to change it.

I know it because I've replaced the early, middle and late system with ancient, classical, medieval, renaissance, industrial, modern and future. I call it Unit Era Art and it is always part of CCV. :D

It's not difficult to do it. Most of the work is Copy&Paste. Here a hint what to do if you just want to change the link of a style to an era. The game uses an easy formula : era > max era / xy
So change xy!

Here the part of the code from CvInfos:
PHP:
const CvArtInfoUnit* CvUnitInfo::getArtInfo(int i, EraTypes eEra, UnitArtStyleTypes eStyle) const
{
	if ((eEra > GC.getNumEraInfos() / 2) && !isEmpty(getLateArtDefineTag(i, eStyle)))
	{
		return ARTFILEMGR.getUnitArtInfo(getLateArtDefineTag(i, eStyle));
	}
	else if ((eEra > GC.getNumEraInfos() / 4) && !isEmpty(getMiddleArtDefineTag(i, eStyle)))
	{
		return ARTFILEMGR.getUnitArtInfo(getMiddleArtDefineTag(i, eStyle));
	}
	else
	{
		return ARTFILEMGR.getUnitArtInfo(getEarlyArtDefineTag(i, eStyle));
	}
}
 
Back
Top Bottom