-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fixing Lua Mods from 0.6.x to 1.0
ShadowMario edited this page Oct 4, 2024
·
2 revisions
Since 0.7, a LOT of things have been changed on the Source code structure, which ends up breaking many older mods due to nomenclature, this caused a lot of controversy but it's undeniably for the best, as the Source Code is much better organized right now.
With these small changes, you might be able to fix your issues:
- Change
getPropertyFromClass('ClientPrefs', 'variableNameHere')
togetPropertyFromClass('backend.ClientPrefs', 'data.variableNameHere')
- Change
setPropertyFromClass('ClientPrefs', 'variableNameHere', value)
tosetPropertyFromClass('backend.ClientPrefs', 'data.variableNameHere', value)
If you're trying to fix Game Over character/sounds breaking, change the class to substates.GameOverSubstate
or add the Game Over Character through the Chart Editor (Data tab)
-
camFollowPos
has been removed, instead, usesetCameraScroll(x, y)
oraddCameraScroll(x, y)
, andgetCameraScrollX()
/getCameraScrollY()
- All Note Splash variables got replaced from notes, check out the new ones:
-
noteSplashData.disabled
, setting to true won't spawn a note splash -
noteSplashData.texture
, you can for example, force it to use Diamond note splashes by setting it tonoteSplashes/noteSplashes-diamond
-
noteSplashData.useGlobalShader
, setting to true will make your custom note use default note splash colors -
noteSplashData.r
, default value is -1, you're supposed to put a color hex value in this -
noteSplashData.g
, default value is -1, you're supposed to put a color hex value in this -
noteSplashData.b
, default value is -1, you're supposed to put a color hex value in this -
noteSplashData.a
, default value is 0.6
Don't forget, you can also do version checking through if stringStartsWith(version, '0.6')
to make your mod compatible with both versions.