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

Log .cfg commands in HLTV demo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ChocOrange
Member
Join Date: Feb 2009
Old 02-24-2009 , 13:22   Log .cfg commands in HLTV demo
Reply With Quote #1

I'm writing a plugin and so far everything works except logging of console commands from a .cfg file to an HLTV recorded demo. This works correctly using standard rcon (example at bottom of post)

Example match.cfg
Code:
log on
 
 mp_autokick 0
 mp_autocrosshair 0
 more.....
I'm currently doing the following:
Code:
ServerCommand('tv_record 2009-02-24-1200-de_dust2');
^^ code simplified as it's just showing command used
Then from a separate menu item:
Code:
ServerCommand("exec match.cfg");
The HLTV demo doesn't 'record' the settings used in the match.cfg file. It does however create a log file with the settings correctly listed.
The HLTV demo is recorded and the config executed.


Is there a way using Source Mod to 'record' the settings used in the match.cfg file in an HLTV demo?

------------------------------

As a comparison, if I use standard rcon on a server and do:

Code:
rcon tv_record testdem
rcon exec match.cfg
The HLTV demo correctly 'records' the settings applied from the match.cfg file

ie using the config extract above, both 'mp_autokick 0' and 'mp_autocrosshair 0' will show to a user running the HLTV demo and looking at console.
ChocOrange is offline
ChocOrange
Member
Join Date: Feb 2009
Old 03-03-2009 , 20:50   Re: Log .cfg commands in HLTV demo
Reply With Quote #2

I'm guessing this isn't possible since SM works 'in the background' and not directly from a user's rcon.

Any comments...
ChocOrange 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 18:36.


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