Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

hscript in lua does not work for some reason #12969

Description

@theblobbyman13

Describe your bug here.

when I load certain lua scripts (like the one below) that use hscript in 0.7.1h they either don't work or crash the game

function onCreate()
runHaxeCode([[
CamStrum = new FlxCamera();
CamStrum.bgColor = 0x00000000;
FlxG.cameras.add(CamStrum,false);
FlxG.cameras.add(game.camOther,false);
game.variables.set('CamStrum', CamStrum);
]])
end

function onCreatePost()
runHaxeCode([[
game.strumLineNotes.camera = getVar("CamStrum");
game.grpNoteSplashes.camera = getVar("CamStrum");
game.notes.camera = getVar("CamStrum");
]])
end

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.

nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions