CIVILIZATION IV:iNoc

I know, and I tried. But no matter how much lighter I made the skin, it was still like that.
 
No clue. Art is not my strong point.
 
One of my new units, the Iroquois Tomahawk, is experiencing the blank Sevopedia page bug. It's sevopedia page includes only the unit button, nothing else. When I mouse over it in the scrolling menu, the mouseover window displays its stats. I tried switching it to a different ArtDefine (No response) and rewriting the entire UnitInfo for it (Nothing). I have encountered this before in my projects and in other mods. Does anyone have any ideas?
 
Could you post a screenshot? I'm not sure what you mean with a "blanc page".

But if I'm guessing right what you mean, the problem could be in the Civ4ArtDefines_Unit. The problem might be that the path to the art is wrong. (The red part)

Example:
Code:
<UnitArtInfo>
	<Type>ART_DEF_UNIT_LION</Type>
	<Button>,Art/Interface/Buttons/Units/Lion.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,6,5</Button>
	<fScale>0.61</fScale>
	<fInterfaceScale>1.3</fInterfaceScale>
	<bActAsLand>0</bActAsLand>
	<bActAsAir>0</bActAsAir>
	<NIF>Art/[COLOR="Red"]Units/Lion[/COLOR]/Lion.nif</NIF>
	<KFM>Art/[COLOR="red"]Units/Lion[/COLOR]/Lion.kfm</KFM>
	<SHADERNIF>Art/[COLOR="red"]Units/Lion[/COLOR]/Lion_FX.nif</SHADERNIF>
	<ShadowDef>
		<ShadowNIF>Art/Units/01_UnitShadows/LionShadow.nif</ShadowNIF>
		<ShadowAttachNode>LionBip Spine1</ShadowAttachNode>
		<fShadowScale>1.0</fShadowScale>
	</ShadowDef>
	<fBattleDistance>0.35</fBattleDistance>
	<fRangedDeathTime>0.28</fRangedDeathTime>
	<bActAsRanged>0</bActAsRanged>
	<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
	<AudioRunSounds>
		<AudioRunTypeLoop/>
		<AudioRunTypeEnd/>
	</AudioRunSounds>
</UnitArtInfo>
 
@merijn: That causes a pink dome.

@ The_J:
Traceback (Most recent call last):

File "CvScreensInterface", line 431, int pediaJumpToUnit
File "SevoPediaMain", line 277, in pediaJump
File "SevoPediaUnit", line 89, in interfaceScreen
RuntimeError: unidentifiable C++ exception
 
Seems to be still a problem with the graphics, because the exceptions occures exactly at the point when the game tries to add the unit to the screen.

Did you check that it works ingame?
Can you show us the art defines for the problematic unit?
 
Ingame it has no animations and gives this error:
Traceback (Most recent call last):
File "CvScreensInterface", line 975, in ForceScreenRedraw
File "CvMainScreenInterface", line 1335, in redraw
File "CvMainInterface", line 1835, in updatePlotListButtons
File "CvMainInterface", line 1924, in updatePlotListButtons_Common
RuntimeError: unidentifiable C++ exception

ArtDefines:
Code:
		<UnitArtInfo>
			<Type>ART_DEF_UNIT_IROQUOIS_TOMAHAWK</Type>
			<Button>Art/Interface/Buttons/Units/tomahawk_btn.dds</Button>
			<fScale>0.44</fScale>
			<fInterfaceScale>1.0</fInterfaceScale>
			<bActAsLand>0</bActAsLand>
			<bActAsAir>0</bActAsAir>
			<NIF>Art/Units/Tomahawk/Tomahawk.nif</NIF>
			<KFM>Art/Units/Tomahawk/anim/stone_thrower.kfm</KFM>
			<SHADERNIF>Art/Units/Tomahawk/Tomahawk.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>1</bActAsRanged>
			<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
			<AudioRunSounds>
				<AudioRunTypeLoop/>
				<AudioRunTypeEnd/>
			</AudioRunSounds>
		</UnitArtInfo>
 
Yes. I am using the Tomahawk unit. But strangely enough, I tried changing the ArtDefine and the bug presisted. Let me try that again...

Got a different result. Weird. But that means it must be the animation. GOT IT! The subfolder should have been called 'anim_effects'. Thanks!
 
New feature that allows traits to modify the effects of buildings. The weirdest part is the SDK code, which includes new arrays of CvBuildingInfo objects. It took me ten minutes to convince myself that this was OK.
 
This is getting intresting. Part of this new feature includes copying a CvBuilingInfo object, then changing it. But every time I try a new way of doing this, when I change the new object, the old object changes. Any hints?
 
Sure that you've created a real copy, and not just only created an array of pointers to the old array?
(purely guessing; that's at least what normally happens when somebody tries that in Python and is not to 100% safe about what he's doing)
 
How do I copy the info behind a pointer? That's what's giving me trouble.
 
C++.

But right now and for the next two weeks, I am on vacation and do not have my home computer. I might be able to mesh some buildings, though.
 
Can anyone help? Asaf? Red Key? God-Emperor?
 
Back
Top Bottom