String Table Dictionary
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
This article is an orphan, meaning that few or no articles link to it.
You can help by adding links to this article from other relevant articles.
January 2024
You can help by adding links to this article from other relevant articles.
January 2024
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.
String tables are used to lower network bandwidth for multiplayer games. It's created automatically when the map is first loaded.
Important:It is saved into the map file after you leave the map.
Warning:String table cannot be generated if the map is already packed in vpk
Making sure string table is created
- Load a map that is not packed in vpk
- Use stringtabledictionary command
- Leave the map
- Check the map file last modified timestamp
Example
To get the general idea what they are for let's say we have string table.
Index | String |
---|---|
0 | Nick |
1 | Ellis |
2 | Coach |
3 | Rochelle |
In a case string Rochelle is used what needs to be sent over the network is just the index of this string (3). This is a reason why all connected players need to have identical string table that their game looks into.
ConVars
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sv_dumpstringtables | 0 | bool | Dump info about string tables when loading a map |
stringtable_alwaysrebuilddictionaries | 0 | bool | Rebuild dictionary file on every level load |
stringtable_usedictionaries | 1 | bool | Use dictionaries for string table networking |
ConCommands
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
dumpgamestringtable |
| Dump the contents of the game string table to the console. | |
dumpstringtables |
| Print string tables to console. | |
stringtabledictionary |
| Create dictionary for current strings. |
Tables
Table Name | Max size |
---|---|
downloadables | 8192 |
modelprecache | 2048 |
genericprecache | 512 |
soundprecache | 20000 |
decalprecache | 512 |
instancebaseline | 1024 |
lightstyles | 64 |
userinfo | 32 |
server_query_info | 4 |
ParticleEffectNames | 1024 |
EffectDispatch | 1024 |
VguiScreen | 256 |
Materials | 1024 |
InfoPanel | 128 |
Scenes | 16384 |
MeleeWeapons | 16 |
GameRulesCreation | 1 |