Raised This Month: $94 Target: $400
 23% 

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 , 13: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 - 6160 views - 4.3 KB)
File Type: txt recorddemo.txt (2.3 KB, 2711 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 05:31.
KWo is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 11-04-2006 , 14: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 , 14: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 , 18: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 , 02: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 , 12: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 , 20: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
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-27-2006 , 21:08   Re: Record Demo ClanMod style (V2.3)
Reply With Quote #8

Quote:
Originally Posted by KWo View Post
Updated.

BTW Hawk552 is using again the most beautiful avatar at this forum. I really like it.
lol, thanks, I guess.

Anyway, I'd approve this but you're still using file_exists, but checking a client. I don't think there's any real way to check if a client has a particular file.

You'll basically have to ask them if they want to record it even if they already have it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 12-28-2006 , 06:27   Re: Record Demo ClanMod style (V2.3)
Reply With Quote #9

Quote:
Originally Posted by Hawk552
Anyway, I'd approve this but you're still using file_exists, but checking a client. I don't think there's any real way to check if a client has a particular file.
It doesn't check if the file exists on the client but on the server. It checks client's name to store the demo file with the name containing client's name. That's the mistery...
__________________
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
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-28-2006 , 10:50   Re: Record Demo ClanMod style (V2.3)
Reply With Quote #10

Quote:
Originally Posted by KWo View Post
It doesn't check if the file exists on the client but on the server. It checks client's name to store the demo file with the name containing client's name. That's the mistery...
There's never a file written to the server though

Either way, I'd like someone to come say it works before I approve it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply


Thread Tools
Display Modes

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 20:06.


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