Raised This Month: $51 Target: $400
 12% 

[UTIL] Network String Table Viewer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TFN|Nick
Senior Member
Join Date: Sep 2007
Old 05-25-2008 , 18:24   [UTIL] Network String Table Viewer
Reply With Quote #1

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
Attached Files
File Type: smx diag_utils.smx (3.7 KB, 266 views)
File Type: sp Get Plugin or Get Source (diag_utils.sp - 1421 views - 5.0 KB)

Last edited by TFN|Nick; 05-26-2008 at 07:28. Reason: Update to the information
TFN|Nick is offline
Send a message via MSN to TFN|Nick
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 12-21-2016 , 12:46   Re: [UTIL] Network String Table Viewer
Reply With Quote #2

Thanks for this
__________________
ImACow is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-21-2016 , 21:24   Re: [UTIL] Network String Table Viewer
Reply With Quote #3

Quote:
Originally Posted by ImACow View Post
Thanks for this
Dude hasn't logged in for 7 years now
Mitchell is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 12-22-2016 , 00:32   Re: [UTIL] Network String Table Viewer
Reply With Quote #4

#lmao
__________________
Neuro Toxin is offline
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 12-23-2016 , 06:40   Re: [UTIL] Network String Table Viewer
Reply With Quote #5

I Appreciate his work nevertheless And everyone likes to be thanked I think
__________________
ImACow is offline
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Old 12-23-2016 , 15:51   Re: [UTIL] Network String Table Viewer
Reply With Quote #6

Quote:
Originally Posted by ImACow View Post
I Appreciate his work nevertheless And everyone likes to be thanked I think
If he ever even finds out
Addicted. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode