Infinite Repair Pack


This mod adds an infinite repair pack, the Sonic Screwdriver.

Content
9 months ago
0.17 - 2.0
1.82K
Cheats

b Loading error

9 months ago

te_Repair_Pack__/prototypes/item/infiniterepairpack.lua:10: attempt to index global 'item_sounds' (a nil value)
...ite_Repair_Pack__/prototypes/item/infiniterepairpack.lua:10: in main chunk
Infinite_Repair_Pack/data.lua:1: in main chunk

since the last mini update (v2.0.20)i get this error while loading the mod

9 months ago
(updated 9 months ago)

The following line needs to be added to the top of /prototypes/item/infiniterepairpack.lua

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

9 months ago

same that Error. need updated 2.0.20

9 months ago

+1. Thank you

9 months ago

The following line needs to be added to the top of /prototypes/item/infiniterepairpack.lua

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

This worked great for me! Thank you.

9 months ago

This isn't working for me

9 months ago

This isn't working for me

For me, I had to:
1. copy the file out of the zip but kept it zipped
2. Edit the file outside of the zip
3. Add the line "local item_sounds = require("base.prototypes.item_sounds" (without quotes) to the very top of the file before anything else
4. Save the file (make sure it does not add an additional .txt extension on the filename)
5. Replace the file in the zip

I am sure the author will update soon, if that does not work you may have to wait a few days.

9 months ago

Same issue here
Failed to load mods: ...ite_Repair_Pack__/prototypes/item/infiniterepairpack.lua:10: attempt to index global 'item_sounds' (a nil value)
stack traceback:
...ite_Repair_Pack__/prototypes/item/infiniterepairpack.lua:10: in main chunk
[C]: in function 'require'
Infinite_Repair_Pack/data.lua:1: in main chunk

Mods to be disabled:
• Infinite_Repair_Pack (0.2.0)

9 months ago

It still doesn't accept it. You are putting it in the file under the item folder correct?

9 months ago
(updated 9 months ago)

It still doesn't accept it. You are putting it in the file under the item folder correct?

/prototypes/item/infiniterepairpack.lua

very top of the file:

local item_sounds = require("base.prototypes.item_sounds")
data:extend({

{
type = "repair-tool",
name = "infinite-repair-pack",
icon = "__Infinite_Repair_Pack__/graphics/not_a_personal_messager_32.png",
icon_size = 32,
subgroup = "tool",
order = "b[repair]-b[repair-pack]",
inventory_move_sound = item_sounds.repair_pack_inventory_move,
pick_sound = item_sounds.repair_pack_inventory_pickup,
drop_sound = item_sounds.repair_pack_inventory_move,
speed = 2,
durability = 1000000000,
infinite = true,
stack_size = 100
}

})

9 months ago

Still errored out after doing that >_>

9 months ago

Same, that's what I tried and it still gives me errors.

9 months ago

data:extend({

{
local item_sounds = require("__base__.prototypes.item_sounds")
type = "repair-tool",
name = "infinite-repair-pack",
icon = "__Infinite_Repair_Pack__/graphics/not_a_personal_messager_32.png",
icon_size = 32,
subgroup = "tool",
order = "b[repair]-b[repair-pack]",
inventory_move_sound = item_sounds.repair_pack_inventory_move,
pick_sound = item_sounds.repair_pack_inventory_pickup,
drop_sound = item_sounds.repair_pack_inventory_move,
speed = 2,
durability = 1000000000,
infinite = true,
stack_size = 100
}

})

Just copy paste this and it should work again

9 months ago

Still not working

9 months ago

Fixed. Thanks DrWifi.

New response