From da6106520f848ad2c69b09d3c5eba1c3e07a3b5a Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 9 Jan 2010 22:20:43 +1300 Subject: [PATCH 1/3] more conversion --- RulesConverter/Program.cs | 17 ++++++ out.rul | 109 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) diff --git a/RulesConverter/Program.cs b/RulesConverter/Program.cs index a94f312403..f9272a3fbe 100644 --- a/RulesConverter/Program.cs +++ b/RulesConverter/Program.cs @@ -127,6 +127,23 @@ namespace RulesConverter { "LimitedAmmo", new PL { { "Ammo", "Ammo" } } }, + + { "Building", new PL { + { "Power", "Power" }, + { "RequiresPower", "Powered" }, + { "Footprint", "Footprint" }, + { "@Dimensions", "Dimensions" } } + }, + + { "StoresOre", new PL { + { "Pips", "OrePips" }, + { "Capacity", "Storage" } } + }, + + { "Harvester", new PL { + { "Pips", "OrePips" } } + //{ "Capacity" + }, }; using (var writer = File.CreateText(outputFile)) diff --git a/out.rul b/out.rul index c165256316..3da3c2cc4a 100644 --- a/out.rul +++ b/out.rul @@ -659,6 +659,10 @@ IRON: Selectable: Priority: 3 Building: + Power: -200 + RequiresPower: true + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: IronCurtainable: IronCurtain: @@ -676,6 +680,10 @@ PDOX: Selectable: Priority: 3 Building: + Power: -200 + RequiresPower: true + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: Chronosphere: IronCurtainable: @@ -693,6 +701,9 @@ PBOX: Selectable: Priority: 3 Building: + Power: -15 + Footprint: x + Dimensions: [1,1] Turreted: RenderBuilding: AttackTurreted: @@ -712,6 +723,9 @@ HBOX: Selectable: Priority: 3 Building: + Power: -15 + Footprint: x + Dimensions: [1,1] Turreted: RenderBuilding: AttackTurreted: @@ -731,6 +745,10 @@ TSLA: Selectable: Priority: 3 Building: + Power: -150 + RequiresPower: true + Footprint: _ x + Dimensions: [1,2] Turreted: RenderBuildingCharge: AttackTurreted: @@ -750,6 +768,9 @@ GUN: Selectable: Priority: 3 Building: + Power: -40 + Footprint: x + Dimensions: [1,1] Turreted: RenderBuildingTurreted: AttackTurreted: @@ -769,6 +790,10 @@ AGUN: Selectable: Priority: 3 Building: + Power: -50 + RequiresPower: true + Footprint: _ x + Dimensions: [1,2] Turreted: RenderBuildingTurreted: AttackTurreted: @@ -789,6 +814,9 @@ FTUR: Priority: 3 Turreted: Building: + Power: -20 + Footprint: x + Dimensions: [1,1] RenderBuilding: AttackTurreted: AutoTarget: @@ -807,6 +835,10 @@ GAP: Selectable: Priority: 3 Building: + Power: -60 + RequiresPower: true + Footprint: _ x + Dimensions: [1,2] RenderBuilding: IronCurtainable: @@ -823,6 +855,9 @@ SAM: Selectable: Priority: 3 Building: + Power: -20 + Footprint: xx + Dimensions: [2,1] Turreted: RenderBuildingTurreted: AttackTurreted: @@ -842,6 +877,9 @@ MSLO: Selectable: Priority: 3 Building: + Power: -100 + Footprint: xx + Dimensions: [2,1] RenderBuilding: IronCurtainable: @@ -858,6 +896,9 @@ ATEK: Selectable: Priority: 3 Building: + Power: -200 + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: IronCurtainable: GpsLaunchSite: @@ -875,6 +916,9 @@ WEAP: Selectable: Priority: 3 Building: + Power: -30 + Footprint: xxx xxx + Dimensions: [3,2] RenderWarFactory: RenderBuilding: RallyPoint: @@ -894,6 +938,9 @@ SYRD: Selectable: Priority: 3 Building: + Power: -30 + Footprint: xxx xxx xxx + Dimensions: [3,3] RenderBuilding: ProductionSurround: IronCurtainable: @@ -911,6 +958,9 @@ SPEN: Selectable: Priority: 3 Building: + Power: -30 + Footprint: xxx xxx xxx + Dimensions: [3,3] RenderBuilding: ProductionSurround: IronCurtainable: @@ -920,6 +970,9 @@ FACT: Selectable: Priority: 3 Building: + Power: 0 + Footprint: xxx xxx xxx + Dimensions: [3,3] RenderBuilding: ConstructionYard: IronCurtainable: @@ -937,9 +990,14 @@ PROC: Selectable: Priority: 3 Building: + Power: -30 + Footprint: _x_ xxx x== + Dimensions: [3,3] RenderBuilding: AcceptsOre: StoresOre: + Pips: 17 + Capacity: 2000 IronCurtainable: SILO: @@ -955,8 +1013,13 @@ SILO: Selectable: Priority: 3 Building: + Power: -10 + Footprint: x + Dimensions: [1,1] RenderBuildingOre: StoresOre: + Pips: 5 + Capacity: 1500 IronCurtainable: HPAD: @@ -972,6 +1035,9 @@ HPAD: Selectable: Priority: 3 Building: + Power: -10 + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: Production: BelowUnits: @@ -991,6 +1057,10 @@ DOME: Selectable: Priority: 3 Building: + Power: -40 + RequiresPower: true + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: ProvidesRadar: IronCurtainable: @@ -1008,6 +1078,9 @@ AFLD: Selectable: Priority: 3 Building: + Power: -30 + Footprint: xxx xxx + Dimensions: [3,2] RenderBuilding: Production: BelowUnits: @@ -1027,6 +1100,9 @@ POWR: Selectable: Priority: 3 Building: + Power: 100 + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: IronCurtainable: @@ -1043,6 +1119,9 @@ APWR: Selectable: Priority: 3 Building: + Power: 200 + Footprint: ___ xxx xxx + Dimensions: [3,3] RenderBuilding: IronCurtainable: @@ -1059,6 +1138,9 @@ STEK: Selectable: Priority: 3 Building: + Power: -100 + Footprint: xxx xxx + Dimensions: [3,2] RenderBuilding: IronCurtainable: @@ -1075,6 +1157,9 @@ BARR: Selectable: Priority: 3 Building: + Power: -20 + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: RallyPoint: Production: @@ -1093,6 +1178,9 @@ TENT: Selectable: Priority: 3 Building: + Power: -20 + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: RallyPoint: Production: @@ -1111,6 +1199,9 @@ KENN: Selectable: Priority: 3 Building: + Power: -10 + Footprint: x + Dimensions: [1,1] RenderBuilding: RallyPoint: Production: @@ -1129,6 +1220,9 @@ FIX: Selectable: Priority: 3 Building: + Power: -30 + Footprint: _x_ xxx _x_ + Dimensions: [3,3] RenderBuilding: BelowUnits: Reservable: @@ -1146,6 +1240,9 @@ FACF: Selectable: Priority: 3 Building: + Power: -2 + Footprint: xxx xxx xxx + Dimensions: [3,3] RenderBuilding: Image: FACT Fake: @@ -1164,6 +1261,9 @@ WEAF: Selectable: Priority: 3 Building: + Power: -2 + Footprint: xxx xxx + Dimensions: [3,2] RenderWarFactory: RenderBuilding: Image: WEAP @@ -1183,6 +1283,9 @@ SYRF: Selectable: Priority: 3 Building: + Power: -2 + Footprint: xxx xxx xxx + Dimensions: [3,3] RenderBuilding: Image: SYRD Fake: @@ -1192,6 +1295,9 @@ SPEF: Selectable: Priority: 3 Building: + Power: -2 + Footprint: xxx xxx xxx + Dimensions: [3,3] RenderBuilding: Image: SPEN Fake: @@ -1209,6 +1315,9 @@ DOMF: Selectable: Priority: 3 Building: + Power: -2 + Footprint: xx xx + Dimensions: [2,2] RenderBuilding: Image: DOME Fake: From e2b90e06ce7fdc9d2f3763b86de52e91a2908b2f Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 9 Jan 2010 22:36:03 +1300 Subject: [PATCH 2/3] attack trait support --- RulesConverter/Program.cs | 78 +++++++++++++---------------- out.rul | 101 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+), 44 deletions(-) diff --git a/RulesConverter/Program.cs b/RulesConverter/Program.cs index f9272a3fbe..baa1187620 100644 --- a/RulesConverter/Program.cs +++ b/RulesConverter/Program.cs @@ -69,46 +69,6 @@ namespace RulesConverter { "Image", "Image" } } }, - { "RenderUnit", new PL { - { "Image", "Image" } } - }, - - { "RenderBuildingCharge", new PL { - { "Image", "Image" } } - }, - - { "RenderBuildingOre", new PL { - { "Image", "Image" } } - }, - - { "RenderBuildingTurreted", new PL { - { "Image", "Image" } } - }, - - { "RenderInfantry", new PL { - { "Image", "Image" } } - }, - - { "RenderUnitMuzzleFlash", new PL { - { "Image", "Image" } } - }, - - { "RenderUnitReload", new PL { - { "Image", "Image" } } - }, - - { "RenderUnitRotor", new PL { - { "Image", "Image" } } - }, - - { "RenderUnitSpinner", new PL { - { "Image", "Image" } } - }, - - { "RenderUnitTurreted", new PL { - { "Image", "Image" } } - }, - { "Buildable", new PL { { "TechLevel", "TechLevel" }, { "Tab", "$Tab" }, @@ -121,7 +81,8 @@ namespace RulesConverter }, { "Cargo", new PL { - { "@PassengerTypes", "PassengerTypes" } } + { "@PassengerTypes", "PassengerTypes" }, + { "UnloadFacing", "UnloadFacing" } } }, { "LimitedAmmo", new PL { @@ -132,7 +93,12 @@ namespace RulesConverter { "Power", "Power" }, { "RequiresPower", "Powered" }, { "Footprint", "Footprint" }, - { "@Dimensions", "Dimensions" } } + { "@Dimensions", "Dimensions" }, + { "Capturable", "Capturable" }, + { "Repairable", "Repairable" }, + { "BaseNormal", "BaseNormal" }, + { "Adjacent", "Adjacent" }, + { "Bib", "Bib" } } }, { "StoresOre", new PL { @@ -144,8 +110,34 @@ namespace RulesConverter { "Pips", "OrePips" } } //{ "Capacity" }, + + { "AttackBase", new PL { + { "PrimaryWeapon", "Primary" }, + { "SecondaryWeapon", "SecondaryWeapon" }, + { "PrimaryOffset", "PrimaryOffset" }, + { "SecondaryOffset", "SecondaryOffset" }, + { "PrimaryLocalOffset", "PrimaryLocalOffset" }, + { "SecondaryLocalOffset", "SecondaryLocalOffset" }, + { "MuzzleFlash", "MuzzleFlash" }, // maybe + { "Recoil", "Recoil"} } + }, }; + traitMap["RenderUnit"] = traitMap["RenderBuilding"]; + traitMap["RenderBuildingCharge"] = traitMap["RenderBuilding"]; + traitMap["RenderBuildingOre"] = traitMap["RenderBuilding"]; + traitMap["RenderBuildingTurreted"] = traitMap["RenderBuilding"]; + traitMap["RenderInfantry"] = traitMap["RenderBuilding"]; + traitMap["RenderUnitMuzzleFlash"] = traitMap["RenderBuilding"]; + traitMap["RenderUnitReload"] = traitMap["RenderBuilding"]; + traitMap["RenderUnitRotor"] = traitMap["RenderBuilding"]; + traitMap["RenderUnitSpinner"] = traitMap["RenderBuilding"]; + traitMap["RenderUnitTurreted"] = traitMap["RenderBuilding"]; + + traitMap["AttackTurreted"] = traitMap["AttackBase"]; + traitMap["AttackPlane"] = traitMap["AttackBase"]; + traitMap["AttackHeli"] = traitMap["AttackBase"]; + using (var writer = File.CreateText(outputFile)) { foreach (var cat in categoryMap) @@ -164,8 +156,6 @@ namespace RulesConverter if (iniSection.GetValue("TechLevel", "-1") != "-1") traits.Insert(0, "Buildable"); - - foreach (var t in traits) { writer.WriteLine("\t{0}:", t); diff --git a/out.rul b/out.rul index 3da3c2cc4a..194d66b659 100644 --- a/out.rul +++ b/out.rul @@ -19,6 +19,7 @@ V2RL: ROT: 5 Speed: 7 AttackBase: + PrimaryWeapon: SCUD RenderUnitReload: AutoTarget: Repairable: @@ -48,6 +49,8 @@ V2RL: Speed: 9 Turreted: AttackTurreted: + PrimaryWeapon: 75mm + Recoil: 2 RenderUnitTurreted: AutoTarget: Repairable: @@ -77,6 +80,8 @@ V2RL: Speed: 8 Turreted: AttackTurreted: + PrimaryWeapon: 90mm + Recoil: 3 RenderUnitTurreted: AutoTarget: Repairable: @@ -106,6 +111,8 @@ V2RL: Speed: 7 Turreted: AttackTurreted: + PrimaryWeapon: 105mm + Recoil: 3 RenderUnitTurreted: AutoTarget: Repairable: @@ -135,6 +142,10 @@ V2RL: Speed: 4 Turreted: AttackTurreted: + PrimaryWeapon: 120mm + PrimaryLocalOffset: -4,-5,0,4,-5,0 + SecondaryLocalOffset: -7,2,25,7,2,-25 + Recoil: 4 RenderUnitTurreted: AutoTarget: Repairable: @@ -217,6 +228,7 @@ ARTY: ROT: 2 Speed: 6 AttackBase: + PrimaryWeapon: 155mm RenderUnit: Explodes: AutoTarget: @@ -303,6 +315,9 @@ JEEP: Speed: 10 Turreted: AttackTurreted: + PrimaryWeapon: M60mg + PrimaryOffset: 0,0,0,-2 + MuzzleFlash: yes RenderUnitTurreted: AutoTarget: Repairable: @@ -330,12 +345,16 @@ APC: ROT: 5 Speed: 10 AttackBase: + PrimaryWeapon: M60mg + PrimaryOffset: 0,0,0,-4 + MuzzleFlash: yes RenderUnitMuzzleFlash: AutoTarget: Repairable: Chronoshiftable: Cargo: PassengerTypes: [Foot] + UnloadFacing: 220 Passenger: IronCurtainable: @@ -424,6 +443,7 @@ SS: RenderUnit: Submarine: AttackBase: + PrimaryWeapon: TorpTube Chronoshiftable: IronCurtainable: @@ -447,6 +467,8 @@ DD: Speed: 6 Turreted: AttackTurreted: + PrimaryWeapon: Stinger + PrimaryOffset: 0,-8,0,-3 RenderUnitTurreted: AutoTarget: Chronoshiftable: @@ -472,6 +494,10 @@ CA: Speed: 4 Turreted: AttackTurreted: + PrimaryWeapon: 8Inch + PrimaryOffset: 0,17,0,-2 + SecondaryOffset: 0,-17,0,-2 + Recoil: 3 RenderUnitTurreted: AutoTarget: Chronoshiftable: @@ -519,6 +545,8 @@ PT: Speed: 9 Turreted: AttackTurreted: + PrimaryWeapon: 2Inch + PrimaryOffset: 0,-6,0,-1 RenderUnitTurreted: AutoTarget: Chronoshiftable: @@ -539,6 +567,7 @@ MIG: HP: 50 Armor: light AttackPlane: + PrimaryWeapon: Maverick Plane: ROT: 5 Speed: 20 @@ -564,6 +593,7 @@ YAK: Armor: light Crewed: yes AttackPlane: + PrimaryWeapon: ChainGun Plane: ROT: 5 Speed: 16 @@ -612,6 +642,9 @@ HELI: Armor: heavy Crewed: yes AttackHeli: + PrimaryWeapon: Hellfire + PrimaryOffset: -5,0,0,2 + SecondaryOffset: 5,0,0,2 Helicopter: ROT: 4 Speed: 16 @@ -637,6 +670,9 @@ HIND: Armor: heavy Crewed: yes AttackHeli: + PrimaryWeapon: ChainGun + PrimaryOffset: -5,0,0,2 + SecondaryOffset: 5,0,0,2 Helicopter: ROT: 4 Speed: 12 @@ -663,6 +699,7 @@ IRON: RequiresPower: true Footprint: xx xx Dimensions: [2,2] + Capturable: true RenderBuilding: IronCurtainable: IronCurtain: @@ -684,6 +721,7 @@ PDOX: RequiresPower: true Footprint: xx xx Dimensions: [2,2] + Capturable: true RenderBuilding: Chronosphere: IronCurtainable: @@ -707,6 +745,7 @@ PBOX: Turreted: RenderBuilding: AttackTurreted: + PrimaryWeapon: Vulcan AutoTarget: IronCurtainable: @@ -729,6 +768,7 @@ HBOX: Turreted: RenderBuilding: AttackTurreted: + PrimaryWeapon: Vulcan AutoTarget: IronCurtainable: @@ -752,6 +792,7 @@ TSLA: Turreted: RenderBuildingCharge: AttackTurreted: + PrimaryWeapon: TeslaZap AutoTarget: IronCurtainable: @@ -774,6 +815,7 @@ GUN: Turreted: RenderBuildingTurreted: AttackTurreted: + PrimaryWeapon: TurretGun AutoTarget: IronCurtainable: @@ -797,6 +839,7 @@ AGUN: Turreted: RenderBuildingTurreted: AttackTurreted: + PrimaryWeapon: ZSU-23 AutoTarget: IronCurtainable: @@ -819,6 +862,7 @@ FTUR: Dimensions: [1,1] RenderBuilding: AttackTurreted: + PrimaryWeapon: FireballLauncher AutoTarget: IronCurtainable: @@ -839,6 +883,7 @@ GAP: RequiresPower: true Footprint: _ x Dimensions: [1,2] + Capturable: true RenderBuilding: IronCurtainable: @@ -861,6 +906,7 @@ SAM: Turreted: RenderBuildingTurreted: AttackTurreted: + PrimaryWeapon: Nike AutoTarget: IronCurtainable: @@ -899,6 +945,8 @@ ATEK: Power: -200 Footprint: xx xx Dimensions: [2,2] + Capturable: true + Bib: yes RenderBuilding: IronCurtainable: GpsLaunchSite: @@ -919,6 +967,8 @@ WEAP: Power: -30 Footprint: xxx xxx Dimensions: [3,2] + Capturable: true + Bib: yes RenderWarFactory: RenderBuilding: RallyPoint: @@ -941,6 +991,9 @@ SYRD: Power: -30 Footprint: xxx xxx xxx Dimensions: [3,3] + Capturable: true + BaseNormal: no + Adjacent: 8 RenderBuilding: ProductionSurround: IronCurtainable: @@ -961,6 +1014,9 @@ SPEN: Power: -30 Footprint: xxx xxx xxx Dimensions: [3,3] + Capturable: true + BaseNormal: no + Adjacent: 8 RenderBuilding: ProductionSurround: IronCurtainable: @@ -973,6 +1029,8 @@ FACT: Power: 0 Footprint: xxx xxx xxx Dimensions: [3,3] + Capturable: true + Bib: yes RenderBuilding: ConstructionYard: IronCurtainable: @@ -993,6 +1051,8 @@ PROC: Power: -30 Footprint: _x_ xxx x== Dimensions: [3,3] + Capturable: true + Bib: yes RenderBuilding: AcceptsOre: StoresOre: @@ -1016,6 +1076,7 @@ SILO: Power: -10 Footprint: x Dimensions: [1,1] + Capturable: true RenderBuildingOre: StoresOre: Pips: 5 @@ -1038,6 +1099,8 @@ HPAD: Power: -10 Footprint: xx xx Dimensions: [2,2] + Capturable: true + Bib: yes RenderBuilding: Production: BelowUnits: @@ -1061,6 +1124,8 @@ DOME: RequiresPower: true Footprint: xx xx Dimensions: [2,2] + Capturable: true + Bib: yes RenderBuilding: ProvidesRadar: IronCurtainable: @@ -1081,6 +1146,7 @@ AFLD: Power: -30 Footprint: xxx xxx Dimensions: [3,2] + Capturable: true RenderBuilding: Production: BelowUnits: @@ -1103,6 +1169,8 @@ POWR: Power: 100 Footprint: xx xx Dimensions: [2,2] + Capturable: true + Bib: yes RenderBuilding: IronCurtainable: @@ -1122,6 +1190,8 @@ APWR: Power: 200 Footprint: ___ xxx xxx Dimensions: [3,3] + Capturable: true + Bib: yes RenderBuilding: IronCurtainable: @@ -1141,6 +1211,8 @@ STEK: Power: -100 Footprint: xxx xxx Dimensions: [3,2] + Capturable: true + Bib: yes RenderBuilding: IronCurtainable: @@ -1160,6 +1232,8 @@ BARR: Power: -20 Footprint: xx xx Dimensions: [2,2] + Capturable: true + Bib: yes RenderBuilding: RallyPoint: Production: @@ -1181,6 +1255,8 @@ TENT: Power: -20 Footprint: xx xx Dimensions: [2,2] + Capturable: true + Bib: yes RenderBuilding: RallyPoint: Production: @@ -1223,6 +1299,7 @@ FIX: Power: -30 Footprint: _x_ xxx _x_ Dimensions: [3,3] + Capturable: true RenderBuilding: BelowUnits: Reservable: @@ -1243,6 +1320,9 @@ FACF: Power: -2 Footprint: xxx xxx xxx Dimensions: [3,3] + Capturable: true + BaseNormal: no + Bib: yes RenderBuilding: Image: FACT Fake: @@ -1264,6 +1344,9 @@ WEAF: Power: -2 Footprint: xxx xxx Dimensions: [3,2] + Capturable: true + BaseNormal: no + Bib: yes RenderWarFactory: RenderBuilding: Image: WEAP @@ -1286,6 +1369,9 @@ SYRF: Power: -2 Footprint: xxx xxx xxx Dimensions: [3,3] + Capturable: true + BaseNormal: no + Adjacent: 8 RenderBuilding: Image: SYRD Fake: @@ -1298,6 +1384,9 @@ SPEF: Power: -2 Footprint: xxx xxx xxx Dimensions: [3,3] + Capturable: true + BaseNormal: no + Adjacent: 8 RenderBuilding: Image: SPEN Fake: @@ -1318,6 +1407,9 @@ DOMF: Power: -2 Footprint: xx xx Dimensions: [2,2] + Capturable: true + BaseNormal: no + Bib: yes RenderBuilding: Image: DOME Fake: @@ -1381,6 +1473,7 @@ E1: Speed: 4 RenderInfantry: AttackBase: + PrimaryWeapon: M1Carbine TakeCover: SquishByTank: AutoTarget: @@ -1405,6 +1498,8 @@ E2: Speed: 5 RenderInfantry: AttackBase: + PrimaryWeapon: Grenade + PrimaryOffset: 0,0,0,-13 TakeCover: SquishByTank: AutoTarget: @@ -1429,6 +1524,8 @@ E3: Speed: 3 RenderInfantry: AttackBase: + PrimaryWeapon: RedEye + PrimaryOffset: 0,0,0,-13 TakeCover: SquishByTank: AutoTarget: @@ -1454,6 +1551,8 @@ E4: Speed: 3 RenderInfantry: AttackBase: + PrimaryWeapon: Flamer + PrimaryOffset: 0,0,0,-7 TakeCover: SquishByTank: AutoTarget: @@ -1554,6 +1653,7 @@ E7: RenderInfantry: C4Demolition: AttackBase: + PrimaryWeapon: Colt45 TakeCover: SquishByTank: AutoTarget: @@ -1580,6 +1680,7 @@ MEDI: RenderInfantry: AutoHeal: AttackBase: + PrimaryWeapon: Heal TakeCover: SquishByTank: Passenger: From a2b0a2362683c67cdaba832ffa046f731e729ffa Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 9 Jan 2010 22:38:32 +1300 Subject: [PATCH 3/3] removing [] from .rul output as per ytinasni's request --- RulesConverter/Program.cs | 2 +- out.rul | 208 +++++++++++++++++++------------------- 2 files changed, 105 insertions(+), 105 deletions(-) diff --git a/RulesConverter/Program.cs b/RulesConverter/Program.cs index baa1187620..cb1089223b 100644 --- a/RulesConverter/Program.cs +++ b/RulesConverter/Program.cs @@ -166,7 +166,7 @@ namespace RulesConverter var v = kv.Value == "$Tab" ? cat.Value.Second : iniSection.GetValue(kv.Value, ""); var fmt = "\t\t{0}: {1}"; var k = kv.Key; - if (k.StartsWith("@")) { k = k.Substring(1); fmt = "\t\t{0}: [{1}]"; } + if (k.StartsWith("@")) { k = k.Substring(1); /*fmt = "\t\t{0}: [{1}]";*/ } if (k.StartsWith("$")) { k = k.Substring(1); fmt = "\t\t{0}: \"{1}\""; } if (!string.IsNullOrEmpty(v)) writer.WriteLine(fmt, k, v); diff --git a/out.rul b/out.rul index 194d66b659..7b4d216bf0 100644 --- a/out.rul +++ b/out.rul @@ -3,7 +3,7 @@ V2RL: Buildable: TechLevel: 4 Tab: Vehicle - Prerequisites: [weap,dome] + Prerequisites: weap,dome Owner: soviet Cost: 700 Description: "V2 Rocket" @@ -32,7 +32,7 @@ V2RL: Buildable: TechLevel: 4 Tab: Vehicle - Prerequisites: [weap] + Prerequisites: weap Owner: allies Cost: 700 Description: "Light Tank" @@ -63,7 +63,7 @@ V2RL: Buildable: TechLevel: 6 Tab: Vehicle - Prerequisites: [weap] + Prerequisites: weap Owner: allies Cost: 800 Description: "Medium Tank" @@ -94,7 +94,7 @@ V2RL: Buildable: TechLevel: 4 Tab: Vehicle - Prerequisites: [weap] + Prerequisites: weap Owner: soviet Cost: 950 Description: "Heavy Tank" @@ -125,7 +125,7 @@ V2RL: Buildable: TechLevel: 10 Tab: Vehicle - Prerequisites: [weap,stek] + Prerequisites: weap,stek Owner: soviet Cost: 1700 Description: "Mammoth Tank" @@ -158,7 +158,7 @@ MRJ: Buildable: TechLevel: 12 Tab: Vehicle - Prerequisites: [weap,dome] + Prerequisites: weap,dome Owner: allies Cost: 600 Description: "Radar Jammer" @@ -185,7 +185,7 @@ MGG: Buildable: TechLevel: 11 Tab: Vehicle - Prerequisites: [weap,atek] + Prerequisites: weap,atek Owner: allies Cost: 600 Description: "Mobile Gap Generator" @@ -212,7 +212,7 @@ ARTY: Buildable: TechLevel: 8 Tab: Vehicle - Prerequisites: [weap] + Prerequisites: weap Owner: allies Cost: 600 Description: "Artillery" @@ -242,7 +242,7 @@ HARV: Buildable: TechLevel: 1 Tab: Vehicle - Prerequisites: [weap,proc] + Prerequisites: weap,proc Owner: allies,soviet Cost: 1400 Description: "Ore Truck" @@ -270,7 +270,7 @@ MCV: Buildable: TechLevel: 11 Tab: Vehicle - Prerequisites: [weap,fix] + Prerequisites: weap,fix Owner: allies,soviet Cost: 2500 Description: "Mobile Construction Vehicle" @@ -298,7 +298,7 @@ JEEP: Buildable: TechLevel: 3 Tab: Vehicle - Prerequisites: [weap] + Prerequisites: weap Owner: allies Cost: 600 Description: "Ranger" @@ -330,7 +330,7 @@ APC: Buildable: TechLevel: 5 Tab: Vehicle - Prerequisites: [weap,tent] + Prerequisites: weap,tent Owner: allies Cost: 800 Description: "Armored Personnel Carrier" @@ -353,7 +353,7 @@ APC: Repairable: Chronoshiftable: Cargo: - PassengerTypes: [Foot] + PassengerTypes: Foot UnloadFacing: 220 Passenger: IronCurtainable: @@ -363,7 +363,7 @@ MNLY.AP: Buildable: TechLevel: 3 Tab: Vehicle - Prerequisites: [weap,fix] + Prerequisites: weap,fix Owner: soviet Cost: 800 Icon: MNLYICON @@ -395,7 +395,7 @@ MNLY.AT: Buildable: TechLevel: 3 Tab: Vehicle - Prerequisites: [weap,fix] + Prerequisites: weap,fix Owner: allies Cost: 800 Icon: MNLYICON @@ -427,7 +427,7 @@ SS: Buildable: TechLevel: 5 Tab: Ship - Prerequisites: [spen] + Prerequisites: spen Owner: soviet Cost: 950 Description: "Submarine" @@ -452,7 +452,7 @@ DD: Buildable: TechLevel: 7 Tab: Ship - Prerequisites: [syrd] + Prerequisites: syrd Owner: allies Cost: 1000 Description: "Destroyer" @@ -479,7 +479,7 @@ CA: Buildable: TechLevel: 10 Tab: Ship - Prerequisites: [syrd,atek] + Prerequisites: syrd,atek Owner: allies Cost: 2000 Description: "Cruiser" @@ -522,7 +522,7 @@ LST: Speed: 14 RenderUnit: Cargo: - PassengerTypes: [Foot,Wheel,Track] + PassengerTypes: Foot,Wheel,Track IronCurtainable: PT: @@ -530,7 +530,7 @@ PT: Buildable: TechLevel: 5 Tab: Ship - Prerequisites: [syrd] + Prerequisites: syrd Owner: allies Cost: 500 Description: "Gunboat" @@ -557,7 +557,7 @@ MIG: Buildable: TechLevel: 10 Tab: Plane - Prerequisites: [afld] + Prerequisites: afld Owner: soviet Cost: 1200 Description: "Mig Attack Plane" @@ -582,7 +582,7 @@ YAK: Buildable: TechLevel: 5 Tab: Plane - Prerequisites: [afld] + Prerequisites: afld Owner: soviet Cost: 800 Description: "Yak Attack Plane" @@ -608,7 +608,7 @@ TRAN: Buildable: TechLevel: 11 Tab: Plane - Prerequisites: [hpad] + Prerequisites: hpad Owner: allies Cost: 1200 Description: "Transport Helicopter" @@ -623,7 +623,7 @@ TRAN: RenderUnitRotor: WithShadow: Cargo: - PassengerTypes: [Foot] + PassengerTypes: Foot IronCurtainable: HELI: @@ -631,7 +631,7 @@ HELI: Buildable: TechLevel: 9 Tab: Plane - Prerequisites: [hpad] + Prerequisites: hpad Owner: allies Cost: 1200 Description: "Longbow" @@ -659,7 +659,7 @@ HIND: Buildable: TechLevel: 9 Tab: Plane - Prerequisites: [hpad] + Prerequisites: hpad Owner: allies Cost: 1200 Description: "Hind" @@ -687,7 +687,7 @@ IRON: Buildable: TechLevel: 12 Tab: Defense - Prerequisites: [stek] + Prerequisites: stek Owner: soviet Cost: 2800 Description: "Iron Curtain" @@ -698,7 +698,7 @@ IRON: Power: -200 RequiresPower: true Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true RenderBuilding: IronCurtainable: @@ -709,7 +709,7 @@ PDOX: Buildable: TechLevel: 12 Tab: Defense - Prerequisites: [atek] + Prerequisites: atek Owner: allies Cost: 2800 Description: "Chronosphere" @@ -720,7 +720,7 @@ PDOX: Power: -200 RequiresPower: true Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true RenderBuilding: Chronosphere: @@ -731,7 +731,7 @@ PBOX: Buildable: TechLevel: 2 Tab: Defense - Prerequisites: [tent] + Prerequisites: tent Owner: allies Cost: 400 Description: "Pillbox" @@ -741,7 +741,7 @@ PBOX: Building: Power: -15 Footprint: x - Dimensions: [1,1] + Dimensions: 1,1 Turreted: RenderBuilding: AttackTurreted: @@ -754,7 +754,7 @@ HBOX: Buildable: TechLevel: 3 Tab: Defense - Prerequisites: [tent] + Prerequisites: tent Owner: allies Cost: 600 Description: "Camo Pillbox" @@ -764,7 +764,7 @@ HBOX: Building: Power: -15 Footprint: x - Dimensions: [1,1] + Dimensions: 1,1 Turreted: RenderBuilding: AttackTurreted: @@ -777,7 +777,7 @@ TSLA: Buildable: TechLevel: 7 Tab: Defense - Prerequisites: [weap] + Prerequisites: weap Owner: soviet Cost: 1500 Description: "Tesla Coil" @@ -788,7 +788,7 @@ TSLA: Power: -150 RequiresPower: true Footprint: _ x - Dimensions: [1,2] + Dimensions: 1,2 Turreted: RenderBuildingCharge: AttackTurreted: @@ -801,7 +801,7 @@ GUN: Buildable: TechLevel: 4 Tab: Defense - Prerequisites: [tent] + Prerequisites: tent Owner: allies Cost: 600 Description: "Turret" @@ -811,7 +811,7 @@ GUN: Building: Power: -40 Footprint: x - Dimensions: [1,1] + Dimensions: 1,1 Turreted: RenderBuildingTurreted: AttackTurreted: @@ -824,7 +824,7 @@ AGUN: Buildable: TechLevel: 5 Tab: Defense - Prerequisites: [dome] + Prerequisites: dome Owner: allies Cost: 600 Description: "AA Gun" @@ -835,7 +835,7 @@ AGUN: Power: -50 RequiresPower: true Footprint: _ x - Dimensions: [1,2] + Dimensions: 1,2 Turreted: RenderBuildingTurreted: AttackTurreted: @@ -848,7 +848,7 @@ FTUR: Buildable: TechLevel: 2 Tab: Defense - Prerequisites: [barr] + Prerequisites: barr Owner: soviet Cost: 600 Description: "Flame Turret" @@ -859,7 +859,7 @@ FTUR: Building: Power: -20 Footprint: x - Dimensions: [1,1] + Dimensions: 1,1 RenderBuilding: AttackTurreted: PrimaryWeapon: FireballLauncher @@ -871,7 +871,7 @@ GAP: Buildable: TechLevel: 10 Tab: Defense - Prerequisites: [atek] + Prerequisites: atek Owner: allies Cost: 500 Description: "Gap Generator" @@ -882,7 +882,7 @@ GAP: Power: -60 RequiresPower: true Footprint: _ x - Dimensions: [1,2] + Dimensions: 1,2 Capturable: true RenderBuilding: IronCurtainable: @@ -892,7 +892,7 @@ SAM: Buildable: TechLevel: 9 Tab: Defense - Prerequisites: [dome] + Prerequisites: dome Owner: soviet Cost: 750 Description: "SAM Site" @@ -902,7 +902,7 @@ SAM: Building: Power: -20 Footprint: xx - Dimensions: [2,1] + Dimensions: 2,1 Turreted: RenderBuildingTurreted: AttackTurreted: @@ -915,7 +915,7 @@ MSLO: Buildable: TechLevel: 13 Tab: Defense - Prerequisites: [stek,atek] + Prerequisites: stek,atek Owner: soviet,allies Cost: 2500 Description: "Missile Silo" @@ -925,7 +925,7 @@ MSLO: Building: Power: -100 Footprint: xx - Dimensions: [2,1] + Dimensions: 2,1 RenderBuilding: IronCurtainable: @@ -934,7 +934,7 @@ ATEK: Buildable: TechLevel: 10 Tab: Building - Prerequisites: [weap,dome] + Prerequisites: weap,dome Owner: allies Cost: 1500 Description: "Allied Tech Center" @@ -944,7 +944,7 @@ ATEK: Building: Power: -200 Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true Bib: yes RenderBuilding: @@ -956,7 +956,7 @@ WEAP: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [proc] + Prerequisites: proc Owner: soviet,allies Cost: 2000 Description: "War Factory" @@ -966,7 +966,7 @@ WEAP: Building: Power: -30 Footprint: xxx xxx - Dimensions: [3,2] + Dimensions: 3,2 Capturable: true Bib: yes RenderWarFactory: @@ -980,7 +980,7 @@ SYRD: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [powr] + Prerequisites: powr Owner: allies Cost: 650 Description: "Shipyard" @@ -990,7 +990,7 @@ SYRD: Building: Power: -30 Footprint: xxx xxx xxx - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true BaseNormal: no Adjacent: 8 @@ -1003,7 +1003,7 @@ SPEN: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [powr] + Prerequisites: powr Owner: soviet Cost: 650 Description: "Sub Pen" @@ -1013,7 +1013,7 @@ SPEN: Building: Power: -30 Footprint: xxx xxx xxx - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true BaseNormal: no Adjacent: 8 @@ -1028,7 +1028,7 @@ FACT: Building: Power: 0 Footprint: xxx xxx xxx - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true Bib: yes RenderBuilding: @@ -1040,7 +1040,7 @@ PROC: Buildable: TechLevel: 1 Tab: Building - Prerequisites: [powr] + Prerequisites: powr Owner: allies,soviet Cost: 2000 Description: "Ore Refinery" @@ -1050,7 +1050,7 @@ PROC: Building: Power: -30 Footprint: _x_ xxx x== - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true Bib: yes RenderBuilding: @@ -1065,7 +1065,7 @@ SILO: Buildable: TechLevel: 1 Tab: Building - Prerequisites: [proc] + Prerequisites: proc Owner: allies,soviet Cost: 150 Description: "Silo" @@ -1075,7 +1075,7 @@ SILO: Building: Power: -10 Footprint: x - Dimensions: [1,1] + Dimensions: 1,1 Capturable: true RenderBuildingOre: StoresOre: @@ -1088,7 +1088,7 @@ HPAD: Buildable: TechLevel: 9 Tab: Building - Prerequisites: [dome] + Prerequisites: dome Owner: allies Cost: 1500 Description: "Helipad" @@ -1098,7 +1098,7 @@ HPAD: Building: Power: -10 Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true Bib: yes RenderBuilding: @@ -1112,7 +1112,7 @@ DOME: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [proc] + Prerequisites: proc Owner: allies,soviet Cost: 1000 Description: "Radar Dome" @@ -1123,7 +1123,7 @@ DOME: Power: -40 RequiresPower: true Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true Bib: yes RenderBuilding: @@ -1135,7 +1135,7 @@ AFLD: Buildable: TechLevel: 5 Tab: Building - Prerequisites: [dome] + Prerequisites: dome Owner: soviet Cost: 600 Description: "Airstrip" @@ -1145,7 +1145,7 @@ AFLD: Building: Power: -30 Footprint: xxx xxx - Dimensions: [3,2] + Dimensions: 3,2 Capturable: true RenderBuilding: Production: @@ -1158,7 +1158,7 @@ POWR: Buildable: TechLevel: 1 Tab: Building - Prerequisites: [fact] + Prerequisites: fact Owner: allies,soviet Cost: 300 Description: "Power Plant" @@ -1168,7 +1168,7 @@ POWR: Building: Power: 100 Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true Bib: yes RenderBuilding: @@ -1179,7 +1179,7 @@ APWR: Buildable: TechLevel: 8 Tab: Building - Prerequisites: [powr] + Prerequisites: powr Owner: allies,soviet Cost: 500 Description: "Advanced Power Plant" @@ -1189,7 +1189,7 @@ APWR: Building: Power: 200 Footprint: ___ xxx xxx - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true Bib: yes RenderBuilding: @@ -1200,7 +1200,7 @@ STEK: Buildable: TechLevel: 6 Tab: Building - Prerequisites: [weap,dome] + Prerequisites: weap,dome Owner: soviet Cost: 1500 Description: "Soviet Tech Center" @@ -1210,7 +1210,7 @@ STEK: Building: Power: -100 Footprint: xxx xxx - Dimensions: [3,2] + Dimensions: 3,2 Capturable: true Bib: yes RenderBuilding: @@ -1221,7 +1221,7 @@ BARR: Buildable: TechLevel: 1 Tab: Building - Prerequisites: [powr] + Prerequisites: powr Owner: soviet Cost: 300 Description: "Soviet Barracks" @@ -1231,7 +1231,7 @@ BARR: Building: Power: -20 Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true Bib: yes RenderBuilding: @@ -1244,7 +1244,7 @@ TENT: Buildable: TechLevel: 1 Tab: Building - Prerequisites: [powr] + Prerequisites: powr Owner: allies Cost: 300 Description: "Allied Barracks" @@ -1254,7 +1254,7 @@ TENT: Building: Power: -20 Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true Bib: yes RenderBuilding: @@ -1267,7 +1267,7 @@ KENN: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [barr] + Prerequisites: barr Owner: soviet Cost: 200 Description: "Kennel" @@ -1277,7 +1277,7 @@ KENN: Building: Power: -10 Footprint: x - Dimensions: [1,1] + Dimensions: 1,1 RenderBuilding: RallyPoint: Production: @@ -1288,7 +1288,7 @@ FIX: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [weap] + Prerequisites: weap Owner: allies,soviet Cost: 1200 Description: "Service Depot" @@ -1298,7 +1298,7 @@ FIX: Building: Power: -30 Footprint: _x_ xxx _x_ - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true RenderBuilding: BelowUnits: @@ -1319,7 +1319,7 @@ FACF: Building: Power: -2 Footprint: xxx xxx xxx - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true BaseNormal: no Bib: yes @@ -1333,7 +1333,7 @@ WEAF: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [proc] + Prerequisites: proc Owner: allies Cost: 50 Description: "Fake War Factory" @@ -1343,7 +1343,7 @@ WEAF: Building: Power: -2 Footprint: xxx xxx - Dimensions: [3,2] + Dimensions: 3,2 Capturable: true BaseNormal: no Bib: yes @@ -1358,7 +1358,7 @@ SYRF: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [powr] + Prerequisites: powr Owner: allies Cost: 50 Description: "Fake Shipyard" @@ -1368,7 +1368,7 @@ SYRF: Building: Power: -2 Footprint: xxx xxx xxx - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true BaseNormal: no Adjacent: 8 @@ -1383,7 +1383,7 @@ SPEF: Building: Power: -2 Footprint: xxx xxx xxx - Dimensions: [3,3] + Dimensions: 3,3 Capturable: true BaseNormal: no Adjacent: 8 @@ -1396,7 +1396,7 @@ DOMF: Buildable: TechLevel: 3 Tab: Building - Prerequisites: [proc] + Prerequisites: proc Owner: allies Cost: 50 Description: "Fake Radar Dome" @@ -1406,7 +1406,7 @@ DOMF: Building: Power: -2 Footprint: xx xx - Dimensions: [2,2] + Dimensions: 2,2 Capturable: true BaseNormal: no Bib: yes @@ -1437,14 +1437,14 @@ DOG: Buildable: TechLevel: 3 Tab: Infantry - Prerequisites: [kenn] + Prerequisites: kenn Owner: soviet Cost: 200 Description: "Attack Dog" LongDesc: "Anti-infantry unit. Not fooled by the \nSpy's disguise.\n Strong vs Infantry\n Weak vs Vehicles" Selectable: Voice: DogVoice - Bounds: [12,17,-1,-4] + Bounds: 12,17,-1,-4 Unit: HP: 12 Armor: none @@ -1464,7 +1464,7 @@ E1: Description: "Rifle Infantry" LongDesc: "General-purpose infantry. Strong vs Infantry\n Weak vs Vehicles" Selectable: - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 50 Armor: none @@ -1489,7 +1489,7 @@ E2: Description: "Grenadier" LongDesc: "Infantry armed with grenades. \n Strong vs Buildings, Infantry\n Weak vs Vehicles" Selectable: - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 50 Armor: none @@ -1515,7 +1515,7 @@ E3: Description: "Rocket Soldier" LongDesc: "Anti-tank/Anti-aircraft infantry.\n Strong vs Tanks, Aircraft\n Weak vs Infantry" Selectable: - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 45 Armor: none @@ -1536,13 +1536,13 @@ E4: Buildable: TechLevel: 6 Tab: Infantry - Prerequisites: [stek] + Prerequisites: stek Owner: soviet Cost: 300 Description: "Flamethrower" LongDesc: "Advanced Anti-infantry unit.\n Strong vs Infantry, Buildings\n Weak vs Vehicles" Selectable: - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 40 Armor: none @@ -1569,7 +1569,7 @@ E6: LongDesc: "Infiltrates and captures enemy structures.\n Strong vs Nothing\n Weak vs Everything" Selectable: Voice: EngineerVoice - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 25 Armor: none @@ -1587,14 +1587,14 @@ SPY: Buildable: TechLevel: 6 Tab: Infantry - Prerequisites: [dome] + Prerequisites: dome Owner: allies Cost: 500 Description: "Spy" LongDesc: "Infiltrates enemy structures to gather \nintelligence. Exact effect depends on the \nbuilding infiltrated.\n Strong vs Nothing\n Weak vs Everything\n Special Ability: Disguised" Selectable: Voice: SpyVoice - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 25 Armor: none @@ -1611,14 +1611,14 @@ THF: Buildable: TechLevel: 11 Tab: Infantry - Prerequisites: [atek] + Prerequisites: atek Owner: allies Cost: 500 Description: "Thief" LongDesc: "Infiltrates enemy refineries & \nsilos, and steals money stored there.\n Unarmed" Selectable: Voice: ThiefVoice - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 25 Armor: none @@ -1636,14 +1636,14 @@ E7: Buildable: TechLevel: 11 Tab: Infantry - Prerequisites: [atek,stek] + Prerequisites: atek,stek Owner: allies,soviet Cost: 1200 Description: "Tanya" LongDesc: "Elite commando infantry, armed with \ndual pistols and C4.\n Strong vs Infantry, Buildings\n Weak vs Vehicles\n Special Ability: Destroy Building with C4" Selectable: Voice: TanyaVoice - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 100 Armor: none @@ -1670,7 +1670,7 @@ MEDI: LongDesc: "Heals nearby infantry.\n Strong vs Nothing\n Weak vs Everything" Selectable: Voice: MedicVoice - Bounds: [12,17,0,-9] + Bounds: 12,17,0,-9 Unit: HP: 80 Armor: none