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

Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-23-2017 , 13:47   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #821

Quote:
Originally Posted by addons_zz View Post
Well, this issue now can be fixed by the community translating the `%d%%` to `%d percent(s)`
What about using the unicode character '%'?
__________________
Arkshine is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 07-23-2017 , 13:58   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #822

I am not used to using/inputting Unicode chars, but I think it should work. I am going to find out how to escape them and try to send them to user.

I opened a issue opened for this on issue tracker:

1. Issues#73 After update cs 1.6 caractere "%" in language file don't work

When I release the next version, I should have this fixed.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
damnyourefine
Junior Member
Join Date: Aug 2010
Old 08-08-2017 , 14:19   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #823

Is it possible to have tags / labels next to map names during a map vote?

For example, I would like to have two label types: size (Small / Big) and mode (Fun / Pro).

So, an example vote for 5 maps could look like:

1. de_dust (Big) (Pro)
2. huhhhh (Big) (Fun)
3. ka_beams (Small) (Pro)
4. gg_minecraftempire (Big) (Fun)
5. de_perfect_inferno (Big) (Pro)

I swore when I first installed the plugin (and before I configured it) there was a "Custom" label next to maps that weren't stock maps.

Any ideas??
damnyourefine is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 08-08-2017 , 22:35   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #824

Quote:
Originally Posted by damnyourefine View Post
Is it possible to have tags / labels next to map names during a map vote?
It should be. If you configure your plugin cvar `gal_vote_mapfile` to a map file list as:
Code:
de_dust (Big) (Pro) huhhhh (Big) (Fun) ka_beams (Small) (Pro) gg_minecraftempire (Big) (Fun) de_perfect_inferno (Big) (Pro)

The tags you put after the map name should show up automatically on the map menu.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
damnyourefine
Junior Member
Join Date: Aug 2010
Old 08-09-2017 , 13:26   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #825

Quote:
Originally Posted by addons_zz View Post
It should be. If you configure your plugin cvar `gal_vote_mapfile` to a map file list as:
Code:
de_dust (Big) (Pro) huhhhh (Big) (Fun) ka_beams (Small) (Pro) gg_minecraftempire (Big) (Fun) de_perfect_inferno (Big) (Pro)

The tags you put after the map name should show up automatically on the map menu.
I did this, but the plugin seems to treat the tags after the mapnames of the list as part of the map filename. So, if I add "(Big)" as a tag to "de_dust", the server scans the map file and attempts to look for map with filename "de_dust (Big)".

When I did this, the plugin failed to do a vote because it couldn't find any maps (due to the tags).

The specific error was: Vote creation failed; no maps found.

As soon as I removed the tag from a map names, the voting word again. I made the changes in the map list file defined by 'gal_vote_mapfile'.

Any ideas on what I did wrong?
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2017-08-09 at 10.26.22 AM.png
Views:	105
Size:	7.4 KB
ID:	164722  

Last edited by damnyourefine; 08-09-2017 at 13:27.
damnyourefine is offline
Ricky
Senior Member
Join Date: Jul 2005
Old 08-11-2017 , 17:37   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #826

I am getting this compiling error with this plugin using git-5132. Need help.

Invalid function or declaration. Tag mismatch on line 11123.

Code:

Code:
return strcmp( map1, map2, 1 );
Ricky is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 08-31-2017 , 19:38   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #827

Quote:
Originally Posted by damnyourefine View Post
Any ideas on what I did wrong?
For now I have no ideia. When I got time, I will run a server and test the plugin and see if this is working. Today you can try record a log of the server when you add the tags to the maps names, then post the log here or PM. So I can look into it and see if I spot what is going on.

Quote:
Originally Posted by Ricky View Post
Code:
return strcmp( map1, map2, 1 );
When I got time, I will run a server and test the plugin and see if this is working.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-06-2017 , 14:30   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #828

Quote:
Originally Posted by Ricky View Post
I am getting this compiling error with this plugin using git-5132. Need help.

Invalid function or declaration. Tag mismatch on line 11123.

Code:

Code:
return strcmp( map1, map2, 1 );
Until this is fixed, you can still compile it with AMXX 182 or some new AMXX 183 compiler which stills compiles it, and run it on your server even if it uses AMXX git-5132 or newer
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-08-2017 , 13:05   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #829

Quote:
Can you tell me the exact line where this alphabetize function is. This plugin is 20,000 lines long and got a massive headache trying to locate it in Notepad. The link you provided https://forums.alliedmods.net/showthread.php?p=2525866&highlight=alphabetic ally#post2525866 shows line 7374 but that is not accurate.
You should use the `Ctrl+F` shortcut (find) and search for `// Alphabetize the maps`. Then you will see something like this:
Code:
File: addons\amxmodx\scripting\galileo.sma
7473:     // Alphabetize the maps
7474:     SortCustomSynced2D( g_votingMapNames, g_votingMapInfos, g_totalVoteOptions );
The lines numbers could be a little different, but should be something like that. Then you put 2 slashes on the line starting with `SortCustomSynced2D(...`, as in:
Code:
File: addons\amxmodx\scripting\galileo.sma
7473:     // Alphabetize the maps
7474:     //SortCustomSynced2D( g_votingMapNames, g_votingMapInfos, g_totalVoteOptions );
On the next version, there will be a cvar to control that, so you do not need to edit the plugin.

__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-10-2017 , 12:58   Re: Galileo v5.7.2-885 (a feature rich map voting plugin) | Last Update: 2017-05-25
Reply With Quote #830

Quote:
Originally Posted by damnyourefine View Post
I did this, but the plugin seems to treat the tags after the mapnames of the list as part of the map filename. So, if I add "(Big)" as a tag to "de_dust", the server scans the map file and attempts to look for map with filename "de_dust (Big)".

When I did this, the plugin failed to do a vote because it couldn't find any maps (due to the tags).

The specific error was: Vote creation failed; no maps found.

As soon as I removed the tag from a map names, the voting word again. I made the changes in the map list file defined by 'gal_vote_mapfile'.

Any ideas on what I did wrong?
I just did a test and it is working:



You should record a log, and send it to me so I can understand it better.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz 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 12:39.


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