Page 1 of 1
Modding Political and Diplomatic game DBs
Posted: Sat Feb 21, 2009 10:53 am
by Theodor
The game is made to be highly moddable, which is good, but if you could submit a list over the different operators in the game the modding would be even easier. The main thing I´m wondering about just now, is the function of "PM_AreaControl". Is the argument separated with "OR" or "AND"? Hard to find out from the occurrences. EG "FRA PM_AreaControl 1 0 1,FRA,SOFIA,BELGRADE,BUCHAREST,ATHENS,CONSTANTINOPLE", must FRA Control all the Capitals, or just one to get the bonus?
Posted: Sat Feb 21, 2009 11:54 am
by calvinus
Eh eh... a BIG modding manual is scheduled... but it requires a lot of time!
For what concerns your query:
PM_AreaControl
@@Params Format:
"%d,%n,%s1,%s2,..."
(%d is the requested number of areas:
0 no areas should pass the check [mode NOT],
1 at least one area should pass the check [mode OR],
2..n at least 2..n areas should pass the check [n means mode AND])
(%n is the tag of the nation whose control is to be checked on areas, may be also a player side tag)
(%s1,%s2,...,%sn are the Tags of the areas to be checked)
Posted: Sat Feb 21, 2009 12:10 pm
by Theodor
Am I thinking wrong here or will Italy not always lose one diplomat here.
ITA PM_AreaControl -1 0 1,PS_CentralPowers,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
and
ITA PM_AreaControl -1 0 1,PS_Allies,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
because if ITA joins Central Powers will they not be considered a part of the Central Powers, and the operator will return true, and vice versa if they join the Allies. Must there not be a check so that they have lost there cities to a hostile power? The lines is from DiplomaticModifiers, line 84,85.
I might be missing something here, is just an idea.
Posted: Sat Feb 21, 2009 3:35 pm
by Theodor
Another question:
Is there a operator who checks for
1) Whom Declared war, not just that 2 countries is at war, but who started it
and 2)
Which country who owns a region, not just control it?
and 3)
The results of a dieroll, eg the sucess of the submarine warfare?
Thanks/ Theodor
Posted: Sat Feb 21, 2009 3:45 pm
by calvinus
I will answer as soon I can. Now I'm deadly busy with one task. Just a bit patience.

Thanks, Calvinus.
Posted: Sat Feb 21, 2009 3:49 pm
by Theodor
Absolutely. I think my last questions is far away from your obligation as a game designer to answer, but I do appreciate if you answer them if you have some minutes over sometime.
Good luck with your ongoing task.
Posted: Mon Feb 23, 2009 2:45 pm
by calvinus
Theodor wrote:Another question:
Is there a operator who checks for
1) Whom Declared war, not just that 2 countries is at war, but who started it
and 2)
Which country who owns a region, not just control it?
and 3)
None, sorry.

