Skip to content

Commit

Permalink
old slabset error
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Nov 30, 2023
1 parent d33dcc6 commit 03b80a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Autoload/Slabset.gd
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ func import_cfg_slabset(filePath, fullImport, showMessages):

resize_dat_and_tng_based_on_cfg(cfg)

if cfg.has_section("slab0.S"):
if cfg.get_value("slab0.S", "columns"): # Lowercase "Columns" means it's an out of date slabset.cfg file
oMessage.big("Failed loading Slabset", "Old /fxdata/slabset.cfg file, please install the latest KeeperFX alpha patch")


for section in cfg.get_sections():
var parts = section.split(".")
if parts.size() <= 1:
Expand Down
4 changes: 2 additions & 2 deletions Scenes/Main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2413,13 +2413,13 @@ script = ExtResource( 103 )

[node name="MarginContainer" type="MarginContainer" parent="Ui/UiSystem/PreferencesWindow/VBoxContainer/TabSettings/TabPlacements"]
margin_right = 544.0
margin_bottom = 626.0
margin_bottom = 661.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/PreferencesWindow/VBoxContainer/TabSettings/TabPlacements/MarginContainer"]
margin_right = 544.0
margin_bottom = 626.0
margin_bottom = 661.0
mouse_filter = 2
__meta__ = {
"_edit_use_anchors_": false
Expand Down
2 changes: 0 additions & 2 deletions Scenes/SlabPlacement.gd
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,6 @@ func place_general(xSlab, ySlab, slabID, ownership, surrID, surrOwner, bitmaskTy
elif slabID == Slabs.PATH:
randomize_path_cubes(constructedColumns)



set_columns(xSlab, ySlab, constructedColumns, constructedFloor)
oPlaceThingWithSlab.place_slab_objects(xSlab, ySlab, slabID, ownership, slabsetIndexGroup, bitmask, surrID, bitmaskType)

Expand Down

0 comments on commit 03b80a4

Please sign in to comment.