One of the things is player death messages:
Code: Select all
script.on_event(
defines.events.on_player_died,
function(event)
local player_index = event.player_index
local player_name = game.get_player(player_index).name
local cause = event.cause
if event.cause then
cause = event.cause.name
else
cause = ""
end
if cause == "character" then
cause = event.cause.player.name
end
local count, total = getAndStoreDeathCount(player_name, cause)
log_message("[PLAYER_DIED:" .. player_name .. ":" .. cause .. ":" .. count .. ":" .. total .. "]")
end
)
Mods that I have enabled:
Code: Select all
{
"mods":
[
{
"name": "base",
"enabled": true
},
{
"name": "aai-industry",
"enabled": true
},
{
"name": "aai-programmable-vehicles",
"enabled": true
},
{
"name": "aai-signal-transmission",
"enabled": true
},
{
"name": "aai-signals",
"enabled": true
},
{
"name": "AfraidOfTheDark",
"enabled": true
},
{
"name": "air-filtering",
"enabled": true
},
{
"name": "Aircraft",
"enabled": true
},
{
"name": "alien-biomes",
"enabled": true
},
{
"name": "alien-biomes-hr-terrain",
"enabled": true
},
{
"name": "ArmouredBiters",
"enabled": true
},
{
"name": "bobinserters",
"enabled": true
},
{
"name": "Bottleneck",
"enabled": true
},
{
"name": "bullet-trails",
"enabled": true
},
{
"name": "combat-mechanics-overhaul",
"enabled": true
},
{
"name": "deadlock-beltboxes-loaders",
"enabled": true
},
{
"name": "DiscoScience",
"enabled": true
},
{
"name": "Early-3x3-Electric-Furnaces",
"enabled": true
},
{
"name": "EditorExtensions",
"enabled": true
},
{
"name": "even-distribution",
"enabled": true
},
{
"name": "EvoGUI",
"enabled": true
},
{
"name": "FactoriGOChatBot-companion",
"enabled": true
},
{
"name": "far-reach",
"enabled": true
},
{
"name": "flib",
"enabled": true
},
{
"name": "Flow Control",
"enabled": true
},
{
"name": "FluidMustFlow",
"enabled": true
},
{
"name": "FNEI",
"enabled": true
},
{
"name": "Hovercrafts",
"enabled": true
},
{
"name": "informatron",
"enabled": true
},
{
"name": "jetpack",
"enabled": true
},
{
"name": "Krastorio2",
"enabled": true
},
{
"name": "Krastorio2Assets",
"enabled": true
},
{
"name": "LightedPolesPlus",
"enabled": true
},
{
"name": "RecipeBook",
"enabled": true
},
{
"name": "researched-what",
"enabled": true
},
{
"name": "reverse-factory",
"enabled": true
},
{
"name": "robot_attrition",
"enabled": true
},
{
"name": "shield-projector",
"enabled": true
},
{
"name": "space-exploration",
"enabled": true
},
{
"name": "space-exploration-graphics",
"enabled": true
},
{
"name": "space-exploration-graphics-2",
"enabled": true
},
{
"name": "space-exploration-graphics-3",
"enabled": true
},
{
"name": "space-exploration-graphics-4",
"enabled": true
},
{
"name": "space-exploration-graphics-5",
"enabled": true
},
{
"name": "space-exploration-postprocess",
"enabled": true
},
{
"name": "spidertrontiers-circulardependency",
"enabled": true
},
{
"name": "Squeak Through",
"enabled": true
},
{
"name": "StatsGui",
"enabled": true
},
{
"name": "stdlib",
"enabled": true
},
{
"name": "VehicleSnap",
"enabled": true
},
{
"name": "vtk-armor-plating",
"enabled": true
},
{
"name": "Waterfill_v17",
"enabled": true
}
]
}