Bravest New World

by TBC_x

RTS-like scenario for Factorio. Player character is removed, all work must be done by bots. Complete rewrite of Brave New World by candidae and Sladki.

Scenarios
a month ago
2.0
440

b [ANSWERED] Bob's Vehicle Equipment

a day ago

So after finally managing to figure out how to land on a new planet. I launched a pod to vulcanus. After about 20 seconds I get this error:

The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_nth_tick(41)
__level__/bnw-force.lua:656: attempt to concatenate field 'name' (a nil value)
stack traceback:
    __level__/bnw-force.lua:656: in function 'place_bot_spawner'
    __level__/bnw-force.lua:756: in function 'stage'
    __level__/control.lua:326: in function <__level__/control.lua:324>
    (...tail calls...)
    __level__/statemachine.lua:93: in function 'transition'
    __level__/statemachine.lua:85: in function '?'
    __level__/bnw-force.lua:215: in function 'trigger'
    __level__/control.lua:427: in function 'func'
    __level__/wiretap.lua:121: in function 'handle_event'
    __level__/wiretap.lua:17: in function <__level__/wiretap.lua:16>
a day ago

Thank you for the report. Can you please share what mod do you use to modify tank grid?

17 hours ago

That makes total sense on why it is crashing then. I added Bob's Vehicle Equipment after starting the game. It make vehicles have their own "unique" equipment and the non-vehicle equipment cannot be put in the equipment grid.

5 hours ago

Thank you for the info

Run this command to add compatibility for Bob's vehicle-only equipment.

/c local r, b, c;
 r = {["personal-roboport-mk2-equipment"] = "bob-vehicle-roboport-equipment-2", ["battery-mk2-equipment"] = "bob-vehicle-battery-equipment-3"};
 b = remote.call("bravest-new-world-scenario-config", "get_bot_spawner_equipment");
 for _,a in ipairs(b) do a.item = r[a.item] end;
 remote.call("bravest-new-world-scenario-config", "set_bot_spawner_equipment", b)

New response