Difference between revisions of "DCS enum country"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
(5 intermediate revisions by 2 users not shown)
Line 32: Line 32:
  
  
|constants= Below is a full listing of countries and their corresponding ids.
+
|constants= Below is a full listing of countries and their corresponding ids in YAML format
0 = "RUSSIA"
+
<pre>
1 = "UKRAINE"
+
---
2 = "USA"
+
  0: RUSSIA
3 = "TURKEY"
+
  1: UKRAINE
4 = "UK"
+
  2: USA
5 = "FRANCE"
+
  3: TURKEY
6 = "GERMANY"
+
  4: UK
7 = "AGGRESSORS"
+
  5: FRANCE
8 = "CANADA"
+
  6: GERMANY
9 = "SPAIN"
+
  7: AGGRESSORS
10 = "THE_NETHERLANDS"
+
  8: CANADA
11 = "BELGIUM"
+
  9: SPAIN
12 = "NORWAY"
+
  10: THE_NETHERLANDS
13 = "DENMARK"
+
  11: BELGIUM
15 = "ISRAEL"
+
  12: NORWAY
16 = "GEORGIA"
+
  13: DENMARK
17 = "INSURGENTS"
+
  15: ISRAEL
18 = "ABKHAZIA"
+
  16: GEORGIA
19 = "SOUTH_OSETIA"
+
  17: INSURGENTS
20 = "ITALY"
+
  18: ABKHAZIA
21 = "AUSTRALIA"
+
  19: SOUTH_OSETIA
22 = "SWITZERLAND"
+
  20: ITALY
23 = "AUSTRIA"
+
  21: AUSTRALIA
24 = "BELARUS"
+
  22: SWITZERLAND
25 = "BULGARIA"
+
  23: AUSTRIA
26 = "CHEZH_REPUBLIC"
+
  24: BELARUS
27 = "CHINA"
+
  25: BULGARIA
28 = "CROATIA"
+
  26: CHEZH_REPUBLIC
29 = "EGYPT"
+
  27: CHINA
30 = "FINLAND"
+
  28: CROATIA
31 = "GREECE"
+
  29: EGYPT
32 = "HUNGARY"
+
  30: FINLAND
33 = "INDIA"
+
  31: GREECE
34 = "IRAN"
+
  32: HUNGARY
35 = "IRAQ"
+
  33: INDIA
36 = "JAPAN"
+
  34: IRAN
37 = "KAZAKHSTAN"
+
  35: IRAQ
38 = "NORTH_KOREA"
+
  36: JAPAN
39 = "PAKISTAN"
+
  37: KAZAKHSTAN
40 = "POLAND"
+
  38: NORTH_KOREA
41 = "ROMANIA"
+
  39: PAKISTAN
42 = "SAUDI_ARABIA"
+
  40: POLAND
43 = "SERBIA"
+
  41: ROMANIA
44 = "SLOVAKIA"
+
  42: SAUDI_ARABIA
45 = "SOUTH_KOREA"
+
  43: SERBIA
46 = "SWEDEN"
+
  44: SLOVAKIA
47 = "SYRIA"
+
  45: SOUTH_KOREA
48 = "YEMEN"
+
  46: SWEDEN
49 = "VIETNAM"
+
  47: SYRIA
50 = "VENEZUELA"
+
  48: YEMEN
51 = "TUNISIA"
+
  49: VIETNAM
52 = "THAILAND"
+
  50: VENEZUELA
53 = "SUDAN"
+
  51: TUNISIA
54 = "PHILIPPINES"
+
  52: THAILAND
55 = "MOROCCO"
+
  53: SUDAN
56 = "MEXICO"
+
  54: PHILIPPINES
57 = "MALAYSIA"
+
  55: MOROCCO
58 = "LIBYA"
+
  56: MEXICO
59 = "JORDAN"
+
  57: MALAYSIA
60 = "INDONESIA"
+
  58: LIBYA
61 = "HONDURAS"
+
  59: JORDAN
62 = "ETHIOPIA"
+
  60: INDONESIA
63 = "CHILE"
+
  61: HONDURAS
64 = "BRAZIL"
+
  62: ETHIOPIA
65 = "BAHRAIN"
+
  63: CHILE
66 = "THIRDREICH"
+
  64: BRAZIL  
67 = "YUGOSLAVIA"
+
  65: BAHRAIN
68 = "USSR"
+
  66: THIRDREICH
69 = "ITALIAN_SOCIAL_REPUBLIC"
+
  67: YUGOSLAVIA
70 = "ALGERIA"
+
  68: USSR
71 = "KUWAIT"
+
  69: ITALIAN_SOCIAL_REPUBLIC
72 = "QATAR"
+
  70: ALGERIA
73 = "OMAN"
+
  71: KUWAIT
74 = "UNITED_ARAB_EMIRATES"
+
  72: QATAR
 
