Hey, I have a quick and pretty simple issue that might just be down to my overall usage of the utility, but after some searching and trying things out differently in my code, it appears nothing switched this behaviour…
For some reason when using RbxUtil’s Net
by sleitnick, no more than 7 Remotes are properly created, despite more being specified.
I wrote a module that starts when the Experience Server does, and it’s supposed to tell Net
to construct these Remotes at Start Up, just so they’re ready for the Client if required.
-- [ Services ] --
local ReplicatedStorage: ReplicatedStorage = game:GetService("ReplicatedStorage")
-- [ Variables ] --
-- // Packages
local Packages: Folder = ReplicatedStorage:WaitForChild("Packages")
local Net = require(Packages:WaitForChild("Net"))
local Signal = require(Packages:WaitForChild("Signal"))
-- // Service
local Remote_Constructor = {
["RemoteEvent"] = {
"Emote_Handler",
"Sync_Audio",
"Local_Money_Event",
"Update_Changelog",
"VR_Check",
};
["UnreliableRemoteEvent"] = {
"Unreliable_Notification",
"Unreliable_Footsteps",
};
["RemoteFunction"] = {
"Get_Audio_Info",
"Emote_Purchase_Event",
"Vending_Purchase_Event",
"ToggleTag_Event",
"Update_Tag",
};
}
-- [ Functions ] --
function Remote_Constructor.Start()
for _, RemoteEvent in Remote_Constructor.RemoteEvent do
Net:RemoteEvent(RemoteEvent)
end
for _, UnreliableRemoteEvent in Remote_Constructor.UnreliableRemoteEvent do
Net:UnreliableRemoteEvent(UnreliableRemoteEvent)
end
for _, RemoteFunction in Remote_Constructor.RemoteFunction do
Net:RemoteFunction(RemoteFunction)
end
end
-- [ Return the Module ] --
return Remote_Constructor
Any ideas what could be causing the issue? Even if I stop using this script I have pasted, it appears the issue still persists when using Net
’s API directly. By directly, I mean using the Command Bar, or just writing a regular script that isn’t this one, or letting the individual modules that need these Remotes from Net to construct them, themselves.
It’s very important that I find a solution to this, as a Client script is requesting the VR_Check
event. However, because it’s never being created, the module fails with an error after 10 seconds as stated by the RbxUtil documentation for Net
.
Thank you in advance!