#I am making an m1 system using server authority. Local animations don't play properly and its buggy.

1 messages · Page 1 of 1 (latest)

trail garden
frail oar
trail garden
frail oar
glass hazel
#

oh wait no yeha im being deadass @trail garden

#

wait what type of animation is it?

#

if its like a rig animation then yh roblox broken atm

trail garden
trail garden
#

r6

#

thats all I know

glass hazel
#

yeah

#

wont work then

#

set game settings to r6, your avatar to r6, and ur still r15

#

add a print statement saying something like print(plr.Character.RigType)

#

or plr.RigType

frail oar
glass hazel
#

i forgot

#

i had the same error and found it was literally just their new avatar system

trail garden
glass hazel
#

@trail garden

#

make a local script rq

#

or anything in playerchar

#

and run this

#
local plr = game.Players.LocalPlayer

local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

if char and hum then
    print(hum.RigType)
end
#

it will prob print smth like 'Enum.HumanoidRigType.R15'

#

thats just roblox being a bit slow in the head

frail oar
trail garden
#

FUCK

#

ITS R15

glass hazel
glass hazel
frail oar
#

no freaking way

glass hazel
#

you cant change it so dont try

frail oar
#

😭

glass hazel
#

its roblox new avatar bullshit

#

kinda fucks me over considering my main focus is scripting animating and vfx 😭

glass hazel
trail garden
glass hazel
#

thats what i do but yh

trail garden
#

:Sob:

#

and he's a3 😭

glass hazel
#

fr?

#

slinky been around for time

glass hazel
trail garden
glass hazel
#

ACTUAL?

#

wtf

trail garden
#

for ban evading lmfao

glass hazel
#

lmfaooo

#

L ig

#

i liked him

#

to run vfx with animation

#

i use moon animator

#

create an animation event, and inside it change the code

trail garden
glass hazel
#

yeah

#

I use lunar sound to allign it

#

here ill send a vid rq

trail garden
glass hazel
#

the sfx isnt in video because i forgot to enable audio so i added music

glass hazel
#

i use moon tho

#

i got moon years back

#

vfx was too bright like on the slash i fixed that, but it changed just as i was recording and i aint even notice

trail garden
glass hazel
#

lmao

#

because roblox r lazy and dont care about us fr

#

a third party source (moon animator) is better

trail garden
tardy coveBOT
#

studio** You are now Level 21! **studio

glass hazel
#

i warned you

#

shi is broken asf

pure fulcrum
#

Ill lyk how I fixed it when im on my pc (few hours)

#

There was a setting in the avatar settings thing to switch avatar type to r15/r6

#

(From the top of my head I think u press the 3 dots in the top right of the avatar settings, which opens a small menu with 3 options) @trail garden

trail garden
dusky sun
#

your code is not built correctly to handle rollback and resim on misprediction, so anims will be jank and may stutter / restart multiple times. same thing happens to sounds and vfx.

trail garden
trail garden
# dusky sun best i can suggest at the moment is read the docs "advanced techniques: play a s...

OK, so what I’m getting from this is that sometimes the client will miss predict what the server does, and that messes up animations, VFX, sounds, etc.

For animations, I can make a custom table that has the animation track and the previous animation timestamp.

local PreviousTimestamp = AnimationTrackTable.PreviousTimePosition

local RecordedTimstamp = AnimationTrackTable.AnimationTrack.TimePosition

If PreviousTimestamp ~= RecordedTimestamp then

AnimationTrackTable.AnimationTrack.TimePosition = AnimationTrackTable.PreviousTimePosition

end

#

Would something like this work

glass hazel
# dusky sun if it works it works 🤷

yeh no the problem isnt that, its that an r6 anim cant run on an r15 rig, and despite efforts to change to r6, (changing their actual avatar to r6 and settings), EVEN if ur body shows r6 limbs, inside has r15 meshes, and when u run print(plr.Character.Humanoid.RigType) it prints r15, which animations that are r6 can't be ran on.

dusky sun
#

pretty simple to figure that one out

dusky sun
glass hazel
#

well id assume their animations aint running

dusky sun
#

