Skip to content

Commit e31f3a2

Browse files
committed
eeeeeeeeee
1 parent 381820e commit e31f3a2

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

source/archipelago/APEntryState.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,12 @@ class APEntryState extends MusicBeatState
262262
save.addItem("apLocation", currentAPLocation);
263263
Application.current.window.alert("Archipelago location changed to: " + currentAPLocation, "Archipelago Location Changed");
264264
save.save();
265+
FlxG.resetState();
265266
}
266267
else {
267268
Application.current.window.alert("Archipelago location not changed.", "Archipelago Location Not Changed");
268269
currentAPLocation = before;
270+
FlxG.resetState();
269271
}
270272
});
271273
changeAPLocationButton.x = (FlxG.width / 2) - 10 - changeAPLocationButton.width;
@@ -606,7 +608,7 @@ class APEntryState extends MusicBeatState
606608
{
607609
trace("Archipelago was not found. Please install Archipelago to install the .apworld file.");
608610
Application.current.window.alert("Archipelago was not found. Please install Archipelago to install the .apworld file.
609-
\nNote: If your Archipelago Installation is not in the C Drive, it is currently not supported to be installed to other drives... yet.", "APWorld Installation");
611+
\nNote: If your Archipelago Installation is not in the default location, use the \"Change AP Location\" button.", "APWorld Installation");
610612
}
611613
#end
612614
}

source/archipelago/APSettingsSubState.hx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,24 @@ class APSettingsSubState extends MusicBeatSubstate {
422422
FileSystem.deleteFile("PlayerSettings/" + APEntryState.yamlName + ".yaml");
423423
}
424424

425+
// Before adding the FNF Settings, add a multi-line comment which shows the amount of songs, possible amounts of checks,
426+
// and some info so that they can choose their song amount responsibly.
427+
428+
var comment = "\n";
429+
430+
comment += "# This YAML file was generated by Archipelago.\n";
431+
comment += "# The amount of songs in this YAML is " + APEntryState.gameSettings.FNF.songList.length + ".\n";
432+
comment += "# The amount of checks possible is " + APEntryState.gameSettings.FNF.songList.length * 5 + ".\n";
433+
comment += "# The amount of checks if just Song Completion is used is " + APEntryState.gameSettings.FNF.songList.length * 2 + ".\n";
434+
comment += "# The amount of checks if just Note Checks is used is " + APEntryState.gameSettings.FNF.songList.length * 3 + ".\n";
435+
comment += "\n";
436+
425437
var yamlString = "Friday Night Funkin:\n";
426438
for (key in Reflect.fields(yamlThing)) {
427439
yamlString += " " + key + ": " + Reflect.field(yamlThing, key) + "\n";
428440
}
429441

430-
var finalDocument = document + "\n" + yamlString;
442+
var finalDocument = document + comment + yamlString;
431443
trace(finalDocument);
432444

433445
#if sys

0 commit comments

Comments
 (0)