Worldbuilder Crash = A faulty CIV4ArtDefines_Unit.XML?

FinlandGamer

Chieftain
Joined
Aug 1, 2011
Messages
66
Location
Vantaa, Finland
I've been making a Vietnam war mod for BTS 3.19, but when i enter worldbuilder, game crashes. (Civilization IV has stopped working, and needs to be closed.)

The game boots up fine, no errors during loading, but Civilopedia can't load unit graphics at first try. For example: I select RPG-7 Viet Cong

Spoiler :
civ4screenshot0000jz.jpg


But when i select some other unit, and re-select RPG-7 Viet Cong, it loads the unit graphics.

Spoiler :
civ4screenshot0001q.jpg


It does that also to buildings, even though i have not modded any buildings.

Any idea what is wrong?
 
2 possibilites:
- Wrong .kfm in the artDefines (probably, else it would not crash the game)
- Wrong .nif name (which is sure the case here): In the .kfm, there's the name of the .nif file hardcoded. If this doesn#t match the assigned .nif file, then you'll get such problems, like e.g. also missing interface -> rename the .nif so that it fits the .kfm
 
2 possibilites:
- Wrong .kfm in the artDefines (probably, else it would not crash the game)
- Wrong .nif name (which is sure the case here): In the .kfm, there's the name of the .nif file hardcoded. If this doesn#t match the assigned .nif file, then you'll get such problems, like e.g. also missing interface -> rename the .nif so that it fits the .kfm

I doubt that unit graphics are the cause, because 1. This also happens whit vanilla units (and building's, whitch i haven't modded yet.) 2. I added this unit before Worldbuilder started to crash my game.

Could it be a python error?

EDIT: Here's the same bug with Transport.

Spoiler :
civ4screenshot0002h.jpg


Spoiler :
civ4screenshot0003j.jpg
 
Took a look at it, and this:

- Wrong .nif name (which is sure the case here): In the .kfm, there's the name of the .nif file hardcoded. If this doesn#t match the assigned .nif file, then you'll get such problems, like e.g. also missing interface -> rename the .nif so that it fits the .kfm

To be specific, e.g. this here:
PHP:
			<NIF>Art/Units/US_B52/B52.nif</NIF>
			<KFM>Art/Units/StealthBomber/StealthBomber.kfm</KFM>
			<SHADERNIF>Art/Units/US_B52/B52.nif</SHADERNIF>

In the StealthBomber.kfm there is explicitely mentioned, that it belongs to a StealthBomber.nif, it will search for this nif, and if it doesn't find it, it will lead to several problems (e.g. not available buttons for this unit).
So rename the B52.nif to StealthBomber.nif (folder does not matter), do this for all the units where it doesn't fit, and then check it again.


No idea actually why this leads to problems with unmodded units or the buildings :confused:, but this *has* to be the cause.
 
try deleting the .kfm file of the unit in question as well. If everything works fine, but the unit is just like a statue, then there is a problem with the animation file.

BTW, can't wait for the mod. How far along? Here are some links to help out.

http://www.pointofexistence.com/bfvrenders-land.php

http://www.vgomod.co.nr/

There are also tons of models to convert at google warehouse.
 
The B52 is from snafusmith, and he says to use StealthBomber.kfm. (And i've used the same model before and know that it works. )

Does this happen on other PC's?

EDIT:
How far along?

Started about a week ago, removed unused civilizations and leaders, was going to add some new techs, but then worldbuilder & Civilopedia got messed up. :badcomp:
 
:bump:

and an update.

I started the whole mod from the begining, and i discovered, that it all was caused by an empty CIV4ArtDefines_Civilization.xml.
(Because i had removed all vanilla civilization from the game, and removed their entry also in there.)

So it's working again.
 
Back
Top Bottom