I am reporting here what we established as our event coding standard.
This standard have been thought so that anyone can go throught the code and not have to spend time trying to understand the format and structure.
Everyone who wish to contribute in future with events, will be required to comply this standard.
1. Events IDs will have first two digits for the kind of event. (ie 99 for partisans, 29 for trades, 30 for countries' specific events and so on) A list for this will be kept on this thread.
2. The next 2 digits will be used as a subrange country-based.
3. Last three digits are used for events. (ie Partisan events for Germany would have range 9956000 - 9956999 while partisan events for Italy 9943000 - 9943999. Events for Germany would have 3056000 - 3056999, and so on.)
4. Every txt file must have unique range+subrange numbers. (ie using the example above, events 9956xxx will all be put in a single file. In this way we avoid IDs duplicates and we can sort things pretty easily.)
5. Every txt file concerning a single country will be put in a separate folder. In this way we have all events for Germany for example grouped together in a single folder.
6. In each event folder, there will be a txt file with the list of IDs and the events' titles.
7. A general event list will be maintained in the forum.
8. Events will all be written according to a single stated standard. (see below)
9. Full events descriptions in the txt files and not referencing to text.csv.
10. Death event date beyond 1947.
Sample event
event = {
-1 tab-id = 8100000
-1 tab-random = no
-1 tab-country = USA
---------------Blank Line------------
-1 tab-trigger = {
------2 tabs----NOT = {
-----addition tabs-----ispuppet = SAL
----- per indent-------random = 10
------2 tabs----}
------2 tabs----NOT = { event = 1234 }--- Single line for one condition ---
-1 tab-}
---------------Blank Line------------
-1 tab-name = "Name here"
-1 tab-desc = "Description here"
-1 tab-style = 0
---------------Blank Line------------
-1 tab-date = { day = 1 month = january year = 1939 }
-1 tab-offset = 10
-1 tab-deathdate = { day = 30 month = december year = 1939 }
---------------Blank Line------------
-1 tab-action_a = {
------2 tabs----name = "Ok"
------2 tabs----command = { type = dissent value = -5 }
------2 tabs----command = { type = influence value = 5 }
------2 tabs----command = { type = alignment which = democratic value = 50 }
-1 tab-}
-1 tab-action_b = {
------2 tabs----name = "It is not necessary"
------2 tabs----command = { type = influence value = -5 }
------2 tabs----command = { type = alignment which = democratic value = -10 }
-1 tab-}
}
Events ID
'Type' events codes :
29xxyyy Trade events
99xxyyy Partisan events
30xxyyy Country specific events
31xxyyy Political events
32xxyyy New Order East events
33xxyyy New Order West events
40xxyyy Random events
50xxyyy AI only events
51xxyyy AI file change events
60xxyyy Timing trigger events
'Country' events codes :
10 Afghanistan
11 Albania
12 Argentina
13 Australia
14 Austria
15 Belgium
16 Bhutan
17 Bolivia
18 Brazil
19 Bulgaria
20 Canada
21 Chile
22 China (Communist)
23 China (Nationalist)
24 Columbia
25 Costa Rica
26 Cuba
27 Czechoslovakia
28 Denmark
29 Dom Rep
30 Ecuador
31 England
32 Estonia
33 Ethiopia
34 Finland
35 France
36 Germany
37 Greece
38 Guatamala
39 Haiti
40 Honduras
41 Hungary
42 India
43 Iraq
44 Ireland
45 Italy
46 Japan
47 Latvia
48 Liberia
49 Lithuania
50 Luxemborg
51 Manchukuo
52 Mexico
53 Mongolia
54 Nepal
55 Netherlands
56 New Zealand
57 Nicaragua
58 Norway
59 Oman
60 Panama
61 Paraguay
62 Persia (Iran)
63 Peru
64 Philippines
65 Poland
66 Portugal
67 Romania
68 Salvador
69 Saudi Arabia
70 Siam (Thailand)
71 Sinkiang
72 South Africa
73 Spain (Nationalist)
74 Spain (Republican)
75 Spanish Colonies
76 Sweden
77 Switzerland
78 Tanna Tuva
79 Tibet
80 Turkey
81 Uruguay
82 USA
83 USSR
84 Venezuela
85 Yemen
86 Yugoslavia
87 Slovakia
88 Vichy
89 Egypt
90 Free France
91 Russia
99 Others
This standard have been thought so that anyone can go throught the code and not have to spend time trying to understand the format and structure.
Everyone who wish to contribute in future with events, will be required to comply this standard.
1. Events IDs will have first two digits for the kind of event. (ie 99 for partisans, 29 for trades, 30 for countries' specific events and so on) A list for this will be kept on this thread.
2. The next 2 digits will be used as a subrange country-based.
3. Last three digits are used for events. (ie Partisan events for Germany would have range 9956000 - 9956999 while partisan events for Italy 9943000 - 9943999. Events for Germany would have 3056000 - 3056999, and so on.)
4. Every txt file must have unique range+subrange numbers. (ie using the example above, events 9956xxx will all be put in a single file. In this way we avoid IDs duplicates and we can sort things pretty easily.)
5. Every txt file concerning a single country will be put in a separate folder. In this way we have all events for Germany for example grouped together in a single folder.
6. In each event folder, there will be a txt file with the list of IDs and the events' titles.
7. A general event list will be maintained in the forum.
8. Events will all be written according to a single stated standard. (see below)
9. Full events descriptions in the txt files and not referencing to text.csv.
10. Death event date beyond 1947.
Sample event
event = {
-1 tab-id = 8100000
-1 tab-random = no
-1 tab-country = USA
---------------Blank Line------------
-1 tab-trigger = {
------2 tabs----NOT = {
-----addition tabs-----ispuppet = SAL
----- per indent-------random = 10
------2 tabs----}
------2 tabs----NOT = { event = 1234 }--- Single line for one condition ---
-1 tab-}
---------------Blank Line------------
-1 tab-name = "Name here"
-1 tab-desc = "Description here"
-1 tab-style = 0
---------------Blank Line------------
-1 tab-date = { day = 1 month = january year = 1939 }
-1 tab-offset = 10
-1 tab-deathdate = { day = 30 month = december year = 1939 }
---------------Blank Line------------
-1 tab-action_a = {
------2 tabs----name = "Ok"
------2 tabs----command = { type = dissent value = -5 }
------2 tabs----command = { type = influence value = 5 }
------2 tabs----command = { type = alignment which = democratic value = 50 }
-1 tab-}
-1 tab-action_b = {
------2 tabs----name = "It is not necessary"
------2 tabs----command = { type = influence value = -5 }
------2 tabs----command = { type = alignment which = democratic value = -10 }
-1 tab-}
}
Events ID
'Type' events codes :
29xxyyy Trade events
99xxyyy Partisan events
30xxyyy Country specific events
31xxyyy Political events
32xxyyy New Order East events
33xxyyy New Order West events
40xxyyy Random events
50xxyyy AI only events
51xxyyy AI file change events
60xxyyy Timing trigger events
'Country' events codes :
10 Afghanistan
11 Albania
12 Argentina
13 Australia
14 Austria
15 Belgium
16 Bhutan
17 Bolivia
18 Brazil
19 Bulgaria
20 Canada
21 Chile
22 China (Communist)
23 China (Nationalist)
24 Columbia
25 Costa Rica
26 Cuba
27 Czechoslovakia
28 Denmark
29 Dom Rep
30 Ecuador
31 England
32 Estonia
33 Ethiopia
34 Finland
35 France
36 Germany
37 Greece
38 Guatamala
39 Haiti
40 Honduras
41 Hungary
42 India
43 Iraq
44 Ireland
45 Italy
46 Japan
47 Latvia
48 Liberia
49 Lithuania
50 Luxemborg
51 Manchukuo
52 Mexico
53 Mongolia
54 Nepal
55 Netherlands
56 New Zealand
57 Nicaragua
58 Norway
59 Oman
60 Panama
61 Paraguay
62 Persia (Iran)
63 Peru
64 Philippines
65 Poland
66 Portugal
67 Romania
68 Salvador
69 Saudi Arabia
70 Siam (Thailand)
71 Sinkiang
72 South Africa
73 Spain (Nationalist)
74 Spain (Republican)
75 Spanish Colonies
76 Sweden
77 Switzerland
78 Tanna Tuva
79 Tibet
80 Turkey
81 Uruguay
82 USA
83 USSR
84 Venezuela
85 Yemen
86 Yugoslavia
87 Slovakia
88 Vichy
89 Egypt
90 Free France
91 Russia
99 Others
Last edited: