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

I keep getting these erros on my haxe script #16190

Closed
Shiho-cmd opened this issue Jan 23, 2025 · 9 comments
Closed

I keep getting these erros on my haxe script #16190

Shiho-cmd opened this issue Jan 23, 2025 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@Shiho-cmd
Copy link

Describe your problem here.

Hello!! i'm trying to port my mod to psych 1.0.1 but one script keeps getting these erros even tho it is working fine for some reason (that's not a source code mod i'm just using some haxe scripts for some stuff!!!)

Image

the only thing on the script is this:

function onUpdate(elapsed:Float){
    FlxG.worldBounds.set(0, 0, 2000, 2000);
}

let me know if i'm doing something wrong!!!

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

@Shiho-cmd Shiho-cmd added the help wanted Extra attention is needed label Jan 23, 2025
@Shadow06735
Copy link

are you really using a haxe code in a lua script?

@Shiho-cmd
Copy link
Author

are you really using a haxe code in a lua script?

No that's a .hx file

@Shiho-cmd
Copy link
Author

Shiho-cmd commented Jan 24, 2025

I edited the world bounds to be able to use the objectsOverlap function on a bigger area i'm messing with some collision stuff that simple haxe code worked on 0.7.3 It still kinda works here but it gives that error

@Shadow06735
Copy link

Shadow06735 commented Jan 24, 2025

You can’t just use haxe scripts like that as they either need to be via source code or smth else (I think it’s called hscript I could be wrong)

@Shiho-cmd
Copy link
Author

You can’t just use haxe scripts like that as they either need to be via source code or smth else (I think it’s called hscript I could be wrong)

is that a thing on 1.0.1? cuz as i said this script works fine on 0.7.3 i'm migrating to 1.0.1 just now

@Shadow06735
Copy link

You can’t just use haxe scripts like that as they either need to be via source code or smth else (I think it’s called hscript I could be wrong)

is that a thing on 1.0.1? cuz as i said this script works fine on 0.7.3 i'm migrating to 1.0.1 just now

Honestly I don’t know.

@crowplexus
Copy link
Contributor

crowplexus commented Feb 4, 2025

hscript works fine in 1.0.1, but the game thinks your script is invalid so it interrupts it, maybe some other script is conflicting with it?

also would probably be a good idea to update to 1.0.2

@Shiho-cmd
Copy link
Author

hscript works fine in 1.0.1, but the game thinks your script is invalid so it interrupts it, maybe some other script is conflicting with it?

also would probably be a good idea to update to 1.0.2

I don't work with haxe too much but there is another hscript on this mod i will check If that's the issue!
(Also thanks for letting me know the engine updated i came back to 0.7.3 after while so i disabled the check for updates option lol)

@Shiho-cmd
Copy link
Author

I removed the other hscript on the mod and it works now thanks for the help!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants