Skip to content

World Editor improperly handles large entered integer values #22

Description

@Luashine

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

-

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions