Page 1 of 1

[0.17.79] Game crashes when you type [img=file.] into the console

Posted: Sun Dec 15, 2019 8:18 am
by ETK03
When you try to type

Code: Select all

[img=file.]
into the console, the game will crash: Error Sprite.cpp:125: Failed to load sprite: Error when opening No such file or directory.

Re: [0.17.79] Game crashes when you type [img=file.] into the console

Posted: Mon Dec 16, 2019 6:26 pm
by Rseding91
Thanks for the report. This is now fixed for the next release by disabling loading images dynamically for rich text. The system was just never setup to support it and it doesn't seem like a good idea for the game to dynamically load the image every time it's referenced.

You can still use all the other images by referencing items/entities and so on.

Re: [0.17.79] Game crashes when you type [img=file.] into the console

Posted: Thu Dec 19, 2019 3:21 pm
by ETK03
Is there any plans to allow for custom images in the future? Would it be possible or effect the performance of the game to have them always loaded?

Re: [0.17.79] Game crashes when you type [img=file.] into the console

Posted: Thu Dec 19, 2019 8:56 pm
by Rseding91
Every single time the image is referenced it would get loaded from disk and processed into vram. That just seems incredibly bad to ever allow for something like rich text which you can just type in the chat. So, I doubt it will ever be allowed. It never worked to begin with so my disabling of it just prevents the crash.

Re: [0.17.79] Game crashes when you type [img=file.] into the console

Posted: Fri Jan 10, 2020 9:09 pm
by Cubius
I discovered the same bug about two weeks after you.
Fun fact/story, if you have a discord channel that synchronizes the chat you can post img=file. (or img=file/ which is what I discovered but works the same) to the actual chat. if you do that all current players will crash and anyone who rejoins and opens chat while the code is still visible will crash again.
Of course we tried to weaponize this, by deploying train stations with the code as the name or a blueprint with the name in the library - all in the name of science of course - but were unable to crash other people/entire servers outside of the discord sync scenario.
Fun times...