Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Modding Political and Diplomatic game DBs

Sat Feb 21, 2009 10:53 am

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?

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Sat Feb 21, 2009 11:54 am

Eh eh... a BIG modding manual is scheduled... but it requires a lot of time! :wacko:

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)

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Sat Feb 21, 2009 12:10 pm

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.

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Sat Feb 21, 2009 3:35 pm

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

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Sat Feb 21, 2009 3:45 pm

I will answer as soon I can. Now I'm deadly busy with one task. Just a bit patience. :love: Thanks, Calvinus.

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Sat Feb 21, 2009 3:49 pm

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.

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Feb 23, 2009 2:45 pm

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)

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Feb 23, 2009 2:48 pm

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

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Mon Feb 23, 2009 6:12 pm

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.

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Feb 23, 2009 6:17 pm

Great Theodor! Keep so and you will become the official WW1 Modder! :thumbsup:

Edit: As soon you have a critical mass of news, you can post here all fixed DBs.

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Mon Feb 23, 2009 6:33 pm

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.
Attachments
DiplomaticModifiers.rar
(2.57 KiB) Downloaded 180 times

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Mon Feb 23, 2009 6:41 pm

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.

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Feb 23, 2009 6:47 pm

Ouch, the amount of changes is impressive! :cuit:

I will check all of them little by little. ;)

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Mon Feb 23, 2009 7:02 pm

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.

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Feb 23, 2009 7:04 pm

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

tagwyn
AGEod Guard of Honor
Posts: 1220
Joined: Tue Apr 17, 2007 4:09 pm

Assistant!!

Mon Feb 23, 2009 7:15 pm

Luca: Maybe Thedor can be your assistant (unpaid, of course!!) :wacko:

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Mon Feb 23, 2009 7:39 pm

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.

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Tue Feb 24, 2009 11:41 am

Moved to the Modding section because much more appropriate.

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Political Actions corrections and integrations

Tue Feb 24, 2009 12:04 pm

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.
Attachments
PoliticalOptions.zip
(3.84 KiB) Downloaded 183 times

Theodor
Conscript
Posts: 18
Joined: Sat Feb 14, 2009 1:28 pm

Tue Feb 24, 2009 7:27 pm

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 :thumbsup:

User avatar
calvinus
Posts: 4679
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Tue Feb 24, 2009 7:37 pm

Yes... your support is great! :thumbsup:

Return to “WW1 mods and modding”

Who is online

Users browsing this forum: No registered users and 1 guest