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

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


Post New Thread Reply   
 
Thread Tools Display Modes
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-30-2023 , 22:58   Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
Reply With Quote #1031

Quote:
Originally Posted by MikaMika View Post
Pity, i cant code
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.
Attached Files
File Type: sma Get Plugin or Get Source (galileo.sma - 51 views - 775.3 KB)
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
UJIbU4
New Member
Join Date: Nov 2022
Old 02-06-2024 , 12:37   Re: Galileo v5.9.1-925 (a feature rich map voting plugin) | Last Update: 2018-07-16
Reply With Quote #1032

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.
Attached Files
File Type: 7z galileo.7z (11.7 KB, 1 views)

Last edited by UJIbU4; 02-06-2024 at 12:38.
UJIbU4 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 10:28.


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