Brave New World

by wadsaek

RTS-like scenario for Factorio. Player character is removed, all work must be done by bots. Fork of the already existing port of Brave New World by candidae, originally ported by Sladki and published by Omnifarious, now ported by wadsaek.

Scenarios
a month ago
2.0
136

b on_player_main_inventory_changed bug

a month ago

Keep getting this on alot of diffrent thing like trying to change recipe or pressing q on buildings or even opening chest some times basically had it happen with so many things at this point i dont remember them all
i will probably take a look at the code my self but just giving you the error

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

Error while running event level::on_player_main_inventory_changed (ID 40)
level/control.lua:124: Arguments count error for 'spill_item_stack': Expected 1 argument but 5 were given
stack traceback:
[C]: in function 'spill_item_stack'
level/control.lua:124: in function 'dropItems'
level/control.lua:174: in function <level/control.lua:128>
"

a month ago
(updated a month ago)

i dont know lua to much but
base of what i could find this should be change to the bottom one due to api changes in 2.0 but i could be wrong
entity.surface.spill_item_stack(entity.position, { name = name, count = count }, false, entity.force, false)
\/
entity.surface.spill_item_stack{position = entity.position, stack = { name = name, count = count }, force = entity.force}

a month ago

i will test it and to see if it works

a month ago
(updated a month ago)

alright i got it working had to also edit my save and replace control.lua in the save to with my edited version to

replace
"entity.surface.spill_item_stack(entity.position, { name = name, count = count }, false, entity.force, false) "
on Line 124 and Line 527 with
"entity.surface.spill_item_stack({position = entity.position, stack = { name = name, count = count }, force = entity.force})"
in control.lua

New response