ByteNet icon indicating copy to clipboard operation
ByteNet copied to clipboard

CFrames sent to Serverdoesn't seems to be accurate

Open ghost opened this issue 1 year ago • 6 comments

More info soon:

-- LocalScript in a tool
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local ToolNetwork = require(ReplicatedStorage.ToolNetwork)

script.Parent.Activated:Connect(function()
	ToolNetwork.Activate.send({
		direction = workspace.CurrentCamera.CFrame
	})
end)
-- definitions
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local b = require(ReplicatedStorage.Melody.Modules.ByteNet)

local packet = b.definePacket

return b.defineNamespace("Tools", function()
	return {
		Activate = packet({
			value = b.struct({
				direction = b.cframe
			}),
		})
	}
end)
-- On server
ToolNetwork.Activate.listen(function(data, player)
    -- insert code to place parts here
end)

ghost avatar Sep 08 '24 18:09 ghost

Creating a new part and CFraming is like this: video

Printing the data going to be sent to server and printing the data the server received does this result in the Output: image

ghost avatar Sep 08 '24 18:09 ghost

For those encountering, according to ffrostfall updating to v0.4.5 should fix

ncaul avatar Oct 09 '24 11:10 ncaul

wait do we need to update back?

JoshGit777 avatar Nov 02 '24 00:11 JoshGit777

like do we need to revert back to 0.4.5?

JoshGit777 avatar Nov 02 '24 01:11 JoshGit777

still broken

ColorfulMarker avatar Feb 04 '25 17:02 ColorfulMarker

any updates?

ItsBixby avatar Nov 04 '25 08:11 ItsBixby