Added working backups.

This commit is contained in:
TheGreenTie
2020-02-29 20:47:50 -06:00
parent 54ede52710
commit 560b4f0a7a
28 changed files with 250 additions and 44 deletions

View File

@@ -622,6 +622,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "0519f1e6-1b15-b8a7-bd8c-8489d767cf9a",
"Value": {
"id": "2234b66c-298f-f8fe-90d2-68bade16c73a",
"resourcePath": "scripts\/mouse_direction_update\/mouse_direction_update.yy",
"resourceType": "GMScript"
}
},
{
"Key": "054f44e1-11ca-4e5e-aa77-23d0b74a9f79",
"Value": {
@@ -1198,6 +1206,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "0a65669e-f5cb-22e9-10a6-eac0e321de31",
"Value": {
"id": "5dc73109-6c5d-730e-8c83-8fa500a6275e",
"resourcePath": "scripts\\change_add\\change_add.yy",
"resourceType": "GMScript"
}
},
{
"Key": "0a8287f9-9dcf-4fb5-a9be-60faede0a38e",
"Value": {
@@ -7490,7 +7506,7 @@
"Key": "4a34078c-7fa4-d9ca-eb35-df0a0ce93667",
"Value": {
"id": "a4aed7b8-3569-686e-86ea-ff5c94787515",
"resourcePath": "scripts/box_gen_jump/box_gen_jump.yy",
"resourcePath": "scripts\/box_gen_jump\/box_gen_jump.yy",
"resourceType": "GMScript"
}
},
@@ -8178,7 +8194,7 @@
"Key": "51d00fa8-eb85-4086-a732-a161d9d217d8",
"Value": {
"id": "85207e30-7cc0-3776-b034-06e06a4b170a",
"resourcePath": "scripts/button_set/button_set.yy",
"resourcePath": "scripts\/button_set\/button_set.yy",
"resourceType": "GMScript"
}
},
@@ -8934,6 +8950,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "5933be0c-4eea-58cb-0a29-3d63b4efa531",
"Value": {
"id": "33859dd0-d936-3e89-23b2-e7a8044fdb69",
"resourcePath": "scripts\\change_backup_make\\change_backup_make.yy",
"resourceType": "GMScript"
}
},
{
"Key": "59352c19-e940-4e6a-a0de-a105af4b66a6",
"Value": {
@@ -9574,6 +9598,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "5fb1cac5-8058-5d99-68a3-60406a3a5148",
"Value": {
"id": "ff030665-db0e-de62-9927-dddb8b7bf5d9",
"resourcePath": "scripts\\window_resize_check\\window_resize_check.yy",
"resourceType": "GMScript"
}
},
{
"Key": "5fe326b2-9545-4d2d-9dac-916a8f244bdf",
"Value": {
@@ -11138,7 +11170,7 @@
"Key": "6ee30c99-62bc-bcf5-3853-e159533ab6d0",
"Value": {
"id": "c2bb0f39-a2d2-3f48-0435-8f8ddcd09621",
"resourcePath": "scripts/button_align_x/button_align_x.yy",
"resourcePath": "scripts\/button_align_x\/button_align_x.yy",
"resourceType": "GMScript"
}
},
@@ -14166,6 +14198,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "8b60df32-c201-4d7d-5dc4-f2a2376232c3",
"Value": {
"id": "672a4994-55a1-667c-e37c-d4b40caf2af1",
"resourcePath": "scripts\\change_backup\\change_backup.yy",
"resourceType": "GMScript"
}
},
{
"Key": "8b672bbe-133a-4a36-88d9-73c5908fb0b5",
"Value": {
@@ -14674,7 +14714,7 @@
"Key": "9081971b-e1be-521f-34be-38fcfa32f684",
"Value": {
"id": "5556752a-d72e-8013-c6ef-9fc461634e8e",
"resourcePath": "scripts/button_align_y/button_align_y.yy",
"resourcePath": "scripts\/button_align_y\/button_align_y.yy",
"resourceType": "GMScript"
}
},
@@ -15210,7 +15250,7 @@
"Key": "961739d9-bcef-9d3d-a9a7-6d0487191e8e",
"Value": {
"id": "cf68e563-92be-d148-9a63-2bb86baa8cc2",
"resourcePath": "scripts/icon_path_get/icon_path_get.yy",
"resourcePath": "scripts\/icon_path_get\/icon_path_get.yy",
"resourceType": "GMScript"
}
},
@@ -16718,6 +16758,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "a4583316-ee45-806d-bf28-e6c94f924583",
"Value": {
"id": "b5ee2ed0-98bb-a4fb-0bd4-49e147d0fcf2",
"resourcePath": "scripts\\draw_reset\\draw_reset.yy",
"resourceType": "GMScript"
}
},
{
"Key": "a4585204-0248-4542-a1c2-5cb83957cdc3",
"Value": {
@@ -16958,6 +17006,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "a6e48265-2887-9dce-6824-b73d2ed253e1",
"Value": {
"id": "1bd2e400-7e70-bdab-e406-aa43ad85ed3e",
"resourcePath": "scripts\\hud_draw_selected\\hud_draw_selected.yy",
"resourceType": "GMScript"
}
},
{
"Key": "a6ea5a65-a226-4d19-a022-4ffa2618bac8",
"Value": {
@@ -17174,6 +17230,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "a95b1f81-6bd5-5928-0dad-3e233aa7e8b7",
"Value": {
"id": "c509eb28-87db-848a-6ffb-ab0f40b1b13d",
"resourcePath": "scripts\\box_scale_update\\box_scale_update.yy",
"resourceType": "GMScript"
}
},
{
"Key": "a9625a4e-ff2e-4a63-b9d0-98ce121dc60c",
"Value": {
@@ -21702,6 +21766,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "d7e04ba6-0e68-8245-0d3a-37da8d2292e4",
"Value": {
"id": "a4569deb-877c-b988-b976-8f8b03d6544e",
"resourcePath": "scripts\/mouse_previous_update\/mouse_previous_update.yy",
"resourceType": "GMScript"
}
},
{
"Key": "d7e3ea40-6e96-48e8-bf94-2d639362926c",
"Value": {
@@ -22722,7 +22794,7 @@
"Key": "e10f4338-d865-41ce-6c7c-ffe8b9302bc2",
"Value": {
"id": "bc9ef1b6-6c89-650e-c291-a4ffb4d4cd96",
"resourcePath": "scripts/savedata_read_real/savedata_read_real.yy",
"resourcePath": "scripts\/savedata_read_real\/savedata_read_real.yy",
"resourceType": "GMScript"
}
},
@@ -25454,6 +25526,14 @@
"resourceType": "GMIncludedFile"
}
},
{
"Key": "fe4fdbbd-947b-8e06-4930-f2b97cf5a423",
"Value": {
"id": "2ff1ef3c-dcb0-0a26-8adc-1ae4fe941eab",
"resourcePath": "scripts\\hud_draw_counter\\hud_draw_counter.yy",
"resourceType": "GMScript"
}
},
{
"Key": "fe57350e-621b-496b-9d52-a37434361425",
"Value": {
@@ -25629,22 +25709,6 @@
"resourcePath": "datafiles_yy\\Icons\\Shiny\\gastrodon-east.png.yy",
"resourceType": "GMIncludedFile"
}
},
{
"Key": "a6e48265-2887-9dce-6824-b73d2ed253e1",
"Value": {
"id": "1bd2e400-7e70-bdab-e406-aa43ad85ed3e",
"resourcePath": "scripts\\hud_draw_selected\\hud_draw_selected.yy",
"resourceType": "GMScript"
}
},
{
"Key": "fe4fdbbd-947b-8e06-4930-f2b97cf5a423",
"Value": {
"id": "2ff1ef3c-dcb0-0a26-8adc-1ae4fe941eab",
"resourcePath": "scripts\\hud_draw_counter\\hud_draw_counter.yy",
"resourceType": "GMScript"
}
}
],
"script_order": [
@@ -25713,7 +25777,17 @@
"5d6dc131-402b-45b8-c0ee-331d3e8a9908",
"c6341f0c-570d-0e72-8439-2672f5cbb32e",
"4a34078c-7fa4-d9ca-eb35-df0a0ce93667",
"b0a1886d-571c-9ed1-098f-65abb5bf18f6"
"b0a1886d-571c-9ed1-098f-65abb5bf18f6",
"a6e48265-2887-9dce-6824-b73d2ed253e1",
"fe4fdbbd-947b-8e06-4930-f2b97cf5a423",
"8b60df32-c201-4d7d-5dc4-f2a2376232c3",
"5933be0c-4eea-58cb-0a29-3d63b4efa531",
"0a65669e-f5cb-22e9-10a6-eac0e321de31",
"5fb1cac5-8058-5d99-68a3-60406a3a5148",
"a95b1f81-6bd5-5928-0dad-3e233aa7e8b7",
"0519f1e6-1b15-b8a7-bd8c-8489d767cf9a",
"d7e04ba6-0e68-8245-0d3a-37da8d2292e4",
"a4583316-ee45-806d-bf28-e6c94f924583"
],
"tutorial": ""
}

