Well it's fairly useless until 0.13.1 though: viewtopic.php?f=30&t=27187binbinhfr wrote:working on update to 0.13 , should be ok wednesday evening.
lol
Completely stopped my mega test base.
Well it's fairly useless until 0.13.1 though: viewtopic.php?f=30&t=27187binbinhfr wrote:working on update to 0.13 , should be ok wednesday evening.
Code: Select all
local ret, invent = pcall(silo.get_inventory, 5)
if ret and not invent.is_empty() then
silo.launch_rocket()
end
Code: Select all
Error while running hte event handler:
__ScoreExtended__/control.lua:198:attempt to index local 'invent' (a nil value)
Code: Select all
if ret then
silo.launch_rocket()
end
so here is 1.0.8 correction (I'm not at home so I cannot test it).entity.get_inventory(index) returns nil if it doesn't have an inventory for the given index instead of giving an error.
great ! first time I correct a bug without even having access to the program to test itLejving wrote:Can't say for the long run but I loaded up my save where I could produce the error immediately and it worked just fine. Good job, thanks a lot!!!
i second this !binbinhfr wrote:please update to 1.0.13 and tell me
Hi MissUnikitty, I did not really understand your message (I'm french native speaker) : do you mean that the new update is alright, or do you have a problem with the mod ?MissUnikitty wrote:i second this !binbinhfr wrote:please update to 1.0.13 and tell me
Code: Select all
if player.gui.left.rocket_score == nil then
local frame = player.gui.left.add{name = "rocket_score", type = "frame", direction = "horizontal", caption={"score"}}
frame.add{name="rocket_count_label", type = "label", caption={"", {"rockets-sent"}, ""}}
frame.add{name="rocket_count", type = "label", caption="1"} -- << ERROR
else
player.gui.left.rocket_score.rocket_count.caption = tostring(global.satellite_sent[force.name]) -- << NEXT CALL SHOULD BE OK
end