Simple Python Things

Congratulations on another interesting little modcomp (that I'd sadly probably never figure out how to use), as well as the add-on to the SpawnCiv!

Come to think of it, I remember I wanted to request something else for the SpawnCiv to make your life harder... :p But I can't think of it, so, yeah.
 
I'm definitely using this. I had been planning a "Partisan" unit that could only be accessed by upgrading workers, but I would have had to do a very clunky trick or else you'd lose the ability to get workers (because the partisans can upgrade back into workers).
 
ahh sweet the_j!

can you make an opposite mod comp? that allows you to make units to be obsoleted by techs? like buildings? - it was made for vabilla civ4 long time ago.

Thanks :).

Units going obsolete....mmhh...can be done i think, but i'm not sure, if the AI will understand it.
This has also been discussed in the SDK subforum, and Xienwolf has mentioned some other things, which could additionally lead to problems. I have to check it out again, i'll have to see.

I'm definitely using this. I had been planning a "Partisan" unit that could only be accessed by upgrading workers, but I would have had to do a very clunky trick or else you'd lose the ability to get workers (because the partisans can upgrade back into workers).

An upgrading circle in the UnitInfos.xml will lead to a crash :(. I had that by acciddent at the beginning of my mod, and it took my 3 hours to find out, what has happend there.
I don't know (and don't expect), if that modcomp can prevent that, but i hope it.
 
I would assume it has something to do with the fact that it would just let you upgrade a Worker to a Worker.

I tried it, and it didn't seem to cause a crash, but that was a while ago (one of the first things added, then shortly removed, because it was a very clunky way to do things, what with making unusable techs and units).
 
hey the j,

got an offer for a neat modcomp:

well i thought of a nice mod that can place roads upon construction of a specified building -
how about - you can build a wonder/national building, that once built - it connects the closest cities with roads so youll have a road connection - it wont place roads all over the surrounding tiles of the city where it built, but it will connect road in a straight line to neighboring city. maybe this can be unique to a small number of civs.

how about this?
 
If u take requests The_J i have one. I dont like to ask because it turns into work for you then rather than a hobby or fun, but it could be pretty damn cool.

I read in the another thread in this section about unique names for great people, and then unique names for Modern Naval ships. At any time a civilization never has more than a handfull of ships anyway. It would add more of a unique touch having all your naval forces named.


Spoiler list of ship names :

America

USS Maine
USS Texas
USS Indiana
USS Massachusetts
USS Oregon
USS Iowa
USS Kearsarge
USS Kentucky
USS Illinois
USS Alabama
USS Wisconsin
USS Missouri
USS Ohio
USS Virginia
USS Nebraska
USS Georgia
USS New Jersey
USS Rhode Island
USS Connecticut
USS Louisiana
USS Vermont
USS Kansas
USS Minnesota
USS Mississippi
USS Idaho
USS New Hampshire
USS South Carolina
USS Delaware
USS Michigan
USS North Dakota
USS Florida
USS Utah
USS Wyoming
USS Arkansas
USS New York
USS Nevada
USS Oklahoma
USS Pennsylvania
USS Arizona
USS New Mexico
USS Tennessee
USS California
USS Colorado
USS Maryland
USS Washington
USS West Virginia
USS South Dakota
USS Montana
USS North Carolina



Egypt

Nasr
al-Qahira
Abu Simbel
Aswan
Nijmi Shevket
Assari Shevket
Lutfi Djelil
Mehemet Ali
Ibrahim
Sakka
Hifzi Rahman
Muhammad 'Ali
Salah al-Din
Ramses
Bur Safajah
Al Ghardaqah
Bur Tawfiq
Marsa Matruh
Al Iskandariyah
Najim al Zafir
El Aboukir
El Suez
Rasheed
Damyat
Sharm El-Sheikh
Toushka



Turkey

Sultan Osman I
Turgud Reis
Yavuz Sultan Selim
Hayreddin Barbarossa
Sultan Orcan
Sultan Solyman II
Sultan Ahmed I
Sultan Mustafa III
Sultan Selim III
Sultan Mahmed II
Sultan Abdul Mejid
Osmaniye
Mahmudiye
Orhaniye
Abdülaziz
Assar-i Tevfik
Assar-i Shevket
Necim-i Shevket
Avni Illah
Muin-i Zafer
Iclaliye
Midilli
Mehmed Selim
Lütfi Humayun
Heybetnuma
Hamidiye
Mecidiye
Resadiye
Mesudiye
Feth-ül Islam



France

