Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  CtP2-Creation/AI
  MOD IDEA: Immigration......

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   MOD IDEA: Immigration...... Format for Better Printing
Dale
Prince
Melbourne, Australia
Dec 2000
posted February 01, 2001 18:59   Click Here to See the Profile for DaleClick Here to Email Dale  send a private message to Dale Visit Dale's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I know a few folks have said some things about immigration. I agree with them. Immigration should be a thing in civ-type games. Therefore, my next big project is going to be to implment immigration into CTP2. Now I'm looking for ideas on how this should be implemented. I've come up with a few things, but maybe others can find more.

- Immigration depends on city happiness. If city[a] is happier than city[b] then we should see some immigration from b to a.
- When immigration occurs it spawns a settler (either as an independant civ or barb maybe) and moves to a happier city and adds it pop point to it. This can be either a city in its home civ or another civ's city.
- If an immigrant can't find a happier city close enough it trundles off to an unexplored area and creates a new city and civ. They can inherit the technologies that its home civ has. Or it could even pronounce allegiance to an existing civ.
- Immigration could also encompass refugees as well. If a civ takes over a city, then there's a chance a refugee settler is created which then heads towards another city of it's home civ.

This could get big folks, but what do you think could go into a project like this?

Dale - Thinking big is just the beggining.

------------------
Author of Diplomod. The mod to fix diplomacy.

Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

JSnider
Settler
Boiling Springs, PA
Dec 2000
posted February 01, 2001 20:18   Click Here to See the Profile for JSniderClick Here to Email JSnider  send a private message to JSnider
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Two points maybe ...

represive gov types lead to higher immigration, facto in to unhappiness and refugees .. also could factor in war, some people just don't wanna fight (or so i've heard).. coupled with 'unhappy' folks this then makes sense to me as don't view unhappiness as a prime reason to move over the horizon.

Economics (which drives some unhappiness) was always a big reason to pull up stakes and move on to greener pastures, just not sure how could implement this into the game unless factor in economic state .. and given that the AI doesn't seem to be all that great at building the infrastructure here ... not sure how would factor.

just ramblin'

jsnider

David Murray
Warlord

Dec 2000
posted February 01, 2001 21:27   Click Here to See the Profile for David MurrayClick Here to Email David Murray  send a private message to David MurraySend a Message to UIN: 35528855
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Excellent idea!

Immigrants don't usually form new cities, they join existing ones. While a small number cause overcrowding and use benefits, the overwhelming majority of immigrants pay their taxes and add skilled labor to the labor pool (real life fact). So perhaps immigrants/refugees should add additional workers to random cities.

However, it's not just that simple to desert your country...tyrannical regimes will keep a strangehold of their population...although a fair few escape from Communist Cuba.

I think it's a good idea to lose citizens because of unhappiness/pollution, i.e. against your own will. How about having the option to voluntarily drive citizens out as well? Like ethnic cleansing, as an alternative way to deal with pollution....

Just my thoughts
[This message has been edited by David Murray (edited February 01, 2001).]

Alpha Wolf
Settler
Prince of the Barbarians
Feb 2001
posted February 02, 2001 00:16   Click Here to See the Profile for Alpha WolfClick Here to Email Alpha Wolf  send a private message to Alpha Wolf Visit Alpha Wolf's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
dont forget to factor in the capital factor. people seem to like to live in capitals or we just have too many politicians, or both

------------------
History is written by the victor.

heardie
GGS Co-Webmaster

Aug 1999
posted February 02, 2001 03:22   Click Here to See the Profile for heardieClick Here to Email heardie  send a private message to heardieSend a Message to UIN: 55652350 Visit heardie's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
quote:


represive gov types lead to higher immigration, facto in to unhappiness and refugees .. also could factor in war, some people just don't wanna


Im fairly sure you cant read in what gov type is used.

But sounds like another great idea Dale. Also search CTP_Creation as I think i read something about that there.

Alpha Wolf
Settler
Prince of the Barbarians
Feb 2001
posted February 02, 2001 04:53   Click Here to See the Profile for Alpha WolfClick Here to Email Alpha Wolf  send a private message to Alpha Wolf Visit Alpha Wolf's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
according to the SLIC doc, player.govttype. I sure hope thats a valid option because this weekend I was going to start working on changes so that certain criteria had to be met to progress to a new gov type. Say in order to be a theocracy, you had to have researched religion, half your cities must have shrines (or hagia sophia) and a certain happiness level, probably 75 since the AI always seems to be at least 75. each gov type will have criteria unique to it and based on the strategy being played by the AI, only certain buildings will be built and new buildings will that have the same effect for different government paths, ie religious strategy would build buildings necessary to lead it towards theocracy, whereas a militarist strategy would build buildings aimed at getting it to monarchy then fascism and technocracy. Another example is that for fascism, you'd need industrial rev, an unhappy population (<75) and a strong military (say # units > 12 * # cities). i always thought it wacky that the population had no say in any empire decisions. This way if you keep the people unhappy, or too warlike, they might revolt within the civ and force changes. You can always change it back but if you havent changed the underlying reason for the gov change, they'll just rebell again. means your empire could be under anarchy for a long time, unless you make changes.

If anyone has ideas on government progressions, i'd love to see them. Besides the shipped governments, I've already added city alliance and socialism.

