You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
trace('[${script.name}] Error in $func(): ${e.message}');
51
+
}
52
+
});
53
+
} else {
46
54
try {
47
55
script.call(func, args);
48
56
} catch (e:haxe.Exception) {
49
57
trace('[${script.name}] Error in $func(): ${e.message}');
50
58
}
51
-
});
59
+
}
52
60
}
53
61
}
54
62
@@ -57,7 +65,7 @@ class CustomStage extends MusicBeatState {
57
65
try {
58
66
newScript=newHScript(null, file);
59
67
stageAPI(newScript);
60
-
tryCall(newScript, "onCreate");
68
+
tryCall(newScript, "onCreate", null, true);
61
69
hscriptArray.push(newScript);
62
70
trace('Initialized HScript successfully: $file');
63
71
} catch (e:IrisError) {
@@ -85,7 +93,7 @@ class CustomStage extends MusicBeatState {
85
93
86
94
publicfunctionnew(stateName:String) {
87
95
super();
88
-
Mods.loadTopMod();
96
+
//Mods.loadTopMod();
89
97
instance=this;
90
98
stageName=stateName;
91
99
stagePath=Paths.customStage(stateName);
@@ -123,8 +131,9 @@ class CustomStage extends MusicBeatState {
123
131
}
124
132
if (combinedError!="") {
125
133
MusicBeatState.switchState(newstates.ErrorState(
126
-
"HMM, you got some error in your code:\n"+combinedError+"\n\nPress ACCEPT to reload CustomStage.",
127
-
function() reload()
134
+
"HMM, you got some error in your code:\n"+combinedError+"\n\nPress ACCEPT to reload CustomStage.\n\nPress ESC to restart game ( Not recommended to Restart Game )",
0 commit comments