Skip to content

Commit

Permalink
1.21.0 Release Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Mar 8, 2024
1 parent 46c6d54 commit 947f735
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 30 deletions.
38 changes: 21 additions & 17 deletions THECHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
1.20.1;
1.21.0;

Fixed a bug where Linux users would have captures save in the engine's directory instead of in the gameRenders folder (Fixes issue #213)
Linux builds now get an icon
Lowered the volume of the note removal sound effect in the Chart Editor

Linux support is revived
Probably the best addition to this engine: Rendering Mode by HRK_EXEX. Now instead of waiting 1 hour playing a song at 0.1 playback rate you can render the video instead! (You'll need FFmpeg for this though)
Rendered Notes is now separate from the botplay text and is now a toggleable option
Changed the FPS counter color indicators:
Yellow when your FPS is half of the expected framerate
Orange when your FPS is 1/3 of the expected framerate
And red when your FPS is 1/4 of the expected framerate
Added missing Freeplay search bar credits
All editors now have music and sound effects. (The chart editor sound effects are toggleable so you don't go insane while charting)
Added a LOT of new botplay texts and some more tips
Characters can now have specific health drain amounts tied to them
Added an option to enable the garbage collector. It stops memory leaks for some reason (making the engine actually usable on higher framerates)
The chart loading system has been rewritten! As a result charts now load a LOT faster!
The Gapple 1.5 tween is now smoother
Freeplay Search bar now finds songs whose names contain what you're looking for
Show Notes is now a LOT more powerful than before
Enabling Troll Mode no longer multiplies your FPS
Added a Startup State (inspired by DENPA!!)
A new Visuals & UI option: Use Old Note Sorting. Do you like the notes being sorted like in older versions of JSE? Then enable this!
Added a cool healthbar tween when the song starts
The game now automatically sets your resolution back to 16:9 if you set it to smth other than that in Rendering Mode
Moved the Rainbow Notes option as one of the note color styles
Fixed the engine not being able to check for updates
Fixed Linux users having game captures in Rendering Mode save in the engine's main directory
Fixed big icons cropping off
Fixed Hurt Notes not crashing the game if you disabled the Color Shader
Fixed crashes with the Editor Music
Fixed a bug where GPU Caching would break the Get Icon Color button if turned on
Fixed Hide HUD crashing the game on a Change Character event
Fixed Gapple tweens finishing too fast on higher GF speeds
Fixed events and stuff being broken on Rendering Mode
Fixed a rare bug where sometimes Rendering Mode would try writing to a file that didn't exist
2 changes: 1 addition & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using StringTools;

class MainMenuState extends MusicBeatState
{
public static var psychEngineJSVersion:String = '1.20.1'; //This is also used for Discord RPC
public static var psychEngineJSVersion:String = '1.21.0'; //This is also used for Discord RPC
public static var psychEngineVersion:String = '0.6.3'; //This is also used for Discord RPC
public static var curSelected:Int = 0;

Expand Down
10 changes: 5 additions & 5 deletions source/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ class Note extends FlxSprite
}
if (ClientPrefs.showNotes && ClientPrefs.enableColorShader)
{
noteSplashHue = colorSwap.hue;
noteSplashSat = colorSwap.saturation;
noteSplashBrt = colorSwap.brightness;
noteSplashHue = colorSwap.hue;
noteSplashSat = colorSwap.saturation;
noteSplashBrt = colorSwap.brightness;
}
return value;
}
Expand Down Expand Up @@ -376,7 +376,7 @@ class Note extends FlxSprite
{
colorSwap = new ColorSwap();
shader = colorSwap.shader;
if (ClientPrefs.noteColorStyle == 'Normal' && noteData < ClientPrefs.arrowHSV.length) //the notedata check prevents a null object reference when loading ek lua charts
if (ClientPrefs.noteColorStyle == 'Normal' && noteData < ClientPrefs.arrowHSV.length)
{
colorSwap.hue = ClientPrefs.arrowHSV[noteData][0] / 360;
colorSwap.saturation = ClientPrefs.arrowHSV[noteData][1] / 100;
Expand Down Expand Up @@ -445,7 +445,7 @@ class Note extends FlxSprite
colorSwap.brightness = prevNote.colorSwap.brightness;
}

updateHitbox();
updateHitbox();
}

offsetX -= width / 2;
Expand Down
1 change: 1 addition & 0 deletions source/PauseSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ class PauseSubState extends MusicBeatSubstate

if(noTrans)
{
FlxTransitionableState.skipNextTransIn = true;
FlxTransitionableState.skipNextTransOut = true;
FlxG.resetState();
}
Expand Down
26 changes: 20 additions & 6 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2373,6 +2373,12 @@ class PlayState extends MusicBeatState
eventPushedMap.clear();
eventPushedMap = null;

if(eventNotes.length > 1)
{
for (event in eventNotes) event.strumTime -= eventNoteEarlyTrigger(event);
eventNotes.sort(sortByTime);
}

// SONG SPECIFIC SCRIPTS
#if LUA_ALLOWED
var filesPushed:Array<String> = [];
Expand Down Expand Up @@ -4143,7 +4149,7 @@ class PlayState extends MusicBeatState
hitHealth: 0.023,
missHealth: 0.0475,
wasHit: false,
multSpeed: 1,
multSpeed: 1
};

