AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16 (https://forums.alliedmods.net/showthread.php?t=273019)

fysiks 05-19-2022 22:49

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

Originally Posted by quraish (Post 2779718)
author can you add the feature of destroying the previous menu when mapvote is starting. like in deathmatch and Kreedz there are already menus displaying on the players screen, those menu are not getting destroyed when map vote comes...
can you add this in the script, if its possible.... menu_destroy(anymenu)

I don't think a plugin can call menu_destroy() on a menu from a different plugin. If that even is possible then how do you think we'd be able to get the menu reference from the other plugin?

maNIaRO 08-31-2022 19:08

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Anyone, how the hell can I setup a 5 min left from map to start a votemap?

I want that when timeleft is 5 minutes, to start a vote. Now it starts at timeleft 30 seconds :(

I see this
Quote:

gal_endofmapvote_before 5 // TODO this cvar is not implemented yet.
But I suppose no change will be done anymore right?

fysiks 09-01-2022 02:37

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

Originally Posted by maNIaRO (Post 2787870)
Anyone, how the hell can I setup a 5 min left from map to start a votemap?

I want that when timeleft is 5 minutes, to start a vote. Now it starts at timeleft 30 seconds :(

I see this

But I suppose no change will be done anymore right?

Change the 30 on line 6929 to 300 (5 minutes in seconds).

maNIaRO 09-01-2022 12:29

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

Originally Posted by fysiks (Post 2787885)
Change the 30 on line 6929 to 300 (5 minutes in seconds).

Yes already found that, but not workin.
When server reach 5 min timeleft, plugin shows in chat "Time left expired" and after 2 rounds start the vot. It is totally fucked up

scott24 10-23-2022 13:10

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
The plugin seems to work great with just 1 issue we have found. Sorry if this has already been brought up an answered. we randomly have people, myself included not get the vote to show up. I thought it had to do with me alt tabbing or moving to spec. but others are getting the same issue and say they have not tabbed out. seems like at least one person per map says they cant vote.

scott24 10-23-2022 13:15

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Is there a way to whitelist maps based off of player count? I see there is the gal_nom_minplayer_control. and that works great. I would like to be able to only have maps nominated that are in the midplayers mapcycle or mapcycle.txt based off of player count. The min works great but when the server is full that allows everyone to still nominate the small maps from the minplayer mapcycle.

addons_zz 10-23-2022 18:27

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

Originally Posted by fysiks (Post 2787885)
Change the 30 on line 6929 to 300 (5 minutes in seconds).

Thanks for looking into it. I think this 30 seconds is for some other feature, but not for the voting to start.

Changing this on the next if should work (but I did not tested it):
PHP Code:

File:galileo.sma
        
// Are we ready to start an "end of map" vote?
6946:         if( secondsLeft START_VOTEMAP_MIN_TIME
to 
6946
:         if( secondsLeft START_VOTEMAP_MIN_TIME 300 


Infamanious 10-23-2022 19:40

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Is there any way to paginate map lists greater than lets say 50 or 100 without causing reliable buffer overflows? I'm stuck with deagles map manager, or was until i disabled it because it caused our server to become unstable after 800+ maps. With Galileo its a bit different since you have to manually list the maps in console, but listing them 10 at a time is a daunting task for a server with 800 + votable maps. Presumably this is a limitation of the goldsrc engine since it can only manage a certain amount of data to and from the clients over the internet.

fysiks 10-23-2022 21:49

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

Originally Posted by scott24 (Post 2791455)
The plugin seems to work great with just 1 issue we have found. Sorry if this has already been brought up an answered. we randomly have people, myself included not get the vote to show up. I thought it had to do with me alt tabbing or moving to spec. but others are getting the same issue and say they have not tabbed out. seems like at least one person per map says they cant vote.

I've heard this happening on my custom version of the original Galileo plugin so I think it may be a bug that is much deeper than this plugin.

Quote:

Originally Posted by scott24 (Post 2791456)
Is there a way to whitelist maps based off of player count? I see there is the gal_nom_minplayer_control. and that works great. I would like to be able to only have maps nominated that are in the midplayers mapcycle or mapcycle.txt based off of player count. The min works great but when the server is full that allows everyone to still nominate the small maps from the minplayer mapcycle.

Very few, if any, major map management plugins has this feature. I've seen several people request it over the years so you should find the those posts and see what came of those requests.

Quote:

Originally Posted by Infamanious (Post 2791486)
Presumably this is a limitation of the goldsrc engine since it can only manage a certain amount of data to and from the clients over the internet.

That's what I would assume. You can't expect such an old game to do everything that you would expect a modern game to be able to do (even if you think it should be trivial). It sounds like you need a web-based solution.

Simply create a website that lists your maps and then add a command to open that page in the MOTD window. On some games, the MOTD doesn't have the most up-to-date browser implementation so it may require a less complex webpage. I have a pretty extensive maps website for our server that shows all of our maps along with a small image of each map. The most complex part of it, as related to the MOTD web browser, is jQuery Lazy Load for the images. Though, I am able to nominated directly from the website so that's a nice little feature.

I think I read that Counter-Strike 1.6 has a newer browser implementation than what I play, Day of Defeat, so maybe you'll have less restrictions. I developed my maps site many years ago so it's possible things have changed since then.

addons_zz 10-28-2022 20:46

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

Originally Posted by scott24 (Post 2791456)
Is there a way to whitelist maps based off of player count? I see there is the gal_nom_minplayer_control. and that works great. I would like to be able to only have maps nominated that are in the midplayers mapcycle or mapcycle.txt based off of player count. The min works great but when the server is full that allows everyone to still nominate the small maps from the minplayer mapcycle.

Looks like you want a new feature that works the opposite of the original request for the `gal_nom_minplayers_control `.

PHP Code:

// Let the server players nominate maps from the nomination file list
// 'gal_nom_mapfile'. But, when the cvar 'gal_vote_minplayers' is enabled,
// only allow nominations from the 'gal_vote_minplayers_mapfile'.
//
// 0 - Show all nominated maps.
//
// 1 - Only allow nominations from the 'gal_vote_minplayers_mapfile' when
//     when the cvar 'gal_vote_minplayers' is enabled.
//
//     Note: This will allow the players to nominate maps not from
//     'gal_vote_minplayers_mapfile', but they will not be show at the map
//     voting if there are less players than 'gal_vote_minplayers', at the
//     moment when the voting starts.
//
// To disable this feature, set this cvar to 0
//
// Default: 0
gal_nom_minplayers_control 0 


AllMassive 11-02-2022 10:48

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

Originally Posted by scott24 (Post 2791456)
Is there a way to whitelist maps based off of player count? I see there is the gal_nom_minplayer_control. and that works great. I would like to be able to only have maps nominated that are in the midplayers mapcycle or mapcycle.txt based off of player count. The min works great but when the server is full that allows everyone to still nominate the small maps from the minplayer mapcycle.

you should take a look at this Mapvote-Plugin, which already offers all your requirements.

Quote:

Originally Posted by Infamanious (Post 2791486)
Is there any way to paginate map lists greater than lets say 50 or 100 without causing reliable buffer overflows? I'm stuck with deagles map manager, or was until i disabled it because it caused our server to become unstable after 800+ maps. With Galileo its a bit different since you have to manually list the maps in console, but listing them 10 at a time is a daunting task for a server with 800 + votable maps. Presumably this is a limitation of the goldsrc engine since it can only manage a certain amount of data to and from the clients over the internet.

with galileo you can type 'nom de_m' and will get a list to browse by a ingame menu - 'nom dust' lists all maps containing the string 'dust'. that 'listmaps' is obsolete.

MeliMeli 01-17-2023 13:49

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Not a good plugin in my point of view

The code is huge, and the configuration file coming in half is teered to configure. It should be more compact
I thought it was the best votemap plugin but I preferred to use another simpler, very simple

gabuch2 01-17-2023 14:51

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

Originally Posted by MeliMeli (Post 2797417)
Not a good plugin in my point of view

The code is huge, and the configuration file coming in half is teered to configure. It should be more compact
I thought it was the best votemap plugin but I preferred to use another simpler, very simple

And you're free to use simpler votemap plugins if that fills your need.

There's nothing wrong with customization, Galileo is perfect because the huge amount of customization allows you to set up very specific configurations an operator might want.

ChillerX 01-19-2023 23:52

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
I couldn`t get the min-mid player configs to work no matter what...

lastsummer 02-26-2023 12:19

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Hello, guys.
Im using galileo plugin, and to now the server was with more than 8 classic maps, but any players dont want do play another map from dust2.
My question is, how to make the plugin to works only with dust2 without a vote, and only when the percent of rtv is reached to be maked a vote with other maps, including dust2 in the list?
I tried to nominate the prefered maps, but when the map is changed, the prefered nominates are gone?

IC3k1ng 04-05-2023 17:37

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Hello, i like this plugin but i wanna change the countdown sound from half-life with my custom sounds, is it possible to do it or not?

fysiks 04-06-2023 01:16

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

Originally Posted by IC3k1ng (Post 2802235)
Hello, i like this plugin but i wanna change the countdown sound from half-life with my custom sounds, is it possible to do it or not?

Yes, it is possible. You would need to add code to precache your custom sounds and then replace the client_cmd() that plays the sounds to instead play your custom sounds.

IC3k1ng 04-06-2023 13:29

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

Originally Posted by fysiks (Post 2802254)
Yes, it is possible. You would need to add code to precache your custom sounds and then replace the client_cmd() that plays the sounds to instead play your custom sounds.

Thank you, i found the code but im getting many errors, can you help me with it? (Line 4894/4895):

PHP Code:

        // audio countdown
        
if( !( get_pcvar_numcvar_soundsMute ) & SOUND_COUNTDOWN ) )
        {
            new const 
contador[] = "sound/5united/contador.mp3";
            
client_cmd(id"mp3 play %s"contador);
        }
    } 

It says me this:

Quote:

plugin.sma(4844) : error 001: expected token: ";", but found "-identifier-"
plugin.sma(4844) : error 017: undefined symbol "id"
plugin.sma(4844) : warning 215: expression has no effect
plugin.sma(4844) : warning 215: expression has no effect
plugin.sma(4844) : error 001: expected token: ";", but found ")"
plugin.sma(4844) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
I don't know how to define id because im new at this type of coding, so i hope that you can help me.
You can look at the SMA file from the plugin to edit it and then send me how to define it at the code. It would help me a lot.

fysiks 04-07-2023 00:10

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
You can't use "id" there because it doesn't exist in that scope. Why are you trying to change that? You need to leave it at 0 for this one. Basically, just leave that parameter alone, any changes with that parameter would likely require extensive changes.

Also, that section of code is for a countdown which means it was playing consecutive sounds that speak the numbers so if you replace it with a single sound, it will just repeat it several times which might be confusing.

You also need to precache the files with something like this:

PHP Code:

public plugin_precache()
{
    
precache_generic("path/to/sound/file.mp3")



IC3k1ng 04-07-2023 01:40

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

Originally Posted by fysiks (Post 2802294)
You can't use "id" there because it doesn't exist in that scope. Why are you trying to change that? You need to leave it at 0 for this one. Basically, just leave that parameter alone, any changes with that parameter would likely require extensive changes.

Also, that section of code is for a countdown which means it was playing consecutive sounds that speak the numbers so if you replace it with a single sound, it will just repeat it several times which might be confusing.

You also need to precache the files with something like this:

PHP Code:

public plugin_precache()
{
    
precache_generic("path/to/sound/file.mp3")



Oh, i didn't know that. I was learning how to play a mp3 file at client and the code got that "id", so i copy it. My bad.

So how can i make it to play many sounds by order? (Like if countdown value is 5 seconds, then make the client play sound "5.mp3", later "4.mp3", and etc to finish at number 1)

fysiks 04-07-2023 13:09

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

Originally Posted by IC3k1ng (Post 2802295)
So how can i make it to play many sounds by order? (Like if countdown value is 5 seconds, then make the client play sound "5.mp3", later "4.mp3", and etc to finish at number 1)

The original code already does this by formatting the string to play the sound corresponding to the number. So, you'll do the same thing except for your own sounds. Use "real_number" for a decimal digit or "word" for the word for the number.

IC3k1ng 04-07-2023 13:52

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Okay, thank you. I will test it.

IC3k1ng 04-07-2023 14:30

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
I think that webcompilers doesn't support the original SMA file from the plugin. It gives me 10 errors without getting modified. So i will try with a local compiler.

And about the code, it should be something like this?:

PHP Code:

        // audio countdown
        
if( !( get_pcvar_numcvar_soundsMute ) & SOUND_COUNTDOWN ) )
        {
            new 
word];
            
num_to_wordreal_numberword);

            
client_cmd0"mp3 play ^"sound/5united/%s^""word );
        } 


IC3k1ng 04-10-2023 23:05

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Hmmm, now i found another method to add it, but it works only for .wav files. But i can convert it.

PHP Code:

        // audio countdown
        
if( !( get_pcvar_numcvar_soundsMute ) & SOUND_COUNTDOWN ) )
        {
            new 
word];
            
num_to_wordreal_numberword);

            
client_cmd0"spk ^"sound/5united/%s^""word );
        } 

Does this works too? And if code is wrong, please fix it for me.

IC3k1ng 04-13-2023 09:16

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
Can someone compile the plugin with the code that i send? I tried with local compilers but it doesn't worked too.
I got many array errors that i don't know how to fix it.

Quote:

plugin.sma(5901) : warning 209: function "isToLoadNextWhiteListEndProcess" should return a value
plugin.sma(7588) : error 047: array sizes do not match, or destination array is too small
plugin.sma(7794) : error 047: array sizes do not match, or destination array is too small
plugin.sma(7933) : error 047: array sizes do not match, or destination array is too small
plugin.sma(8073) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14162) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14166) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14180) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14281) : error 047: array sizes do not match, or destination array is too small
plugin.sma(14606) : error 047: array sizes do not match, or destination array is too small
plugin.sma(16512) : error 047: array sizes do not match, or destination array is too small

MikaMika 09-29-2023 19:37

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
1 Attachment(s)
I have successfully installed the plugin.

I have a few questions:

1.) Is this possible if no one votes or if it's just me on the server that no voting takes place? Or does the map always remain when there is no voting? Even if no one is on the server, the map should remain!

2.) Can you set it so that you are iced at the beginning of the last round and you can choose. Because currently the voting comes in the middle of the game in the last round.

3.) For me if you write timeleft it comes up twice. Once he announces 5 rounds and once 6. Why?

addons_zz 09-30-2023 10:08

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

Originally Posted by MikaMika (Post 2810777)
Because currently the voting comes in the middle of the game in the last round.

This was designed intentionally to prevent voting from interfering with weapon purchases. If you've checked the configuration file and found no setting for this, you'll need to modify the code directly to change this behavior.

MikaMika 09-30-2023 19:15

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

Originally Posted by addons_zz (Post 2810817)
This was designed intentionally to prevent voting from interfering with weapon purchases. If you've checked the configuration file and found no setting for this, you'll need to modify the code directly to change this behavior.

I have seen it on a server. The menu is similar. Only there it is then that the players are freed for 5 seconds and then you can buy weapons.
Pity, i cant code :D

and this?

1.) Is this possible if no one votes or if it's just me on the server that no voting takes place? Or does the map always remain when there is no voting? Even if no one is on the server, the map should remain!

fysiks 09-30-2023 20:53

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

Originally Posted by MikaMika (Post 2810843)
1.) Is this possible if no one votes or if it's just me on the server that no voting takes place? Or does the map always remain when there is no voting? Even if no one is on the server, the map should remain!

You mean this feature:

Quote:

Originally Posted by addons_zz (Post 2351892)
The Galileo can:
...
10. Configure a map change to a popular map when the server is empty too much time.
...

Search for "emptyserver" in the config file (I assume there is a config file but not sure since I don't use this plugin; there are cvars relating to "emptyserver").

addons_zz 09-30-2023 22:27

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

Originally Posted by fysiks (Post 2810853)
Search for "emptyserver" in the config file.

Thanks for helping; you're right; I had forgotten about that. If one searches the config file for 'empty,' they should find some relevant settings. When in doubt, it's a good idea to read through the entire config file.

addons_zz 09-30-2023 22:58

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

Originally Posted by MikaMika (Post 2810843)
Pity, i cant code :D

I have a quick look at the code, and it seem, that the voting start is delayed by this math:
Code:
File: MultiModServer/plugins/addons/amxmodx/scripting/galileo.sma 826: /** 827:  * Specifies how much time to delay the voting start after the round start. 828:  * 829:  * @return an integer, how many seconds to wait 830:  */ 831: #define ROUND_VOTING_START_SECONDS_DELAY() \ 832:     ( get_pcvar_num( cvar_mp_freezetime ) + PERIODIC_CHECKING_INTERVAL \ 833:       - ( get_pcvar_num( cvar_isToAskForEndOfTheMapVote ) & END_OF_MAP_VOTE_ANNOUNCE1 ? 5 : 0 ) \ 834:       + ( g_roundAverageTime > 2 * g_totalVoteTime / 3 ? g_totalVoteTime / 5 : 1 ) )

Changing it to this should start try to start the voting 10 seconds after the round start:
Code:
/**  * Specifies how much time to delay the voting start after the round start.  *  * @return an integer, how many seconds to wait  */ #define ROUND_VOTING_START_SECONDS_DELAY() 10

If the online compiler still working, my attachment here should be enough.

UJIbU4 02-06-2024 12:37

Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
 
1 Attachment(s)
There is a problem when using with HLDM. A vote triggered by approaching mp_timelimit is broken.
Using map groups feature:
Code:

[groups]
1
1

Voting shows correct maps, after it's finished the "nextmap" command shows the map being chosen.
When there is a map change sometimes it starts loading maps from the mapcycle.txt file rather than the chosen one.
Example:
-selected 1.rats_2001b while playing on rustmill - ok
-selected 2.the_yard while playing on rats_2001b - ok
-selected 3.zone_of_emission2v2 while playing on the_yard -failed (loaded doublecross)
-selected 3.zone_of_emission2v2 while playing on doublecross - failed (loaded crossfire)
-selected 2.dorm while playing on crossfire - failed (loaded frenzy)
-selected 1.gasworks while playing on frenzy - failed (loaded bounce)

The mapcycle.txt file contains these maps in a row:
Code:

subtransit
doublecross
crossfire
frenzy
bounce
...

Tried versions: latest release, developer, previous post, 5.4.0.804 and compiling them manually.

galileo.cfg attached.


All times are GMT -4. The time now is 08:59.

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