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 Aug 04, 2010, 06:35 AM   #1
WartyX
Chieftain
 
Join Date: Aug 2010
Location: United Kingdom
Posts: 10
Era-Specific Flags

After trawling through the forums and attempting to use the awkward search function, I decided that the best way to get my answer would be to ask.

I want to get a Civilization's flag to change to a particular flag at the start of each new Era. Is this possible, and how would I do this?

Specifically I want to switch to the US Betsy Ross flag when the English colonies enter the Revolution Era in CIV4 Colonization (it appears to use pretty much the same system for typical era advances in BTS, so I assumed I may get a better response here).

Because it is the same system, I assumed I could also do Era flag changes for BTS English (Act of Union for the Industrial Era and all that).

Thanks in advance for any replies.
WartyX is offline   Reply With Quote
Old Aug 04, 2010, 07:24 AM   #2
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,882
Images: 51
Welcome to CFC .

I don't think it's doable in an easy way, would need some programming skills.
As far as i know, CommunityCivV has such a feature.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Aug 04, 2010, 10:07 AM   #3
tchristensen
Emperor
 
tchristensen's Avatar
 
Join Date: Jul 2010
Location: Grand Rapids, Mi
Posts: 1,185
I wonder if you could approach the situation from a different direction. Is it possible to evolve from one civilization to another? Not sure if it is, but if so you could replicate cultures at different time periods and evolve from one to the other, then receive a new flag, new UU, new UB, that sort of thing?

Washington --> Lincoln --> FDR --> Kennedy --> X
tchristensen is offline   Reply With Quote
Old Aug 04, 2010, 03:40 PM   #4
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,882
Images: 51
Needs only a few changes in the SDK (or tons in python) to achieve leader or civ cycling.

I think, the moongose mod and community civ5 have such features.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Aug 04, 2010, 04:12 PM   #5
mechaerik
General Guy
 
mechaerik's Avatar
 
Join Date: Oct 2008
Location: Los Angeles
Posts: 5,529
What exactly do the getTag and setTag functions do in python? I assumed it changed the artdefines tag, but after some testing, it doesnt seem to do that.
mechaerik is offline   Reply With Quote
Old Aug 04, 2010, 04:15 PM   #6
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,882
Images: 51
That works in general...temporary.
Saibotlieh and i myself have already tried that for buildings and units, that works temporary, but can have unexpected side effects.

I guess it could also be used here, but not sure, because with python you can't force the engine to a refresh, which would sometimes be needed.
Why, what have you done exactly?
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Aug 04, 2010, 04:27 PM   #7
mechaerik
General Guy
 
mechaerik's Avatar
 
Join Date: Oct 2008
Location: Los Angeles
Posts: 5,529
I was doing some more meddling with dynamic civ names.

Basically, I was trying to make the civ's short description and adjective change according to era (England becomes Britain, Rome becomes Italy, Khmer becomes Cambodia, and Persia becomes Iran). I managed to get that working and was thinking about getting the flag to change as well.
mechaerik is offline   Reply With Quote
Old Aug 04, 2010, 04:34 PM   #8
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,882
Images: 51
Then give it a try .

I guess there are 3 things to modify imho:
a) After onTechAcquired in the CvEventManager, you should have to apply what you've thought about, changing the artdefine tag of the civilizations. Would need tons of more entries in the artdefines, i guess.
b) That has also to be done after a reload
c) For the flag in the GUI, you probably have to modify somethign in CvMainInterface.py.

That's quite a bit of a task, because it needs 32 (how many civs are there?) * 6 eras tags at all, and either you have to assign everything by hand, or you have to develop a good system, like naming the new tags directly after the civs + era integer number, so that you can get them automatically.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Aug 04, 2010, 04:44 PM   #9
mechaerik
General Guy
 
mechaerik's Avatar
 
Join Date: Oct 2008
Location: Los Angeles
Posts: 5,529
Well, for A I was actually going to link it to this:
Spoiler:
PHP Code:
        if( playerEra ) :
            if( 
sEngland in orgAdj ) :
                
curShort =  localText.getText("TXT_KEY_DCN_MODERN_ENGLAND_SHRT", ())#Britain
                
curAdj =  localText.getText("TXT_KEY_DCN_MODERN_ENGLAND_ADJ", ())#British
            
elifsKhmer in orgAdj ) :
                
curShort =  localText.getText("TXT_KEY_DCN_MODERN_KHMER_SHRT", ())#Cambodia
                
curAdj =  localText.getText("TXT_KEY_DCN_MODERN_KHMER_ADJ", ())#Cambodian
            
elifsPersia in orgAdj ) :
                
curShort =  localText.getText("TXT_KEY_DCN_MODERN_PERSIA_SHRT", ())#Iran
                
curAdj =  localText.getText("TXT_KEY_DCN_MODERN_PERSIA_ADJ", ())#Iranian
            
elifsRome in orgAdj and not sHolyRome in orgAdj) :
                
curShort =  localText.getText("TXT_KEY_DCN_MODERN_ROME_SHRT", ())#Italy
                
curAdj =  localText.getText("TXT_KEY_DCN_MODERN_ROME_ADJ", ())#Italian
            
else :
                
curShort orgShort
                curAdj   
orgAdj
        
else :
            
curShort orgShort
            curAdj   
orgAdj 

Which is how I convert the ShortDesc and Adj to the modern names. I was planning on simply adding it into there.

B) I think it does, but not entirely sure.

C) Don't know how to do that or even how to begin.
mechaerik is offline   Reply With Quote
Old Aug 04, 2010, 05:03 PM   #10
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,882
Images: 51
a) that looks okay, but could probably be more automatised, if the TXT_KEYs were made for it.
e.g. TXT_KEY + CivilizationType + Era could work relativly good, but i guess it's more work to rename the keys than to do that.

