Raised This Month: $32 Target: $400
 8% 

[Request] Automatic copy/rename of uploaded sprays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 12-11-2015 , 23:54   [Request] Automatic copy/rename of uploaded sprays
Reply With Quote #1

Basically, what I am looking to do is keep an archived copy of every spray ever uploaded, and know which player it was associated with and when it was uploaded.

So, essentially a plugin that will, as each spray gets uploaded:
  • Copy it to another folder - presumably relative to the game/mod folder. For TF2, maybe something like tf/sprays. Ideally, configurable via a CVAR ("sv_sprayarchivefolder" or something like that).
  • Name that copy in a format based on a combination current date/time (yyyymmddhhmm) and the players SteamID64. Something like: 201512012052-76561197960266039.vtf
From there, various server-OS-side scripts could do whatever with those file (zip them up, upload them, move them to the cloud - whatever).
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 12-11-2015 at 23:56.
Weasel is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 12-12-2015 , 01:37   Re: [Request] Automatic copy/rename of uploaded sprays
Reply With Quote #2

There is an old project many of us used \ changed to accomplish this, https://forums.alliedmods.net/showth...=Spray+display

The basic idea is simple, but the implementation here is a bit sloppy
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
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 16:17.


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