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

This subforum contains all the issues which we already resolved.
Post Reply
ETK03
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri May 11, 2018 9:48 pm
Contact:

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

Post 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.
Attachments
factorio-current.log
(5.81 KiB) Downloaded 18 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 10468
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

ETK03
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri May 11, 2018 9:48 pm
Contact:

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

Post 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?

Rseding91
Factorio Staff
Factorio Staff
Posts: 10468
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Cubius
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Aug 03, 2019 1:09 pm
Contact:

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

Post 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...

Post Reply

Return to “Resolved Problems and Bugs”

Who is online

Users browsing this forum: No registered users