+
  73: OMAN
 +
  74: UNITED_ARAB_EMIRATES
 +
  75: SOUTH_AFRICA
 +
  76: CUBA
 +
  77: PORTUGAL
 +
  78: GDR
 +
  79: LEBANON
 +
  80: CJTF_BLUE
 +
  81: CJTF_RED
 +
  82: UN_PEACEKEEPERS
 +
  83: Argentina
 +
  84: Cyprus
 +
  85: Slovenia
 +
  86: BOLIVIA
 +
  87: GHANA
 +
  88: NIGERIA
 +
  89: PERU
 +
  90: ECUADOR
 +
  </pre>
 
|notes= Yes index 14 doesn't exist. No you aren't crazy. No I don't know what happened to it. Some say it has been missing since Lock-on.  
 
|notes= Yes index 14 doesn't exist. No you aren't crazy. No I don't know what happened to it. Some say it has been missing since Lock-on.  
  
Line 116: Line 134:
 
DCS 2.1 added 4 countries (66-69) associated with the World War 2 setting.  
 
DCS 2.1 added 4 countries (66-69) associated with the World War 2 setting.  
  
DCS 2.5 added 70-74
+
DCS 2.5 added 70-82 at assorted patches.
 +
 
 +
DCS 2.7 added 83-89
 +
 
 +
DCS 2.8 added 90
 
}}
 
}}

Latest revision as of 23:31, 28 October 2022

Scripting Root

Enumerator: country Added with: 1.2.0
Description: The country enumerator contains the constant countryIds and strings for each country present in DCS World. Country ids are indexed starting at 0.
Uses:
Format: The country enumerator contains 3 nested tables within. id, name, and names. These tables are formatted in the following manner with indexes corresponding to their constant values.
country = {
  id = {
   ['RUSSIA'] = 0,
   ['UKRAINE'] = 1,
   ['USA'] = 2,
   ...
 },
  name = {
   [0] = 'RUSSIA',
   [1] = 'UKRAINE',
   [2] = 'USA',
   ...  
 },
  names = {
   [0] = 'RUSSIA',
   [1] = 'UKRAINE',
   [2] = 'USA',
  ...  
 }, 
}
constants: Below is a full listing of countries and their corresponding ids in YAML format
---
  0: RUSSIA
  1: UKRAINE
  2: USA
  3: TURKEY
  4: UK
  5: FRANCE
  6: GERMANY
  7: AGGRESSORS
  8: CANADA
  9: SPAIN
  10: THE_NETHERLANDS
  11: BELGIUM
  12: NORWAY
  13: DENMARK
  15: ISRAEL
  16: GEORGIA
  17: INSURGENTS
  18: ABKHAZIA
  19: SOUTH_OSETIA
  20: ITALY
  21: AUSTRALIA
  22: SWITZERLAND
  23: AUSTRIA
  24: BELARUS
  25: BULGARIA
  26: CHEZH_REPUBLIC
  27: CHINA
  28: CROATIA
  29: EGYPT
  30: FINLAND
  31: GREECE
  32: HUNGARY
  33: INDIA
  34: IRAN
  35: IRAQ
  36: JAPAN
  37: KAZAKHSTAN
  38: NORTH_KOREA
  39: PAKISTAN
  40: POLAND
  41: ROMANIA
  42: SAUDI_ARABIA
  43: SERBIA
  44: SLOVAKIA
  45: SOUTH_KOREA
  46: SWEDEN
  47: SYRIA
  48: YEMEN
  49: VIETNAM
  50: VENEZUELA
  51: TUNISIA
  52: THAILAND
  53: SUDAN
  54: PHILIPPINES
  55: MOROCCO
  56: MEXICO
  57: MALAYSIA
  58: LIBYA
  59: JORDAN
  60: INDONESIA
  61: HONDURAS
  62: ETHIOPIA
  63: CHILE
  64: BRAZIL 
  65: BAHRAIN
  66: THIRDREICH
  67: YUGOSLAVIA
  68: USSR
  69: ITALIAN_SOCIAL_REPUBLIC
  70: ALGERIA
  71: KUWAIT
  72: QATAR
  73: OMAN
  74: UNITED_ARAB_EMIRATES
  75: SOUTH_AFRICA
  76: CUBA
  77: PORTUGAL
  78: GDR
  79: LEBANON
  80: CJTF_BLUE
  81: CJTF_RED
  82: UN_PEACEKEEPERS
  83: Argentina
  84: Cyprus
  85: Slovenia
  86: BOLIVIA
  87: GHANA
  88: NIGERIA
  89: PERU
  90: ECUADOR
  
notes: Yes index 14 doesn't exist. No you aren't crazy. No I don't know what happened to it. Some say it has been missing since Lock-on.

DCS 1.5 has doubled the list of countries available, not all countries are populated with assets yet.

Countries 48-65 were added at or around 1.5.4/2.0.4.

DCS 2.1 added 4 countries (66-69) associated with the World War 2 setting.

DCS 2.5 added 70-82 at assorted patches.

DCS 2.7 added 83-89

DCS 2.8 added 90