SergoModding Posted May 8, 2025 Share Posted May 8, 2025 Greetings! Just joined the forum, really need help with my character mod. I've tried many things but none of them solved my issue. The problem is with net_ values: I want to create a simple net_float value in master_postinit function like this: inst.net_style_value = net_float(inst.GUID, "style_change", "style_valuedirty") inst:DoPeriodicTask(0.1, function() local val = inst.components.stylemeter:GetValue() inst.net_style_value:set(val) end) And then i want to get this value on client (common_postinit): inst:ListenForEvent("style_valuedirty", function(inst) if inst == ThePlayer and inst.HUD and inst.HUD.controls and inst.HUD.controls.stylemeterbadge and not TheWorld.ismastersim then local value = inst.net_style_value:value() print(value) inst.HUD.controls.stylemeterbadge:Update(value) end end) However it doesn't seem to work. Removing the "TheWorld.ismastersim" check lets the host Update the badge, but that's about it. Would really appreciate any tips on fixing the issue Link to comment https://forums.kleientertainment.com/forums/topic/165629-help-the-server-client-sync-issue-modding/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now