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

Incorrect behavior for "self" #1735

Open
bellcarved opened this issue Apr 22, 2024 · 3 comments
Open

Incorrect behavior for "self" #1735

bellcarved opened this issue Apr 22, 2024 · 3 comments
Labels
bug Something isn't working waiting for new compiler test This needs to be tested with the new Underanalyzer compiler

Comments

@bellcarved
Copy link

Describe the bug

Attempting to use "self" as an argument in collision_point will compile as the integer value -1 instead of the assembly code call.i @@this@@(argc=0) like it should, resulting in it always returning false.

Reproducing steps

Create a script of any kind.
Attempt to run a collision check with self as the object (for example, "collision_point(60, 60, self, 0, 0)")
Testing reveals it will always return false.

Setup Details

UndertaleModTool 0.5.1.0
Windows 10
GIMMIKO Demo https://store.steampowered.com/app/2101420/GIMMIKO (should not be relevant to issue, but is where i found the problem when editing a script)

@bellcarved bellcarved added the bug Something isn't working label Apr 22, 2024
@Miepee
Copy link
Contributor

Miepee commented Jun 1, 2024

IIRC -1 for self is correct in older GM versions. This might be something that got changed later.

@Siuhnexus
Copy link

I have the same problem in global scripts where "self" is passed around in functions.

@colinator27 colinator27 added the waiting for new compiler test This needs to be tested with the new Underanalyzer compiler label Mar 9, 2025
@colinator27
Copy link
Member

This will likely be fixed with the new compiler, currently entering testing at #2056.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for new compiler test This needs to be tested with the new Underanalyzer compiler
Projects
None yet
Development

No branches or pull requests

4 participants