Skip to content

Commit

Permalink
Fix and finished the wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLikesKirby committed Jun 3, 2024
1 parent 5c205c9 commit ff35ebe
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 271 deletions.
3 changes: 2 additions & 1 deletion mods/readmeformodding.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Before you go to the guides folder in the test folder make to copy the test folder and rename it.
go to the wiki lol
https://github.com/CamtheKirby/VsDave-Modable/wiki
6 changes: 0 additions & 6 deletions mods/test/guides/! How 2 Get Started.txt

This file was deleted.

14 changes: 0 additions & 14 deletions mods/test/guides/How 2 Add Custom Dialogue.txt

This file was deleted.

19 changes: 0 additions & 19 deletions mods/test/guides/How 2 Add Settings.txt

This file was deleted.

72 changes: 0 additions & 72 deletions mods/test/guides/How 2 Make Custom Characters.txt

This file was deleted.

32 changes: 0 additions & 32 deletions mods/test/guides/How 2 Make Custom Dialogue Characters.txt

This file was deleted.

39 changes: 0 additions & 39 deletions mods/test/guides/How 2 Put Characters in Character Select.txt

This file was deleted.

5 changes: 0 additions & 5 deletions mods/test/guides/How 2 Set Up Freeplay Settings.txt

This file was deleted.

72 changes: 0 additions & 72 deletions mods/test/guides/How 2 add Custom Songs.txt

This file was deleted.

24 changes: 13 additions & 11 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ class PlayState extends MusicBeatState
var shy:Float;
var sh_r:Float = 60;

var settingsExist:Bool;

public static var rssongScore:Int = 0;
public static var rsmisses:Int = 0;
public static var rsaccuracy:Float = 0.00;
Expand All @@ -518,13 +520,13 @@ class PlayState extends MusicBeatState

adminMode = FlxG.save.data.adminMode;

settingsExist = FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.json');

resetShader();

if (FreeplayState.isaCustomSong) {
if (FileSystem.exists(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.json')) {
if (FreeplayState.isaCustomSong && settingsExist) {
rawJsonSettings = File.getContent(TitleState.modFolder + '/data/charts/' + PlayState.SONG.song.toLowerCase() + '-settings.json');
jsonSettings = cast Json.parse(rawJsonSettings);
}
}


Expand Down Expand Up @@ -567,7 +569,7 @@ class PlayState extends MusicBeatState
case 'five-nights':
inFiveNights = true;
default:
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (jsonSettings.exploitationEffect) {
Main.toggleFuckedFPS(true);
}
Expand Down Expand Up @@ -842,7 +844,7 @@ class PlayState extends MusicBeatState
}
var gfVersion:String = 'gf';
var noGFSongs = ['memory', 'five-nights', 'bot-trot', 'escape-from-california', 'overdrive'];
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (jsonSettings.hasNoGf) {
noGFSongs.push(SONG.song.toLowerCase());
}
Expand Down Expand Up @@ -2380,7 +2382,7 @@ class PlayState extends MusicBeatState
var introAssets:Map<String, Array<String>> = new Map<String, Array<String>>();
var introSoundAssets:Map<String, Array<String>> = new Map<String, Array<String>>();
var soundAssetsAlt:Array<String> = new Array<String>();
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (SONG.song.toLowerCase() == "exploitation" || jsonSettings.intro == "ex")
introAssets.set('default', ['ui/ready', "ui/set", "ui/go_glitch"]);
else if (SONG.song.toLowerCase() == "overdrive" || jsonSettings.intro == "overdriving")
Expand Down Expand Up @@ -2416,7 +2418,7 @@ class PlayState extends MusicBeatState
case 'overdrive':
soundAssetsAlt = introSoundAssets.get('overdriving');
default:
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (jsonSettings.intro == '' || jsonSettings.intro == null) {
soundAssetsAlt = introSoundAssets.get('default');
} else {
Expand Down Expand Up @@ -2712,7 +2714,7 @@ class PlayState extends MusicBeatState
add(vignette);
FlxTween.tween(vignette, {alpha: 0.7}, 1);
default:
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (jsonSettings.windowName == "bambiWindowNames") {
Application.current.window.title = banbiWindowNames[new FlxRandom().int(0, banbiWindowNames.length - 1)];
} else if (jsonSettings.windowName != "" && jsonSettings.windowName != null) {
Expand Down Expand Up @@ -3786,7 +3788,7 @@ class PlayState extends MusicBeatState
" | M1ss3s: " + (misses * (modchartoption ? FlxG.random.int(1,9) : 1)) +
" | Accuracy: " + (truncateFloat(accuracy, 2) * (modchartoption ? FlxG.random.int(1,9) : 1)) + "% ";
default:
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (jsonSettings.exploitationEffect) {
scoreTxt.text =
"Scor3: " + (songScore * (modchartoption ? FlxG.random.int(1,9) : 1)) +
Expand Down Expand Up @@ -4373,7 +4375,7 @@ class PlayState extends MusicBeatState
health = 0.001;
}
default:
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (jsonSettings.healthDrain == "cheating") {
health -= healthtolower;
} else if (jsonSettings.healthDrain == "unfairness") {
Expand Down Expand Up @@ -7867,7 +7869,7 @@ class PlayState extends MusicBeatState
makeInvisibleNotes(false);
}
}
if (FreeplayState.isaCustomSong) {
if (FreeplayState.isaCustomSong && settingsExist) {
if (SONG.song.toLowerCase() == 'exploitation' || jsonSettings.exploitationEffect && curStep % 8 == 0)
{
var fonts = ['arial', 'chalktastic', 'openSans', 'pkmndp', 'barcode', 'vcr'];
Expand Down

0 comments on commit ff35ebe

Please sign in to comment.