Skip to content

ConCommands and ConVars

Grocel edited this page Nov 14, 2023 · 10 revisions

This list below description the ConVars and ConCommands of this addon for server and client. Using them requires you to know how to use the console of source games. All server side commands are admin only and have to be entered on the server via direct access, remote tools, RCON or admin mods.

ConCommands

Server

  • sv_streamradio_cacheclear

    • Clears the file cache on the server side.
    • Needs gm_bass3 installed on the server to work.
  • sv_streamradio_playlisteditor_reset

    • Resets the playlist editor.
    • Can be used to make it usable again when it was stuck after errors etc.
  • sv_streamradio_rebuildplaylists

    • Recreates the default playlists.
  • sv_streamradio_rebuildplaylists_community

  • sv_streamradio_resetplaylists

    • Deletes ALL of the playlists and recreates the default ones.
  • sv_streamradio_resetplaylists_community

    • Deletes all playlists inside the community folder and recreates the default ones.
    • Also see: Community submissions
  • sv_streamradio_url_whitelist_reload

    • Reloads the whitelist from installed playlists.

Client

  • cl_streamradio_playlisteditor

    • Opens the playlist editor.
    • Has +/-cl_streamradio_playlisteditor for key bindings.
    • Admin only.
  • cl_streamradio_cacheclear

    • Clears the file cache on the client side.

Shared

  • debug_streamradio_dump_nwstringtable

    • Dumps the network string table in context to the addon.
    • Developer ConCommand. Admin only. Needs sv_cheats 1 on client.
  • debug_streamradio_dump_nwstringtable_code

    • Dumps AddNetworkString code for pasting into lua\streamradio_core\net.lua, useful developing this addon.
    • Developer ConCommand. Admin only. Needs sv_cheats 1 on client.
  • info_streamradio_errorcode <number|string>

    • Prints information of the given error code/name.
  • info_streamradio_playlist_filesystem_list

    • Shows a list of loaded playlist filesystems.

ConVars

Server

  • sbox_maxstreamradio <number>

    • Set the maximum count of radios that can be spawned per player.
      • Default: 5
  • sv_streamradio_bass3_allow_client 0/1

    • Allows connected clients to use GM_BASS3 when set to 1. Overrides cl_streamradio_bass3_enable.
      • Default: 1
  • sv_streamradio_bass3_enable 0/1

    • Use GM_BASS3 on the server if installed and when the ConVar is set to 1.
      • Default: 1
  • sv_streamradio_max_spectrums <number>

    • Sets the maximum count of radios that can have advanced wire outputs such as FFT spectrum or song tags.
      • Default: 5
    • Needs gm_bass3 installed on the server to work.
  • sv_streamradio_playlist_filesystem_backlist <list>

    • Set the list playlist filesystems to be disabled by type, name or id. Empty by default.
    • Entries are seperated by pipe ('|') or comma (',').
    • Enter info_streamradio_playlist_filesystem_list for details.
  • sv_streamradio_rebuildplaylists_community_auto 0/1/2

    • Set how the community playlists are rebuild on game start.
      • 0 = Off, 1 = Rebuild only, 2 = Delete and rebuild
      • Default: 2
    • If it's active then you can no longer save or change playlist files in the community folder. This is to prevent confusion and data loss on game start.
    • Also see: Community submissions
  • sv_streamradio_url_whitelist_enable 0/1

    • Enables the Stream URL whitelist. When enabled only URLs listed in playlists can be played.
      • 0 = Disable, 1 = Enable
      • Default: 1
    • DATA SECURITY: Keep it enabled for better server security. Only turn it off if you know what you are doing!
  • sv_streamradio_url_whitelist_enable_on_cfcwhitelist 0/1

    • Enables built-in Stream URL whitelist even if 'CFC Client HTTP Whitelist' is installed and 'sv_streamradio_url_whitelist_enable' is on. Otherwise built-in whitelist stays inactive as long CFC's one is active.
      • 0 = Disable, 1 = Enable
      • Default: 0
  • sv_streamradio_url_whitelist_trust_admin_radios 0/1

    • Trust Stream URLs from radios owned by admins. Skips built-in whitelist checks for admin radios.
      • 0 = No, 1 = Yes
      • Default: 1

Client

  • cl_streamradio_bass3_enable 0/1

    • When set to 1, it uses GM_BASS3 if installed on client and allowed on the server.
      • Default: 1
  • cl_streamradio_coveredvolume <number>

    • Set the volume factor of radios that are behind walls.
      • Min: 0, Max: 1
      • Default: 0.33
  • cl_streamradio_drawdistance <number>

    • Stops GUIs drawing on radios which are further away than the given distance units.
      • Min: 400, Max: 4000
      • Default: 1000
  • cl_streamradio_enable_cursor 0/1

    • Shows the cursor on radio GUIs when set to 1.
      • Default: 1
  • cl_streamradio_hidegui 0/1

    • Disables the drawing of GUIs for all radios when set to 1.
      • Default: 0
  • cl_streamradio_hidespectrumbars 0/1

    • Disables the drawing of FFT spectrums for all radios when set to 1.
      • Default: 0
  • cl_streamradio_key <key>

    • Key to press when using (clicking) a radio. Use in game settings to change.
      • Default: 15 (KEY_E)
  • cl_streamradio_key_vehicle <key>

    • Key to press when using (clicking) a radio while in vehicles. Use in game settings to change.
      • Default: 107 (MOUSE_LEFT)
  • cl_streamradio_mute 0/1

    • Mutes all radios when set to 1.
      • Default: 0
    • Do not confuse with streamradio_mute, that is a toolgun setting for spawning radio.
  • cl_streamradio_mute_foreign 0/1

    • Mutes all radios from other players when set to 1.
      • Default: 0
  • cl_streamradio_mutedistance <number>

    • Mutes all radios which are further away than the given units.
      • Min: 500, Max: 5000
      • Default: 2000
  • cl_streamradio_muteunfocused 0/1

    • Mutes all radios when the game is not in focus if set to 1.
      • Default: 0
  • cl_streamradio_no3dsound 0/1

    • Disables 3D sound for all radios when set to 1.
      • Default: 0
  • cl_streamradio_spectrumbars <number>

    • Sets the max count of FFT spectrum bars on radios. Higher amounts can decrease performance.
      • Min: 8, Max: 2048
      • Default: 128
  • cl_streamradio_spectrumdistance <number>

    • Stops FFT spectrum drawing on radios which are further away than the given distance units.
      • Min: 250, Max: 2500
      • Default: 500
  • cl_streamradio_volume <number>

    • Set the global volume factor for all radios.
      • Min: 0, Max: 10
      • Default: 1
    • Do not confuse with streamradio_volume, that is a toolgun setting for spawning radio.
  • cl_streamradio_rendertarget 0/1

    • Enable rendertargets for drawing radio GUIs when set to 1. Disable this if you see graphics glitches.
      • Default: 1
  • cl_streamradio_rendertarget_fps <number>

    • Sets the max FPS of rendertargets. Higher amounts can decrease performance.
      • Min: 5, Max: 300
      • Default: 40