Add argument EntityWithQualityID to .create_cargo_pod()

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Puke
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Jun 13, 2016 7:00 pm
Contact:

Add argument EntityWithQualityID to .create_cargo_pod()

Post by Puke »

Hello !

The method LuaEntity.create_cargo_pod() :
https://lua-api.factorio.com/2.0.73/cla ... _cargo_pod
https://lua-api.factorio.com/2.0.73/cla ... _cargo_pod

Does not allow to specify which pod.
However, we are already capable of making modded cargo pods by adding a CargoPodPrototype.
It would be nice to have the ability to "summon" such pods with the .create_cargo_pod(), this would allow way more flexibility using real cargo pods.

Thank you !
Best regards
Rseding91
Factorio Staff
Factorio Staff
Posts: 16551
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add argument EntityWithQualityID to .create_cargo_pod()

Post by Rseding91 »

Isn't that just surface.create_entity() ?
If you want to get ahold of me I'm almost always on Discord.
Puke
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Jun 13, 2016 7:00 pm
Contact:

Re: Add argument EntityWithQualityID to .create_cargo_pod()

Post by Puke »

I tried that, but it doesn't look like the cargo pod created with create_entity() behaves like the one created with create_cargo_pod(),
it doesn't belong to a hatch (therefore, doesn't play its animation nor does it occupy the hatch), and even tho its destination is setup correctly, with the same parameters as with a cargo_pod created with create_cargo_pod, it does not reach its destination and doesn't deliver it's payload.

I will add that when I tried using create_entity() I passed the same params I was giving a working cargo pod made with create_cargo_pod(). I also made sure to set the processing ticks to 0. The created entity did lift, but it did not reach its destination.

Create_cargo_pod() seems like a helper that does several things under the hood.
My request is to be able to leverage all this, and override the cargo pod it uses.
Post Reply

Return to “Modding interface requests”