Call lua interfaces on game actions

Things that we aren't going to implement
thislooksfun
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Aug 31, 2014 10:27 pm
Contact:

Call lua interfaces on game actions

Post by thislooksfun »

I'm trying to make an inventory that requires keeping track of the items that were placed into it. Specifically, I need to add custom logic to the 'insert' and 'can_insert' methods of the LuaInventory instance, but as I just found out from the IRC, those are not actually called when the base game interacts with an inventory. Is there / would it be possible to add a way to track / override those base operations?a

If this already exists, I apologize, but I was unable to find it.

Thanks,
-tlf
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5267
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Call lua interfaces on game actions

Post by Klonan »

thislooksfun wrote:I'm trying to make an inventory that requires keeping track of the items that were placed into it. Specifically, I need to add custom logic to the 'insert' and 'can_insert' methods of the LuaInventory instance, but as I just found out from the IRC, those are not actually called when the base game interacts with an inventory. Is there / would it be possible to add a way to track / override those base operations?a

If this already exists, I apologize, but I was unable to find it.

Thanks,
-tlf
Its not possible
Rseding91
Factorio Staff
Factorio Staff
Posts: 14281
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Call lua interfaces on game actions

Post by Rseding91 »

Klonan wrote:Its not possible
And is never going to be possible.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Won't implement”