diff --git a/src/logic-scenes/main menu/save_game_list.gd b/src/logic-scenes/main menu/save_game_list.gd index 72ef6eb..f6ccacc 100644 --- a/src/logic-scenes/main menu/save_game_list.gd +++ b/src/logic-scenes/main menu/save_game_list.gd @@ -19,6 +19,8 @@ var scroll_container: ScrollContainer var create_new_game: bool = false func _ready() -> void: + #FIXME: stop this from creating countless save games! + return var dir = DirAccess.open(State.user_saves_path) print(DirAccess.get_open_error()) # Invalid Error being raised when Directory does not exist. diff --git a/src/main.tscn b/src/main.tscn index d0b4856..81585a4 100644 --- a/src/main.tscn +++ b/src/main.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=87 format=3 uid="uid://befxf8uruwnrl"] +[gd_scene load_steps=76 format=3 uid="uid://befxf8uruwnrl"] [ext_resource type="Script" path="res://main.gd" id="1_rqkns"] [ext_resource type="PackedScene" uid="uid://gldtxysavetf" path="res://logic-scenes/startup/startup.tscn" id="1_v5rpm"] @@ -11,10 +11,8 @@ [ext_resource type="AudioStream" uid="uid://fej7yw25lgqy" path="res://import/menu_music/Ambient 6.ogg" id="8_tptb8"] [ext_resource type="Script" path="res://logic-scenes/main menu/pause_menu.gd" id="9_ihfph"] [ext_resource type="Texture2D" uid="uid://ds1n0xhxqlp4b" path="res://base-environments/youth_room/shaders/universe_noise.png" id="9_l7v4b"] -[ext_resource type="Script" path="res://dev-util/savegame.gd" id="10_ohds0"] [ext_resource type="Texture2D" uid="uid://bdyg065h8vcdi" path="res://base-environments/youth_room/shaders/starlight-textures.png" id="10_pipov"] [ext_resource type="Script" path="res://addons/markdownlabel/markdownlabel.gd" id="10_viehl"] -[ext_resource type="Texture2D" uid="uid://bk5ja14r7r6i4" path="res://import/interface-elements/empty_save_slot.png" id="11_lul3y"] [ext_resource type="Script" path="res://addons/markdownlabel/header_formats/h1_format.gd" id="11_uwfii"] [ext_resource type="Script" path="res://addons/markdownlabel/header_formats/h2_format.gd" id="12_x1sbw"] [ext_resource type="Script" path="res://addons/markdownlabel/header_formats/h3_format.gd" id="13_l08wk"] @@ -980,105 +978,6 @@ states/start_game/position = Vector2(698, 32) transitions = ["Start", "init", SubResource("AnimationNodeStateMachineTransition_dxdg4"), "init", "loading", SubResource("AnimationNodeStateMachineTransition_0hpxy"), "loading", "loading_done", SubResource("AnimationNodeStateMachineTransition_ipapo"), "loading_done", "start_game", SubResource("AnimationNodeStateMachineTransition_0t1lp"), "start_game", "init", SubResource("AnimationNodeStateMachineTransition_66nmg"), "loading_done", "load_savegame", SubResource("AnimationNodeStateMachineTransition_6b86u"), "load_savegame", "loading_game", SubResource("AnimationNodeStateMachineTransition_y626i"), "loading_game", "start_game", SubResource("AnimationNodeStateMachineTransition_52bss"), "start_game", "credits_roll", SubResource("AnimationNodeStateMachineTransition_x8oth"), "credits_roll", "loading_done", SubResource("AnimationNodeStateMachineTransition_5ge3a"), "loading_done", "credits_roll", SubResource("AnimationNodeStateMachineTransition_44pd3"), "start_game", "reveal_pause_menu", SubResource("AnimationNodeStateMachineTransition_pc6pe"), "reveal_pause_menu", "hide_pause_menu", SubResource("AnimationNodeStateMachineTransition_dx61n"), "hide_pause_menu", "start_game", SubResource("AnimationNodeStateMachineTransition_lp1dx"), "hide_pause_menu", "init", SubResource("AnimationNodeStateMachineTransition_mqlnh")] graph_offset = Vector2(157.75, -185.734) -[sub_resource type="Resource" id="Resource_0ccxs"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_save_slot_0_2024-10-06_17:21:09" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.72857e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_ohjec"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-07_19:06:26" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73895e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_fla7m"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-07_22:44:26" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73896e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_6v5b2"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-08_10:58:47" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73901e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_mavpj"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-08_10:59:28" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73901e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_ggdn0"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-08_15:10:04" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73902e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_7qac8"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-08_16:24:23" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73903e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_kqi28"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-08_20:32:11" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73904e+09 -is_save_file_valid = false - -[sub_resource type="Resource" id="Resource_yfsev"] -script = ExtResource("10_ohds0") -filepath = "" -unique_save_name = "frame_of_mind_2025-02-09_14:15:05" -current_room = 0 -mementos_complete = 0 -board_state = {} -thumbnail = ExtResource("11_lul3y") -last_saved = 1.73911e+09 -is_save_file_valid = false - [sub_resource type="Resource" id="Resource_qi5jr"] resource_local_to_scene = true script = ExtResource("11_uwfii") @@ -1373,7 +1272,6 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("8_jecj3") -saves = Array[ExtResource("10_ohds0")]([SubResource("Resource_0ccxs"), SubResource("Resource_ohjec"), SubResource("Resource_fla7m"), SubResource("Resource_6v5b2"), SubResource("Resource_mavpj"), SubResource("Resource_ggdn0"), SubResource("Resource_7qac8"), SubResource("Resource_kqi28"), SubResource("Resource_yfsev")]) [node name="CreditsRoll" type="RichTextLabel" parent="."] visible = false