AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Map Manager Modular (https://forums.alliedmods.net/showthread.php?t=338215)

Mistrick 02-05-2023 08:44

Re: Map Manager Modular
 
Quote:

Originally Posted by AllMassive (Post 2798780)
Mistrick:
been using your plugin for some time now, and i've the impression that since 'a few weeks' smth changed in the 'github-master'.
after a few maps, the next map doesnt change to the voted nextmap anymore - instead theres some 'random' map starting (which is also defined in the maps-ini).
to me it looks like it often changes to the 'alphabetical nextmap' from the maps.ini.

Show logs.

AllMassive 02-05-2023 16:11

Re: Map Manager Modular
 
think i found my prob, but here some logs.

error.log:
Code:

L 02/05/2023 - 02:56:23: Start of error session.
L 02/05/2023 - 02:56:23: Info (map "de_karachi01") (file "addons/amxmodx/logs/error_20230205.log")
L 02/05/2023 - 02:56:23: [AMXX] Plugin ("map_manager_core.amxx") is setting itself as failed.
L 02/05/2023 - 02:56:23: [AMXX] Plugin says: File doesn't exist "addons/amxmodx/configs/maps.ini".
L 02/05/2023 - 02:56:23: [AMXX] Displaying debug trace (plugin "map_manager_core.amxx", version "3.1.5")
L 02/05/2023 - 02:56:23: [AMXX] Run time error 1: forced exit
L 02/05/2023 - 02:56:23: [AMXX]    [0] map_manager_core.sma::load_maplist (line 394)
L 02/05/2023 - 02:56:23: [AMXX]    [1] map_manager_core.sma::plugin_cfg (line 383)
L 02/05/2023 - 02:56:23: Called dynanative into a paused plugin.
L 02/05/2023 - 02:56:23: [AMXX] Displaying debug trace (plugin "map_manager_scheduler.amxx", version "0.1.11")
L 02/05/2023 - 02:56:23: [AMXX] Run time error 10: native error (native "mapm_get_prefix")
L 02/05/2023 - 02:56:23: [AMXX]    [0] map_manager_scheduler.sma::plugin_cfg (line 133)

didnt had a maps.ini underneath the config-folder, because map_manager_adv_lists.amxx (maplists.ini) was configured with :
Code:

"Custom" "map_manager_maps_custom.ini" "0" "anytime"
"Standard" "map_manager_maps_standard.ini" "0" "anytime"
"Fun/Aim" "map_manager_maps_fun.ini" "0" "anytime"

thought thats enough to define the map-lists, but the plugin seems to rely on one file named maps.ini.

will try again with these settings:
Code:

"Custom" "map_manager_maps_custom.ini" "0" "anytime"
"Standard" "maps.ini" "0" "anytime"
"Fun/Aim" "map_manager_maps_fun.ini" "0" "anytime"


Mistrick 02-05-2023 19:21

Re: Map Manager Modular
 
AllMassive, You should not see this error with adv_lists. Are you sure adv_lists is running and configurated?

AllMassive 02-06-2023 01:25

Re: Map Manager Modular
 
Mistrick - everything is now working correct for me since implementing the changes from:

Quote:

Originally Posted by AllMassive (Post 2798838)
will try again with these settings:
Code:

"Custom" "map_manager_maps_custom.ini" "0" "anytime"
"Standard" "maps.ini" "0" "anytime"
"Fun/Aim" "map_manager_maps_fun.ini" "0" "anytime"


to answer your questions:

map_manager_adv_lists.amxx was/is running:
Code:

[ 18] 17  Map Manager: Advanced  0.1.0      Mistrick                                          map_manager  debug
config options regarding map_manager_adv_lists.amxx from map_manager.cfg:

Code:

// Advanced lists
// EN: When voting, show the name of the list the map is in.
// RU: При голосовании показывать имя списка, в котором состоит карта.
// 0 - disable, 1 - enable
mapm_show_list_name_in_vote "0"

// EN: Delete maps from the nomination that are not in the new list of maps. Occurs when "Advanced lists" changes the current map list.
// RU: Удалять карты из номинации, которых нет в новом списке карт. Происходит, когда "Advanced lists" меняет текущий список карт.
// 0 - disable, 1 - enable
mapm_nom_remove_maps "0"

// EN: In the nomination menu, display active map lists (from "Advanced lists")
// RU: В меню номинации выводить активные списки карт (из "Advanced lists")
// 0 - disable, 1 - enable
mapm_nom_show_lists "1"


ChillerX 02-08-2023 06:03

Re: Map Manager Modular
 
How to stop yapb bots from shooting during the voting?

Woodi5 02-09-2023 16:16

Re: Map Manager Modular
 
Quote:

Originally Posted by ChillerX (Post 2799040)
How to stop yapb bots from shooting during the voting?

Unfortunately, such a plugin is only available for zBots https://dev-cs.ru/resources/989/

ChillerX 02-09-2023 20:11

Re: Map Manager Modular
 
Quote:

Originally Posted by Woodi5 (Post 2799156)
Unfortunately, such a plugin is only available for zBots https://dev-cs.ru/resources/989/

Yes I saw it last week and my next question was going to be if it is doable for YAPB as well...
They do have bot freeze cvar - yb_freeze_bots 0/1 but i haven`t test yet if just swapping the cvars will work.

iclassdon 02-10-2023 12:54

Re: Map Manager Modular
 
Quote:

Originally Posted by ChillerX (Post 2799169)
Yes I saw it last week and my next question was going to be if it is doable for YAPB as well...
They do have bot freeze cvar - yb_freeze_bots 0/1 but i haven`t test yet if just swapping the cvars will work.

PHP Code:

#include <amxmodx>
#include <map_manager>

new g_pCvarBotStop

public plugin_init() {
    
register_plugin("Map Manager: YaPB Freeze Bots""1.0""")
    
    
g_pCvarBotStop get_cvar_pointer("yb_freeze_bots")
}

public 
mapm_prepare_votelist() {
    
set_pcvar_num(g_pCvarBotStop1)
}
public 
mapm_vote_canceled() {
    
set_pcvar_num(g_pCvarBotStop0)
}
public 
mapm_vote_finished() {
    
set_pcvar_num(g_pCvarBotStop0)


Works. Might be a better way of doing it.

Woodi5 02-11-2023 15:57

Re: Map Manager Modular
 
Thanks, it works!

MAJESTIC_SZ 02-17-2023 16:28

Re: Map Manager Modular
 
Hi.
I was trying this plugin.
All works fine, i even translated it to portuguese in the lang file.
But, i wanted to change the countdown sounds and i cant, it still plays the default ones.

My CS gives me this error:
Error: server failed to transmit file 'sound/adp_map/one.wav'

I have it correctly in the config file:
[sounds_countdown]
"1" = "sound/adp_map/one.wav"
"2" = "sound/adp_map/two.wav"
"3" = "sound/adp_map/three.wav"
"4" = "sound/adp_map/four.wav"
"5" = "sound/adp_map/five.wav"
"6" = "sound/adp_map/six.wav"
"7" = "sound/adp_map/seven.wav"
"8" = "sound/adp_map/eight.wav"
"9" = "sound/adp_map/nine.wav"
"10" = "sound/adp_map/ten.wav"

And yes, i have enabled server side and client side download cvars.
And the files are in the correct format.

What am i missing?

Thank you in advance!


All times are GMT -4. The time now is 06:09.

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