Anuken / Mindustry

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

Wrong texture folder for mindustry sprites #6343

Closed Zelaux closed 2 years ago

Zelaux commented 2 years ago

Platform: Windows

Build: 134.1

Issue: I installed 2 mods with a large number of textures, and when I enter the map, the environment blocks from mindustry are drawn with the "env-error" texture. It's not just me who gets it.(It's not because of Braindustry) image

Steps to reproduce: How you happened across the issue, and what exactly you did to make the bug happen.

Link(s) to mod(s) used: Braindustry and another mod by my authorship, which is still in development.

If you remove the line above without reading it properly and understanding what it means, I will reap your soul. Even if you're playing on someone's server, you can still save the game to a slot.

Place an X (no spaces) between the brackets to confirm that you have read the line below.

Anuken commented 2 years ago

There are two possibilities here:

Zelaux commented 2 years ago

You have too many environment block sprites, which fill up the spritesheet. Reduce your sprite count and size.

I have sprites generated as in mindustry. I can't reduce the number of sprites, what should I do?

Anuken commented 2 years ago

There's currently nothing you can do besides reduce the number of sprites. Environment sprites must all fit on one texture for technical reasons, and the current maximum safe texture size is 2048x2048.

Even with all the generated cliff sprites and a bunch of v7 environment blocks, there's plenty of space left in the vanilla spritesheet. You shouldn't need that many sprites. Make sure that folder only contains static environment blocks, such as floors or indestructible walls. Trees and other props do not belong there.