if (!noteTypeMap.exists(swagNote.noteType)) {
Expand Down Expand Up @@ -4178,10 +4184,10 @@ class PlayState extends MusicBeatState
hitHealth: 0.023,
missHealth: 0.0475,
wasHit: false,
multSpeed: 1,
multSpeed: 1
};
unspawnNotes.push(sustainNote);
Sys.sleep(0.0001);
//Sys.sleep(0.0001);
}
}

Expand All @@ -4207,7 +4213,7 @@ class PlayState extends MusicBeatState
multSpeed: 1
};
unspawnNotes.push(jackNote);
Sys.sleep(0.0001);
//Sys.sleep(0.0001);
}
}
} else {
Expand Down Expand Up @@ -4956,8 +4962,8 @@ if (ClientPrefs.showNPS && (notesHitDateArray.length > 0 || oppNotesHitDateArray
lerpingScore = false;
}

if (!opponentChart) displayedHealth = ClientPrefs.smoothHealth ? FlxMath.lerp(displayedHealth, health, 0.09 / (ClientPrefs.framerate/60)) : health;
else displayedHealth = ClientPrefs.smoothHealth ? FlxMath.lerp(displayedHealth, maxHealth - health, 0.09 / (ClientPrefs.framerate/60)) : maxHealth - health;
if (!opponentChart) displayedHealth = ClientPrefs.smoothHealth ? FlxMath.lerp(displayedHealth, health, 0.1 / (ClientPrefs.framerate/60)) : health;
else displayedHealth = ClientPrefs.smoothHealth ? FlxMath.lerp(displayedHealth, maxHealth - health, 0.1 / (ClientPrefs.framerate/60)) : maxHealth - health;

setOnLuas('curDecStep', curDecStep);
setOnLuas('curDecBeat', curDecBeat);
Expand Down Expand Up @@ -5319,6 +5325,7 @@ if (ClientPrefs.showNPS && (notesHitDateArray.length > 0 || oppNotesHitDateArray
if (!Math.isNaN(unspawnNotes[notesAddedCount].hitHealth)) dunceNote.hitHealth = unspawnNotes[notesAddedCount].hitHealth;
if (!Math.isNaN(unspawnNotes[notesAddedCount].missHealth)) dunceNote.missHealth = unspawnNotes[notesAddedCount].missHealth;
if (unspawnNotes[notesAddedCount].hitCausesMiss != null) dunceNote.hitCausesMiss = unspawnNotes[notesAddedCount].hitCausesMiss;
dunceNote.multSpeed = unspawnNotes[notesAddedCount].multSpeed;

if (ClientPrefs.doubleGhost && !dunceNote.isSustainNote)
{
Expand All @@ -5339,6 +5346,13 @@ if (ClientPrefs.showNPS && (notesHitDateArray.length > 0 || oppNotesHitDateArray

if(!isPixelStage)
{
if (ClientPrefs.noteColorStyle == 'Quant-Based' && ClientPrefs.enableColorShader)
{
dunceNote.colorSwap.hue = notes.members[Std.int(notes.length-1)].colorSwap.hue;
dunceNote.colorSwap.saturation = notes.members[Std.int(notes.length-1)].colorSwap.saturation;
dunceNote.colorSwap.brightness = notes.members[Std.int(notes.length-1)].colorSwap.brightness;
}

if(dunceNote.prevNote.isSustainNote)
{
dunceNote.prevNote.scale.y *= Note.SUSTAIN_SIZE / dunceNote.prevNote.frameHeight;
Expand Down
3 changes: 3 additions & 0 deletions source/StartupState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;
import flixel.util.FlxColor;
import flixel.util.FlxTimer;
import flixel.addons.transition.FlxTransitionableState;

class StartupState extends MusicBeatState
{
Expand All @@ -19,6 +20,8 @@ class StartupState extends MusicBeatState

override public function create():Void
{
FlxTransitionableState.skipNextTransIn = true;
FlxTransitionableState.skipNextTransOut = true;
logo = new FlxSprite().loadGraphic(Paths.image('sillyLogo', 'splash'));
logo.scrollFactor.set();
logo.screenCenter();
Expand Down
2 changes: 1 addition & 1 deletion source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class TitleState extends MusicBeatState

ClientPrefs.loadPrefs();

#if (CHECK_FOR_UPDATESd)
#if (CHECK_FOR_UPDATES)
if(ClientPrefs.checkForUpdates && !closedState) {
trace('checking for update');
var http = new haxe.Http("https://raw.githubusercontent.com/JordanSantiagoYT/FNF-PsychEngine-NoBotplayLag/main/THECHANGELOG.md");
Expand Down

0 comments on commit 947f735

Please sign in to comment.