Skip to content

1.0.1 - HScript Beta

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Dec 15:20
· 174 commits to main since this release

• Added onSpawnNote callback
• CustomSwitchState now supports more menus
• Experimental/0.7x Camera Option Added
• Indie Cross Menus Officially Removed by AloneDark
• Week 7 memory usage has been drastically reduced
• Added HScript/.hx file support (Beta, susceptible to changes)
• Custom Difficulty Vocals Removed (Can be added again in future)
• You can use Controls.instance in HScript (I didn't test in lua)
• Stages have been moved outside of PlayState (They can still be coded inside it the same way as before though)
• Added add, insert, remove, addBehindGF, addBehindDad, addBehindBF functions to HScript

Libraries

• Added SScript Support
• HScript Version Downgraded

Improvements

• VirtualPad Type Automatically Restarts the game
• Vocals Sync overhaul (Should fix stutters forever)
• Modpack option overhaul (Better than old one)

Fixes

• HxCodec Issues Fixed
• More Lua issues Fixed
• Mods Menu Issues Fixed
• Fixed eventEarlyTrigger not working
• HScript Version Option Added (For Mod Fixes)
• NovaFlare States/SubStates Fixed (issues finded by DaffyToons)

Lua

• Added onEventPushed callback to Lua
• Psych Extended now supports more 0.7x lua scripts
• Lua's HScript Interp can now run two or more scripts

New Lua functions:

// Mod Achievements
isAchievementUnlocked(name:String)
unlockAchievement(name:String)
addAchievementScore(name:String, ?value:Dynamic = 1, ?saveIfNotUnlocked:Bool = true) //Turn saveIfNotUnlocked off if you constantly change the score
setAchievementScore(name:String, ?value = 1, ?saveIfNotUnlocked = true) //Turn saveIfNotUnlocked off if you constantly change the score
getAchievementScore(name:String)

achievementExists(name:String)
// Mod Settings
getModSetting(name:String, ?modFolder:String = null) //If your setting is a keybind, if you return a table with "gamepad" and "keyboard" values

// FlxAnimate sprites
makeFlxAnimateSprite(tag:String, ?x:Float = 0, ?y:Float = 0, ?loadFolder:String = null)
loadAnimateAtlas(tag:String, folderOrImg:String, ?spriteJson:String = null, ?animationJson:String = null)
addAnimationBySymbol(tag:String, name:String, symbol:String, ?framerate:Float = 24, ?loop:Bool = false, ?matX:Float = 0, ?matY:Float = 0)
addAnimationBySymbolIndices(tag:String, name:String, symbol:String, ?indices:Any = null, ?framerate:Float = 24, ?loop:Bool = false, ?matX:Float = 0, ?matY:Float = 0)

Known issues

• NoteSkin breaks OpponentNoteHit Sometimes
• Controller Option Disabling Automatically (This Happens Very Rarely)
• Mobile Controls Auto Resetting (ignore this if you don't use a keyboard)
• PC Builds have a some problems with lua (I'm too lazy to find working one)