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

Record Demo ClanMod style (V2.5)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands        Approver:   Hawk552 (427)
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 11-04-2006 , 12:44   Record Demo ClanMod style (V2.5)
Reply With Quote #1

Since beginning of my AMX/AMX X usage for me it was missing some item in frontmenu for recording a demo (like it was in old ClanMod by default).
The demo is created in this way - You need to choose from frontmenu (or by console command "amx_recorddemo") the item "Record Demo" (the item is added to the frontmenu automatically by the plugin). Then You will see the question "Record demo to" proposed file name:
a) on listenserver - "PlayerName MapName NumberOfDemoAtThisMap.dem" - that number is increased everytime saving the demo file (ClanMod style) - for example:
KWo de_dust2 9.dem
b) on dedicated server - "PlayerName MapName MM-DD-YYYY HH_MM.dem"
(there is a date and time instead number of demo for that map) - for example:
KWo de_aztec 12-31-2006 01_11.dem

Under the proposed file name You can see options - 1.yes and 2.not. If there is already started any demo recording by this menu You will see the new question "Stop demo recording?" 1. Yes.
You can also start demo recording by say command - it's "say recdemo" (or "say_team recdemo").

This plugin makes also screenshot with scoreboard. For this - console command amx_screenshot or from frontmenu.
You can also call this screenshot by say command - "say scr" (or "say_team scr").

The attachement contains the main recorddemo plugin and file with translations (currently available languages are: en, pl, fr).
The idea of the plugin I've got from some KaszpiR's plugin, but he even doesn't remember where did he get it from.

[EDIT]
Changed "while (replace ...)" stuff by "replace_all" suggested by Emp`. Optimized a bit.
[/EDIT]
[EDIT2]
Fixed problem with demo names recorded on dedicated servers.
Updated the translation file with french texts - thanks to arkshine.
[/EDIT2]
[EDIT3]
Added amx_chat at start and at end demo recording to show to all admins that this action with demo is happening, added "status" command at start demo recording (that thing with status works correctly on DS only).
[/EDIT3]
[EDIT4]
Updated the lang (txt) file - added German (de) translation.
[/EDIT]
Attached Files
File Type: sma Get Plugin or Get Source (recorddemo.sma - 6666 views - 4.3 KB)
File Type: txt recorddemo.txt (2.3 KB, 3018 views)
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.

Last edited by KWo; 10-21-2007 at 04:31.
KWo is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 11-04-2006 , 13:29   Re: Record Demo ClanMod style
Reply With Quote #2

pretty sweet man, btw u prob want to post the sma alone.
k007 is offline
Send a message via MSN to k007
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-26-2006 , 13:00   Re: Record Demo ClanMod style
Reply With Quote #3

instead of doing your while replace combo, do replace_all. also file_exists is for the server and not for clients.

Unapproval in 1 week.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 12-26-2006 , 17:54   Re: Record Demo ClanMod style
Reply With Quote #4

If I remember good - the main goal was to store the demo file on the server (not on the client's PC). It increments the number of demo file created for the same file - so it works correctly - You can test it before unapproving.
About that replace_all - I'm not sure, but when the plugin was written there was probably not yet that function. I can change this, but If You are going to unapprove it anyway - it might be useless... ;)
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
The Specialist
BANNED
Join Date: Nov 2006
Old 12-27-2006 , 01:24   Re: Record Demo ClanMod style
Reply With Quote #5

He's telling you to do what he said OR else it will be unapproved. If you fix the small coding problem hell approve it (probabaly).

Any ways I like this , I think Ill try it out on my clans server gj
The Specialist is offline
Send a message via AIM to The Specialist
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-27-2006 , 11:10   Re: Record Demo ClanMod style
Reply With Quote #6

Quote:
Originally Posted by The Specialist View Post
He's telling you to do what he said OR else it will be unapproved. If you fix the small coding problem hell approve it (probabaly).

Any ways I like this , I think Ill try it out on my clans server gj
Correct.

Also, please attach the source and lang files as seperate downloads rather than in the zip.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 12-27-2006 , 19:44   Re: Record Demo ClanMod style (V2.3)
Reply With Quote #7

Updated.

BTW Hawk552 is using again the most beautiful avatar at this forum. I really like it.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-28-2006 , 11:12   Re: Record Demo ClanMod style (V2.3)
Reply With Quote #8

I've tested on my computer (windows xp).

There is a problem with .dem file : no number increasing in the name of file.

example :
  • First record : arkange_de_dust2_1.dem
  • Next record : there isn't arkange_de_dust2_2.dem ; it seems that the first record has been overwritten

No problem with screenshot :
  • First : de_dust20000.bmp
  • Next : de_dust20001.bmp

Sorry for my bad english. -_-"



Also, here french translation corrected :

Code:
[fr]
AMX_REC_DEMO = AMX X Record Demo
CS_REC_DEMO = \yEnregistrer une Demo dans un fichier %s^n\w^n1. Oui^n2. Non
NOCS_REC_DEMO = Enregistrer une Demo dans un fichier %s^n^n1. Oui^n2. Non
CS_STOP_REC = \yArreter l'enregistrement de la Demo\w^n1. Oui
NOCS_STOP_REC = Arreter l'enregistrement de la Demo^n1. Oui
CS_SS = \yCapture d'ecran^n\dVoulez-vous prendre^nune capture d'ecran du tableau des scores ?^n\w^n1. Oui^n2. Non
NOCS_SS = Capture d'ecran^n\dVoulez-vous prendre^nune capture d'ecran du tableau des scores ?^n^n1. Oui^n2. Non
Is it possible to add 2 key of language for menu items please ?

"Record Demo"
"Screenshot"
__________________

Last edited by Arkshine; 12-28-2006 at 11:31.
Arkshine is offline
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 12-28-2006 , 14:42   Re: Record Demo ClanMod style (V2.3)
Reply With Quote #9

Is this supposed to save demos to your server? Or did I misunderstand and it saves them in the cstrike folder on your computer.
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-28-2006 , 14:50   Re: Record Demo ClanMod style (V2.3)
Reply With Quote #10

Quote:
Originally Posted by vvg125 View Post
Is this supposed to save demos to your server? Or did I misunderstand and it saves them in the cstrike folder on your computer.
/cstrike folder on your computer ;)
__________________
Arkshine 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 06:57.


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