New dump_c module

Official Announcements about Source.Python.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

New dump_c module

Postby satoon101 » Sat Mar 08, 2014 5:20 am

Another update!! Just got finished implementing the start to the new dump_c module. Currently, only dump_server_classes is implemented. We also updated the sp command to include a new sub-command "dump". If you use the name of the function you wish to call from dump_c (minus the leading dump_) as the given argument, the function will be executed.

For example, to execute dump_server_classes using the "sp dump" command, simply use:

Code: Select all

sp dump server_classes

None of the dump functions will be echoed to the console, so you will need to have your sp_logging_areas set to allow logging to the main server log and/or the main SP log. That setting, if you do not already know, is located in your server's ../cfg/source-python/core_settings.ini file. It also gets created as the variable sp_logging_areas, which you can feel free to change any time you like. If you are logging to the main server log, please be sure to turn logging on:

Code: Select all

log on
and turn logging back off for the log to populate:

Code: Select all

log off

The easiest way to get a dump is to shut down your server, rename your current ../logs/source-python/source-python.log, restart the server, and use the following commands:

Code: Select all

sp_logging_areas 4
sp dump server_classes
Now, the only thing in your current ../logs/source-python/source-python.log file will be the dump you just created.

The following are the current DumpServerClasses for the given game:

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 13 guests