Raised This Month: $ Target: $400
 0% 

Config/userconfig Downloader


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Puppeteer
Junior Member
Join Date: Dec 2007
Old 01-26-2010 , 21:00   Config/userconfig Downloader
Reply With Quote #1

I just got this idea after reviewing an old post/question of mine on steambans. Is there anyway to make an AMXX plugin that will download a clients config and userconfig to the server? Not automatically, but as you choose?
Puppeteer is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-26-2010 , 21:21   Re: Config/userconfig Downloader
Reply With Quote #2

To get the exact config, not possible. To get specific cvars, possible
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Puppeteer
Junior Member
Join Date: Dec 2007
Old 01-28-2010 , 16:03   Re: Config/userconfig Downloader
Reply With Quote #3

Well how would we go about doing that?
Puppeteer is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-28-2010 , 17:42   Re: Config/userconfig Downloader
Reply With Quote #4

say /savecvars
- Saves player cvars

say /viewcvars
- Prints player's saved cvars to console


Cvars are taken from this file:
addons/amxmodx/configs/save_cvars.ini

Example file:
Code:
cl_minmodels
cl_righthand
rate
cl_rate
cl_updaterate
cl_cmdrate
net_graph
cl_showfps
sensitivity
Attached Files
File Type: sma Get Plugin or Get Source (cvar_saver.sma - 797 views - 5.2 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-28-2010 , 16:51   Re: Config/userconfig Downloader
Reply With Quote #5

Doing what? Getting specific cvars? You need to provide a list of the cvars you want to get.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Puppeteer
Junior Member
Join Date: Dec 2007
Old 01-28-2010 , 18:25   Re: Config/userconfig Downloader
Reply With Quote #6

So this is all from console? I take it that it saves EVERYONES cvars to the ini?
Puppeteer is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-28-2010 , 18:28   Re: Config/userconfig Downloader
Reply With Quote #7

Quote:
Originally Posted by Puppeteer View Post
So this is all from console? I take it that it saves EVERYONES cvars to the ini?
No. The cvars listed in the .ini file are the ones that are checked. You can specify as few or as many cvars as you like to check/save.

Saves each unique client's config in a file in /amxmodx/data/player_configs/
__________________
fysiks is offline
Old 01-28-2010, 23:38
Puppeteer
This message has been deleted by Puppeteer.
Puppeteer
Junior Member
Join Date: Dec 2007
Old 01-28-2010 , 23:51   Re: Config/userconfig Downloader
Reply With Quote #9

friggen sweet thanks, but I cant quite get it to load. I see unknown plugin from the amxmodmenu side, error log says this:

Info (map "de_dust2_cz") (file "addons/amxmodx/logs/error_20100128.log")
L 01/28/2010 - 21:16:08: [AMXX] Failed to allocate memory (plugin "cvar_saver.amxx")

Last edited by Puppeteer; 01-29-2010 at 00:19.
Puppeteer is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-29-2010 , 00:25   Re: Config/userconfig Downloader
Reply With Quote #10

Maybe you need more memory on the server's computer?
__________________
fysiks 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 10:53.


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