Page 1 of 1

Help, mod Repair_pack's_0.1.0

Posted: Sat Feb 20, 2016 12:04 pm
by Andreyt1234
Drones do not use the added repair kits, or only the first listed in the base.lua:

Code: Select all

data.raw["construction-robot"]["construction-robot"].repair_pack = "repair-pack", "repair-pack1", "repair-pack2", "repair-pack3", "repair-pack4", "repair-pack5"

Re: Help, mod Repair_pack's_0.1.0

Posted: Sat Feb 20, 2016 1:35 pm
by prg
What you're doing there is syntactically correct, but results in assignment of just a single string and five statements without effect. Try curly braces around the strings to turn them into a table. (but no idea if the game actually supports this)

Re: Help, mod Repair_pack's_0.1.0

Posted: Sat Feb 20, 2016 1:44 pm
by Andreyt1234
prg wrote:What you're doing there is syntactically correct, but results in assignment of just a single string and five statements without effect. Try curly braces around the strings to turn them into a table. (but no idea if the game actually supports this)
Does not work

Re: Help, mod Repair_pack's_0.1.0

Posted: Sat Feb 20, 2016 2:40 pm
by prg
Then either you're still getting the syntax wrong or it's simply not supported.

Re: Help, mod Repair_pack's_0.1.0

Posted: Sat Feb 20, 2016 3:44 pm
by mophydeen
If it would work, it would not be enough.

When using mods that add there own robots. Those robots won't know about the new repair packs.

I tried adding an improved repairpack to my mod and decided to just edit the default one. Not perfect but there is currently no better way.

Re: Help, mod Repair_pack's_0.1.0

Posted: Sat Feb 20, 2016 3:51 pm
by prg
mophydeen wrote:If it would work, it would not be enough.

When using mods that add there own robots. Those robots won't know about the new repair packs.

I tried adding an improved repairpack to my mod and decided to just edit the default one. Not perfect but there is currently no better way.
Loop over all entries in data.raw["construction-robot"] and add the new repair packs?

(does the game support multiple repair packs per robot in the first place?)

Re: Help, mod Repair_pack's_0.1.0

Posted: Mon Feb 22, 2016 5:11 pm
by Rseding91
prg wrote:
mophydeen wrote:If it would work, it would not be enough.

When using mods that add there own robots. Those robots won't know about the new repair packs.

I tried adding an improved repairpack to my mod and decided to just edit the default one. Not perfect but there is currently no better way.
Loop over all entries in data.raw["construction-robot"] and add the new repair packs?

(does the game support multiple repair packs per robot in the first place?)
It does not. That's something I'm looking to fix in 0.13.