Theodor wrote:The results of a dieroll, eg the sucess of the submarine warfare?
Not the dieroll, that is not persisted. But yes for the political action:
PM_PoliticalChoiceActive:
@@Params Format:
"%o,%n"
(%o is the political option the nation is supposed/checked to have undertaken, it's a tag taken from the PoliticalOptions DB).
(optional: %n is the tag of the nation whose active political choice is to be checked)
Posted: Mon Feb 23, 2009 2:48 pm
by calvinus
Theodor wrote:Am I thinking wrong here or will Italy not always lose one diplomat here.
ITA PM_AreaControl -1 0 1,PS_CentralPowers,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
and
ITA PM_AreaControl -1 0 1,PS_Allies,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
because if ITA joins Central Powers will they not be considered a part of the Central Powers, and the operator will return true, and vice versa if they join the Allies. Must there not be a check so that they have lost there cities to a hostile power? The lines is from DiplomaticModifiers, line 84,85.
I might be missing something here, is just an idea.
Indeed it's a problem. I think we should do several rows instead:
1,GER,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
1,AUS,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
and:
1,FRA,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
1,ENG,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
1,RUS,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
Posted: Mon Feb 23, 2009 6:12 pm
by Theodor
I think I have fixed the problem by doing like this:
ITA PM_AreaControl 1 0 9,ITA,TORINO,MILANO,GENOVA,VENEZIA,RAVENNA,FIRENZE,NAPOLI,TARANTO,PALERMO
and reducing Italys starting Diplomats by one. If Italy owns all her Cities there is no other who owns an Italian city. If anybody else owns a ITA city Italy looses its bonus = An ITA malus if anybody occupied one city. At least it´s think it´s correct. This give the bonus of one line less and that the modifier is in effect even if some undecided country, like Turkey, invades.
Posted: Mon Feb 23, 2009 6:17 pm
by calvinus
Great Theodor! Keep so and you will become the official WW1 Modder!
Edit: As soon you have a critical mass of news, you can post here all fixed DBs.
Posted: Mon Feb 23, 2009 6:33 pm
by Theodor
You can look at the whole file if you like. It is intended to follow the manuals modifiers, p 199 ffw, as closely as possible. I have altered the Goeben event a bit so TUR have some modifiers who is wrong. Anyway, here it is.
Posted: Mon Feb 23, 2009 6:41 pm
by Theodor
There are some errors and discrepancies. The most annoying is that I can´t find out a way to check for if country a not is a part of CP or allies and still have a region occupied without giving the reversed bonus if they are a part of the other alliance, (eg Afghanistan get +1 if CP occupied Baghdad or Constantinople even if only the allies should get -1 if they do it. Still, i think that is better than the allies get minus one as soon TUR joins them, but that is only a opinion.
Posted: Mon Feb 23, 2009 6:47 pm
by calvinus
Ouch, the amount of changes is impressive!
I will check all of them little by little.

Posted: Mon Feb 23, 2009 7:02 pm
by Theodor
Hopefully it can be of some help. But, while you are reading, can you check line 57,58 and tell me if I´m using PM_WarPlanSelected correct? What number is the argument, the one called "image" in some reference file? I have tried that, but it´s hard to check the actual effect in the game.
Posted: Mon Feb 23, 2009 7:04 pm
by calvinus
PM_WarPlanSelected:
@@Params Format:
"%n,%w"
(%n is the tag of the nation whose war plan is to be checked)
(%w is the tag of the war plan the nation is supposed/checked to have undertaken)
Edit: So no image, but warplan tags, examples (GER):
GER_WP_Schlieffen
GER_WP_Moltke
GER_WP_Kronprinz
GER_WP_Hindenburg
GER_WP_Rupprecht
Assistant!!
Posted: Mon Feb 23, 2009 7:15 pm
by tagwyn
Luca: Maybe Thedor can be your assistant (unpaid, of course!!)

Posted: Mon Feb 23, 2009 7:39 pm
by Theodor
OK, thanks. Then mine version is wrong, but the original is wrong as well.
I hope you understand me thinking how to check that a certain place is occupied be force, and not occupied because the country joined an alliance.
If I check some other db-file, I let you know.
Posted: Tue Feb 24, 2009 11:41 am
by calvinus
Moved to the Modding section because much more appropriate.
Political Actions corrections and integrations
Posted: Tue Feb 24, 2009 12:04 pm
by calvinus
I attached a couple of corrections/integration to Political Actions DBs.
I corrected the tag of Romania nation for the territorial promises political action (RUM => ROM).
I also added several PM_NationNetural political conditions checks for the Italy/Romania/Bulgaria political actions such as "Call D'Annunzio" or the other territorial promises.
Posted: Tue Feb 24, 2009 7:27 pm
by Theodor
Maybe you should change the topic- title of the thread as well. The sound of "operators" really draws the eyes of everybody

.
I thought of something, how do you check for the "Submarine Warfare hits", in Socialtestmodifier when a social test is performed?
Is it possible to use the same procedure to check for the same thing in the diplomaticmodifier?
I´m going to test your changes in politicalmodifiers now, looks good

Posted: Tue Feb 24, 2009 7:37 pm
by calvinus
Yes... your support is great!
