A task outstanding in my RtW mod is adding more Historical Events into my mod.Yes I am able to code python.
I want to code python
Edit: That was for Admiral Amarda.
Not functional dummy options, which you are free to use, if you need them.
@Bahmo: What? What does the exception say? And you you have a debug dll? Could help to diagnose it.
Is caching deativated (default is not)?
If no: Hold down shift during loading, and see, if this changes something.
I hope with the API you mean this one here .
A subversion system...oh, not many mods use one.
I think Legends of Revolutions (development stopped right now), BUG, RevolutionDCM and Affores Rise of Mankind modmod use one.
You might look into RevDCM. It adds lots of new rules to Civ4, maybe they have a use for another coder .
And if you need maybe just an interesting idea: FromAustria has asked a page before for an ethnical ingame GUI.
That should be possible in python, but it's quite a bit of work.
What are the modplayeroption1 options in the game options window?
maybe your slashes are the wrong way?
This is literally it. What's a debug dll?
I am prefer read *.py files, some of them have docs
IMHO sunversion helps in all project if more then one developer
A task outstanding in my RtW mod is adding more Historical Events into my mod.
i.e. from 1936 onwards ...
So having a template, created, based on my RtW that I can simply cut and paste and expand slowly to enrich the experience but not neccessarily change the game too much, the existing events can cover that.
e.g. at Turn 123 a message appears, describing a historical fact, from the Wkipedia list of events. (I can work out which turn equals which fortnight and year.
From what I understand from my basic understanding of Python, you can create a whole new file and use "includes" to feed it into the existing running scripts.
At later date I can then try to make ones that alter the game slightly, e.g. increase/decrease happiness in a city that an event occurs.
Well, my mod does use a modified dll, although I could probably remove it for testing purposes. Don't know about what I'd do with Quot Capita, though, the other mod that is giving me trouble.
Also, I searched for debug dll in the downloads database and didn't find it. What gives?
Wow ... thanks for that.Lets try to code.
first step:
Add lines to CvEventManager.py:
After imports:
from myscript import Each_turn_event
After: def onBeginPlayerTurn(self, argsList):
iGameTurn, iPlayer = argsList
Each_turn_event(iGameTurn,gc.getPlayer(iPlayer))
PS. Don`t forget an ident.
This code imports function (Each_turn_event) from file myscript.py
and calls it every turn.
Next put myscript.py to python folder.
Edit dateEvents dictionary as you wish.
dateEvents = {
0: (popup, ("First turn",)),
2: (popup,("Second turn",)),
4: (popup,("next turn",)),
5: (popup,("next turn",)),
6: (popup,("next turn",)),
7: (popup,("next turn",)),
8: (popup,("next turn",)),
9: (popup,("next turn",)),
}
Crap, you're right, there's only the normal 50 civs .dll in the database.
..er...are you able to compile a .dll? Then compiling a debug dll on your own should not be a problem.
That's not so true for everyone. The debug DLLs I tried to compile with VS2003 always crash with some "error_already_set" python error and new even reached main menu...er...are you able to compile a .dll? Then compiling a debug dll on your own should not be a problem.
Wow ... thanks for that.
("NextTurn") = brief description of event e.g. "the ship sunk with total loss of life"
a tuple ?!?!?("NextTurn",) it is a tuple.
I am not able to do that. Perhaps I could with advice.
That's not so true for everyone. The debug DLLs I tried to compile with VS2003 always crash with some "error_already_set" python error and new even reached main menu.
Tuple is somehow a "pair" in computer science language.
...er...than it might be a bigger thing, because it needs quite some installations and a bit time.
The general guide is here how to compile a .dll, which is the first thing to do.
Is no one here who can compile one?
They should have given us a instruction how to compile it correctly.