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.
|Nov 01, 2005, 07:23 PM||#1|
Join Date: Nov 2005
Adding new bonuses - anyone know what these cryptic XML tags do?
This post has been stripped of all tabs - can I post in plaintext on this system?
Firstly, the schema that I'm having trouble with:
Schema itself is in CIV4TerrainSchema.xml
But I'll excerpt from CIV4BonusInfos.xml
Anyway, if anyone has already done extensive experiments (or just knows) what these things do, and can fill out the rest of the tags, I'd appreciate it greatly.
I'm particularly interested in the rarity numbers - all of them are pretty much the same (so I could just copy and modify an existing instance) but while I'm adding new resources I'd like to make some of them rarer than others - otherwise, iron and copper become impossible to obtain - alternatively, I could make bonuses more common overall, which I think is more fun anyway.
I've done some experiments but fiddling with these numbers but I don't see a huge impact. At the moment, I can't even figure out where in the python code the bonuses are added to the random map - are the bonuses just considered features? They don't seem to be called "bonuses" in the perl code (except where it deals with documentation)? I have to look through CvMapScriptInterface.py, actually - might be in there somewhere and just never used.
/cygdrive/c/Program Files/Firaxis Games/Sid Meier's Civilization 4/Assets/Python
$ grep -ci bonus *.py */*.py */*/*.py | grep -v :0
No mention that I can see in any of the random map generation stuff.
Anyway, there are a bunch you might profitably add:
Tobacco is a luxury, made obsolete by Genetics (as people stop smoking it.)
Chocolate, coffee and tea are all luxuries.
Guano deposits are important for military purposes post gunpowder but pre-WWI - window is slightly narrower than the one for whales.
Oysters are a luxury found in sea hexes.
Honey makes mead - you could build wineries on the hexes.
Cedar is a luxury that appears only in forests - they are collected using timbermills. There are some other luxury woods - Ebony and Mahogany, for example.
Rubber is a construction material (+1 hammer) found only in jungles. It could halve the price of some wonders, I suppose.
The "gems" resource clearly represents corundum (rubies, sapphires) or possibly beryl (emerald) and is not interchargable with diamond, which is a luxury and may have military or industrial applications late in the game (subject to another mod, probably). There are several types of gems in the ancient world, which were definitely traded for each-other, so we might also add "jewels", meaning there would be three types to trade.
Platinum never played an important role in the ancient old world, but that is an accident of history and geology - the inca knew it used it.
Last edited by tndp; Nov 02, 2005 at 02:49 PM.
|Nov 02, 2005, 10:32 AM||#3|
User of Run-on Sentences.
Join Date: Jul 2005
To make this code... I surrounded it with "code" blocks.
Codes and examples here
MODDDDDS INNNNNN SPAAAAAAAACE
Last edited by Gerikes; Nov 02, 2005 at 10:37 AM.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Does anyone know what these XML tags do?||tsentom1||Civ4 - Creation & Customization||8||May 06, 2008 08:24 PM|
|adding XML tags with SDK||juni_be_good||Civ4 - Creation & Customization||26||Dec 16, 2006 08:19 PM|
|Adding new tags to the game?||alpaca||Civ4 - Creation & Customization||2||Oct 11, 2006 07:06 AM|
|Creating new XML tags||Slynky||Civ4 - Creation & Customization||5||Jul 13, 2006 05:30 AM|
|New XML Tags||n003lb||Civ4 - Creation & Customization||6||Dec 01, 2005 01:44 PM|