[Rseding] [0.17.75] Crash with RollingStock wheels direction_count of 0

This subforum contains all the issues which we already resolved.
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 279
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

[Rseding] [0.17.75] Crash with RollingStock wheels direction_count of 0

Post by Muppet9010 »

If you set RollingStock's wheel's direction_count to 0 the game crashes when you hover the RollingStock over a railway track and the game tries to draw the wheels.

https://wiki.factorio.com/Prototype/RollingStock#wheels
https://wiki.factorio.com/Types/Rotated ... tion_count


data.lua code used to reproduce the issue:

Code: Select all

data.raw["cargo-wagon"]["cargo-wagon"].wheels = {
	direction_count = 0,
	filename = "__core__/graphics/empty.png",
	width = 1,
	height = 1
}
Attachments
factorio-dump-current.dmp
(538.27 KiB) Downloaded 148 times
factorio-current.log
(8.28 KiB) Downloaded 158 times
Last edited by Muppet9010 on Wed Nov 06, 2019 3:52 pm, edited 1 time in total.
User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1262
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: [0.17.75] Crash with RollingStock wheels direction_count of 0

Post by valneq »

Muppet9010 wrote: Wed Nov 06, 2019 1:15 pm If you set RollingStock's wheel's direction_count to 0 the game crashes when you hover the RollingStock over a railway track and the game tries to draw the wheels.

https://wiki.factorio.com/Prototype/RollingStock#wheels
https://wiki.factorio.com/Types/Rotated ... tion_count


data.lua code used to reproduce the issue:

Code: Select all

data.raw["cargo-wagon"]["cargo-wagon"].wheels = {
	direction_count = 1,
	filename = "__core__/graphics/empty.png",
	width = 1,
	height = 1
}
The example code sets that value to 1. Does a value of 1 or a value of 0 reproduce the crash?
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 279
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

Re: [0.17.75] Crash with RollingStock wheels direction_count of 0

Post by Muppet9010 »

thanks, corrected. value of 0 is what causes the crash.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14328
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding] [0.17.75] Crash with RollingStock wheels direction_count of 0

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.17. I also made it so wheels are optional and you can just not define them to not have them draw.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”