defines.events.on_player_trash_slots_changed

User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 383
Joined: Tue Jul 08, 2014 10:06 am
Contact:

defines.events.on_player_trash_slots_changed

Post by LuziferSenpai »

Hey,

I want to request a new Event.

Like in the title I want to request a Event that gets called, when the trash_slots are getting changed.

If you want more Information why, ask.

Greetz,

Luzifer
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: defines.events.on_player_trash_slots_changed

Post by lovely_santa »

LuziferSenpai wrote:If you want more Information why, ask.
Why?

I'm curious? The only thing i could think of is adding more stuff to the trash slots, but you got auto trash slots for that?
Controling robots? Is that even possible? (never looked into that)
...

It caught my attention...

lovely_santa
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 383
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: defines.events.on_player_trash_slots_changed

Post by LuziferSenpai »

lovely_santa wrote:
LuziferSenpai wrote:If you want more Information why, ask.
Why?

I'm curious? The only thing i could think of is adding more stuff to the trash slots, but you got auto trash slots for that?
Controling robots? Is that even possible? (never looked into that)
...

It caught my attention...

lovely_santa
Its for my new MOD. I want it so I know when Player put Stuff in there or Stuff gets moved out. So they dont start cheating around and keep Stuff like Locomotives in there Trash Slots.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: defines.events.on_player_trash_slots_changed

Post by lovely_santa »

As quick fix:

you can keep track of the main inventory and the quickbar to see if items get removed...

If they get removed, check the trash slots for items and keep checking them till they are empty...

That way you know the items in the trash slot (and so you can calculate the weight)..
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
Post Reply

Return to “Implemented mod requests”