fast_replaceable_group
fast_replaceable_group
Hi, I'd like to know if there is a way to add a fast_replaceable_group = "whatever" to any existing entity ingame ?
If so, how do I do that exactly in my mod ?
Thanks
If so, how do I do that exactly in my mod ?
Thanks
Re: fast_replaceable_group
I think that you can put anything you want there, just by putting it, so you could put as fast repaceable group "wall" in all your wall entities.
Re: fast_replaceable_group
Yeah and you don't get it, i want to put it for vanilla walls as well.
Re: fast_replaceable_group
Then you need to edit data.raw.wall.fast_replaceable_group, to be "wall", and when doing this, you also need to make your mod need the basa to be loaded first (in info.json I think)
Re: fast_replaceable_group
two "wall". type and name is same for base mod wall.
and yea you need to add dependencies to info.json
Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
Code: Select all
"dependencies": ["base"]
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela
Re: fast_replaceable_group
Where do I put this code ?rk84 wrote:Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
Re: fast_replaceable_group
data.raw 'commands' need to be in a prototype lua file, or as I always did, placed at the end of your data.lua (which typically calls require for all of the other prototypes).Nirahiel wrote:Where do I put this code ?rk84 wrote:Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
Re: fast_replaceable_group
You can put it in data.lua file or any file that you require in data.lua. ExampleNirahiel wrote:Where do I put this code ?rk84 wrote:Code: Select all
data.raw.wall.wall.fast_replaceable_group = "walls"
Code: Select all
--data.lua
require("base-edits")
Code: Select all
--base-edits.lua
data.raw.wall.wall.fast_replaceable_group = "walls"
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela
Re: fast_replaceable_group
Okay
Well i'm gonna try and see how it works, if it's working the way I want, i'll update Industrio
Well i'm gonna try and see how it works, if it's working the way I want, i'll update Industrio