Mindustry icon indicating copy to clipboard operation
Mindustry copied to clipboard

Type Casting bug crash

Open 70178637 opened this issue 1 year ago • 6 comments

Platforms

Android

Build

bleeding-edge 25252

Issue

Map Info:Locale Bundles will cause the game to crash

Steps to reproduce

1.MapEditor->Map Info->Locale Bundles 2.Add A = "11" B = 12 3.Play game 4.World Processor add localeprint "B" printflush message1

https://github.com/user-attachments/assets/88a485d9-5346-4054-8bb0-1f9ac6c2c831

Mods used

No response

Save file

No response

(Crash) logs

crash_1725612037393.txt crash_1725612117512.txt

Submission

  • [X] I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
  • [X] I have searched the closed and open issues to make sure that this problem has not already been reported.
  • [X] I am not using Foo's Client, and have made sure the bug is not caused by mods I have installed.

70178637 avatar Sep 06 '24 09:09 70178637

I think numbers aren't supposed to be entered l

Matita008 avatar Sep 07 '24 05:09 Matita008

Those are bundles, not constant variables. They are used for easily translatable text. You aren't supposed to put numbers in bundles.

Mythril382 avatar Sep 07 '24 14:09 Mythril382

May be the bundles always be string, not need wrap with ' " '?

way-zer avatar Sep 07 '24 16:09 way-zer

they should either be automatically converted into string if you try to enter something else or

camelStyleUser avatar Sep 10 '24 14:09 camelStyleUser

wait a minute

camelStyleUser avatar Sep 10 '24 14:09 camelStyleUser

did they need "" before

camelStyleUser avatar Sep 10 '24 14:09 camelStyleUser