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 Mar 24, 2010, 12:20 PM   #1
tuxu
We are BTS!!!!
 
tuxu's Avatar
 
Join Date: May 2008
Location: DE_dust2
Posts: 60
Civ4 BTS Question about how Cities are created.

Hi there.

I was playing some BTS and wanted to know something.

I was going over all of the XML files today in an effort to understand how does a city being created when I use a settler and press B.

I thought it might work like a worker who's building an improvements, so I'd hope to find any clue in CIV4BuildInfos.xml, but to no avail...

What is the order of events that are taking place when I press B?
What's get activated?
In which files I should check?

Thank you in advance.

-Tuxu.
tuxu is offline   Reply With Quote
Old Mar 25, 2010, 09:04 AM   #2
ori
Repair Guy

 
ori's Avatar
 
Join Date: Dec 2005
Location: Baden-Württemberg, Germany
Posts: 13,175
Moderator Action: moved to Civ4 C&C

I have a suspicion that this is not something you'll find in the xml files - maybe in the SDK files, don't know where though.
ori is offline   Reply With Quote
Old Mar 25, 2010, 09:12 AM   #3
Afforess
The White Wizard
 
Afforess's Avatar
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 10,652
Images: 8
In the SDK, the CvCity:init() function.
__________________
"A Witty Saying Proves Nothing"
-Voltaire

Civilization 4 Mods: Rise of Mankind - A New Dawn 1.75
Civilization 5 Mods: Active City Defense, Tech Diffusion
Minecraft Mods: Spout & Spoutcraft Lead Developer
Afforess is offline   Reply With Quote
Old Mar 25, 2010, 07:09 PM   #4
tuxu
We are BTS!!!!
 
tuxu's Avatar
 
Join Date: May 2008
Location: DE_dust2
Posts: 60
Civ4 BTS

Quote:
Originally Posted by Afforess View Post
In the SDK, the CvCity:init() function.
Quote:
Originally Posted by ori View Post
Moderator Action: moved to Civ4 C&C

I have a suspicion that this is not something you'll find in the xml files - maybe in the SDK files, don't know where though.
Ah. I see.
Pardon my ignorance but what is this SDK you speak of?
Is it the python infra? is it a whole different program? I would like to know.

Maybe if I'll explain what i want to do then you guys could help me more; I wish to create a unit which can spawn other units, like in ffh2, but not with an elaborate infra and functions, just click a button and spawn a unit. I thought that I must check how does a city spawn units but maybe I don't.

I guess you people know better then me.

thanks for moving the post into where it belongs, i was not aware that theres a specific thread for that - I was only aware of the modding section(and I'm not modding anything yet so I didn't use it).

btw - happy holyday to whom it may concern
tuxu is offline   Reply With Quote
Old Mar 25, 2010, 07:15 PM   #5
Afforess
The White Wizard
 
Afforess's Avatar
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 10,652
Images: 8
The SDK is the "Software Development Kit" used to create and run the Civ4 Game Engine. It's in C++, and installed with every copy of the game, you can find it in the Beyond The Sword/CvGameCore folder.

However, you don't need to use the SDK to create buttons that have actions. There is a tutorial in the tutorial forum on "Creating Python Action Buttons", which could, theoretically, do exactly what you describe.
__________________
"A Witty Saying Proves Nothing"
-Voltaire

Civilization 4 Mods: Rise of Mankind - A New Dawn 1.75
Civilization 5 Mods: Active City Defense, Tech Diffusion
Minecraft Mods: Spout & Spoutcraft Lead Developer
Afforess is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Question about how Cities are created.

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
A question I've always had about cities... CivGuy61 Civ4 - Strategy & Tips 4 Nov 07, 2006 03:12 PM
Question regarding Units created by wonders CapnKill Civ3 - Strategy & Tips 14 May 25, 2005 05:59 PM
A question about cities Feyd Civ2 - Scenario Creation 9 Mar 08, 2004 02:08 PM
A question about Cities andytfb Civ3 - General Discussions 2 Jan 30, 2002 08:54 AM
QUESTION: user created civs... redsoxrule85 Civ3 - General Discussions 6 Oct 06, 2001 04:42 PM


Advertisement

All times are GMT -6. The time now is 12:57 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