ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.16k stars 2.23k forks source link

addLuaScript function doesn't work (i think) #15755

Open Anoyinguser opened 1 month ago

Anoyinguser commented 1 month ago

Describe your problem here.

i just try tu use addLuaScript() command, and i tried with my lua modchart tool (grooving modchart framework) and i dont know what happends exactly but i think it don't recognize the comand or something

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

Did you edit anything in this build? If so, mention or summarize your changes.

No response

KELOTOMU commented 1 month ago

Use the isRunning(scriptFile:String) function to check if your script is running or not, and also double check the path since the workspace directory for addLuaScript is "currentModDirectory" so if you wanna run a script inside the images folder you need to do addLuaScript('images/script.lua')