hey, found a solution. looking forward this will get implemented by admin.
jsut unzip the file into same directory. make sure, not the same named sub directory is inside the extracted folder.
then edit config.lua file with text editor. i prefer using Notepad++.
Insert the following and save. Working in Sandbox mode now.
script.on_event(defines.events.on_player_created, function(event)
local items
local armor
items = {
{"modular-armor", 1},
{"construction-robot", 20},
}
armor = {
{"personal-roboport-equipment"},
{"personal-roboport-equipment"},
{"battery-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
{"solar-panel-equipment"},
}
local player = game.players[event.player_index]
-- edited by SirWayNe - 2017_09_01
-- game.print("testing...")
-- game.print(defines.controllers.god)
-- game.print(player.controller_type)
if defines.controllers.god == player.controller_type then -- Check Player Controller Type for GOD mode -> no Inventory, else crashes
return
end
if defines.controllers.ghost == player.controller_type then
return
end
-- end edit
for i, v in pairs(items) do
player.insert{name = v[1], count = v[2]}
end
local grid = player.get_inventory(defines.inventory.player_armor)[1].grid
for i, v in pairs(armor) do
grid.put({name = v[1]})
end
end)