R
Rabbit, White
Guest
Hmmm, I could swear I sent you a PM addressing the problem... Anyway, I'm gonna reply to your post in the unit's thread:THAT FIRE!!
Can you help me? I haven't find suggestions in the forum!
1) Don't copy the kfm file (or any kf files) from the scout's folder. Instead in the xml, simply have the KFM tag point to the original location of the scout's kfm file, i.e. the same as the actual scout.I'm trying to add my first unit; I followed the guide in this thread: http://forums.civfanatics.com/showthread.php?t=139721 but I have some problems and questions:
1) I noticed that there is no .kfm file in both the zips (the one with the sword and the other with the torch); i don't know what that file does, but it is necessary because you must enter its path in 'CIV4ArtDefines_Unit.xml' in the <KFM> tag. I have copied the standard scout .kfm file in my mod subfolder 'Assets\art\units\mediterranean_scout\'; i don't know if this method works well because the game freezes (see point 4).
2) I'm using the torch version and I have problems with the button:
a. In 'Scout_ROMAN (with torch).zip' there isn't the button with the torch, but the button with axe;
b. I copied the button with the sword from the other zip; this button appears "out of focus" in game; look here and compare this picture with the first picture in post #1:
![]()
c. the button in the technology screen is NOT "zoomed"; look here:
I don't know if it depends by the settings in the file 'CIV4UnitInfos.xml', in which i have written:
instead of:
(note the commas)
3) The unit has a strange posture in the civilopedia screen (and in the city screen..); moreover the fire of the torch is in a very strange position; compare this picture with the first picture in post #8:
4) The game freezes (not crash!) when my city has completed to building the unit. It can't manage some strange graphic problems.
I don't know if these problems are technical or related to this unit.. I decided to post in this thread first.. I apologize if my questions are more proper in a technical support thread than in a creation/customitation thread..
By the way thanks in advance.
2) To me it looks like the button is the wrong size. Check that the button's size is 64x64 pixels. If it is then the only thing I can think of is the button entry in xml, double check that it's correct - it should have a single path (not like default units that have a 2nd path pointing to the atlas) and no commas in front or at the end.
3) When I sent you the PM I wasn't sure if that fire problem occurs in the game as well. I'm guessing you don't know though since the game freezes when the unit finishes building. So, first of all, I think the freeze occurs because you added kfm file to the unit's folder and referenced it instead of the original, hopefully the freeze will disappear when you fix that.
When that happens check how the unit looks in game, it's possible that the problem occurs only in civilopedia, in which case it's not a big deal.
If however, the in-game unit has the same problem then check the unit's folder, if it has only one NIF file then you'll have to ask the creator about the problem. However, if it has 2 NIF files, something like prodomoi.nif and prodomoi_fx.nif then it's possible one of them doesn't have a problem, so in the xml try pointing both NIF and SHADERNIF tags to the same file, hopefully one of them will work.
4) As I said in 3) I think the game freezes because of that kfm file so it should be cleared by referencing the original one.
Cheers