NSTViewer 1.0
Hi Guys,
Thought I'd post this as I know there are a few projects out there that could benefit from this kind of data. I made this as an experiment as I am staring work on a project that requires use of the Network String Table (
http://developer.valvesoftware.com/w...#String_Tables).
On the advice of sslice I started looking into the sdk layer for this and toyed around with how it worked, leading me to this: NSTViewer.
Installation
You can use the plugin by uploading the plugin to your SourceMod 'Plugin' folder. You will also need to create a folder in 'addons/sourcemod/logs' called 'nst'. Files will automatically be created by table name to capture the output from the table.
Usage
You can view all tables registered by the engine using the
sm_diag_nst command. This prints out all of the table data to your console window. Here is some example output:
Quote:
[SM] NSTViewer (ver 1.0)
[SM] Showing Network Tables
* Total Amount of Tables: 16
* Network String Table Lock Status: false
Table | Total Strings | Max Strings
downloadables 34 8192
modelprecache 283 1024
genericprecache 1 512
|
You can view more details of the indivdual table through
sm_diag_nst <table name>. Here is some example output from the program:
Quote:
[SM] NSTViewer (ver 1.0)
* Table 'GameRulesCreation' contains 1 Strings
- String 0 : "classname" [CCSGameRules] (13)
|
The data given is '- String Number : "Entry Name" [UserData*] (Size of User Data)'
* UserData is the information stored by the record.
CVars and Cmds
sm_diag_nst - Command to view the NST. Attach a table name to view
more details about the table.
sm_diag_nst_prt - Usage [1|0]. Enables or disables printing to the
Console Window.
sm_diag_nst_log - Usage [1|0]. Enables or disables logging
sm_diag_nst_version - Plugin Version
Known Bugs
1. Because the program prints out the UserData as a string, other stored data such as Intergers or Floats will not be properly printed. I am currently working on a method of stopping this.
Support
This plugin has been compiled against all versions of SourceMod, the copy given here is though is for the current stable release (1.0.1).
Future Plans
None at the moment but any suggestions for improvements or other functions. Any suggestions are more than welcome though