Modmodding Q&A Thread

Here's what I've added exactly as it appears in barbs.py:

Spoiler :
Code:
# Spawning cities (Leoreth)
# Year, coordinates, owner, name, population, unit type, unit number, religions, forced spawn
tMinorCities = (
(-3000, (73, 38), iIndependent, 'Yerushalayim', 2, con.iArcher, 3),	# Jerusalem
(-3000, (79, 40), iIndependent2, 'Shushan', 1, con.iArcher, 1), 	# Susa
(-2000, (85, 47), iIndependent, 'Afrosiyab', 1, con.iArcher, 1), 	# Samarkand
(-2000, (92, 39), iIndependent, 'Varanasi', 1, con.iWarrior, 1), 	# Varanasi
(-2000, (90, 40), iIndependent, 'Indraprastha', 1, con.iWarrior, 1),	# Delhi
(-1000, (102, 47), iIndependent, 'Zhongdu', 2, con.iSpearman, 1),	# Beijing
(-1000, (72, 44), iIndependent, 'Ankuwash', 2, con.iArcher, 2),		# Ankara
(-760, (59, 47), iCeltia, 'Melpum', 2, con.iArcher, 2),			# Milan
(-350, (56, 47), iCeltia, 'Lugodunon', 2, -1, -1),			# Lyon
(-325, (92, 33), iIndependent, 'Kanchipuram', 2, con.iArcher, 1),	# Madras
(-300, (105, 49), iBarbarian, 'Simiyan hoton', 2, con.iChariot, 2),	# Shenyang
(-300, (53, 48), iCeltia, 'Burdigala', 2, -1, -1),			# Bordeaux
(-300, (91, 31), iIndependent, 'Tanjapuri', 1, con.iWarElephant, 1),	# Thanjavur
(-190, (77, 44), iIndependent2, 'Artashat', 1, -1, -1),			# Artaxata
(-100, (95, 47), iBarbarian, 'Dunhuang', 2, con.iArcher, 1),		# Dunhuang
(-100, (19, 35), iNative, 'Danni Báa', 2, con.iMayaHolkan, 2),	# Monte Albán
(-75, (89, 46), iBarbarian, 'Kashgar', 2, con.iArcher, 1),		# Kashgar
(-50, (55, 50), iCeltia, 'Lutetia', 2, -1, -1),				# Paris
(100, (76, 30), iIndependent, "Sana'a", 2, -1, -1),			# Sana'a
(107, (98, 36), iIndependent2, 'Pagan', 2, -1, -1),			# Pagan
(633, (96, 43), iBarbarian, 'Rasa', 2, con.iTibetanKhampa, 1),		# Lhasa
(680, (51, 37), iIndependent, 'Marrakus', 1, con.iCrossbowman, 1),	# Marrakesh
(700, (30, 20), iNative, 'Tiwanaku', 1, -1, -1),			# Tihuanaco
(600, (59, 54), iIndependent, 'Hamburg', 2, con.iCrossbowman, 2),	# Hamburg
(866, (101, 37), iBarbarian, 'Hanoi', 2, -1, -1),			# Hanoi
(880, (65, 48), iIndependent2, 'Buda', 3, con.iHorseArcher, 5),		# Budapest
(900, (24, 26), iNative, 'Tucume', 1, con.iArcher, 2),			# Tucume
(900, (25, 23), iNative, 'Chan Chan', 2, con.iArcher, 2),		# Chan Chan
(800, (69, 52), iIndependent, 'Kyiv', 2, con.iLongbowman, 2),		# Kiev
(600, (49, 56), iCeltia, 'Áth Cliath', 1, -1, -1),			# Dublin
(600, (61, 63), iIndependent2, 'Nidaros', 1, con.iVikingBerserker, 1),	# Trondheim
(1000, (71, 17), iNative, 'Quelimane', 1, con.iZuluImpi, 1),		# Quelimane
(1100, (71, 20), iNative, 'Mombasa', 1, con.iZuluImpi, 1),		# Mombasa
(1000, (77, 55), iBarbarian, 'Qazan', 2, con.iHorseArcher, 1),		# Kazan
(1483, (62, 20), iNative, 'Mbanza Kongo', 1, con.iCongoPombos, 1),	# Mbanza Kongo
(700, (49, 45), iIndependent2, 'Santiago', 1, con.iCrossbowman, 1),
(800, (50, 53), iIndependent2, 'Plymouth', 1, con.iLongbowman, 1),
(600, (51, 50), iIndependent, 'Brest', 1, con.iCrossbowman, 1),
(800, (52, 56), iIndependent, 'Manchester', 1, con.iLongbowman, 1),
(800, (52, 59), iIndependent2, 'Edinburgh', 1, con.iPikeman, 3),
(700, (53, 46), iIndependent, 'Navarre', 1, con.iCrossbowman, 1),
(600, (54, 39), iIndependent2, 'Oran', 1, con.iCrossbowman, 1),
(700, (54, 42), iIndependent, 'Valencia', 1, con.iCrossbowman, 1),
(680, (55, 48), iIndependent2, 'Lyon', 1, con.iLongbowman, 1),
(700, (57, 50), iIndependent, 'Metz', 1, con.iLongbowman, 1),
(600, (58, 39), iIndependent, 'Tunis', 1, con.iCrossbowman, 1),
(600, (58, 42), iIndependent2, 'Cagliari', 1, con.iCrossbowman, 1),
(600, (58, 46), iIndependent2, 'Genoa', 1, con.iLongbowman, 2),
(600, (58, 61), iIndependent2, 'Bergen', 1, con.iLongbowman, 1),
(600, (60, 40), iIndependent, 'Palermo', 1, con.iArcher, 1),
(800, (60, 49), iIndependent2, 'Munich', 1, con.iCrossbowman, 1),
(800, (62, 51), iIndependent, 'Prague', 1, con.iCrossbowman, 1),
(800, (62, 53), iIndependent2, 'Berlin', 1, con.iCrossbowman, 2),
(800, (63, 47), iIndependent, 'Zagreb', 1, con.iLongbowman, 1),
(800, (64, 54), iIndependent2, 'Danzig', 1, con.iCrossbowman, 1),
(1100, (65, 43), iIndependent2, 'Durazzo', 1, con.iLongbowman, 2),
(900, (65, 56), iIndependent2, 'Riga', 1, con.iLongbowman, 3),
(600, (65, 65), iIndependent2, 'Harstad', 1, con.iSpearman, 1),
(1000, (66, 54), iIndependent, 'Vilnius', 1, con.iCrossbowman, 1),
(600, (66, 59), iIndependent, 'Helsinki', 1, con.iSwordsman, 1),
(1100, (67, 47), iIndependent, 'Tomis', 1, con.iLongbowman, 1),
(900, (68, 49), iIndependent2, 'Odessa', 1, con.iLongbowman, 1),
(840, (68, 55), iIndependent2, 'Novgorod', 1, con.iLongbowman, 2),
(800, (69, 64), iIndependent, 'Murmansk', 1, con.iSpearman, 1),
(800, (72, 60), iIndependent2, 'Archangelsk', 1, con.iSpearman, 1),
(600, (73, 35), iIndependent, 'Medinah', 1, con.iArcher, 1),
(800, (74, 50), iIndependent2, 'Rostov', 1, con.iSpearman, 1),
(800, (74, 57), iIndependent2, 'Vologda', 1, con.iCrossbowman, 1),
(800, (77, 50), iIndependent, 'Astrakhan', 1, con.iHorseArcher, 2),
(1400, (84, 57), iBarbarian, 'Tyumen', 1, con.iHorseArcher, 1),
(1500, (89, 59), iBarbarian, 'Nizhnevartovsk', 1, con.iHorseArcher, 1),
(1200, (85, 37), iIndependent, 'Karachi', 1, con.iLongbowman, 2),
(1200, (90, 34), iIndependent2, 'Vijayanagar', 1, con.iLongbowman, 2),
(1500, (90, 55), iBarbarian, 'Novosibirsk', 1, con.iHorseArcher, 1),
(1200, (91, 31), iIndependent2, 'Chennai', 1, con.iLongbowman, 2),
(1200, (91, 36), iIndependent, 'Hyderabad', 1, con.iLongbowman, 2),
(1500, (94, 56), iBarbarian, 'Krasnoyarsk', 1, con.iHorseArcher, 1),
(1200, (101, 29), iIndependent, 'Malacca', 1, con.iArcher, 2),
)
 
