1) Install HCG
2) Start Team production
3) Use the item in your inventory to build a HCG in the starting area.
So basically because team production doesn't have the freeplay remote interface for setting starting items my mod automatically falls back to direct insertion, and thus the player has something buildable even though that's probably not intended.
Code: Select all
script.on_event(defines.events.on_player_created,function(e)
local p = game.players[e.player_index]
local simple_stack = {name='er:hcg-item', count=1}
if p.can_insert(simple_stack) then
p.insert(simple_stack)
Code: Select all
The scenario level caused a non-recoverable error.
Please report this error to the scenario author.
Error while running event level::on_built_entity (ID 6)
...shared-write]/temp/currently-playing/team_production.lua:983: attempt to index field '?' (a nil value)
stack traceback:
...shared-write]/temp/currently-playing/team_production.lua:983: in function 'is_in_area'
...shared-write]/temp/currently-playing/team_production.lua:1055: in function 'handler'
__core__/lualib/event_handler.lua:47: in function <__core__/lualib/event_handler.lua:45>