Page 1 of 1

[2.0] Converting 1.x mod

Posted: Sat Oct 18, 2025 11:10 pm
by zakman
Hello, I'd like to update an older 1.x mod, "Long range lasers" for 2.x.

https://mods.factorio.com/mod/DimmimoLongRangeLasers

Currently running into the following error on game startup:

Code: Select all

Failed to load mods: __LongRangeLasersFORKED__/data.lua:20: attempt to index field 'base_picture' (a nil value)
stack traceback:
	__LongRangeLasersFORKED__/data.lua:20: in function 'makeLaser'
	__LongRangeLasersFORKED__/data.lua:84: in main chunk
Very inexperienced with modding, so not sure what I need to change this to. Any help appreciated.

Re: [2.0] Converting 1.x mod

Posted: Sat Oct 18, 2025 11:30 pm
by jodokus31
I drop this here:
viewtopic.php?t=116527

Maybe it helps

Re: [2.0] Converting 1.x mod

Posted: Sun Oct 19, 2025 2:51 am
by eugenekay
The base_picture property has been removed in favor of graphics_set.

I personally use the Extended Laser Turrets mod, which seems to be basically the same idea.

Good Luck!