GUIDE: Adding new units

Excellent tutorial Sovarn. However, there's one thing still bugging me. I'm trying to create my first mini-mod (yes, I'm new to this) but in order to do this, I need to find the file that "defines" the <EarlyArtDefineTag><EarlyArtDefineTag/>, the <MiddleArtDefineTag><MiddleArtDefineTag/> and the <LateArtDefineTag><LateArtDefineTag/>, so that I may edit it. I've looked for files containing these lines, or part of them, but found nothing useful. Do you know where these files are? Any help is appreciated, thanks.
 
What do you mean?
Do you mean in which file the ART_DEF_NEW_UNIT_OR_SO is mentioned?

What I mean is that there probably is a file that specifies which ages belong to the early game, which to the middle game and which to the late game. And what I want to do is to edit the file so that I can add a VeryLateArtDefineTag.
 
Adding a new tag will require C++ coding. See the "Idiot's guide to the dll" thread by Xienwolf here in the tutorials section forum for how to do that. The EarlyArtDefineTag, LateArtDefineTag, and MiddleArtDefineTag tags are found in the UnitInfos and UnitArtStyleTypeInfos XML files. Reference the vanilla files that came with BtS to see how to use them, and remember the order must be the same, ie Early, Late, Middle (which is a bit counterintuitive as it should be early, middle, late).
 
Adding a new tag will require C++ coding. See the "Idiot's guide to the dll" thread by Xienwolf here in the tutorials section forum for how to do that. The EarlyArtDefineTag, LateArtDefineTag, and MiddleArtDefineTag tags are found in the UnitInfos and UnitArtStyleTypeInfos XML files. Reference the vanilla files that came with BtS to see how to use them, and remember the order must be the same, ie Early, Late, Middle (which is a bit counterintuitive as it should be early, middle, late).

Thanks for the reply. So it's a C++ "issue". I thought so but I still couldn't find it. Anyway, I'll try it and report back. As I mentioned before, it's going to be a mini mod, but I'll have to get permission from the creator of the 3D models and give him and possibly (I don't know if I'll make it) to Xienwolf for helping me. I'm planning on releasing it as a mod and as a CustomAssets "mod" contaning the neccessary instructions, of course.
 
Early = ancient + classical, middle = middle age + Rennaissance, late = industrial, modern and future.

For the rest phungus is right, but if you want to go into coding, you should take a look at this (not updated) modcomp by tholish which adds a tag for every era.

edit: crosspost.
 
Thanks again. Oh and, in case I accidentally misled you before, the mini mod isn't about the "Very Late" thing. Now that I think of it, I can make it a full-scale mod.
 
Little question:

What do the following 4 tags?

iCultureGarrison
iExtraCost
iAsset
iPower
 
I just spent 2 days reworking every unit to match what I wanted for my mod. I even added 4 new units. I plan on doing more but for now this is good enough to start testing balance issues, ect.
I started up the game went to Advanced>Load Mod> My Mod
It restarted, loading my mod ( after quite a few errors were fixed lol ), but the Multiplayer menu option is greyed out, and when I go single player, the only option available is load game.
Am I missing some thing? Why can't I start a new game under my mod?

I only have 3 mod files:
Erdrik.ini
-- Mods/Erdrik/
CIV4GameTextInfos_Objects.xml
-- Mods/Erdrik/Assests/XML/Text/
CIV4UnitInfos.xml
-- Mods/Erdrik/Assests/XML/Units/

I do have a regular text file in -- Mods/Erdrik/Pertainent Info.txt
That I am using to type up mod ideas...

Is there something I am missing?

I am having the same exact problem... did this ever get answered?
 
You know, this question is 5 years old ;).

You've probably disabled in the .ini public maps from being used, and when you don't provide a map/mapscript within your mod, you can't play anything.
-> do one of these things and you should be fine.
 
You know, this question is 5 years old ;).

You've probably disabled in the .ini public maps from being used, and when you don't provide a map/mapscript within your mod, you can't play anything.
-> do one of these things and you should be fine.

Yeah... I couldn't find the answer. But then I was thinking and thinking about it and I figured it out. It was my ini.

That will teach me to copy someone else's config file.
 
I have a hopefully very simply answered question.

How can I change the elevation of land units?

I am adding some new units which I'd like to operate like helicopters/land units, but unlike the gunship, they slide along the floor instead of hover. I can't find anything which controls this in the artdefines or the unitinfos, which is where I thought it should be.

I know I can make the units elevated by setting them as domain_air, however that makes the units operate like fighter/bombers, not like land units :(

Thank you in advance.
 
I think this is done in NifSkope, but I'm not sure, I've never tried it.
 
Welcome to CFC :).

This can't be done via XML, but relativly easy graphically. Edit: Vortilex beat me.
Download nifskope and install it.
Open the .nifs of your unit with it (only the ones with the whole unit), rightclick on the unit, and there should somewhere be the option "transform" (or similar) available, where you can change the x, y and z coordinates of the unit. Just raise the unit on the z axis and save it, and you're done.
 
is the download you linked legal and free if so what is nifscope:confused:
 
Yes, it's free and legal.
Everything which is hosted on the website sourceforge is open source, this means it is free and everyone can even download the source code to look at it, how it works (okay, the normal user doesn't need this).

Nifskope is a basic programm for looking and modifying .nif files.
You can do a lot of stuff with it, look at the tutorials from The_Coyote.
Even if you don't want to modify anything: It's perfect to look at units and buildings before you put them ingame. Makes it a lot easier to see, what you want to add or what not.
 
No, not completly, as far as i know.
you can exchange parts from units to parts from other units, exchange textures, shrink parts, modify animations (if i'm right)....i can't really say that much about it, you should read some of the tutorials in this subforum ;).
 
Can you give me the link to those guides

As for nifscope i think i will be editing units soon;)
 
Top Bottom