Compare commits

..

5 Commits

Author SHA1 Message Date
Vasyl Horbachenko
58dd16219b removed observer slots 2018-07-15 08:55:20 +03:00
Vasyl Horbachenko
e0e1d0238f nevada debugging code removal 2018-07-15 05:55:38 +03:00
Vasyl Horbachenko
71e22bdb21 Merge remote-tracking branch 'origin/master' 2018-07-15 04:21:07 +03:00
Vasyl Horbachenko
3c2025ab44 minor hotfixes in mp debriefing (WIP) 2018-07-15 04:20:55 +03:00
Vasyl Horbachenko
d314e22970 Update start.bat 2018-07-13 04:59:59 +03:00
5 changed files with 5 additions and 11 deletions

View File

@@ -140,10 +140,6 @@ class TriggersGenerator:
player_coalition = self.game.player == "USA" and "blue" or "red"
enemy_coalition = player_coalition == "blue" and "red" or "blue"
# dcs require at least some slots on both sides for the mission to start
self.mission.groundControl.red_observer = 1
self.mission.groundControl.blue_observer = 1
self.mission.coalition[player_coalition].bullseye = {"x": self.conflict.position.x,
"y": self.conflict.position.y}

View File

@@ -1 +1 @@
py.exe __init__.py "C:\Users\shdwp" > logs.txt 2>&1
py.exe __init__.py %UserProfile% > logs.txt 2>&1

View File

@@ -51,5 +51,4 @@ class NevadaTheater(ConflictTheater):
self.add_controlpoint(self.laughlin, connected_to=[self.jean, self.las_vegas])
self.mina.captured = True
self.pahute_mesa.captured = True
self.groom_lake.captured = True

View File

@@ -69,7 +69,6 @@ class PersianGulfTheater(ConflictTheater):
self.add_controlpoint(self.west_carrier)
self.west_carrier.captured = True
self.al_dhafra.captured = True
"""

View File

@@ -29,18 +29,18 @@ def parse_mutliplayer_debriefing(contents: str):
for line in [x.strip() for x in contents.splitlines()]:
if line.startswith("events ="):
in_events = True
elif line.startswith("}, -- end of events"):
elif line.startswith("} -- end of events"):
in_events = False
if not in_events:
continue
key = None
if line.startswith("initiator"):
if line.startswith("initiator\t"):
key = "initiator"
if element is None:
element = {}
elif line.startswith("type"):
elif line.startswith("type\t"):
key = "type"
if element is None:
element = {}