[0.12.4] crash on incorrect creation of beam

Bugs that are actually features.
Post Reply
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

[0.12.4] crash on incorrect creation of beam

Post by Adil »

Basically I've just tried to create_entity
without specifying source_entity in parameter table. Other ways of incorrect invocation trigger normal error message.
edit: Actually, I've got no idea whatever it expects me to type in I've tried "source" and "source_entity" and both generated the error about "create beam without source entity" and caused crash.
Crashlog
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.

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.12.4] crash on incorrect creation of beam

Post by posila »

Beams cannot be created by create_entity, they can be only used in action_delivery in attack_parameters in entity prototypes.

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: [0.12.4] crash on incorrect creation of beam

Post by Adil »

Come on, how on the earth is that a solution? Last time I've checked the function was named create_entity(), not create_entity_as_long_as_its_not_a_beam().
And the crash problem still resides.
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
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [0.12.4] crash on incorrect creation of beam

Post by HanziQ »

This is not something that can be currently done, the beam needs to be tied to an entity with a shooter (e.g. combat robot, turret), I will look into doing something about that.

Post Reply

Return to “Not a bug”