Welcome to Soldier of Fortune Community Forums
23 Oct 2019, 23:57


View unanswered postsView active topics



Reply to topic  [ 5 posts ] 
Record in-game 20121028 or greater 
Author Message
Israel

User avatar

Joined:
Sun Dec 04th, 2011
Posts: 384
Reply with quote
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


07 Nov 2012, 18:58
Profile
Israel

User avatar

Topic author
Joined:
Sun Dec 04th, 2011
Posts: 384
Reply with quote
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
(dope you need use this one)


10 Nov 2012, 19:29
Profile
Great Britain

User avatar

Joined:
Mon Nov 21st, 2011
Location: UK
Posts: 3079
Reply with quote
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:


10 Nov 2012, 19:42
Profile WWW
Kyrgyzstan

User avatar

Joined:
Thu Jan 31st, 2013
Posts: 447
Reply with quote
Ok ty very Mutch man


10 Nov 2012, 19:53
Profile
Israel

User avatar

Topic author
Joined:
Sun Dec 04th, 2011
Posts: 384
Reply with quote
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: show
Code:
//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
    }
  }
}


11 Apr 2014, 07:23
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 
Topic Views: 1004


Who is online

Users browsing this forum: No registered users and 1 guest


Top
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group
www.sof1.org