Charles Martel
Jauréguiberry
Carnot
Requin
Henri Quatre
Bouvet
Charlemagne
Amiral Duperré
Amiral Baudin
St. Louis
Gaulois
Suffren
République
Patrie
Démocratie
Justice
Verité
Diderot
Condorcet
Vergniaud
Voltaire
Danton
Mirabeau
France
Paris
Jean Bart
Courbet
Bretagne
Lorraine
Provence
Terrible
Indomptable
Formidable
Caïman
Hoche
Marceau
Neptune
Magenta
Brennus
Masséna
Charlemagne
Iéna
Liberté



Germany

Hindenburg
Mackensen
Prinz Eitel Friedrich
Fürst Bismarck
Yorck
Freya
Tirpitz
Schlieffen
Moritz
Zieten
Bethmann-Hollweg
Bülow
Caprivi
Hohenlohe
Holstein
Steinmetz
Zastrow
Prinz Friedrich Karl
Alvensleben
Voigts-Rhetz
Jagow
Schutter
Roeder
Tippelskirch
Dennewitz
Losthin
Goeben
Beowulf
Odin
Ägir
Frithjof
Siegfried
Hagen
Heimdall
Hildebrand
Seydlitz
von der Tann
Moltke
Deutschland
Grosser Kurfürst
Hessen
Hannover
Schlesien
Schleswig-Holstein
Braunschweig
Elsaß
Lothringen
Preußen
Wittelsbach
Wettin
Zähringen
Mecklenburg
Schwaben
Brandenburg
Scharnhorst
Gneisenau
Worth
Kaiser Friedrich III
Kaiser Wilhelm II
Kaiser Barbarossa
Kaiser Wilhelm der Große
Kaiser Karl der Große
Nassau
Westfalen
Rheinland
Posen
Helgoland
Ostfriesland
Thüringen
Oldenburg
Admiral Graf Spee
Kaiser
Friedrich der Große
Kaiserin
König Albert
Prinzregent Luitpold
Grosser Kurfürst
König
Markgraf
Kronprinz
Derfflinger
Lützow
Bayern
Baden
Sachsen
Würtemberg
Graf Zeppelin
Clausewitz
Barbarossa
Seelöwe
Amerika
Rheingold
Parsifal
Lohengrin
Germania



Britain

HMS Empress of India
HMS Ramillies
HMS Repulse
HMS Resolution
HMS Revenge
HMS Royal Oak
HMS Royal Sovereign
HMS Hood
HMS Centurion
HMS Barfleur
HMS Renown
HMS Caesar
HMS Hannibal
HMS Illustrious
HMS Jupiter
HMS Majestic
HMS Magnificent
HMS Mars
HMS Prince George
HMS Victorious
HMS Albion
HMS Canopus
HMS Glory
HMS Goliath
HMS Ocean
HMS Vengeance
HMS Formidable
HMS Irresistible
HMS Implacable
HMS Bulwark
HMS London
HMS Venerable
HMS Queen
HMS Prince of Wales
HMS Albemarle
HMS Cornwallis
HMS Duncan
HMS Exmouth
HMS Montagu
HMS Russell
HMS Africa
HMS Britannia
HMS Commonwealth
HMS Dominion
HMS Hibernia
HMS Hindustan
HMS King Edward VII
HMS New Zealand
HMS Swiftsure
HMS Triumph
HMS Lord Nelson
HMS Agamemnon
HMS Dreadnought
HMS Bellerophon
HMS Superb
HMS Temeraire
HMS Collingwood
HMS St. Vincent
HMS Vanguard
HMS Indomitable
HMS Inflexible
HMS Invincible
HMS Neptune
HMS Colossus
HMS Hercules
HMS Indefatigable
HMS New Zealand
HMS Conqueror
HMS Monarch
HMS Orion
HMS Thunderer
HMS Lion
HMS Princess Royal
HMS King George V
HMS Centurion
HMS Audacious
HMS Ajax
HMS Queen Mary
HMS Iron Duke
HMS Marlborough
HMS Benbow
HMS Emperor of India
HMS Tiger
HMS Queen Elizabeth
HMS Warspite
HMS Valiant
HMS Barham
HMS Malaya
HMS Ramillies
HMS Resolution
HMS Revenge
HMS Royal Oak
HMS Royal Sovereign
HMS Renown
HMS Repulse
HMS Resistance
HMS Erin
HMS Agincourt
HMS Canada
HMS Hood
HMS St. Andrew
HMS St. George
HMS St. David
HMS St. Patrick
HMS Nelson
HMS Rodney
HMS Prince of Wales
HMS Duke of York
HMS Anson
HMS Howe
HMS Jellicoe
HMS Beatty
HMS Courageous
HMS Glorious
HMS Furious