View File

@@ -6,5 +6,4 @@ dex_galar_load();
boxes_spawn();
selected_set();
scr_window_resize();
button_update_all();

View File

@@ -6,8 +6,5 @@ hud_draw_counter();
// Debug
draw_guidelines(true);
// Reset
draw_set_halign(fa_left);
draw_set_valign(fa_top);
draw_set_color(c_white);
draw_reset();

View File

@@ -0,0 +1,2 @@
change_backup_make();

View File

@@ -1,10 +1,7 @@
/// @description WINDOW RESIZE CHECK
if ((window_get_width()!=global.window_width || window_get_height()!=global.window_height) && window_get_width()>2)
scr_window_resize();
global.box_scale = sprite_get_width(spr_slot)*global.icon_scale;
window_resize_check();
box_scale_update();
scroll_check();
shortcut_check();
change_backup();

View File

@@ -1,5 +1,3 @@
/// @description
// MOUSE SPEED & DIRECTION
global.mouse_dir_x = mouse_x-global.mouse_x_prev;
global.mouse_dir_y = mouse_y-global.mouse_y_prev;
mouse_direction_update();

View File

@@ -1,4 +1,2 @@
// UPDATE PREVIOUS MOUSE POSITIONS
global.mouse_x_prev = mouse_x;
global.mouse_y_prev = mouse_y;
mouse_previous_update();

View File

@@ -44,6 +44,16 @@
"eventtype": 3,
"m_owner": "b5a21a9b-6e2e-40d3-9039-73cd19a7b959"
},
{
"id": "f90731b0-65e6-4a48-b37d-9e022532c8c1",
"modelName": "GMEvent",
"mvc": "1.0",
"IsDnD": false,
"collisionObjectId": "00000000-0000-0000-0000-000000000000",
"enumb": 3,
"eventtype": 7,
"m_owner": "b5a21a9b-6e2e-40d3-9039-73cd19a7b959"
},
{
"id": "baf7f393-8132-4ce0-a04c-c9bc2aa63880",
"modelName": "GMEvent",

View File

@@ -0,0 +1,3 @@
///box_scale_update();
global.box_scale = sprite_get_width(spr_slot)*global.icon_scale;

View File

@@ -0,0 +1,8 @@
{
"id": "a95b1f81-6bd5-5928-0dad-3e233aa7e8b7",
"modelName": "GMScript",
"mvc": "1.0",
"name": "box_scale_update",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -6,6 +6,7 @@ switch(argument0)
global.counter++;
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
change_add();
break;
case but.minus:
@@ -13,5 +14,6 @@ switch(argument0)
global.counter--;
savedata_write(savedata_section_get(global.show_shiny)+" Count", global.selecting.idno, global.counter);
change_add();
break;
}

View File

@@ -0,0 +1,9 @@
///change_add()
if (!global.change)
{
global.change = true;
global.change_time = current_time;
show_debug_message("Change made.");
}

View File

@@ -0,0 +1,8 @@
{
"id": "0a65669e-f5cb-22e9-10a6-eac0e321de31",
"modelName": "GMScript",
"mvc": "1.0",
"name": "change_add",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -0,0 +1,11 @@
///change_backup()
var timeto = 300000;
if (global.change && current_time>global.change_time+timeto)
{
global.change = false;
global.change_time = current_time;
change_backup_make();
}

View File

@@ -0,0 +1,8 @@
{
"id": "8b60df32-c201-4d7d-5dc4-f2a2376232c3",
"modelName": "GMScript",
"mvc": "1.0",
"name": "change_backup",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -0,0 +1,13 @@
///change_backup_make()
if (file_exists("save.ini"))
{
if (!directory_exists("_Backups"))
directory_create("_Backups")
var filename = "save_"+string(date_get_second_of_year(date_current_datetime()))+".ini";
file_copy("save.ini", working_directory+"/_Backups/"+filename);
show_debug_message("Saved Backup as "+filename+".");
}

View File

@@ -0,0 +1,8 @@
{
"id": "5933be0c-4eea-58cb-0a29-3d63b4efa531",
"modelName": "GMScript",
"mvc": "1.0",
"name": "change_backup_make",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -14,4 +14,6 @@ global.savedata[idno] = own;
if (savedata_write(savedata_section_get(global.show_shiny), string(idno), own))
show_debug_message("Saved "+pokemon+" as "+string(own)+".");
else
show_debug_message("ERROR: Save file somehow went missing.");
show_debug_message("ERROR: Save file somehow went missing.");
change_add();

View File

@@ -0,0 +1,6 @@
///draw_reset()
// Reset
draw_set_halign(fa_left);
draw_set_valign(fa_top);
draw_set_color(c_white);

View File

@@ -0,0 +1,8 @@
{
"id": "a4583316-ee45-806d-bf28-e6c94f924583",
"modelName": "GMScript",
"mvc": "1.0",
"name": "draw_reset",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -26,7 +26,6 @@ global.various_to = 0;
global.selecting = noone;
global.counter = 9999;
global.changes = false;
global.changes_last = current_time;
global.change = false;
enum region { boxes, top, mid_left, mid_right, bottom }

View File

@@ -0,0 +1,5 @@
///mouse_dir_update()
// MOUSE SPEED & DIRECTION
global.mouse_dir_x = mouse_x-global.mouse_x_prev;
global.mouse_dir_y = mouse_y-global.mouse_y_prev;

View File

@@ -0,0 +1,8 @@
{
"id": "0519f1e6-1b15-b8a7-bd8c-8489d767cf9a",
"modelName": "GMScript",
"mvc": "1.0",
"name": "mouse_direction_update",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -0,0 +1,5 @@
///mouse_previous_update()
// UPDATE PREVIOUS MOUSE POSITIONS
global.mouse_x_prev = mouse_x;
global.mouse_y_prev = mouse_y;

View File

@@ -0,0 +1,8 @@
{
"id": "d7e04ba6-0e68-8245-0d3a-37da8d2292e4",
"modelName": "GMScript",
"mvc": "1.0",
"name": "mouse_previous_update",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -0,0 +1,4 @@
///window_resize_check()
if ((window_get_width()!=global.window_width || window_get_height()!=global.window_height) && window_get_width()>2)
scr_window_resize();

View File

@@ -0,0 +1,8 @@
{
"id": "5fb1cac5-8058-5d99-68a3-60406a3a5148",
"modelName": "GMScript",
"mvc": "1.0",
"name": "window_resize_check",
"IsCompatibility": false,
"IsDnD": false
}

View File

@@ -64,7 +64,15 @@
"4a34078c-7fa4-d9ca-eb35-df0a0ce93667",
"b0a1886d-571c-9ed1-098f-65abb5bf18f6",
"a6e48265-2887-9dce-6824-b73d2ed253e1",
"fe4fdbbd-947b-8e06-4930-f2b97cf5a423"
"fe4fdbbd-947b-8e06-4930-f2b97cf5a423",
"8b60df32-c201-4d7d-5dc4-f2a2376232c3",
"5933be0c-4eea-58cb-0a29-3d63b4efa531",
"0a65669e-f5cb-22e9-10a6-eac0e321de31",
"5fb1cac5-8058-5d99-68a3-60406a3a5148",
"a95b1f81-6bd5-5928-0dad-3e233aa7e8b7",
"0519f1e6-1b15-b8a7-bd8c-8489d767cf9a",
"d7e04ba6-0e68-8245-0d3a-37da8d2292e4",
"a4583316-ee45-806d-bf28-e6c94f924583"
],
"filterType": "GMScript",
"folderName": "scripts",