Skip to content

Commit b8283d8

Browse files
committed
contento
1 parent c95428e commit b8283d8

File tree

5 files changed

+24
-10
lines changed

5 files changed

+24
-10
lines changed

source/Achievements.hx

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ class Achievements
2525
//"6kBothPlay", //Dunno lol
2626
"fridayNight",
2727
"calibrateDeath",
28-
"modFunkboxPlay"
28+
"modFunkboxPlay",
29+
"modRegGuitPlay"
2930
];
3031

3132
public static function giveAchievement(name:String, ?modName:Null<String>) {
@@ -98,6 +99,8 @@ class Achievements
9899
switch(thing) {
99100
case [428567, "funny_nep_mod"]:
100101
return category == "storyModeWeek" && giveAchievement("modFunkboxPlay");
102+
case [437809, "regular_guitar_song"]:
103+
return giveAchievement("modRegGuitPlay");
101104
default:
102105
return false;
103106
}

source/Main.hx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Sys;
1919
class Main extends Sprite
2020
{
2121
public static final gameVersionInt = 2;
22-
public static final gameVersionStr = "v1.0.1 Funny Day 0 Patch";
22+
public static final gameVersionStr = "v1.1.0 I'm Guitarin'";
2323

2424
var gameWidth:Int = 1280; // Width of the game in pixels (might be less / more in actual pixels depending on your zoom).
2525
var gameHeight:Int = 720; // Height of the game in pixels (might be less / more in actual pixels depending on your zoom).

source/Note.hx

+7-6
Original file line numberDiff line numberDiff line change
@@ -504,22 +504,23 @@ class Note extends FlxSprite
504504
var stuff = ((noteSkin.imageDownscroll != "" && noteSkin.imageDownscroll != null && Options.instance.downScroll) ? noteSkin.imageDownscroll : noteSkin.image).replace("\\", "/").split("/");
505505
stuff[stuff.length - 1] = typedata.imagePrefix + stuff[stuff.length - 1];
506506
frames = Paths.getSparrowAtlas(stuff.join("/"));
507+
var noteAnimPrefix = strumLineNum < 0 ? "" : typedata.noteAnimPrefix;
507508
//trace('Images [normal: ${noteSkin.image}] [downscroll: ${noteSkin.imageDownscroll}] Stuff is ${stuff.join("/")}');
508509

509510
if (noteSkin.arrows == null) {
510-
animation.addByPrefix('${myArrow}Scroll', '${typedata.noteAnimPrefix}${myArrow}0', 24);
511-
animation.addByPrefix('${myArrow}holdend', '${typedata.noteAnimPrefix}${myArrow} hold end', 24);
512-
animation.addByPrefix('${myArrow}hold', '${typedata.noteAnimPrefix}${myArrow} hold piece', 24);
513-
animation.addByPrefix('${myArrow}Release', '${typedata.noteAnimPrefix}${myArrow} release', 24);
514-
animation.addByPrefix('${myArrow}holdstart', '${typedata.noteAnimPrefix}${myArrow} hold start', 24);
511+
animation.addByPrefix('${myArrow}Scroll', '${noteAnimPrefix}${myArrow}0', 24);
512+
animation.addByPrefix('${myArrow}holdend', '${noteAnimPrefix}${myArrow} hold end', 24);
513+
animation.addByPrefix('${myArrow}hold', '${noteAnimPrefix}${myArrow} hold piece', 24);
514+
animation.addByPrefix('${myArrow}Release', '${noteAnimPrefix}${myArrow} release', 24);
515+
animation.addByPrefix('${myArrow}holdstart', '${noteAnimPrefix}${myArrow} hold start', 24);
515516
} else {
516517
for (anim in noteSkin.arrows[myArrow]) {
517518
if (noteAnimExclude.indexOf(anim.name) > -1) {
518519
continue;
519520
}
520521
animation.addByPrefix(
521522
'${myArrow}${anim.name}',
522-
'${typedata.noteAnimReplace != null ? typedata.noteAnimReplace : (typedata.noteAnimPrefix + anim.anim)}',
523+
'${typedata.noteAnimReplace != null ? typedata.noteAnimReplace : (noteAnimPrefix + anim.anim)}',
523524
anim.framerate,
524525
anim.loop
525526
);

source/PlayState.hx

+4
Original file line numberDiff line numberDiff line change
@@ -2022,10 +2022,12 @@ class PlayState extends MusicBeatState
20222022
newState.maxCombo = maxCombo;
20232023
newState.possibleMoreScore = possibleMoreScore;
20242024
newState.songFC = songFC;
2025+
Achievements.awardModPlay("endless", ModLoad.primaryMod, this);
20252026
return FlxG.switchState(newState);
20262027
}
20272028

20282029
Achievements.giveAchievement("anyClear");
2030+
Achievements.awardModPlay("anyPlay", ModLoad.primaryMod, this);
20292031
if (songMisses <= 9 && songHits > 0) {
20302032
Achievements.giveAchievement("anySDCB");
20312033
if (songMisses <= 0) {
@@ -2060,6 +2062,7 @@ class PlayState extends MusicBeatState
20602062
campaignMisses += songMisses;
20612063

20622064
storyPlaylist.shift();
2065+
Achievements.awardModPlay("storyMode", ModLoad.primaryMod, this);
20632066

20642067
if (storyPlaylist.length <= 0) {
20652068
CoolUtil.playMenuMusic();
@@ -2112,6 +2115,7 @@ class PlayState extends MusicBeatState
21122115
LoadingState.loadAndSwitchState(new PlayState());
21132116
}
21142117
} else {
2118+
Achievements.awardModPlay("freeplay", ModLoad.primaryMod, this);
21152119
trace('WENT BACK TO FREEPLAY??');
21162120
FlxG.switchState(new FreeplayState());
21172121
}

sourceUpdater/Main.hx

+8-2
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,18 @@ class Main extends Sprite
106106
} else if (!triedProtocolInstall) {
107107
triedProtocolInstall = true;
108108
trace("Browser protocol is NOT installed, try install");
109+
titleText.text = "VMan Engine Updater";
109110
//var msgbox = new MessageBox();
110111
//todo: wtf am i doning
111112
/*msgbox.title = "Info";
112113
msgbox.text = "The browser protocol is not installed. If installed,\nyou can download mod packs using special links on GameBanana pages.\n\nInstall the browser protocol?";
113114
msgbox.type = TYPE_YESNO;
114115
msgbox.onDialogClosed = function(evnt) {
115116
if (evnt == DialogButton.YES) {*/
116-
var elevateCheck = new sys.io.Process("net file").stdout.readAll().toString().toLowerCase().contains("access is denied");
117-
if (!elevateCheck) {
117+
var elevateCheck = new sys.io.Process("net file").stdout.readAll().toString().toLowerCase();
118+
trace("elevate check: "+elevateCheck);
119+
var elevateAllowed = (!elevateCheck.contains("access is denied")) && (elevateCheck.length > 1); //because for some reason, an empty response can happen.
120+
if (elevateAllowed) {
118121
trace(Sys.programPath());
119122
var commands = [
120123
"HKCR\\"+protocolName+" /d \"URL:"+protocolName+" Protocol\"",
@@ -129,6 +132,8 @@ class Main extends Sprite
129132
new sys.io.Process("reg add "+cmd);
130133
}
131134
trace("Attempted installing the protocol");
135+
textThing.text = "Attempted installing the browser protocol";
136+
stage.invalidate();
132137
} else {
133138
//var msgbox = new MessageBox();
134139
//msgbox.title = "Info";
@@ -194,6 +199,7 @@ class Main extends Sprite
194199
return;
195200
}
196201
textThing.text = "This is the VMan Engine updater, used for Auto-Download links in mod pages and will eventually be able to update the engine itself";
202+
titleText.text = "VMan Engine Updater";
197203
}
198204

199205
var title:String = "Updater";

0 commit comments

Comments
 (0)