imports update

This commit is contained in:
spencer-ki 2022-03-01 20:21:02 -08:00
parent 5c3e4b1cf2
commit d70e0544f2
14 changed files with 9 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -597,6 +597,9 @@ p, li { white-space: pre-wrap; }
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="defense_checkBox"> <widget class="QCheckBox" name="defense_checkBox">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>60</x> <x>60</x>
@ -613,6 +616,9 @@ p, li { white-space: pre-wrap; }
<property name="text"> <property name="text">
<string>Defensive Mode</string> <string>Defensive Mode</string>
</property> </property>
<property name="checkable">
<bool>true</bool>
</property>
</widget> </widget>
<widget class="QSpinBox" name="e_attack_helos_spinBox"> <widget class="QSpinBox" name="e_attack_helos_spinBox">
<property name="geometry"> <property name="geometry">

View File

@ -43,6 +43,8 @@ class ImportObjects:
self.source_heading = group.units[0].heading self.source_heading = group.units[0].heading
else: else:
logger.warning("Unable to find group for anchor.") logger.warning("Unable to find group for anchor.")
raise Exception(
"Import template file error: " + self.mizfile + " does not contain a group called " + group_name)
def extractUnits(self): def extractUnits(self):

View File

@ -257,7 +257,7 @@ class RotorOpsMission:
else: else:
staging_position = blue_zones[zone_name].position staging_position = blue_zones[zone_name].position
staging_heading = 0 staging_heading = 0
i = ImportObjects("STAGING_LOGISITIC_HUB.miz") i = ImportObjects("STAGING_LOGISTIC_HUB.miz")
i.anchorByGroupName("ANCHOR") i.anchorByGroupName("ANCHOR")
i.copyAll(self.m, jtf_blue, "Staging Logistics Zone", i.copyAll(self.m, jtf_blue, "Staging Logistics Zone",
staging_position, staging_heading) staging_position, staging_heading)
@ -296,8 +296,6 @@ class RotorOpsMission:
self.addResources(self.sound_directory, self.script_directory) self.addResources(self.sound_directory, self.script_directory)
RotorOpsConflict.triggerSetup(self, options) RotorOpsConflict.triggerSetup(self, options)
# test adding static objects from a .miz
#self.addStatics()
#Save the mission file #Save the mission file
os.chdir(self.output_dir) os.chdir(self.output_dir)

Binary file not shown.