Record in-game 20121028 or greater

Post Reply
Reactions: 0
Posts: 409
Joined: 04 Dec 2011, 12:07

Record in-game 20121028 or greater

Post by CheaterSkeeter »

Record on connect for SoFplus client 20121028 or greater
still does the same thing, instructions in the readme file (just copy and paste some lines to autoexec and 1 file in base)
Download
http://cheaterskeeter.megalag.org/scrip ... ect_v2.zip" onclick="window.open(this.href);return false;
Reactions: 0
Posts: 409
Joined: 04 Dec 2011, 12:07

Re: Record in-game [bugfix]

Post by CheaterSkeeter »

something was wrong with that version, i have corrected the error, here is a newer working version:
http://cheaterskeeter.megalag.org/scrip ... t_v2_1.zip" onclick="window.open(this.href);return false;
(dope you need use this one)
Reactions: 8
Posts: 3046
Joined: 21 Nov 2011, 21:12

Re: Record in-game [bugfix]

Post by ShocK »

This one is only for 20121028 and above also? if it is it needs its own topic and this one renaming to 14t17 and below.

I see it is :happy:
Reactions: 3
Posts: 448
Joined: 31 Jan 2013, 00:30

Re: Record in-game [bugfix]

Post by TotalitioN »

Ok ty very Mutch man
Reactions: 0
Posts: 409
Joined: 04 Dec 2011, 12:07

Re: Record in-game 20121028 or greater

Post by CheaterSkeeter »

One benefit of nobody using the latest SoFplus client, or bothering to use this script is that nobody spots your mistakes. I didnt even try this script on the latest client otherwise i would have noticed the error. :( (i think thats why dende remade it)
Wrong:
]sp_sc_cvar_sset ~filename #year #month #day "-" #hour #min #sec
fixed:
sp_sc_cvar_sset ~filename #~year #~month #~day "-" #~hour #~min #~sec
Spoiler!

Code: Select all

//record on connect by CheaterSkeeter 

function spf_cl_record_on_connect_init()
{
  sp_sc_func_exec spf_sc_list_onchange_add_func _sp_cl_info_state "spf_cl_record_on_connect_a"
  sp_sc_func_exec spf_sc_list_onchange_add_func rec "spf_cl_record_on_connect_b"
}

function spf_cl_record_on_connect_a()
{
  sp_sc_flow_if number cvar rec == val 1
  {
    sp_sc_flow_if number val #_sp_cl_info_state == val 8 
    {
      //Get date-time info
      sp_sc_info_time
      set ~filename #_sp_sc_info_time_datetime
      //split+appand
      sp_sc_cvar_substr ~year ~filename 0 4 
      sp_sc_cvar_substr ~month ~filename 5 2
      sp_sc_cvar_substr ~day ~filename 8 2
      sp_sc_cvar_substr ~hour ~filename 11 2
      sp_sc_cvar_substr ~min ~filename 14 2
      sp_sc_cvar_substr ~sec ~filename 17 2
      //We have our filename YYYYMMDD-HHMMSS
      sp_sc_cvar_sset ~filename #~year #~month #~day "-" #~hour #~min #~sec
      record #~filename
      sp_sc_cvar_sset ~msg "%03Recording %04Filename = " #~filename ".dm2"
      sp_sc_cvar_unescape ~msg ~msg
      echo #~msg
    }
    else
    {
      stop
    }
  }
  else
  {
    sp_sc_cvar_sset ~msg "%04type ' %01rec 1 %04' to record your games"
    sp_sc_cvar_unescape ~msg ~msg
    echo #~msg
  }
}

function spf_cl_record_on_connect_b()
{
  sp_sc_flow_if number cvar rec == val 1
  {
    sp_sc_flow_if number val #_sp_cl_info_state == val 8
    {
      reconnect
      sp_sc_cvar_sset ~msg "%04Reconnecting to activate record on connect"
      sp_sc_cvar_unescape ~msg ~msg
      echo #~msg
    }
  }
  else
  {
    sp_sc_flow_if number cvar rec == val 0
    {
      stop
      sp_sc_cvar_sset ~msg "%04Automatic recording %02Deactivated"
      sp_sc_cvar_unescape ~msg ~msg
      echo #~msg
    }
  }
}
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests