flamework not identifying service constructor
tl;dr services cannot be in shared
I am using flamework for the first time and I'm not sure whether this is a conceptual misunderstanding or there is something I'm not seeing
I have the following service (shared):
And a dependent component (server):
I am getting the error,
[...].modding:510: Could not find constructor for shared/session@SessionProvider while constructing Kiosk
Additionally, I am a bit confused on how I am supposed to communicate between scripts. The SessionProvider creates a couple lifecycle events and fires them as needed, but I am not sure how I create a listener, the documentation has me lost, and I am thinking there is probably a better way to do that...
Any help is appreciated :)8 Replies
Solution
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Ook I see
https://flamework.fireboltofdeath.dev/docs/modding/guides/lifecycle-events This docs page details custom lifecycle events, can listeners not use them?
Lifecycle Events | Flamework
This guide is for creating a custom lifecycle event.
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Ohh ok I see. My question is how could I listen to events like onSessionLoaded? Eg.
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
Ok, I think it's just that the metamethods I added are misbehaving. Both of those lifecycle events are fired by changes to the ProfileStore Data table:
But it appears they are not doing as they should :p
Thank you :)