Question: Migration

Various topics about the game, the website, or anything else Freeciv related that doesn't fit elsewhere.
Post Reply
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Question: Migration

Post by Corbeau »

Hello. Two things need clarification.
Explanation for maximum migration distance is:

"This setting controls how far citizens may look for a suitable migration destination. The value is added to the current city radius..."

1. This implies that the "current city radius" refers to the city population is migrating from, but that doesn't make much sense. So, which city is referred to as "current" when citizens are considering migration, the source city or the destination city?

2. A bit more simple question: is this city radius or city radius square? In every other instance it's square, is this an exception?
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Question: Migration

Post by Ignatus »

See check_city_migrations_player in server/cityturn.c. Yes, it's the square root of the squared radius of the target city that is added to game.server.mgr_distance and then compared to the real map distance between cities. This is hardly calculated in the most effective way but it's currently so. It was a discovery for me that the original city radius does not have effect; it should probably be clarified in help texts.

P.S. Happy New Year!
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Question: Migration

Post by Corbeau »

Thanks! So it makes perfect sense, while the help is somewhat ambiguous. Better than the other way round!

Thanks and a Happy New Year to you and everybody else ;)
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Post Reply