Loaders and custom entity types

Place to get help with not working mods / modding interface.
Post Reply
User avatar
morphman
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Jan 22, 2015 10:11 am
Contact:

Loaders and custom entity types

Post by morphman »

I ran into a problem when I wanted to make an entity that doesn't share nodes with any vanilla entity type, so I thought I'd create my own. Unfortunately, it throws the error that the Loaders don't know how to handle that. I really don't want to hack an inserter or assembly machine or anything like that for something that will act nothing like those things...

I wonder if there's any way to add your own entity types to the loaders, or somehow override the loaders?

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: Loaders and custom entity types

Post by FreeER »

morphman wrote:I wonder if there's any way to add your own entity types to the loaders, or somehow override the loaders?
Not currently, all entity types are coded in C++. The devs eventually intend to add a custom Lua entity but that probably won't be added until close to the official 1.0 release, so until then we just have to find the closest entity that kind of does what we want and use control.lua to script around it.
Note: there is a simple-entity that may have no extra C++ functionality but I'm not certain about it (it's used in the base game for stone-rock in data/base/entity/demo-doodads.lua and a couple remnants in data/base/entity/demo-remnants.lua).
<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

User avatar
morphman
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Jan 22, 2015 10:11 am
Contact:

Re: Loaders and custom entity types

Post by morphman »

Thank you, I think simple-entity might be a good option, since it doesn't seem to have any other functionality code around it and thus will probably be the most future-proof option.

Post Reply

Return to “Modding help”