Italy

Giulio Cesare
Leonardo da Vinci
Conte di Cavour
Caio Duilio
Andrea Doria
Francesco Caracciolo
Italia
Roma
Impero
Principe di Carignano
Conte Verde
Cristoforo Colombo
Regina Elena
Regina Maria Pia
San Martino
Castelfidardo
Ruggiero Di Lauria
Venezia
Principe Amedeo
Palestro
Dandolo
Lepanto
Ruggiero di Lauria
Francesco Morosini
Umberto
Sicilia
Sardegna
Dante Alighieri
Regina Margerhita
Vittorio Emanuele
Benedetto Brin
Emanuele Filiberto
Ammiraglio di S. Bon
Dandolo
Milano
Siracusa
Mantova
Torino
Genova
Ravenna
Pescara
Firenze
Livorno
Cagliari
Caio Mario
Attilio Regolo
Cornelio Silla
Pompeo Magno
Scipione Africano
Claudio Druso
Claudio Tiberio
Giulio Germanico
Ottaviano Augusto
Paolo Emilio
Ulpio Traiano
Vispanio Agrippa
Vettor Pisani
Cristoforo Colombo
Flavio Gioia
Amerigo Vespucci
Pietro Micca
Goito
Monzambano
Montebello
Confienza
Etna
Vesuvio
Stromboli
Ettore Fieramosca
Dogali
Piemonte
Umbira
Lombardia
Etruria
Liguria
Elba
Puglia
Calabria
Marco Polo
Carlo Alberto
Varese
Francesco Ferruccio
Aquila
Sparviero
Europa
Falco
Sagittario



Spain

Pelayo
España
Alfonso XIII
Jaime I
Navarra
Reina Victoria Eugenia
Blas de Lezo
Méndez Núñez
Extremadura
Río de la Plata
Reina Cristina
Alfonso XII
Reina Mercedes
Isla de Luzón
Isla de Cuba
Marqués de la Ensenada
Velasco
Gravina
Infanta Isabel
Reina Regente
Cardenal Cisneros
Cataluña
Princesa de Asturias
Canarias
Baleares
Cristobal Colón
Conde de Venadito
Don Juan de Austria
Don Antonio de Ulloa
Isabel II
Carlos V
Infanta María Teresa
Vizcaya
Oquendo
Reina Regente
Alfonso XIII
Lepanto
Puigcerdá
Duque de Tetuán
Numancia
Victoria
Tetuán
Arapiles
Zaragoza
Sagunto
Méndez Núñez
Resolución
Reina Regente
Cardenal Cisneros
Cataluña
Princesa de Asturias
Canarias
Baleares



Portugal

Vasco da Gama
Alvares Cabral
Corte Real
Constituição
Liberal
Independência
Adamastor
São Gabriel
São Rafael
Dom Carlos I
Rainha Dona Amelia
Patria
Tejo
Douro
Rio Lima
Vouga
Diu
Sá da Bandeira
Duque da Terceira
Mindello
Afonso d'Albuquerque
Bartholomeu Dias
Estephania
Sagres
Dom Fernando II e Gloria
Dom Joao I
Goa
Damão
Vasco da Gama
Bartolomeu Dias
João da Nova
Tamega
Zambeze



Japan

Chin Yen
Yashima
Fuji
Hatsuse
Iki
Tango
Okinoshiima
Mishima
Shikishima
Asahi
Suwo
Iwami
Hizen
Mikasa
Katori
Kashima
Ikoma
Ibuki
Kurama
Satsuma
Aki
Settsu
Kongo
Haruna
Hiei
Kirishima
Fuso
Yamashiro
Ise
Hyuga
Nagato
Mutsu



Russia

