• ConVar isn't snychronized while connecting
    11 replies, posted
Hello, I have recognized that a ConVar isn't synchronized while connecting. There is the creation of the ConVar in the shared.lua file. This file is included by both init scripts (cl_init.lua for the client). I can access the variable via console on the client. It is synchronized when I change the value on the server. What did I miss?
Nothing, IIRC it is supposed to be like that.
Hum okay. Is there any way to force the synchronization or what is the recommended way?
Send the convars from PlayerInitialSpawn to client using net library and set the convars from net.Receive.
Is there a possibility to do it ealier? I need the ConVar for showing menus and similar.
[QUOTE=H3llGhost;43450695]Is there a possibility to do it ealier? I need the ConVar for showing menus and similar.[/QUOTE] Why do you need it earlier? You won't be able to open any menus before PlayerInitialSpawn anyway.
I mean for example the scoreboard. I think menu was the wrong term. [quote] PlayerInitialSpawn: Called when the player spawns for the first time. [/quote] So spawn means spectator too?
Thanks for the information. It seems to be a good workaround. :) Are there any plans to fix it in the future?
Sorry, you need to Log In to post a reply to this thread.