b) mmhh...depends on where it is attached .

c) Me too, no idea, haven't tried something like that myself yet .
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Aug 04, 2010, 05:09 PM   #11
mechaerik
General Guy
 
mechaerik's Avatar
 
Join Date: Oct 2008
Location: Los Angeles
Posts: 5,529
Well, its attached to a function that is called whenever the player switches civics (apparently. It also appears to happen whenever a city is founded, but only sometimes. And its not called when the State Religion is changed ).
mechaerik is offline   Reply With Quote
Old Aug 04, 2010, 05:14 PM   #12
Thomas SG
CCV-designer
 
Thomas SG's Avatar
 
Join Date: Aug 2007
Location: Germany
Posts: 1,164
Quote:
Originally Posted by mechaerik View Post
I was doing some more meddling with dynamic civ names.

Basically, I was trying to make the civ's short description and adjective change according to era (England becomes Britain, Rome becomes Italy, Khmer becomes Cambodia, and Persia becomes Iran). I managed to get that working and was thinking about getting the flag to change as well.
A link for you to Dynamic Civ Names, Dynamic Civ Nation and Dynamic Civ Leader.

But to isolate it may be hard. But if you want to try. Okay. Or build your mod upon CCV. That may be easier...
__________________
Leading designer of the Community Civ V [CCV] project
**** 22.06.2011 **** NEW PATCH **** 22.06.2011 ****
Download =====> CCV 4.40 D <===== Download
Thomas SG is offline   Reply With Quote
Old Aug 04, 2010, 05:23 PM   #13
mechaerik
General Guy
 
mechaerik's Avatar
 
Join Date: Oct 2008
Location: Los Angeles
Posts: 5,529
I'll try and isolate the dynamic flag.


Shouldn't be too hard.
^famous last words.
mechaerik is offline   Reply With Quote
Old Aug 04, 2010, 05:55 PM   #14
Thomas SG
CCV-designer
 
Thomas SG's Avatar
 
Join Date: Aug 2007
Location: Germany
Posts: 1,164
Quote:
Originally Posted by mechaerik View Post
I'll try and isolate the dynamic flag.


Shouldn't be too hard.
^famous last words.
You have mail.
__________________
Leading designer of the Community Civ V [CCV] project
**** 22.06.2011 **** NEW PATCH **** 22.06.2011 ****
Download =====> CCV 4.40 D <===== Download
Thomas SG is offline   Reply With Quote
Old Aug 09, 2010, 08:53 PM   #15
TheLopez
Deity
 
TheLopez's Avatar
 
Join Date: Jan 2006
Location: Oregon
Posts: 2,525
Flags changing on era triggers? I think Aussie and I tried this years ago and weren't able to do it. I might give it another go at it once I get BtS...
__________________
Currently working on: Civ4 City Resource Stockpiling thread here
On Deck: Unit Crews

"With time and money anything is possible."

Mod Component Library Threads: Civ 4 | Civ 5

1st Modder in training: Then | Now || 2nd Modder in training: Now
TheLopez is offline   Reply With Quote
Old Aug 20, 2010, 04:10 PM   #16
TheLopez
Deity
 
TheLopez's Avatar
 
Join Date: Jan 2006
Location: Oregon
Posts: 2,525
Here is a WIP that I did a while back... it might help:
http://forums.civfanatics.com/downlo...o=file&id=2145
__________________
Currently working on: Civ4 City Resource Stockpiling thread here
On Deck: Unit Crews

"With time and money anything is possible."

Mod Component Library Threads: Civ 4 | Civ 5

1st Modder in training: Then | Now || 2nd Modder in training: Now
TheLopez is offline   Reply With Quote
Old Aug 21, 2010, 10:28 AM   #17
The Capo
godless Heathen
 
The Capo's Avatar
 
Join Date: Jan 2001
Location: Washington, DC
Posts: 8,957
Quote:
Originally Posted by Thomas SG View Post
You have mail.
Thomas, please PM me when you get a chance man.
__________________
Religion flies men into buildings, science flies men to the moon...

Check out my stuff!!!
UNITS | LEADERHEADS | DIPLOMACY II
The Capo is offline   Reply With Quote
Old Mar 19, 2013, 12:50 PM   #18
JoeyB98
Warlord
 
JoeyB98's Avatar
 
Join Date: Sep 2009
Location: Earth
Posts: 225
Sorry to necromance, but did anyone ever find a solution for this?
__________________
Stories: Aftermath (On When Sea Levels Attack)
Civ IV Maps:Earth Full of Resources When Sea Levels Attack Mark 2 Polynesia Large Earth 1500 AD
Colonization 2 Maps: Worldwide Colonization
I now mod CIV IV and Colonization! If you need me, send a PM!
JoeyB98 is offline   Reply With Quote
Reply

Bookmarks

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

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
Idea- Leader Specific Flags jlc102127 Civ4 - Creation & Customization 1 Apr 19, 2009 05:00 PM
Nation specific flags deanver Civ4 - Creation & Customization 3 Feb 17, 2006 04:10 PM
Nation specific flags deanver Civ4 - General Discussions 0 Feb 15, 2006 06:07 PM
Era-related stills/images of leaderheads/flags in replacement of animations tikwew Civ - Ideas & Suggestions 0 Feb 03, 2006 10:44 AM
El-Dorado City Graphics(Single Era and Era Specific included) Sword_Of_Geddon Civ3 - Graphics Modpacks 8 May 17, 2005 06:51 AM


Advertisement

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