(Net) Ensure functionality in non-replicated locations#247
Open
TCAGM-Dev wants to merge 11 commits intoSleitnick:mainfrom
Open
(Net) Ensure functionality in non-replicated locations#247TCAGM-Dev wants to merge 11 commits intoSleitnick:mainfrom
TCAGM-Dev wants to merge 11 commits intoSleitnick:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
In the case of Net not being in ReplicatedStorage, it now uses the "NetEvents" folder (created when necessary) inside ReplicatedStorage to ensure it still works properly
Why
In a personal project, I am using Fusion to make a loading screen.
This loading screen fires a RemoteEvent using Net when the client is done loading, for the server to
:LoadCharacter()them.Because wally does not have a seperate "client-dependencies" field, I am forced to sync Fusion into the same place as would-be shared dependencies such as Net.
Because Fusion is needed for the loading screen, it needs to be synced into ReplicatedFirst, and in turn Net has to be as well.
When testing this configuration I found out that RemoteEvents do not work in ReplicatedFirst, even though technically Net is present on both the server and client, so the current approach of putting the events inside of the script (in ReplicatedFirst) does not work.