Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.69k stars 2.97k forks source link

Type Casting bug crash #10183

Closed 70178637 closed 1 month ago

70178637 commented 2 months ago

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

Matita008 commented 2 months ago

I think numbers aren't supposed to be entered l

Mythril382 commented 2 months ago

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

way-zer commented 2 months ago

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

camelStyleUser commented 1 month ago

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

camelStyleUser commented 1 month ago

wait a minute

camelStyleUser commented 1 month ago

did they need "" before