Need help with Unit Art Styles

agentsmith952

Warlord
Joined
Sep 15, 2006
Messages
139
Location
Da 'Burgh
I'm trying to make a unique modified Egyptian Unit Art Style using some of the downloadable units on this site. I've made new unit art styles in the past, both separately and using modular modding, and haven't had any problems with it. However, now with this Egyptian Unit Art Style, things are not showing up properly.

I have CIV4CivilizationInfos.xml modded with UnitArtStyleType pointing to my new UNIT_ARTSTYLE_EGYPTIAN. Here is an example of a unit from that artstyle using the Horus Knight:

Code:
		<UnitArtInfo>
			<Type>ART_DEF_UNIT_EGYPT_SWORDSMAN</Type>						<Button>,Art/Interface/Buttons/Units/Swordsman.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,4,5</Button>
			<fScale>0.44</fScale>
			<fInterfaceScale>1.0</fInterfaceScale>
			<bActAsLand>0</bActAsLand>
			<bActAsAir>0</bActAsAir>
			<NIF>Mods/Mike/Assets/Art/Units/Swordsman_Egyptian/horusknight.nif</NIF>
			<KFM>Art/Units/Unique/Roman/Praetorian/Praetorian.kfm</KFM>
			<SHADERNIF>Mods/Mike/Assets/Art/Units/Swordsman_Egyptian/horusknight_fx.nif</SHADERNIF>
			<ShadowDef>
				<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.nif</ShadowNIF>
				<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
				<fShadowScale>1.0</fShadowScale>
			</ShadowDef>
			<fBattleDistance>0.35</fBattleDistance>
			<fRangedDeathTime>0.31</fRangedDeathTime>
			<bActAsRanged>0</bActAsRanged>
			<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
			<AudioRunSounds>
				<AudioRunTypeLoop/>
				<AudioRunTypeEnd/>
			</AudioRunSounds>
		</UnitArtInfo>

So, the problem is that the game is still loading the Middle Eastern unit art style for Egypt and using the generic unit graphics for it, even though I have the Civ Info pointing to my new Egyptian Unit Art Style.

Anyone else run into a similar problem or know of a fix?
 
You didn't mention writing your new UnitArt into the appropriate Artstyle in Civilizations\Civ4UnitArtStyleTypeInfos.XML
 
You didn't mention writing your new UnitArt into the appropriate Artstyle in Civilizations\Civ4UnitArtStyleTypeInfos.XML

Sorry, I did do that, too. Forgot to mention!

I have the art in the appropriate folder, I have the Unit Art Style made, I have the Unit Art Defines made, and I have the civ info pointing to the art style.

Hey hows it going, if you'd like me to take a look at it, i will for you??

That would be great. Is there a way to post files here or would it be easier to just put the code in a post for the relevant sections?
 
It's better to have the complete files - because sometimes it's hard to say what's relevant.
You can attach files to a post (use Go Advanced->Manage Attachements).
 
It's better to have the complete files - because sometimes it's hard to say what's relevant.
You can attach files to a post (use Go Advanced->Manage Attachements).

I'll give that a shot. I'll have to wait until I get home from work tonight but I'l lthrow them up then.

Well, not literally throw up. You get the point ;)
 
Ok, here is the Unit Art Define file, the Unit Art Style Type file, and the Civ Info file I'm using. If I'm missing another file let me know, but I think that is all of the relevant material.

It's the Egyptian art style.
 

Attachments

Ok, here is the Unit Art Define file, the Unit Art Style Type file, and the Civ Info file I'm using. If I'm missing another file let me know, but I think that is all of the relevant material.

It's the Egyptian art style.

OK you must have dyslexia like i do.
See what i did different in the Artstyle area.
 
OK you must have dyslexia like i do.
See what i did different in the Artstyle area.

You are going to make me look for my own mistake? What kind of help is that? :lol:

Just kidding. I can't get the download while at work, but I'll definitely look through your files when I get home and compare. Hopefully I can figure things out.

Oh, and:

Dyslexics_Fullpic_1.gif
 
OK you must have dyslexia like i do.
See what i did different in the Artstyle area.

I took a look at your files, and I can't see anything different from what I have done. I tried using them, too, and I still get the generic middle eastern art style for the Egyptians.

Back to square one :(
 
I took a look at your files, and I can't see anything different from what I have done. I tried using them, too, and I still get the generic middle eastern art style for the Egyptians.

Back to square one :(

Well you have the Egypt in the wrong place, and i did replace them in the correct area, if its not that, then its completely a different story. Plus in alot of cases you have the middleeast artstyles in use, just try looking at those of the Egypt ones I changed.
 
Well you have the Egypt in the wrong place, and i did replace them in the correct area, if its not that, then its completely a different story. Plus in alot of cases you have the middleeast artstyles in use, just try looking at those of the Egypt ones I changed.

Did you change them in the files you posted? Because I downloaded them and used them in place of my files and I'm still having the same problem of generic Middle East art style units. To be hoenst, though, I compared yours to mine and didn't see anything different. I'll have to check again today. If that isn't the problem, then there must be something else I'm missing. On a side note, if my .xml was incorrect, wouldn't it give me an error message?

I really appreciate all of your help!
 
Did you change them in the files you posted? Because I downloaded them and used them in place of my files and I'm still having the same problem of generic Middle East art style units. To be hoenst, though, I compared yours to mine and didn't see anything different. I'll have to check again today. If that isn't the problem, then there must be something else I'm missing. On a side note, if my .xml was incorrect, wouldn't it give me an error message?

I really appreciate all of your help!

No not really, as long as you got the axeman_egypt in the artstyles area, it will run, but as soon as you try to use the units, it will crash. You just had egypt_axeman instead of axeman_egypt, or vise-versa is all, for some.
I already deleted my files so i cant look for sure.
 
No not really, as long as you got the axeman_egypt in the artstyles area, it will run, but as soon as you try to use the units, it will crash. You just had egypt_axeman instead of axeman_egypt, or vise-versa is all, for some.
I already deleted my files so i cant look for sure.

I changed it all up and I even found an error with one of the <button> tags. Still, generic Middle Eastern art style for the units.

I still for the life of me can't figure this one out, or why it is even pointing to another art style in the first place.
 
I changed it all up and I even found an error with one of the <button> tags. Still, generic Middle Eastern art style for the units.

I still for the life of me can't figure this one out, or why it is even pointing to another art style in the first place.

I would have to look at your whole mod then, and go from there. But if you changed the Egypt word around as i had it, then thats not the problem. But again, most of the units you had there are middle+eastern artstyle, you only changed like five different ones??
 
I would have to look at your whole mod then, and go from there. But if you changed the Egypt word around as i had it, then thats not the problem. But again, most of the units you had there are middle+eastern artstyle, you only changed like five different ones??

Basically. I kept the Middle_Eastern art style but changed a few of the units to add flavor specifically for Egypt. I added a unique swordsman, knight, grenadier, cavalry, curassier, cannon, and musketman, I believe. I even modded the actual Middle_Eastern art style to include the flavor units in BtS's main art folder.

That's why it is confusing. With the swordsman, for instance, my Egypt one is not showing up and the modded Middle_Eastern swordsman, located in the Middle_Easter unit art style, is showing up.

I can post my entire mod, I think. I've modded other art styles without any problems. I have a module for the Ukraine civ, and in the actual Mod's art style I made some additions and changes to the Middle_Easter, South-American, and added the Greek art style. This is the first one I've had any problems with.
 
Basically. I kept the Middle_Eastern art style but changed a few of the units to add flavor specifically for Egypt. I added a unique swordsman, knight, grenadier, cavalry, curassier, cannon, and musketman, I believe. I even modded the actual Middle_Eastern art style to include the flavor units in BtS's main art folder.

That's why it is confusing. With the swordsman, for instance, my Egypt one is not showing up and the modded Middle_Eastern swordsman, located in the Middle_Easter unit art style, is showing up.

I can post my entire mod, I think. I've modded other art styles without any problems. I have a module for the Ukraine civ, and in the actual Mod's art style I made some additions and changes to the Middle_Easter, South-American, and added the Greek art style. This is the first one I've had any problems with.

Are you running this as a regular addition to a mod or modular, i forget, i already deleted the XML stuff.
 
Are you running this as a regular addition to a mod or modular, i forget, i already deleted the XML stuff.

The only modular stuff I had was for the Ukraine civ and adding in some of the future units from Next War. All of the rest are main files being modified in my mod folder.
 
Back
Top Bottom