------------------
History is written by the victor.

Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted February 02, 2001 06:00   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Heardie is probably right. govttype is a string and there's no way to compare strings with eachother, you can only use them in messageboxes.
Alpha Wolf
Settler
Prince of the Barbarians
Feb 2001
posted February 02, 2001 13:51   Click Here to See the Profile for Alpha WolfClick Here to Email Alpha Wolf  send a private message to Alpha Wolf Visit Alpha Wolf's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
quote:

Originally posted by Locutus on 02-02-2001 06:00 AM
Heardie is probably right. govttype is a string and there's no way to compare strings with eachother, you can only use them in messageboxes.

thats a MAJOR bummer.

------------------
History is written by the victor.

Dale
Prince
Melbourne, Australia
Dec 2000
posted February 04, 2001 17:22   Click Here to See the Profile for DaleClick Here to Email Dale  send a private message to Dale Visit Dale's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Locutus and others:
I've had player.govttype working with a check against GovernmentDB in the diplomacy mod. So it does work guys. That'd be the easiest way to check.

code:

tmpgovt = GovernmentDB(GOVERNMENT_FASCISM);
if(player[0].govttype == tmpgovt) {
//code if govt is fascism
}

I'll begin the coding tonight. I didn't have a chance to start on the weekend. To start with, I'll just get settlers immigrating between cities of their own civ. Factors I'll take note of will be:
- happiness
- pollution
- economy
- captial closeness

That's enough to start with.

------------------
Author of Diplomod. The mod to fix diplomacy.

Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

Radical_Manuvr
Chieftain
Maryland, USA
Dec 2000
posted February 05, 2001 10:52   Click Here to See the Profile for Radical_Manuvr   send a private message to Radical_Manuvr
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Thanks Dale! I've been waiting for what seems like a month for a reply to my thread about how to check gov. type. I thought I had found something that might lead to the answer in info_str.txt the other day but hadn't had time to look into it yet. Now if I could just remember what I needed it for...
Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted February 05, 2001 15:15   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Dale, that is some really weird but good news The GovernmentDB function should not return anything other than the number of the government in govern.txt and govttype is a string so in theory that can't possibly work (I'm glad it does though ). So either the Activision documentation is incorrect or the DB-functions work in ways I never expected. Probably both...
Dale
Prince
Melbourne, Australia
Dec 2000
posted February 05, 2001 18:10   Click Here to See the Profile for DaleClick Here to Email Dale  send a private message to Dale Visit Dale's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Locutus:
The way I found out was pure trial 'n error. I wanted to find out what strategy the AI was employing, so I used the above with StrategyDB. It worked. I thought "Cool, but isn't that different to Loco's doco's?" A funny pun but what I call your doco.

So I tested it with GovernmentDB and it seemed to work too. Wierd, I know. But no-one ever accused me of being sane.

------------------
Author of Diplomod. The mod to fix diplomacy.

Rommell to a sub-commander outside Tobruk: "Those Australians are in there somewhere. But where? Let's advance and wait till they shoot, then shoot back."

ALPHA_WOLF
Prince
Melbourne, Australia
Dec 2000
posted February 06, 2001 04:14   Click Here to See the Profile for ALPHA_WOLFClick Here to Email ALPHA_WOLF  send a private message to Dale Visit ALPHA_WOLF's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I thought SLIC doc said that we could access any DB field. Its just a matter of knowing what to reference. I've been looking for a way to start gov city limits at low levels then increase them upon certain advances like printing press, telegraph, telephone, mass media and tv. maybe I can get lucky and stubble upon something like this

------------------
History is written by the victor.

ALPHA_WOLF
Prince
Melbourne, Australia
Dec 2000
posted February 06, 2001 04:22   Click Here to See the Profile for ALPHA_WOLFClick Here to Email ALPHA_WOLF  send a private message to Dale Visit ALPHA_WOLF's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
quote:

Originally posted by Dale on 02-04-2001 05:22 PM

I'll begin the coding tonight. I didn't have a chance to start on the weekend. To start with, I'll just get settlers immigrating between cities of their own civ. Factors I'll take note of will be:
- happiness
- pollution
- economy
- captial closeness

That's enough to start with.


Too bad theres not an easy way to track how often a specific city has been attacked. Alot of people would leave frequently attacked cities. How are you going to use capital closeness? Seems like people would immigrate towards the capital but also far away where theoretically the land would be cheaper (new world settling). Or even go towards towns with goods vs ones without (california gold rush).

------------------
History is written by the victor.

Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted February 06, 2001 15:21   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
AW,
Yeah, accessing DB fields is possible but that's not quite the same as comparing integers to strings (that's what I call a small wonder, a Feat of Wonder to be precise ).

You can read fields from the database but you can't change them AFAIK (that would truly be a miracle). So changing city limits based on technology can't be done by simply saying GovernmentDB(GOVERNMENT_COMMUNISM).TooManyCitiesThreshold = 100 or whatever. If it's possible at all it's by making a duplicates of all governments with only city limits different and somehow using SetGovernment or something to change a civ's government. The problem is that this has to happen through messages and it probably forces you to go through a couple of turns of Anarchy first.

Actually, using two arrays (one that contains all cities and one that contains the number of attacks on that city) you *can* keep track of how often specific cities are attacked. It would probably take up a fair amount of resources though, esp. towards the end of the game. But I think it might be worth a try, if it's too demanding you can always take it out again...

Apolyton Civilization Site Forums
> > > CtP2-Creation/AI Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

AltaVista Type or paste text or Web address (beginning with http://) here:
Powered
by Systran
Translate from: 

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site