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 Jul 28, 2010, 08:05 AM   #1
tchristensen
Emperor
 
tchristensen's Avatar
 
Join Date: Jul 2010
Location: Grand Rapids, Mi
Posts: 1,185
Easy Mod Tip

There may be a number of players that would love to try a hand at modding, but just do not know where to start and may be afraid to do anything too crazy.

Here is a little idea to just get your feet wet:

Find a pre-existing mod. I started my sojourn with the great mod called Thomas' War, but any mod will do, and go into the \MyMod\Assets\XML\Units.

Before going any further, make sure you copy the entire folder into another folder (I just throw it on my desktop). If you try your adjusted mod and it crashes, you have something to revert to. You will need to make the adjustments to the folder that is in the Mod's directory.

Now you are ready to make a little adjustment, and take your first step into modding.

Open the file: CIV4UnitInfos.xml with WordPad -- don't use anything to sophisticated because you just want to edit the contents without the program putting any additional encoding into the file.

The first unit in the XML is no doubt the Lion. Here is a bit of code of what you will see:

<UnitInfo>
<Class>UNITCLASS_LION</Class>
<Type>UNIT_LION</Type>
<UniqueNames/>
<Special>NONE</Special>
<Capture>NONE</Capture>
<Combat>UNITCOMBAT_ANIMAL</Combat>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ANIMAL</DefaultUnitAI>
<Invisible>NONE</Invisible>
<SeeInvisible>NONE</SeeInvisible>
<Description>TXT_KEY_UNIT_LION</Description>
<Civilopedia>TXT_KEY_CONCEPT_ANIMALS_PEDIA</Civilopedia>
<Strategy>TXT_KEY_UNIT_ANIMAL_STRATEGY</Strategy>
<Advisor>NONE</Advisor>
<bAnimal>1</bAnimal>

What you want to find is the line called: <Description>TXT_KEY_UNIT_LION</Description>

Between the <Description> put anything you want. For example:

<Description>Sabertooth Tiger</Description>

Exit and Save.

Run the Mod and either search out a Lion or go into WorldBuilder and place one -- you will notice that it is called a Sabertooth Tiger.

The lesson here is that anything you put bewtween the <Description></Description> is the name that appears in the game.

Now let your mind go wild and rename units.

Hope this helps someone, start down the road to modding. . .

-Troy-

Last edited by tchristensen; Jul 28, 2010 at 09:00 AM.
tchristensen is offline   Reply With Quote
Old Jul 29, 2010, 02:05 PM   #2
Baldyr
"Hit It"
 
Baldyr's Avatar
 
Join Date: Dec 2009
Location: Sweden
Posts: 5,530
I believe my own humble beginnings was that I was trying to edit a custom barbarian spawn in the RFC mod in order to make a Russia scenario. So I posted a question on the RFC mod-mod board about the modulo operator (%) - and got no reply. After some whining someone was kind enough to point me to a page on modulus operations on Wikipedia, but that mostly confused me as I know very little math. But then someone else (I believe) linked to a list of Python operators and I started to experiment with the modulo thing...

And before I knew what had happened I was trying my hand at programming, but it was pretty rough going as I didn't really know what I was doing. Had I only had a mentor of sorts this process would have been shortened by a couple of months. Because once EmperorFool was kind enough to help me out the Python thing really took off!

This is where to start if you're looking to get into Python programming. Its a free online textbook and once you've finished it you can pretty much call yourself a programmer (but maybe not a Computer Scientist, even if you would have a good idea about how one would be reasoning ).

With unlimited free time and unlimited funds, I'd write a comprehensive textbook on CivIV modding with Python. Not because I know everything there is to know on the subject, but rather because I would like to know everything there is to know on the subject. And by forcing myself to really do this by the numbers I'd pretty much learn this.

But instead I'm busy with the old day-job...
__________________
How to Make a Python Mod - Python modding tutorial
CivIV Python Class Reference - modding Python API
How to Think Like a Computer Scientist - online Python textbook
CivPlayer - Python scripting tool
Spoiler:
Q: Who is the woman in the avatar image?
A: Miss Li.
Q: Why does she have a brass-eye?
A: It's a conceptual thing. More of the same on the profile page.

Q: What does you title mean?
A: That is the title of Miss Li's latest single.
Baldyr is offline   Reply With Quote
Reply

Bookmarks

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

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
Easy tip to add Unique Concept tchristensen Civ4 BTS - Official Mods & Scenarios 0 Jul 21, 2010 08:39 AM
tip for an easy good event King of Town Civ4 - General Discussions 7 Aug 23, 2007 06:53 AM
Easy Mod Help DNK Civ4 - Creation & Customization 4 Jun 18, 2007 12:07 PM
Tip: For those searching for an easy way to win = Fantasy maps Killroyan Civ4 - Strategy & Tips 0 Feb 05, 2007 04:00 AM
Should be an easy mod... terramars Civ4 - General Discussions 1 Nov 29, 2005 11:52 AM


Advertisement

All times are GMT -6. The time now is 10:08 PM.


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