city names

PhoenicianSun

Chieftain
Joined
Jan 28, 2007
Messages
11
Hey!
I was wondering whether anyone had drawn a map of some sort that detailed what cities were in which tiles and what their name changes to when founded/taken over by different nationalities. If not, would that possibly feasible? Only because I'm strange and like to found my cities in historically important places and such. :)
 
Not that I'm aware of. It is feasible, the information is in a 2D array so it can be relatively easily translated into something more manageable like a map. But, I can't see how it would be very useful...
 
You're quite right. Hmm. How would you access the information on which the tile city names are stored?
 
If you open that file in Notepad you'll see at line 62 there's the first of a load of very big grids of "-1". Each "-1" refers to a tile (with no name), scroll around a bit and you'll find some of the "-1"'s have been changed to cities.
 
Personally, I think Rhye should change those tupiles to dictionaries with the coordinates as the keys. It would decrease the size of the arrays considerably and would probably reduce the lag when you settle/aquire a city. And it would really help make it more readable for those who are trying to edit it. :D
 
I'm not sure what you mean but a while ago I collected all city names (from the Warlords version), put them in excel and made this map. I couldn't upload the excel file here, but if you're interested I can try to find out.
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    391.1 KB · Views: 240
Personally, I think Rhye should change those tupiles to dictionaries with the coordinates as the keys. It would decrease the size of the arrays considerably and would probably reduce the lag when you settle/aquire a city. And it would really help make it more readable for those who are trying to edit it. :D

and on city founded, what would happen? Scrolling the whole dictionary until the coordinates are found I guess.
So, much slower, except for the fact that less RAM is used.
 
I'm not sure what you mean but a while ago I collected all city names (from the Warlords version), put them in excel and made this map. I couldn't upload the excel file here, but if you're interested I can try to find out.
Could you Zip it and upload it? I never uploaded anything here, so I don't know what is allowed, though. It would be quite handy when reading strategies posted here.
 
and on city founded, what would happen? Scrolling the whole dictionary until the coordinates are found I guess.
So, much slower, except for the fact that less RAM is used.
No, you don't include values for squares where no cities exist. So there would be no "-1"s. So it would be fast and memory-efficient at the same time.

Here's what I mean. This would be Egypt's:
Code:
{
	26: {73 : 'Kadesh', 74 : 'Kadesh'},
	27: {73 : 'Sittim', 74 : 'Sittim'},
	28: {73 : 'Akka', 74 : 'Akka'},
	29: {73 : 'Aarru-Hetep', 74 : 'Aarru-Hetep'},
	30: {68 : 'Paraitonion', 69 : 'Paraitonion', 70 : 'Xou', 76 : 'Serabit', 77 : 'Serabit', 78 : 'Etsion-Gaber'},
	31: {67 : 'Paraitonion', 68 : 'Paraitonion', 69 : 'Paraitonion', 70 : 'Xou', 71 : 'Per-Wadjet', 72 : 'Per-Wadjet', 73 : 'Pi-Ramesses', 74 : 'Djanet', 75 : 'Sena', 77 : 'Serabit', 78 : 'Etsion-Gaber'},
	32: {69 : 'Siwa', 70 : 'Siwa', 71 : 'Siwa', 72 : 'Ineb-Hedj', 73 : 'Ineb-Hedj', 74 : 'Djanet', 77 : 'Serabit', 78 : 'Etsion-Gaber'},
	33: {69 : 'Siwa', 70 : 'Siwa', 71 : 'Dashur', 72 : 'Niwt-rst', 73 : 'Niwt-rst', 74 : 'Per-Atum', 75 : 'Per-Atum'},
	34: {69 : 'Mut', 70 : 'Mut', 71 : 'Abu-Simbel', 72 : 'Niwt-rst', 73 : 'Niwt-rst', 74 : 'Niwt-rst'},
	35: {69 : 'Mut', 70 : 'Mut', 71 : 'Abu-Simbel', 72 : 'Niwt-rst', 73 : 'Niwt-rst', 74 : 'Niwt-rst'},
	36: {69 : 'Mut', 70 : 'Selima', 71 : 'Mut', 72 : 'Yebu', 73 : 'Yebu', 74 : 'Yebu'},
	37: {69 : 'Selima', 70 : 'Selima', 71 : 'Selima', 72 : 'Kumma', 73 : 'Buhen', 74 : 'Men'},
	38: {72 : 'Kumma', 73 : 'Buhen', 74 : 'Men'},
	39: {72 : 'Kerma', 73 : 'Kerma', 74 : 'Gebel Barkal'},
	40: {73 : 'Gebel Barkal', 74 : 'Gebel Barkal'}
}
So it would be accessed the same (tCityMap[x][y]), but it would be a lot less memory intensive (and theoretically faster).
 
I don't see the point of this... sure, it will make the code cleaner but I don't think it will improve the speed noticeably and it is a lot of work.
 
I see; but as I've got the names stored in a matrix form myself, how do I convert it to dictionary without keeping in memory the old matrixes?
I have the file done, I can PM it to you if you want (although I haven't tested it in-game, but I see no reason for it not to work).

I don't see the point of this... sure, it will make the code cleaner but I don't think it will improve the speed noticeably and it is a lot of work.
Not really, I wrote a small PHP script to quickly re-format it and it took me under an hour. And it will make it faster, I just don't know if the speed difference would be noticeable (probably not :(). But hey, if it means less RAM then why not? ;D
 
Okay, maybe it isn't a lot of work then.

I'm just bitter because this kind of obsoletes this tool I wrote just last week for working with the city arrays for RFC Europe. :(
 
Úmarth;6397439 said:
Okay, maybe it isn't a lot of work then.

I'm just bitter because this kind of obsoletes this tool I wrote just last week for working with the city arrays for RFC Europe. :(
Oh, sorry. :( The main reason I wanted to change it is so that modders could easily update it without having to use those kinds of tools. I didn't think anyone actually made one.

You could still re-write it so it works with my format. :D That is, if Rhye decides to use it.
 
Back
Top Bottom