GameSetting ConVars not showing

Started by Mister Rodgers' Neighbourhood 3 posts 110 views

Reply on sbox.game
  1. #1
    Mister Rodgers' Neighbourhood 380
    Hey gang. I'm trying to add game settings to my game, Physbox, but they don't appear in the main menu. Here is an example of how I define a ConVar in my code.
    	[ConVar( "pb_deathmatch_kills_to_win",
    		ConVarFlags.GameSetting ),
    		Group( "Deathmatch" ),
    		Title( "Kills to Win" )]
    	public static int DeathmatchKillsToWin { get; set; } = 5;
    When I publish the game and try to create a lobby, the groups appear, but no options show up.
    image.png 15.8 KB
    I'm unsure whether this is a code issue, a package issue, or a backend issue. Would love some help with this! :)
  2. #2
    devultj Facepunch 3,005
    Got any errors in the console?
  3. #3
    Mister Rodgers' Neighbourhood Started this 380
    Nope, absolutely nothing.