Simple Python Things

Hey I would like to make a request if it is possible to implement and if you consider takeing it into account of course. I was thinking if its possible to add the religion( not holy city) from FavouriteReligion (LeaderHeadInfo) to the capital of every civ at the start of the game.
Thank you for your time and waiting for your reply.
 
That would be awkward considering they're not founded at the start of the game. What about when they're founded, add them to all civs with that as their favorite religion?
 
I've never seen this error before :dunno:.
When does it appear?
When I save a WorldBuilder with Rome in it!?! :confused:
The error itself seems to come from the saving function, which is really strange :confused:. I haven't modified anything in this file.
What file?
 
That would be awkward considering they're not founded at the start of the game. What about when they're founded, add them to all civs with that as their favorite religion?
Yes that ideea is even better since its more universal and can be used by others too.( i was aiming for that since in my mod they are never founded so giving them from day 1 was in plan)
 
Hey I would like to make a request if it is possible to implement and if you consider takeing it into account of course. I was thinking if its possible to add the religion( not holy city) from FavouriteReligion (LeaderHeadInfo) to the capital of every civ at the start of the game.
Thank you for your time and waiting for your reply.

That would be awkward considering they're not founded at the start of the game. What about when they're founded, add them to all civs with that as their favorite religion?

Yes that ideea is even better since its more universal and can be used by others too.( i was aiming for that since in my mod they are never founded so giving them from day 1 was in plan)

:think: the changed suggestion is not complicated, and like said, universal.
Might be able to do it this weekend :).

Well, now me weekend is full :/ :D.

Which file was my error in?

It's mentioned on the screenshot ;).
It's in the worldbuilder python file, and i haven't touched it.

When I save a WorldBuilder with Rome in it!?! :confused:

I've expected that somehow.

Can you load this savegame afterwards?
Is it only connected to your roman civ, did you test's without that civ, or is it completly unrelated?
 
I have no clue
I can load the save game
It works when I am not saving it as a Admin on my Computer! :confused:
 
i've now reuploaded the believer trait, so that the effect is also applied on conquered cities :).



@topsecret: I've made some changes in the SpawnCivUtil.py, so that the old city is destroyed before the new one is set. This will now always happen, when a city has pre-set coordinates for a plot where already another city exists.
Just replace the attached file with your current one :).


@Castor_Troy:
I've looked in it now, it's really easy :).
What do you think:
- Missionary for the religion in the capital, or just spread the religion to it?
- Popup with a small text for the human when it happens, or not?
 

Attachments

If you can load it, then it doesn't seem to be a real problem.
I've looked right now at the related file, this seems to be a problem with the definitions of the unitAIs.
Did you change anything related to these?

Yes I will delete that!
 
i've now reuploaded the believer trait, so that the effect is also applied on conquered cities :).



@topsecret: I've made some changes in the SpawnCivUtil.py, so that the old city is destroyed before the new one is set. This will now always happen, when a city has pre-set coordinates for a plot where already another city exists.
Just replace the attached file with your current one :).
:thanx: for everything.
I have 4 of your ModComps in my Mod :)
 
@Castor_Troy:
I've looked in it now, it's really easy :).
What do you think:
- Missionary for the religion in the capital, or just spread the religion to it?
- Popup with a small text for the human when it happens, or not?

Just spread the religion to it since i dont know how the AI will behave with the missionary, meaning if he might spread it to another city.( plus the logic here is the leader fell in love with that religion therfore the first place he would develop is his own home->the palace-> the capital as is Civ represented).

When you refer to text you mean something like: "the newly founded X religion seems to have fitted our leaders spiritual desires..... " sure it would be an nice esthetic but considering the fact that you get these 2 messages "X has been founded in a distant land" and "X has spread in Y" a human player can draw the conclusions by himself. If its easy for you do it otherwise there is no loss and thank you for takeing my request, i guess thats what happenes when you have an open window in your weekend :p
 
@topsecret: I've made some changes in the SpawnCivUtil.py, so that the old city is destroyed before the new one is set. This will now always happen, when a city has pre-set coordinates for a plot where already another city exists.
Just replace the attached file with your current one :).

Done you can remove it :)
 
Nice to hear, really :).

Maybe i should make a list in the opening post :think:.




And like requested:

Real favorite religion

Spoiler :
realfavoritereligion_LqT.jpg


There is only one change in CvEventManager.py, and it's labeled with "real favorite religion".
One XML file for the text is included.

Attention: Makes only real sense with free religion choice ;).
 
Downloading as i write. Thank you very much ;)

EDIT: Its included in the mod and it works perfect :D
 
The_J,
can you make a ModComp that, if the unit requires a Tech that is Disabled, it doesn't appear in the Civilopedia?
 
Back
Top Bottom