Imperator Nikolai I
Borodino
Izmail
Kinburn
Navarin
Plevna
Petr Veliki
Tchesma
Ekaterina II
Georgi Pobiedonosets
Sinop
Imperator Alexander II
Dvienadstat Apostolov
Sissoli Veliki
Admiral Ushakov
Admiral Seniavin
General Admiral
Peresviet
Oslibia
Pobieda
Tsesarevich
Slava
Andrei Pervozvanny
Imperator Pavel I
Tri Svititelia
Rostislav
Pantelimon
Evstafi
Ioann Zlatoust
Sevastopol
Petropavlovsk
Poltava
Gangut
Imperatritsa Mariya
Imp. Ekaterina Velikaya
Imperator Alexander III
Petr Veliki
Imperatritsa Maria
Borodino
Melpomena
Bogatyr
Brailov
Uspeh
Flora
Kamchatka
Messemvria
Sizopol
Tsesarevna
Tsesarevich
Khersones
Bessarabia
Krym
Midia
Gromonosets
Kagul
Odessa
Otvazhnyi
Hercules
Constantin
Khrabryi
Smelyi
Grozyashchyi
Vladimir
Nadezhda
Kovarna
Kulevchi
Vladimir
Archimed
Gremyashchyi
Diana
Rurik
Olaf
Polkan
Kornilov
Askold
Svetlana
Ilia Muromets
Gromoboy
Khrabryi
General-Admiral
Smelyi
Solombala
Oleg
Peresvet
Oslyabya
Bayan
Dmitri Donskoi



Dutch

De Zeven Provincien
Konig der Nederlanden
Koningin Wilhelmina
Tromp
Piet Hein
Holland
Zeeland
Friesland
Gelderland
Noordbrabant
Utrecht
Prins Hendrik
Buffel
Guinea
Schorpioen
Stier
Heiligerlee
Krokodil
Tijger
Bloedhond
Cerberus
Adder
Haai
Hyena
Luipaard
Panter
Wesp
Koning
Draak
Matador
Reinier Claeszen
Evertsen
Kortenaer
Marten Harpertzoon
Jacob v. Heemskerck
De Ruyter
Admiraal v. Wassenaer
Evertsen
Zeeland
Prinses Amalia
Groningen
Vesuvius
Adolf Hertog v. Nassau
Anna Paulowna
Djambi
Willem
Zoutman
Leeuwarden
Metallen Kruis
Curacao
Zilveren Kruis
Van Galen
Atjeh
Koningin Emma
De Ruyter
Van Speyk
Johan Willem Friso
Abraham Crijnssen
Philips van Almonde
Marnix
De Bitter
Witte de With
Isaac Sweers
Java
Sumatra
Celebes



Sweden

Sverige
Drottning Victoria
Gustav V
Prins Oskar
Äran
Wasa
Tapperheten
Manligheten
Dristigheten
Oden
Thor
Niord
Svea
Göta
Thule
Fylgia
Örnen
Klas Uggla
Claes Horn
Jacob Bagge
Psilander
Clas Fleming
Gotland
Dristigheten
Karl XIII
Karl XIV Johan
Fäderneslandet
Försiktigheten
Gustav den Store
Äran
Camilla
Af Chapman
Eurydice
Josefine
Älvsnabben
Starkodder
Styrbiörn
Tirfing
Riksäpplet



Greece

Vasileos Konstantinos
Vasileos Georgios
Vasilissa Olga
Georgios Averof
Helle
Spetsai
Psara
Hydra
Psara
Spetsai
Lemnos
Kilkis
Salamis
Nearchos
Formion
Kimon
Themistocles
Nauarchos Miaoulis
Ambrakia
Akteon
Alpheos
Achelaos
Katsonis
Kountouriotis
Delphin
Xiphias
Poseidon
Glaukos
Nereus
Proteus
Triton
Amphitrite
Triaina
Katsonis
Papanikolis
Acheloos
Alfeios
Arcadia
Athenai
Esperia
Eurotas
Makedonia
Mykali
Adriatikos
Aeolos
Androutsos
Argos


Just a simple wikipedia, copy then paste for more ^_^
 
hey the j,

got an offer for a neat modcomp:

well i thought of a nice mod that can place roads upon construction of a specified building -
how about - you can build a wonder/national building, that once built - it connects the closest cities with roads so youll have a road connection - it wont place roads all over the surrounding tiles of the city where it built, but it will connect road in a straight line to neighboring city. maybe this can be unique to a small number of civs.

how about this?

Silk Road, or so?

Should not be a big problem, but i have to think about some things there:
- What, if the city is alone on an island? Maybe better not buildable
- If the civ has only one city?
- Terrain: I would have to check for water, peaks, ice, and maybe, if i should/must lay that street through enemy terrain.

Maybe some other things too.
But i'll maybe have the time next weekend.

If u take requests The_J i have one. I dont like to ask because it turns into work for you then rather than a hobby or fun, but it could be pretty damn cool.

I read in the another thread in this section about unique names for great people, and then unique names for Modern Naval ships. At any time a civilization never has more than a handfull of ships anyway. It would add more of a unique touch having all your naval forces named.

