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

start crash from texture pack with environment textures #10186

Closed hortiSquash closed 1 month ago

hortiSquash commented 2 months ago

Platforms

Windows

Build

25254

Issue

the game crashes at startup when trying to load a texture pack that overrides the environment sprites

note that it only crashes when the mod texture scale is higher than 1.0x (aka smaller textures than vanilla)

Steps to reproduce

just load the mod i linked underneath -> insta crash before even reaching the menu

Mods used

hortiDefinition_x0.5.zip

Save file

No response

(Crash) logs

[I] Initialized Discord rich presence. [I] [Core] Initialized SDL v2.0.20 [I] [Audio] Initialized SoLoud 202002 using MiniAudio at 44100hz / 2048 samples / 2 channels [I] [GL] Version: OpenGL 3.1.0 / NVIDIA Corporation / NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 [I] [GL] Max texture size: 32768 [I] [GL] Using OpenGL 3 context. [I] [JAVA] Version: 16.0.2 [I] [RAM] Available: 3.9 GB [I] [Mindustry] Version: 25254 [I] Loaded mod 'hortiDefinition' in 6.4067ms [I] Total time to load: 3283ms [I] Fetching community servers at https://raw.githubusercontent.com/Anuken/Mindustry/master/servers_be.json [E] java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at mindustry.world.blocks.environment.StaticWall.drawBase(StaticWall.java:33) at mindustry.graphics.MenuRenderer.cache(MenuRenderer.java:202) at mindustry.graphics.MenuRenderer.(MenuRenderer.java:37) at mindustry.ui.fragments.MenuFragment.build(MenuFragment.java:33) at mindustry.core.UI.init(UI.java:230) at mindustry.ClientLauncher.update(ClientLauncher.java:227) at arc.backend.sdl.SdlApplication.listen(SdlApplication.java:205) at arc.backend.sdl.SdlApplication.loop(SdlApplication.java:193) at arc.backend.sdl.SdlApplication.(SdlApplication.java:54) at mindustry.desktop.DesktopLauncher.main(DesktopLauncher.java:39)

Submission

Matita008 commented 2 months ago

Please send log and crash log as a .txt file