Page 1 of 1

[0.12.4] crash on incorrect creation of beam

Posted: Wed Aug 26, 2015 2:42 pm
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

Re: [0.12.4] crash on incorrect creation of beam

Posted: Wed Aug 26, 2015 3:38 pm
by posila
Beams cannot be created by create_entity, they can be only used in action_delivery in attack_parameters in entity prototypes.

Re: [0.12.4] crash on incorrect creation of beam

Posted: Thu Aug 27, 2015 4:27 am
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.

Re: [0.12.4] crash on incorrect creation of beam

Posted: Thu Aug 27, 2015 7:20 am
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.