and this is not correct handling: ```lua
M1InputAction.Pressed:Connect(function()
M1Hold = true
end)
M1InputAction.Released:Connect(function()
M1Hold = false
end)

task.spawn(function()
    while true do
        if M1Hold then
            ExecuteM1(LocalPlayer.Character)
        end
        task.wait()
    end
end)```
#

occasionally problems like this can be a rigtype mismatch, but with server authority involved and we know occasionally the animation does play correctly, so it's just simply improper simulation code.

trail garden
dusky sun
trail garden
dusky sun
trail garden
trail garden
#

Now I realized.

#

My apologies

dusky sun
#

server authority is some fairly advanced tech, and also very early release. there's not even any misprediction debug info, you kinda just have to guess at the moment.

#

add to that, a standard humanoid walking into an unanchored part triggers mispredictions, that's a problem with roblox, and likely why they're rushing to release their updated unified replacement for the humanoid, along with the AnimationConstraint.

trail garden
#

I don't see the use in it.

dusky sun
dusky sun
#

running the simulation slower

trail garden
dusky sun
#

performance

trail garden
trail garden
#
Function RemoteEvent.FireAllClients is not allowed for simulation callbacks
trail garden
dusky sun
trail garden
dusky sun
#

signal module aint gonna help hehe

#

the docs mention a few ways to get data in and out of the simulation

#

wishing you luck, it's not easy salute

#

and i would know

trail garden
dusky sun
#

can't read it for you bruh 🙃

trail garden
#

Bump

trail garden
#

Another bump

trail garden
#

You know what, fuck server authority. To much of a pain.

trail garden
dusky sun
trail garden
#

you just sent me to the usless ahh docs

dusky sun
#

animations do play locally. you just cannot play them from within the simulation

#

try the ol' humanoid.animator:loadanimation():play()

#

like if this as a baseline isn't working like normal, and i suggest trying it from the command bar, then you got problems before you even got to the simulation

trail garden
dusky sun
#

game.Players:FindFirstChildOfClass("Player").Character.Humanoid.Animator:LoadAnimation(path_to_anim):Play() if that doesn't work then fix this first

trail garden
#

I am using heartbeat

#

not :BindToSimulation

dusky sun
#

heartbeat is outside the simulation

#

any math, logic, or physics associated with the simulation must be done inside the simulation.

#

i know, captain obvious to the rescue amirite

trail garden
#

that's the core issue

dusky sun
#

maybe your conditions are bad

#

idk

trail garden
dusky sun
#

it took me like 2 weeks to get it to that point

#

and its still just a prototype

trail garden
dusky sun
trail garden
#

The client dose reach the AnimationTrack:Play(), its so weird

dusky sun
#

maybe try it without any time warping

#

so dont set animtrack.timeposition

#

just leave it at 0 and play the anim from the start

#

coz if you're time warping it, and you've got the code wrong, it might be skipping to the end of the animation

trail garden
#

I am not even loading the animations on the client

#

AHHHHHHHHHHHHHHHH

#

I wanna die

dusky sun
trail garden
#

OH MY GOD

#

YESSSSSSSSSS

dusky sun
#

actually skill issue hehe

trail garden
dusky sun
dusky sun
#

you can also walk into the npcs

#

basically it's to reliably trigger a misprediction so you can test your rollback and resim

#

alternatively, add a small random chance for some variable to deliberately mispredict, e.g set an attribute to the time, but have like a 10% chance to set it to 0.

#

if it continues to appear smooth even at a low instance prediction success, your rollback and resim is working properly 👍

dusky sun
#

but for now you have to do it the hard way.

trail garden
dusky sun
# trail garden

looks good 👍 it can help to bring up the server authority debug window to track your prediction success rate. if it's dropping and looks fine, which it does look fine, then you good

#

now the next step - actually hitting something hehe

trail garden
dusky sun
trail garden
dusky sun
#

you can already run animations, sounds, particles etc

dusky sun
trail garden
trail garden
trail garden
dusky sun
trail garden
#

Pwitty please

dusky sun
trail garden
dusky sun
#

what needs to be checked about it?

trail garden
dusky sun
trail garden
dusky sun
dusky sun
#

you can send hitbox to verify, but roblox already does this as part of server authority

#

bro missed a memo sad

#

the simulation is the resim part of 'rollback and resimulate'

#

and why workspace:getservertimenow() ?

dusky sun
trail garden
#

I don’t understand

trail garden