Hi everyone!
I am creating a mod in which, in the mod settings, you can replace the usual radar graphics with graphics from the mod.
In data-updates.lua I have following code:
if settings.startup["Ket-ingame-radar-graphics"].value == false then
data.raw.item["radar"].icon = "__KetsRadars ...
Search found 4 matches
- Mon Aug 16, 2021 6:46 pm
- Forum: Modding help
- Topic: Entity icon does not changes in electric network info window
- Replies: 0
- Views: 808
- Mon Aug 16, 2021 6:05 pm
- Forum: Modding help
- Topic: need help with for .... in pairs
- Replies: 5
- Views: 1979
Re: need help with for .... in pairs
Then I did so, and then I abandoned the mod...
- Tue Jun 15, 2021 4:16 am
- Forum: Modding help
- Topic: need help with for .... in pairs
- Replies: 5
- Views: 1979
Re: need help with for .... in pairs
thanks everyone for solutions! I use eradicator's method before reading his reply.
- Sun Jun 13, 2021 12:11 am
- Forum: Modding help
- Topic: need help with for .... in pairs
- Replies: 5
- Views: 1979
need help with for .... in pairs
Hi Guys! Sorry, I'm bad in English.
I'm trying to change the stack size for some items. I have this code:
--data-final-fixes.lua
local items = data.raw.item
function get_stack_size(str)
-- if the specified name has such a substring, then return the specified stack size
if str:find("transport ...
I'm trying to change the stack size for some items. I have this code:
--data-final-fixes.lua
local items = data.raw.item
function get_stack_size(str)
-- if the specified name has such a substring, then return the specified stack size
if str:find("transport ...