Also interesting.
The technique behind that is also not really complicated.
The most time sucking thing would be adding the names. I'm not sure, how/where to move the big name list in the code, or if i should use an external file, and if yes, how to organize it.
Mmmhh...that will probably have to wait until the first week of january, because next weekend i have to prepare for a seminar, and then will be christmas holidays, where RL will consume my time.
But i take it on the to-do-list.
 
Silk Road, or so?

Should not be a big problem, but i have to think about some things there:
- What, if the city is alone on an island? Maybe better not buildable
- If the civ has only one city?
- Terrain: I would have to check for water, peaks, ice, and maybe, if i should/must lay that street through enemy terrain.

Maybe some other things too.
But i'll maybe have the time next weekend.


I remember GIR (one of the original python-modcomp modders, if I am correct) made a "Via Appia" wonder (or something like that), that does a similar effect, wherein once built, the city and some surrounding tiles get a whole load of roads.

Unfortunately, I think that this was one of the files that was lost in the great hack a while back.
 
I remember GIR (one of the original python-modcomp modders, if I am correct) made a "Via Appia" wonder (or something like that), that does a similar effect, wherein once built, the city and some surrounding tiles get a whole load of roads.

Unfortunately, I think that this was one of the files that was lost in the great hack a while back.

ahh one whoremmbers girs work,
your currect - it was called roman roads - had similar mechanism - it added roads on all the tiles the city worked, upon construction.

maybe i have it somewhere still.


the_j,

well it will need to take some plot stuff into account, maybe just tell it not to form roads on water tiles,
if a player has one city - connect it to ai cities - its ok aswell.
nearest city - well maybe define the max distance it looks near cities.

also,
heres another sweet idea i had sitting for a while - might be good for you mars mod now that you use an all land:
since land transports sucks in civ4 (or do not exists..),
maybe an elegant solution like theability to "teleport" units - kinda like paatroop action, only that it will be out of the city, to a defined num of tiles (perhaps via new xml tag),
also perhaps limit it to a pre built improvement - like airport - so youll be able to transport units only set on "airport" improvement.
:)
 
Unsuccessfull weekend :(.

Tried again the request from cybrxkhan, but these popups are a bit more complicated than i thought.
The same for the route calculation for keldath, it works at the moment only in 33% of all cases.

After that all didn't work, i tried to transport a better civilopedia view by Valkyrionn from FfH2 to normal civ, but that also needs some additional functions :(.

In the week i can't do anything, and after the week already the christmas holidays begin, where i also will not get anything to work :/.


Paradrop: That's all hidden in the SDK :/.
 
^Sorry for the setbacks. But we don't blame you, honestly. Hope it works out well in the long run.
 
I remember GIR (one of the original python-modcomp modders, if I am correct) made a "Via Appia" wonder (or something like that), that does a similar effect, wherein once built, the city and some surrounding tiles get a whole load of roads.

Unfortunately, I think that this was one of the files that was lost in the great hack a while back.

I have Gir's via appia wonder code at home. I can upload it if you want it, just give me a PM.

I was planning on using the code for something a while back, just forgot what.
 
nice to see you guys stil have girs work,

i wish i had roman roads that he did, if anyone still have visa mod, i think its there.

I believe that in my version of Via Appia, that roman roads is part of it.

The Via Appia was the most important ancient Roman road. It connected Rome to Brindisi, Apulia in southeast Italy.
 
I've tried again to do the modcomp for cybrxkhan, but these popup implementation is really f******* complicated :(.
I also didn't have any time to look at keldath's request :(.


But i did 2 other things:

Civilopedia: Invisible dummy techs

This small modcomps manipulates the civilopedia in that way, that dummy techs (technologies with X or Y coordinates of 0 or less, so that they don't appear in the tech tree and are normally invisible ingame), don't appear in the tech section of the civilopedia.

All changes are labeled with "invisible dummy tech". There are 2 entries in CvPediaMain and 1 in CvPediaTech.



That these dummy techs still appeared in my civilopedia really annoyed me, that's the reason, why i did it.


----------------------------------------------------

Interfaith

This modcomp adds a new project to the game, which will spread immediatly after finishing all found religions to every city of every player (barbarians not included).

Spoiler :


There's one change in CvEventManager.py, and it's labeled with "interfaith".



This effect was requested by cfkane for his Fictionalization mod.



Sadly, the projects don't have a help tag, so that the effect has to be mentioned in the civilopedia entry :/. I don't like it, but i don't know a better way at the moment.

Why did i take it, and didn't work at the other modcomps? Because i knew, what do do, and i could do it fast.
 
Top Bottom