[2.0] Converting 1.x mod

Place to get help with not working mods / modding interface.
zakman
Inserter
Inserter
Posts: 34
Joined: Fri Jun 03, 2016 1:48 am
Contact:

[2.0] Converting 1.x mod

Post 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.
User avatar
jodokus31
Smart Inserter
Smart Inserter
Posts: 1645
Joined: Sun Feb 26, 2017 4:13 pm
Contact:

Re: [2.0] Converting 1.x mod

Post by jodokus31 »

I drop this here:
viewtopic.php?t=116527

Maybe it helps
eugenekay
Filter Inserter
Filter Inserter
Posts: 825
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: [2.0] Converting 1.x mod

Post 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!
Post Reply

Return to “Modding help”