Skip to content

Commit 29fe416

Browse files
committed
Fixed crash when mod has no Data folder. Updated conf to last MDK version.
1 parent acb26c3 commit 29fe416

File tree

7 files changed

+22
-21
lines changed

7 files changed

+22
-21
lines changed

Assembler Needs Calculator/Assembler Needs Calculator.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@
9090
<Private>False</Private>
9191
</Reference>
9292
<Reference Include="MDKUtilities">
93-
<HintPath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj\MDKUtilities.dll</HintPath>
93+
<HintPath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\hsyb5leb.lea\MDKUtilities.dll</HintPath>
9494
<Private>True</Private>
9595
</Reference>
96-
<Analyzer Include="c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj\Analyzers\MDKAnalyzer.dll" />
96+
<Analyzer Include="c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\hsyb5leb.lea\Analyzers\MDKAnalyzer.dll" />
9797
</ItemGroup>
9898
<ItemGroup>
9999
<Compile Include="MDK\Bootstrapper.cs" />

Assembler Needs Calculator/MDK/MDK.options

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<!-- DO NOT DELETE THIS FILE.-->
33
<!-- MDK is using this file to identify this project as an MDK project. -->
4-
<mdk version="1.1.26">
4+
<mdk version="1.1.29">
55
<gamebinpath enabled="no">c:\program files (x86)\steam\SteamApps\common\SpaceEngineers\Bin64</gamebinpath>
66
<installpath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj</installpath>
77
<outputpath>C:\Users\julia\AppData\Roaming\SpaceEngineers\IngameScripts\local</outputpath>

BlockDefinitionExtractor/BlockDefinitionExtractor.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,17 @@ def closeAllTempDirs():
214214
def getCubeBlocksTree(m):
215215
m = os.path.join(m, "Data")
216216
parseTrees = []
217-
files = [os.path.join(m, file) for file in os.listdir(m) if os.path.isfile(os.path.join(m, file)) and file.endswith(".sbc")]
218-
for f in files:
219-
tree = ET.parse(f)
220-
cb = tree.getroot().find('CubeBlocks')
221-
if cb is None:
222-
continue
223-
df = cb.find('Definition')
224-
if df is None:
225-
continue
226-
parseTrees.append(cb)
217+
if os.path.exists(m):
218+
files = [os.path.join(m, file) for file in os.listdir(m) if os.path.isfile(os.path.join(m, file)) and file.endswith(".sbc")]
219+
for f in files:
220+
tree = ET.parse(f)
221+
cb = tree.getroot().find('CubeBlocks')
222+
if cb is None:
223+
continue
224+
df = cb.find('Definition')
225+
if df is None:
226+
continue
227+
parseTrees.append(cb)
227228
return parseTrees
228229

229230

Projector2LCD/MDK/MDK.options

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<!-- DO NOT DELETE THIS FILE.-->
33
<!-- MDK is using this file to identify this project as an MDK project. -->
4-
<mdk version="1.1.26">
4+
<mdk version="1.1.29">
55
<gamebinpath enabled="no">c:\program files (x86)\steam\SteamApps\common\SpaceEngineers\Bin64</gamebinpath>
66
<installpath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj</installpath>
77
<outputpath>C:\Users\julia\AppData\Roaming\SpaceEngineers\IngameScripts\local</outputpath>

Projector2LCD/Projector2LCD.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@
9090
<Private>False</Private>
9191
</Reference>
9292
<Reference Include="MDKUtilities">
93-
<HintPath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj\MDKUtilities.dll</HintPath>
93+
<HintPath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\hsyb5leb.lea\MDKUtilities.dll</HintPath>
9494
<Private>True</Private>
9595
</Reference>
96-
<Analyzer Include="c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj\Analyzers\MDKAnalyzer.dll" />
96+
<Analyzer Include="c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\hsyb5leb.lea\Analyzers\MDKAnalyzer.dll" />
9797
</ItemGroup>
9898
<ItemGroup>
9999
<Compile Include="MDK\Bootstrapper.cs" />

ProjectorResourceBuilder/MDK/MDK.options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- DO NOT DELETE THIS FILE.-->
33
<!-- MDK is using this file to identify this project as an MDK project. -->
4-
<mdk version="1.1.26">
4+
<mdk version="1.1.29">
55
<gamebinpath enabled="no">c:\program files (x86)\steam\SteamApps\common\SpaceEngineers\Bin64</gamebinpath>
66
<installpath>C:\Users\julia\AppData\Local\Microsoft\VisualStudio\15.0_f42d8490\Extensions\gbl1x0ey.se5</installpath>
77
<outputpath>C:\Users\julia\AppData\Roaming\SpaceEngineers\IngameScripts\local</outputpath>

ProjectorResourceBuilder/Projector2Assembler.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@
9090
<Private>False</Private>
9191
</Reference>
9292
<Reference Include="MDKUtilities">
93-
<HintPath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj\MDKUtilities.dll</HintPath>
93+
<HintPath>c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\hsyb5leb.lea\MDKUtilities.dll</HintPath>
9494
<Private>True</Private>
9595
</Reference>
96-
<Analyzer Include="c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\1vd2l1jg.anj\Analyzers\MDKAnalyzer.dll" />
96+
<Analyzer Include="c:\users\julia\appdata\local\microsoft\visualstudio\15.0_f42d8490\extensions\hsyb5leb.lea\Analyzers\MDKAnalyzer.dll" />
9797
</ItemGroup>
9898
<ItemGroup>
9999
<Compile Include="MDK\Bootstrapper.cs" />

0 commit comments

Comments
 (0)