merijn_v1 said:
Is there still any space left in Europe?

Not really, lol. It's part of my overall plan to kill megacities and make it harder for civilizations to expand in europe.
 
Do you have enabled Python exceptions? Maybe it's just a typo somewhere.
 
Since some SVN ago in v1.12 development, my CNM method linkining cnm to OnBeginGameTurn in CvRFCEventManager or smth you taught me somehow no longer work and cause Phytex so I delete that method and thing works again. Is there any other way that could work now?
 
Do you have enabled Python exceptions? Maybe it's just a typo somewhere.

Yes, I'm not receiving any error messages though.

What's also strange is that Kiev is still spawning on its original date, even though I changed it to 800 AD. :sad:
 
Since some SVN ago in v1.12 development, my CNM method linkining cnm to OnBeginGameTurn in CvRFCEventManager or smth you taught me somehow no longer work and cause Phytex so I delete that method and thing works again. Is there any other way that could work now?
I don't know what you mean.

Yes, I'm not receiving any error messages though.

What's also strange is that Kiev is still spawning on its original date, even though I changed it to 800 AD. :sad:
That hints at a larger problem. Are you sure you are editing the right file?
 
Then I don't know.
 
... basically the entirety of the Companies.py file. But yes, the final score + a randomized element is the only deciding factor.
 
Is there any way I can stop TortoiseMerge to merge the files? I modified and deleted some lines in CNM and as I update the SVN, TortoiseMerge automatically merge the DoC file into the CNM file so I have double line almost everywhere in the file :sad:
 
1. Right-click.
2. Update to revision...
3. Choose items...
4. Deselect the item you don't want to update.
5. Update.

I don't know if you can set this as a default setting or you have to do it manually each time. (You can wait until the next update and check if the file is still deselected.)
 
Thanks. However, wouldn't that make my CNM not updated if it is actually being updated? I'm looking for a method where I can manually merge the files myself
 
First, Donwload WinMerge,
Back up your file, get new file and compare them with WinMerge.

This seems like the most practical solution.
 
so in the other words, I have to keep 2 copy of citynamemanager.py, one that I modified and one that is automatically added in SVN?
 
What int borders in CvRhyes.cpp exactly do? I'm making Boer civ now, and I'm confused about whether I need to make English and Dutch closed with Boer or not.
 
Top Bottom