This is error when I try start new game.
Code: Select all
__Functionals__/control.lua:1: attempt to call a nil value
stack traceback:
__Functionals__/control.lua:1: in main chunk
Code: Select all
script.on_event
(
defines.events.on_built_entity,
function(event)
local yaratilan_entity = event.created_entity
local oyuncu_index = event.player_index
local esas_oyuncu = game.get_player(oyuncu_index)
local item_stack = event.stack
local item = event.item
local taglar = event.tags
if esas_oyuncu.character ~= nil then
esas_oyuncu.character_running_speed_modifier = 0.9
game.print("Fonksiyon basariyla calisti.")
end
end,
{
{
filter = "type",
type = "wall"
},
{
filter = "vehicle",
mode = "or",
},
{
filter = "name",
name = "small-lamp",
mode = "or"
}
}
)
note: Game version is Factorio 1.1.34
edit: I have no idea what happened. But I'm reload game and try again new game. mod completely working. Maybe my first launch the version 1.1.34 is a problem I don't know but it's fine now.