Reusable rocket

by Lyzz

A Seperate rocket silo with 2 reusable rockets that only need fuel and maintence for transport missions. unlocked after progressing on vulcanus

Content
17 days ago
2.0
998
Transportation Logistics

b Bug Issue with 2.0.20

11 days ago

Getting the following error

Failed to load mods: _ reusable-rocket-simple _/data.lua:42: attempt to index global 'item_sounds' (a nil value)

_ reusable-rocket-simple _/data.lua:42: in main chunk

Mods to be disabled:
reusable-rocket-simple (1.1.1)

11 days ago

yup im getting that too. factorio devs changes a global thingy

11 days ago

Same. Just gotta wait for mod to be updated. Hopefully it does soon. It's such a useful mod.

11 days ago
(updated 11 days ago)

Just put this in data.lua at the top of the file below the other local

local item_sounds = require("__base__.prototypes.item_sounds")

Once you added this, it will work

I put it just below this line, and mod gets loaded fine:

local reFuelAmmount = settings.startup["reFuelAmmount"].value

In the same file, you also need to replace these lines:

inventory_move_sound = item_sounds.mechanical_large_inventory_move,
pick_sound = item_sounds.mechanical_large_inventory_pickup,
drop_sound = item_sounds.mechanical_large_inventory_move,

With these lines:

inventory_move_sound = "__base__/sound/item/mechanical-large-inventory-move.ogg",
pick_sound = "__base__/sound/item/mechanical-large-inventory-pickup.ogg",
drop_sound = "__base__/sound/item/mechanical-large-inventory-move.ogg",
8 days ago

i tired to put the line in any data.lua file i could find, but it did not work :( also, i cant find the mentioned lines in any of the data.lua files... :(

7 days ago
(updated 7 days ago)

Just put this in data.lua at the top of the file below the other local
local item_sounds = require("__base__.prototypes.item_sounds")
Once you added this, it will work

I put it just below this line, and mod gets loaded fine:
local reFuelAmmount = settings.startup["reFuelAmmount"].value

In the same file, you also need to replace these lines:
inventory_move_sound = item_sounds.mechanical_large_inventory_move, pick_sound = item_sounds.mechanical_large_inventory_pickup, drop_sound = item_sounds.mechanical_large_inventory_move,

With these lines:
inventory_move_sound = "__base__/sound/item/mechanical-large-inventory-move.ogg", pick_sound = "__base__/sound/item/mechanical-large-inventory-pickup.ogg", drop_sound = "__base__/sound/item/mechanical-large-inventory-move.ogg",

Thank you, it works! Can confirm

6 days ago

where do you find the data.lua file? there is one in each directory, i dont know which one to edit....

6 days ago

ahhhhhh found it! its not the games data.lua, its the MODS file! in the mod-folder there are all those packed mods, i unpacked it, edited the file and now it works :)

4 days ago

Yes, I'm sorry. It's always the mods data.lua, never change anything in the game files ;-)

You also should re-zip the file and remove the folder, otherwise it maybe won't update itself over the game.

New response