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

Vote Mod (Version 4.6)


Post New Thread Reply   
 
Thread Tools Display Modes
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Old 06-29-2006 , 01:06   Re: Vote Mod (Version 3.5)
Reply With Quote #21

Now aviliable in CVS
Soloist is offline
Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
Gunny
Senior Member
Join Date: Mar 2004
Location: Magnolia, Texas
Old 07-02-2006 , 18:03   Re: Vote Mod (Version 3.5)
Reply With Quote #22

Looks nice I will try it and report back
__________________
TEAM FORTRESS 2 - 70.85.30.25:27015
COUNTER-STRIKE SOURCE - 70.85.30.22:27015
COUNTER-STRIKE SOURCE DEATH MATCH - 70.85.30.23:27015
Gunny is offline
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 07-03-2006 , 22:51   Re: Vote Mod (Version 3.5)
Reply With Quote #23

Can you also add support for plugins without any cvars where you need to pause the plugin itself?
KCE is offline
Fat D
Senior Member
Join Date: Jun 2006
Old 07-04-2006 , 06:31   Re: Vote Mod (Version 3.5)
Reply With Quote #24

and probably end the other plugins before starting the chosen one. That would be useful because some plugins I am using (those .cfg combos mainly) change some settings to on when enabled while others change them to off when disabled. EDIT: It already seems to do so

KCE, just use "amxx pause <pluginfilename>" as the command

Last edited by Fat D; 07-04-2006 at 06:44.
Fat D is offline
Fat D
Senior Member
Join Date: Jun 2006
Old 07-05-2006 , 19:27   Re: Vote Mod (Version 3.5)
Reply With Quote #25

I found the problem I have striked out.
The plugin seems to issue the showvotes command (or rather set the task) on server startup, which is hazardous to listen servers.

With my limited knowledge of PAWN, I haven't been able to find the reason.
Fat D is offline
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Old 07-05-2006 , 21:13   Re: Vote Mod (Version 3.5)
Reply With Quote #26

I guess I dont understand the problem.

The showvotes command is register in the plugin_init like its suppose to but the method isn't called till someone types showmods in console.
Soloist is offline
Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
Fat D
Senior Member
Join Date: Jun 2006
Old 07-06-2006 , 06:31   Re: Vote Mod (Version 3.5)
Reply With Quote #27

I know, I've actually read te code.

When I start a listen server with Bots, it first shows the vote before I have joined a team (if I wait too long). then, after I join and connect a bot, it shows the vote again. I couldn't find a reason for this behaviour in the code. That's why I asked you. I'll try it on a dedicated server to see whether it has the same problem. If there is no way to fix it, the problem might be avoided by moving the "empty the vote count" command from SetCvars into ShowVote.

Debug log:

Code:
Adding master server 68.142.72.250:27010
Adding master server 69.28.151.162:27010
L 07/06/2006 - 12:47:05: Did not ban any maps from mapstoban.ini file
L 07/06/2006 - 12:47:05: Loaded 33 Maps into the maps that will be picked for the vote
L 07/06/2006 - 12:47:05: 2 Maps were not loaded because they were the last maps played, or defined twice, or banned
L 07/06/2006 - 12:47:05: Found 11 Maps in your mapcycle.txt/allmaps.txt file, 11 are available for filling slots
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
[AMX] ERROR: Weapon Arena is already off.
[AMX] ERROR: Weapon Arena is already off.
[AMX] ERROR: Weapon Arena is already off.
[AMX] ERROR: Weapon Arena is already off.
[AMX] ERROR: Weapon Arena is already off.
[AMX] ERROR: Weapon Arena is already off.
Added Gaben Mod to menu
Added CSDM TDM Items to menu
Added CSDM TDM Select Weapon to menu
Added CSDM FFA Items to menu
Added CSDM FFA Select Weapon to menu
Added Arena + Respawn Deathmatch to menu
Here
No mod win with 0 votes
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
Setting exec normal.cfg
9
No Mod Loaded
the reason for these many "Setting exec normal.cfg" is that I use exec files because some of these mods need multiple settings, some of which are shared among mods.

Last edited by Fat D; 07-06-2006 at 06:46.
Fat D is offline
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Old 07-06-2006 , 12:51   Re: Vote Mod (Version 3.5)
Reply With Quote #28

Let me see you votemod.cfg file in the configs folder.

Edit: Also post your normal.cfg file

Last edited by Soloist; 07-06-2006 at 15:53.
Soloist is offline
Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
dayletter
Member
Join Date: Jun 2006
Old 07-06-2006 , 14:12   Re: Vote Mod (Version 3.5)
Reply With Quote #29

Can you add a function that to display a hud message at the bottom permanently to tell people wt mod is enabled?
Or/And
To be able to change the hostname automatically with a user-defined prefix to tell people wt mod is enabled?
eg.amx_votemod_hostname "XX Clan Server - %modname% [VAC]"

Also, is there a possibility to have a cvar to start voting automatically between a user-defined time?
At the moment i have to use task scheduler to do this.

Thank you very much.
dayletter is offline
Soloist
Senior Member
Join Date: Jun 2004
Location: New York
Old 07-06-2006 , 15:24   Re: Vote Mod (Version 3.5)
Reply With Quote #30

Quote:
Originally Posted by dayletter
Can you add a function that to display a hud message at the bottom permanently to tell people wt mod is enabled?
I will add that for the next release which should be tonight or tomorrow.

Quote:
Originally Posted by dayletter
To be able to change the hostname automatically with a user-defined prefix to tell people wt mod is enabled?
eg.amx_votemod_hostname "XX Clan Server - %modname% [VAC]"
Well from what I understand you want it already does.

You have to open the sma, and after the Changelog you'll see this...
Code:
 // ---------- Adjust below settings to your liking ---------------------------------------
//#define SETHOSTNAME                 // If you would like this to change the hostname uncomment this
// If this is uncommented you must set g_hostname
#if defined SETHOSTNAME
new hostname[] = "";
#endif

#define ADMINVOTEMOD    ADMIN_VOTE        // Admin access for the vote mod command
#define ADMINVOTEMENU    ADMIN_IMMUNITY        // Admin access for vote menu command

//#define DEBUG                    // Comment this out if you don't want added server print messages.
// ---------- Adjust above settings to your liking ---------------------------------------
Delete the // in from of the SETHOSTNAME, then in the quotes of the new hostname[] set the name you want on your server, like this...
Code:
 // ---------- Adjust below settings to your liking ---------------------------------------
#define SETHOSTNAME                 // If you would like this to change the hostname uncomment this
// If this is uncommented you must set g_hostname
#if defined SETHOSTNAME
new hostname[] = "XX Clan Server - [VAC]";
#endif

#define ADMINVOTEMOD    ADMIN_VOTE        // Admin access for the vote mod command
#define ADMINVOTEMENU    ADMIN_IMMUNITY        // Admin access for vote menu command

//#define DEBUG                    // Comment this out if you don't want added server print messages.
// ---------- Adjust above settings to your liking ---------------------------------------
then recompile, and change map, then when a mod is vote the hostname will change to
XX Clan Server - [VAC] *Mod Name*

But in the next release I am working on making the define SETHOSTNAME
into a cvar, and getting rid of the hostname and make it get it automaticly

Quote:
Originally Posted by dayletter
Also, is there a possibility to have a cvar to start voting automatically between a user-defined time?
At the moment i have to use task scheduler to do this.
I am not sure what you want here.
Soloist is offline
Send a message via ICQ to Soloist Send a message via AIM to Soloist Send a message via MSN to Soloist Send a message via Yahoo to Soloist
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 04:49.


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