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. has settings to tweak it to your liking

Content
10 months ago
2.0
1.96K
Logistics

b Bug Issue with 2.0.20

1 year, 8 months 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)

1 year, 8 months ago

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

1 year, 8 months ago

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

1 year, 8 months ago
(updated 1 year, 8 months 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",
1 year, 8 months 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... :(

1 year, 8 months ago
(updated 1 year, 8 months 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

1 year, 8 months ago

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

1 year, 8 months 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 :)

1 year, 8 months 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.

1 year, 7 months ago

sorry that you have to wait. i added the changes mentioned here. thanks joe

New response