simple-entity always neutral ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

simple-entity always neutral ?

Post by binbinhfr »

Hi,

i made a prototype derivated from simple-entity, but it is always created with force neutral even if drop by a player, and it seems that I cannot change its force. Is it normal ?
My mods on the Factorio Mod Portal :geek:
Rseding91
Factorio Staff
Factorio Staff
Posts: 15981
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: simple-entity always neutral ?

Post by Rseding91 »

Yes, simple-entity doesn't have a force. Like trees don't have a force.

When something doesn't have a force it defaults to "neutral".
If you want to get ahold of me I'm almost always on Discord.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: simple-entity always neutral ?

Post by binbinhfr »

Ok. And simple-entity is the only prototype modder can use, that has no internal GUI, right ?
Because I would like a simple entity, with my own GUI and nothing else...
My mods on the Factorio Mod Portal :geek:
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: simple-entity always neutral ?

Post by Adil »

I'd like to note that this is another undocumented change from 0.12, which used to work before.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5411
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: simple-entity always neutral ?

Post by Klonan »

Adil wrote:I'd like to note that this is another undocumented change from 0.12, which used to work before.
There are a dozen undocumented changes every week, some things aren't worth mentioning in the changelog
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: simple-entity always neutral ?

Post by Supercheese »

binbinhfr wrote:Ok. And simple-entity is the only prototype modder can use, that has no internal GUI, right ?
Because I would like a simple entity, with my own GUI and nothing else...
Maybe type = "wall"?
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: simple-entity always neutral ?

Post by binbinhfr »

Supercheese wrote:Maybe type = "wall"?
Good idea ! I'll try that. Thx
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Modding help”