Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runHaxeCode() problem with LUA #15713

Open
VoidedBattery opened this issue Oct 16, 2024 · 1 comment
Open

runHaxeCode() problem with LUA #15713

VoidedBattery opened this issue Oct 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@VoidedBattery
Copy link

Describe your bug here.

Running LUA scripts with multiple haxeCodes will only run the first loaded script.

function onCreate()
	runHaxeCode([[debugPrint(2);]]);
	runHaxeCode([[debugPrint(3);]]);
end

function onBeatHit()
	runHaxeCode([[debugPrint(]] .. curBeat .. [[);]]);	
end

When onCreate() runs, 2 will be printed twice instead of 2 and 3.
When onBeatHit() runs, 2 will be printed instead of the current beat number.

Command Prompt/Terminal logs (if existing)

No response

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows

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

No

@VoidedBattery VoidedBattery added the bug Something isn't working label Oct 16, 2024
@DARKTORTA
Copy link

Screenshot_2024-10-15-08-21-09-017_com discord-edit
Actually psych 1.0 is broken, i think we need wait for an update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants