Search found 4 matches

by thekabal
Mon Jul 06, 2026 2:12 pm
Forum: Modding help
Topic: LUA warnings on older mods
Replies: 2
Views: 190

Re: LUA warnings on older mods

Fantastic detail and explanation! Thank you very much!
by thekabal
Mon Jul 06, 2026 1:49 pm
Forum: Modding help
Topic: LUA warnings on older mods
Replies: 2
Views: 190

LUA warnings on older mods

I'm working to update older mods for 2.1, and have found a number of instances of warnings in luacheck like:

mutating non-standard global variable data
accessing undefined variable data

In both cases, the relevant lines look like:


data.raw["cargo-pod"]["cargo-pod"].created_effect = {
...
data ...
by thekabal
Tue Jul 29, 2025 3:52 am
Forum: Modding help
Topic: Help with autoplacing resources / updating an old mod
Replies: 5
Views: 1704

Re: Help with autoplacing resources / updating an old mod

This solved it for me!

I added:
local resource_autoplace = require("resource-autoplace")
data.raw.planet.nauvis.map_gen_settings.autoplace_controls["geothermal-vent"] = {}
data.raw.planet.nauvis.map_gen_settings.autoplace_settings.entity.settings["geothermal-vent"] = {}
To the top of the ...
by thekabal
Mon Jul 28, 2025 12:03 pm
Forum: Modding help
Topic: Help with autoplacing resources / updating an old mod
Replies: 5
Views: 1704

Help with autoplacing resources / updating an old mod

To create my first mod, I've chosen to update/migrate an existing (older) mod from 1.1 to 2.0: https://mods.factorio.com/mod/geothermalpower-yalda

I've managed to update the code to "run", but the resources (geothermal vents) do not place during a new game map gen, and does not show in preview.

I ...

Go to advanced search