Skip to content

Commit

Permalink
Need to erase _FILE_VERSION_KEY before loading commences
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Aug 6, 2024
1 parent fd1b28a commit b622c0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion galaxy/main_galaxy.tres
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[ext_resource type="Resource" uid="uid://bowucldo27rjd" path="res://galaxy/star_system/star_systems/zephyria.tres" id="7_puhoc"]
[ext_resource type="Resource" uid="uid://cu1wn7ldbgeej" path="res://galaxy/star_system/star_systems/thalassa.tres" id="8_4yki3"]
[ext_resource type="Resource" uid="uid://ku5qjeo4jlkt" path="res://galaxy/star_system/star_systems/nova_lumina.tres" id="9_qqkio"]
[ext_resource type="Resource" uid="uid://nbm8is7uln37" path="res://galaxy/star_system/star_systems/helios.tres" id="10_fsj5o"]
[ext_resource type="Resource" path="res://galaxy/star_system/star_systems/helios.tres" id="10_fsj5o"]

[resource]
script = ExtResource("1_bckai")
Expand Down
4 changes: 2 additions & 2 deletions screens/game/game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ script = ExtResource("11_ag0i7")
max_volume = 10.0
commodities = {}

[sub_resource type="Resource" id="Resource_oguq3"]
[sub_resource type="Resource" id="Resource_pjdcx"]
resource_local_to_scene = true
script = ExtResource("13_q2g24")
max_fuel = 6.0
Expand Down Expand Up @@ -179,7 +179,7 @@ hull = SubResource("Resource_ffax2")
shield = SubResource("Resource_75c8j")
battery = SubResource("Resource_xpwk4")
cargo_hold = SubResource("Resource_bsv1l")
hyperdrive = SubResource("Resource_oguq3")
hyperdrive = SubResource("Resource_pjdcx")

[node name="HyperdriveSystem" type="Node3D" parent="HyperspaceSceneSwitcher/Sol/PlayerCorvette"]
script = ExtResource("16_6olqp")
Expand Down
2 changes: 2 additions & 0 deletions utils/save_game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func load(filename: String) -> Error:
push_warning("Unsupported save file version: ", file_version)
return ERR_FILE_UNRECOGNIZED

dict.erase(_FILE_VERSION_KEY)

print("Loading game from: ", path)
self.load_tree_from_dict(dict)
print("Loaded game from: ", path)
Expand Down

0 comments on commit b622c0c

Please sign in to comment.