fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Experimental onesync population (sv_experimentalOneSyncPopulation) doesn't work.

Open brunosollar opened this issue 1 year ago • 6 comments

What happened?

With the convar "sv_experimentalOneSyncPopulation", the NPCs doesn't appear.

Expected result

Onesync population working normally.

Reproduction steps

  1. Start a server with the convar "sv_experimentalOneSyncPopulation" enabled.
  2. Join the server.

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer, OneSync

Specific version(s)

FiveM 9439 (Latest), Server 9572

Additional information

No response

brunosollar avatar Aug 25 '24 16:08 brunosollar

Hi, all clients needs to be on canary to use this feature. You also need to enable the population with the previous convar.

FabianTerhorst avatar Aug 25 '24 17:08 FabianTerhorst

Hi, all clients needs to be on canary to use this feature. You also need to enable the population with the previous convar.

Hi! I'm the only one on the server and I'm in canary. I'm using sv_experimentalOneSyncPopulation true. With this convar disabled the population works fine.

brunosollar avatar Aug 25 '24 18:08 brunosollar

What is this feature supposed to do? I thought the AI are already sync'd?

It's "OneSync", has nothing to do with population sync. This new convar replaces the old onesync_population convar

slashkeyvalue avatar Aug 26 '24 02:08 slashkeyvalue

What is this feature supposed to do? I thought the AI are already sync'd?

It fixes the fact that if you turn off population (i.e. set onesync_population false) it will also disable the length hack which is what extends object ids from 8192 to 65535

See: https://github.com/citizenfx/fivem/blob/d5255f9b275a15fc3c693d13141ca19d8f2568b8/code/components/citizen-server-impl/src/state/ServerGameState.cpp#L7415

AvarianKnight avatar Aug 26 '24 03:08 AvarianKnight

Any reproduction steps?

I have

set onesync on
sv_maxclients 48
set onesync_population "true"
set sv_experimentalOneSyncPopulation "true"

and population is shown up fine.

FabianTerhorst avatar Aug 29 '24 15:08 FabianTerhorst

Any reproduction steps?

I have

set onesync on
sv_maxclients 48
set onesync_population "true"
set sv_experimentalOneSyncPopulation "true"

and population is shown up fine.

I fixed the issue by using the set command. Previously, I was using sv_experimentalOneSyncPopulation true, but after changing to set sv_experimentalOneSyncPopulation true, the population appeared correctly. This is strange because other Convars, like sv_endpointPrivacy, work normally without using the set command.

brunosollar avatar Aug 30 '24 00:08 brunosollar

issue

Why do you need to try this if the onesync population is already on by default without using any convar? Since you are leaving population on anyways?

issue

Why do you need to try this if the onesync population is already on by default without using any convar? Since you are leaving population on anyways?

I'm just testing the feature, there's no reason.

brunosollar avatar Aug 30 '24 00:08 brunosollar