Raised This Month: $105 Target: $400
 26% 

MapChooser Extended 1.10.2 (Updated 2014-02-05)


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-25-2011 , 15:51   Re: MapChooser Extended
Reply With Quote #111

Quote:
Originally Posted by Sinbad View Post
This plug-in error occurs every time when only one round before the end of the map.
If, however, is 10 minutes before the end of the map, everything works as it should.
According to your plugin list, MapChooser (the default SourceMod one) is running, and MapChooser Extended isn't.

There are also mixed versions of the Allied Modders plugins for SourceMod... they should all be the same versions, likely 1.3.9-dev if that's the SourceMod version you're running (personally, I stick with 1.3.8 which is the current stable version).

Having said that, having both MapChooser and MapChooser Extended running at the same time could cause potential problems and is an issue I should address in the next version.
__________________
Am I back? Well, we'll see.
Powerlord is offline
Monsi
New Member
Join Date: Jul 2011
Old 07-26-2011 , 09:21   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #112

Is there any way to add the current running map to the end of map vote?

It's not listed with sm_mapvote_exclude "0". I don't want to extend it with minutes/rounds/frags. It should be choosable in the vote box. Any way? Am i missing something?
Monsi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-26-2011 , 12:13   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #113

Quote:
Originally Posted by Monsi View Post
Is there any way to add the current running map to the end of map vote?

It's not listed with sm_mapvote_exclude "0". I don't want to extend it with minutes/rounds/frags. It should be choosable in the vote box. Any way? Am i missing something?
With sm_mapvote_exclude "0", have you tried using nominate to add it back to the list?

Sadly, it may not be possible with MapChooser as written (this part of the code comes from SourceMod MapChooser 1.3.7).
__________________
Am I back? Well, we'll see.
Powerlord is offline
Monsi
New Member
Join Date: Jul 2011
Old 07-26-2011 , 12:41   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #114

I checked the sourcecode, can you confirm this - is this the part?

Method:
CreateNextVote()

lines:

GetCurrentMap(map, sizeof(map));
index = FindStringInArray(tempMaps, map);
if (index != -1)
{
RemoveFromArray(tempMaps, index);
}

Wouldn't it be enough to remove this for me or to surround it with some kind of var-check (0 - do this, 1 don't do this)?

I can do that on my own, that's no problem. Just want to confirm that i'm right
Monsi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-26-2011 , 14:03   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #115

Quote:
Originally Posted by Monsi View Post
I checked the sourcecode, can you confirm this - is this the part?

Method:
CreateNextVote()

lines:

GetCurrentMap(map, sizeof(map));
index = FindStringInArray(tempMaps, map);
if (index != -1)
{
RemoveFromArray(tempMaps, index);
}

Wouldn't it be enough to remove this for me or to surround it with some kind of var-check (0 - do this, 1 don't do this)?

I can do that on my own, that's no problem. Just want to confirm that i'm right
Likely, yes. Like I said, I didn't write that code, but that certainly looks like the code that removes the current map from the map list it chooses random maps from..
__________________
Am I back? Well, we'll see.
Powerlord is offline
XxSpawn
Junior Member
Join Date: Jul 2011
Old 07-27-2011 , 01:10   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #116

Quote:
// Specifies when to start the vote based on percents.
// -
// Default: "35.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_mapvote_start_percent "0"
What percentage are we talking about here? I believe the description given is very vague and if you don't know what percentage stands for then you will pretty much be lost like myself. Lol
XxSpawn is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-27-2011 , 01:16   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #117

Quote:
Originally Posted by XxSpawn View Post
What percentage are we talking about here? I believe the description given is very vague and if you don't know what percentage stands for then you will pretty much be lost like myself. Lol
Percentage of time remaining.

Sorry about the description, I just copied it from the old version. I'll try to have a better description for the next version. No promises as to when that is, as I'm spending a lot of my dev time on the Builtin Votes extension (which will likely also result in a new Mapchooser Extended version that implements it once it's working properly).
__________________
Am I back? Well, we'll see.

Last edited by Powerlord; 07-27-2011 at 01:24.
Powerlord is offline
Monsi
New Member
Join Date: Jul 2011
Old 07-27-2011 , 08:35   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #118

fyi: The change in the CreateNextVote() method did work that way. (if anyone else wants to get this result)
Monsi is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 07-28-2011 , 16:28   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #119

Powerlord, GJ keep it up ;)
__________________
Zuko is offline
Send a message via ICQ to Zuko
aquaphun
New Member
Join Date: Aug 2011
Old 08-01-2011 , 15:09   Re: MapChooser Extended 1.6.3 (Updated 2011-06-22)
Reply With Quote #120

Hi Powerlord.

I looked up your code and tried to modify it to my needs but I got stuck.

I wanted to build a max nomination counter, so there will only be a limited number of nominations and the rest of the voting list will be filled up with random maps. (not so popular maps get a chance too)
Done that but not tested it out.

Then i wanted to mix the nominations and random selected maps. People press 1 very often and so the first nomination will automaticly win. I want to inhibit it by mixing it up and putting in a random factor.
This should be easy but i am not experienced in CSS scripting so I have not done it yet.
Imo all you have to do is creating two arrays. Maps from the nomination and the maplist will be written in the first array. The second array contains a list of random numbers (array one size == array two size). Then sort the second array and get the first sorted as well. This should do the trick.

The third and last modification I wanted is to have an "Any map will do" on the first voting spot.
This is the trickiest part but it should work by ignoring the "Any map will do" count at the end of the vote. Unfortunatly I can not modify it because I can not find the counter algorythm.

I hope u can help me out.

Thanks

Aquaphun
aquaphun 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 23:50.


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