AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Record Demo ClanMod style (V2.5) (https://forums.alliedmods.net/showthread.php?t=46877)

KWo 11-04-2006 12:44

Record Demo ClanMod style (V2.5)
 
2 Attachment(s)
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]

k007 11-04-2006 13:29

Re: Record Demo ClanMod style
 
pretty sweet man, btw u prob want to post the sma alone.

Emp` 12-26-2006 13:00

Re: Record Demo ClanMod style
 
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.

KWo 12-26-2006 17:54

Re: Record Demo ClanMod style
 
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. :P
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 Specialist 12-27-2006 01:24

Re: Record Demo ClanMod style
 
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 :up:

Hawk552 12-27-2006 11:10

Re: Record Demo ClanMod style
 
Quote:

Originally Posted by The Specialist (Post 420353)
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 :up:

Correct.

Also, please attach the source and lang files as seperate downloads rather than in the zip.

KWo 12-27-2006 19:44

Re: Record Demo ClanMod style (V2.3)
 
Updated.

BTW Hawk552 is using again the most beautiful avatar at this forum. I really like it. :)

Hawk552 12-27-2006 20:08

Re: Record Demo ClanMod style (V2.3)
 
Quote:

Originally Posted by KWo (Post 420610)
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.

KWo 12-28-2006 05:27

Re: Record Demo ClanMod style (V2.3)
 
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... :)

Hawk552 12-28-2006 09:50

Re: Record Demo ClanMod style (V2.3)
 
Quote:

Originally Posted by KWo (Post 420753)
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.


All times are GMT -4. The time now is 09:58.

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