Raised This Month: $51 Target: $400
 12% 

[UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
Steell
SourceMod Donor
Join Date: Mar 2009
Old 04-06-2013 , 11:36   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3581

Quote:
Originally Posted by exactprecisions View Post
I've done with this plugin like I have all the others I've tried to install (upload the data into the appropriate directory and restart my server). I also configured a mapgroup for UMC as per your guideline. For some reason, I cannot see the plugin by using "sm plugins"
What game are you running on your server?
__________________
Steell is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 04-06-2013 , 16:44   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3582

Quote:
Originally Posted by Bittersweet View Post
It sounds like you've modified some code. If everything else is working correctly, such as the colors, it seems like the easy way to fix it is to just change the "%" sign to the word "percent".
I will check if I did. Thx

-edit-

nah... all I did was replace PrintToChatAll with CPrintToChatAll

-edit2-
there was something wrong actually with the #format thing... it had a dot

"#format" "{1:.f},{2:i}"

"en" "Received {olive}{1}%%%% {default}of {olive}{2} votes{default}"

Last edited by maxolahird; 04-06-2013 at 18:25.
maxolahird is offline
exactprecisions
Member
Join Date: Apr 2013
Old 04-07-2013 , 00:57   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3583

Quote:
Originally Posted by Steell View Post
What game are you running on your server?
Counter Strike : Global Offensive with Sourcemod and Metamod addons installed. Also running the sm_hosties from here.
exactprecisions is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 04-07-2013 , 19:35   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3584

Quote:
Originally Posted by maxolahird View Post
I will check if I did. Thx

-edit-

nah... all I did was replace PrintToChatAll with CPrintToChatAll

-edit2-
there was something wrong actually with the #format thing... it had a dot

"#format" "{1:.f},{2:i}"

"en" "Received {olive}{1}%%%% {default}of {olive}{2} votes{default}"
Actually now it's show

[UMC] Map vote is over. Next map will be surf_monster. (Received 30.769231 of 13 votes)

I noticed the "." was right... so what can I do to fix this :/
maxolahird is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-07-2013 , 19:39   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3585

One of the reasons I stopped using colors.inc (and morecolors.inc?) in plugins was because it repeatedly calls Format, and each time Format is called, %% becomes %.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-07-2013 at 19:39.
Powerlord is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 04-07-2013 , 21:19   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3586

Quote:
Originally Posted by Powerlord View Post
One of the reasons I stopped using colors.inc (and morecolors.inc?) in plugins was because it repeatedly calls Format, and each time Format is called, %% becomes %.
oh that sucks :[ there is no fix for that?
maxolahird is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-07-2013 , 21:43   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3587

Quote:
Originally Posted by maxolahird View Post
oh that sucks :[ there is no fix for that?
The only real fix is to rewrite colors.inc to use StrReplace instead of Format. Or rewrite it so Format is never called more than once in any given function. I'm not sure how difficult that would be.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-07-2013 at 21:44.
Powerlord is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 04-07-2013 , 23:00   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3588

Quote:
Originally Posted by Powerlord View Post
The only real fix is to rewrite colors.inc to use StrReplace instead of Format. Or rewrite it so Format is never called more than once in any given function. I'm not sure how difficult that would be.
is there any other inc that do the same that maybe could be used?
maxolahird is offline
Steell
SourceMod Donor
Join Date: Mar 2009
Old 04-08-2013 , 13:24   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3589

Quote:
Originally Posted by exactprecisions View Post
Counter Strike : Global Offensive with Sourcemod and Metamod addons installed. Also running the sm_hosties from here.
You will need the beta version of UMC for CS:GO: https://forums.alliedmods.net/showpo...postcount=3343

If you're planning on using the Random Mapcycle module, then you'll want a fixed beta version here: https://forums.alliedmods.net/showpo...postcount=3357 (The one included in the beta package has some bugs).
__________________
Steell is offline
Steell
SourceMod Donor
Join Date: Mar 2009
Old 04-08-2013 , 13:32   Re: [UMC3] Ultimate Mapchooser 3.4.5 (Updated 10/7/2012)
Reply With Quote #3590

Quote:
Originally Posted by maxolahird View Post
is there any other inc that do the same that maybe could be used?
Not that I know of. If you're looking to add colors to UMC, then my recommendation would be to place the color codes in directly. If you look at the colors.inc file, you'll see all the color codes at the top of the file. They have the following format: \x0# (where # is a number that determines the color).

If you're placing them in translation files, you might need to use a double-backslash (\\) in order to get it to parse correctly.

There are actually more available colors than what's included in colors.inc: check out More Colors. Again, you'll want to rip the color codes directly.
__________________
Steell 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 00:34.


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