Search found 7 matches
- Sat May 18, 2024 8:08 pm
- Forum: Modding help
- Topic: steam output power not work
- Replies: 11
- Views: 1479
Re: steam output power not work
There's a bunch of typos "engin" "engines", you're copying the entity twice instead if the item and the entity, the last one "steament" doesn't use the table.copy function at all. and a bunch of parameters that don't apply to the respective item/recipe/entity. Please go read the code from another ...
- Sat May 18, 2024 7:33 pm
- Forum: Modding help
- Topic: steam output power not work
- Replies: 11
- Views: 1479
Re: steam output power not work
Yeah, the second one. That should get you close enough to start seeing results in the game!
its not work bro i try it this code : --recipe.lua
local steamrecipe = table.deepcopy(data.raw.recipe["steam-engine"])
steamrecipe.name = "steam-engine-2"
steamrecipe.enabled = true
steamrecipe ...
- Sat May 18, 2024 6:05 pm
- Forum: Modding help
- Topic: steam output power not work
- Replies: 11
- Views: 1479
Re: steam output power not work
1. You still need all the code you already had, which was correct. steamrecipe should stay the same, and you add a new section for e.g. steamentity
2. What I wrote was correct. Items are stored in data.raw.item, but entities are stored in many different categories, like data.raw.armor and data ...
- Sat May 18, 2024 5:54 pm
- Forum: Modding help
- Topic: steam output power not work
- Replies: 11
- Views: 1479
Re: steam output power not work
1. You still need all the code you already had, which was correct. steamrecipe should stay the same, and you add a new section for e.g. steamentity
2. What I wrote was correct. Items are stored in data.raw.item, but entities are stored in many different categories, like data.raw.armor and data ...
- Sat May 18, 2024 5:28 pm
- Forum: Modding help
- Topic: steam output power not work
- Replies: 11
- Views: 1479
Re: steam output power not work
The entity for the steam engine is stored in `data.raw.generator["steam-engine"]` and the prototype parameters for the generator entity can be found in the documentation at https://lua-api.factorio.com/latest/prototypes/GeneratorPrototype.html
Do another copy.deepcopy of the entity entry, rename ...
- Fri May 17, 2024 12:01 pm
- Forum: Modding help
- Topic: steam output power not work
- Replies: 11
- Views: 1479
Re: steam output power not work
how i can do it ?robot256 wrote: Thu May 16, 2024 9:48 pm Items are only the things held in inventory. Right now your new item places the same old engine entity. You need to make a new Entity and change the placement links for it to be different when you place it.
- Thu May 16, 2024 6:59 pm
- Forum: Modding help
- Topic: steam output power not work
- Replies: 11
- Views: 1479
steam output power not work
hi guys i am noob with moding and i want just simple mod for upgrade steam engine
my custom item work but output power not change and its vanilla
my item.lua:
--item.lua
local steam_engine = table.deepcopy(data.raw.item["steam-engine"])
steam_engine.name = "steam engine 2"
steam_engine ...
my custom item work but output power not change and its vanilla
my item.lua:
--item.lua
local steam_engine = table.deepcopy(data.raw.item["steam-engine"])
steam_engine.name = "steam engine 2"
steam_engine ...