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

Can't use a string() overload with 2+ arguments in GM 2022.11+. #1612

Open
VladiStep opened this issue Jan 6, 2024 · 3 comments · May be fixed by #1614
Open

Can't use a string() overload with 2+ arguments in GM 2022.11+. #1612

VladiStep opened this issue Jan 6, 2024 · 3 comments · May be fixed by #1614
Labels
bug Something isn't working compiler Problems with the compiler waiting for new compiler test This needs to be tested with the new Underanalyzer compiler

Comments

@VladiStep
Copy link
Member

VladiStep commented Jan 6, 2024

Describe the bug

The code editor can't compile string() with 2+ arguments (string formatting) in GM 2022.11+ games because of an error - "Function string() expects 1 arguments, got the arguments count."

Reproducing steps

  1. Open any code entry in a GM 2022.11+ game.
  2. Try to use string("test", "1").

Setup Details

  1. UTMT version - 42e097c
@VladiStep VladiStep added the bug Something isn't working label Jan 6, 2024
@VladiStep VladiStep changed the title Can't use a string() overload with 2+ arguments. Can't use a string() overload with 2+ arguments in GM 2022.11+. Jan 6, 2024
VladiStep added a commit to VladiStep/UndertaleModTool that referenced this issue Jan 6, 2024
@VladiStep VladiStep linked a pull request Jan 6, 2024 that will close this issue
@VladiStep VladiStep added the compiler Problems with the compiler label Mar 1, 2024
@craftersshaft
Copy link

image
bug still exists, screenshot taken of Supra Smash Bross Devolution's data.win in scr_trophies

@ehoogeveen-medweb
Copy link

I worked around this locally by disabling the check and compiling my own build (it was a hacky fix, not suitable for a pull request), but are there any other workarounds or ways to ignore the error? It seems like a show stopper if it happens.

@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 should 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 compiler Problems with the compiler waiting for new compiler test This needs to be tested with the new Underanalyzer compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants