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

World Editor improperly handles large entered integer values #22

Open
Luashine opened this issue Jun 22, 2024 · 0 comments
Open

World Editor improperly handles large entered integer values #22

Luashine opened this issue Jun 22, 2024 · 0 comments

Comments

@Luashine
Copy link

Luashine commented Jun 22, 2024

External URLs

No response

Game Versions

1.36.2.21230

Summary

When you try to set an int variable to a large value, WE appears to randomly change the lowest byte.

Expected

Either an error message or "correctly" truncate the entered number to 32 bits.

Expected number: 481404547

Actual

Actual saved number: 48140544. This value is correctly propagated to the code.

Reproduction steps

  1. Go to GUI trigger
  2. Create an int variable or some trigger action where you'd enter an integer
  3. Paste the number "481404547"
  4. Click OK to save
  5. Before the window closes, you can see the number is silently changed to 48140544.

Different values may affect the resulting number differently. Because the value is too big you cannot change it with arrow buttons of the input field.

Workaround

Custom code or directly editing war3map.j

Screenshots, test maps, other material

-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant