event_handler lib update for Eventfilter

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 339
Joined: Tue Jul 08, 2014 10:06 am
Contact:

event_handler lib update for Eventfilter

Post by LuziferSenpai »

Hey,

could you guys pls update the event_handler lib, so it supports Eventfilter and we dont need todo them outside? Should be possible or?

Greetz,

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

My MODs:
Click

Greetz,

Senpai

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5151
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: event_handler lib update for Eventfilter

Post by Klonan »

Hmm, its more tricky

For instance, if you have two libs, one has event filter for the event, one does not, then what should it do?

Should it error and say "Well you can't have 1 with filter and 1 without",
Or should it mean the filter won't work and just have it be uselesss?

What if two libs have conflicting filters?

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

Re: event_handler lib update for Eventfilter

Post by LuziferSenpai »

Klonan wrote:
Wed Jun 03, 2020 9:56 am
Hmm, its more tricky

For instance, if you have two libs, one has event filter for the event, one does not, then what should it do?

Should it error and say "Well you can't have 1 with filter and 1 without",
Or should it mean the filter won't work and just have it be uselesss?

What if two libs have conflicting filters?
Yea, forgot about that one.
Well, I dont know how to solve this.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Rseding91
Factorio Staff
Factorio Staff
Posts: 13219
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: event_handler lib update for Eventfilter

Post by Rseding91 »

LuziferSenpai wrote:
Wed Jun 03, 2020 10:40 am
Well, I dont know how to solve this.
Easy, don't use an event library. Just register an event handler directly + your filters.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Modding interface requests”