Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Nov 01, 2005, 05:23 AM   #1
Jorgen_CAB
Warlord
 
Join Date: Feb 2004
Location: Sweden
Posts: 127
Adding new values for domain, classes and Shemas for Units

I have bin tinkering around with the XML files these last few days now. I do understand how they are built up and used and how to add instances to the schema model, and thus be able to add new categories for modding unit values.

What I want to do for a modd I'm thinking on is to add terrain attack values, such as increased attack for mounted unts in grassland and plains etc.. There is allot of thing one could do here.

Now, this will of coerce require me to change the combat logic some, so are there anyone who know if combat is made in Python or in C++ (changeable with the SDK)???
Jorgen_CAB is offline   Reply With Quote
Old Nov 01, 2005, 11:58 AM   #2
Stardog13
Chieftain
 
Join Date: Nov 2003
Posts: 55
I'm almost positive the combat is done in C++. Also, changing the xml schemas is probably not a good idea and the game probably won't even be able to use new tags you add in yet.
Stardog13 is offline   Reply With Quote
Old Nov 01, 2005, 12:57 PM   #3
Isak
Civ4 Scenario Designer
 
Isak's Avatar
 
Join Date: Mar 2002
Location: Airhose, Denmark
Posts: 1,384
The actual formulas used are in C++, so you'll have to wait for the SDK for that.

Domains are also 'hardcoded'. You can add more in the XML files, but the game won't actually know what to do about them. These are used by the AI for pathfinding purposes, so the ability to add more would have been a huge task (virtually necessitating complete rewrite of the AI pathfinding routines). For most of the purposes you would have used Domains for, I'm sure you could use UnitCombats instead.

And giving a unit Attack bonuses depending on the terrain they are standing on (actually the terrain they leave when attacking) isn't possible, as that terrain isn't factored in the combat formula - only the defending unit's terrain is factored in, as that's where the combat is supposed to be happening. Again, it may be possible when the SDK is out, but only time will tell.

But what exactly do you want to do? I'm sure a lot of it can be accomplished without changing the formulas.
__________________
Civ4: RAR4CIV - well, some things just never happen.
Civ3/PtW: Kal-El's Double Your Pleasure Mod | Rise and Rule for C3C
Isak is offline   Reply With Quote
Old Nov 01, 2005, 10:49 PM   #4
Jorgen_CAB
Warlord
 
Join Date: Feb 2004
Location: Sweden
Posts: 127
Ok changing the domain seem to be a little bit difficult, but nevertheless could be useful in a Fantasy scenario, who knows...

Now, the most important part would be to add attack values for the terrain a unit is attacking in to. That is mounted units attacking a plain or grassland tile, the same as the city attack trait i presume, you just call it Forrest Attack or Plain Attack or something.
This would make mounted units more effective in the open against all units but less so in forest. Woodsmen would not only defend better in the forest but also be more dangerous on the attack there.

Only have a higher defence value in forest is not good, it is to easy to just ignore a unit with a to high defence value if there attack value is small enough. Most Melee/infantry gain enough defence bonus in woods as it is.

Now most if my modding will be for a fantasy scenario, and there I want more variation between units, and I don't think it will be to hard adding some values to the schemas to use in the combat model once the SDK is out. I will certainly try it anyway.

There might be other values that other modders want to have, such as different withdrawn chances in different terrain. Once again... cavalry should have a greater withdraw chance in open terrain and a low in forest and hills.
It should be easier to withdraw when fighting in the forest than when fighting in the open for melee/infantry units etc...

All this are only calculations to be added to the combat model.
Jorgen_CAB is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Adding new values for domain, classes and Shemas for Units

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[TUTORIAL] Case Study: How to make multi-domain units Kael Civ4 - Modding Tutorials & Reference 42 Oct 01, 2009 03:21 PM
Adding new values to Civic XML file (and others) Encyclopath Civ4 - Creation & Customization 2 Aug 19, 2008 04:05 PM
Objective values of Unique Units Iranon Civ4 - General Discussions 9 Feb 23, 2008 05:57 AM
Why are war ships' defense values lower than attack values? AbuHab Civ3 - General Discussions 32 Mar 03, 2005 11:06 AM
HELP: Adding units bnmac3 Civ3 - Creation & Customization 3 Aug 05, 2002 03:32 AM


Advertisement

All times are GMT -6. The time now is 04:30 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR