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!

iclassdon 02-18-2023 16:51

Re: Map Manager Modular
 
Quote:

Originally Posted by MAJESTIC_SZ (Post 2799747)
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!

Double check everything. I just tested and it's working for me.

MAJESTIC_SZ 02-19-2023 19:23

Re: Map Manager Modular
 
Quote:

Originally Posted by iclassdon (Post 2799796)
Double check everything. I just tested and it's working for me.

Have you tried it with different sounds?

iclassdon 02-20-2023 16:56

Re: Map Manager Modular
 
I only replaced one. Link me those sounds files and I'll test them out.

DruGzOG 02-20-2023 17:10

Re: Map Manager Modular
 
Any possibility of adding a variable when a team reaches x amount of rounds, vote will initiate?

ChillerX 02-20-2023 19:57

Re: Map Manager Modular
 
Quote:

Originally Posted by MAJESTIC_SZ (Post 2799747)
Hi.
But, i wanted to change the countdown sounds and i cant, it still plays the default ones.

Have you deleted your download folder? it's possible that the new sounds are not downloading because they have the same names as files that were previously downloaded and the client will not recognize them as new, causing it to skip them. Additionally, ensure that you have uploaded them to your FastDL server too.

It's advisable to rename the files and edit the plugin. This is because most clients seldom delete their download folder, and as a result, they may miss out on updates for new sounds, models, and so on, unless they manually delete the folder frequently.

Mistrick 02-20-2023 20:33

Re: Map Manager Modular
 
Quote:

Originally Posted by DruGzOG (Post 2799934)
Any possibility of adding a variable when a team reaches x amount of rounds, vote will initiate?

mp_winlimit + mapm_rounds_to_vote or write custom addon.

ChillerX 02-20-2023 21:09

Re: Map Manager Modular
 
Quote:

Originally Posted by DruGzOG (Post 2799934)
Any possibility of adding a variable when a team reaches x amount of rounds, vote will initiate?

Are you referring to the creation of custom win & vote conditions for ZM, as these cvars have been in existence for a significant amount of time?

Quote:

Originally Posted by Mistrick (Post 2799940)
mp_winlimit + mapm_rounds_to_vote

Mistrick, do you have any plans to incorporate fixes for bots that shoot during an active vote?

DruGzOG 02-21-2023 07:15

Re: Map Manager Modular
 
Quote:

Originally Posted by Mistrick (Post 2799940)
mp_winlimit + mapm_rounds_to_vote or write custom addon.

Thanks

Quote:

Originally Posted by ChillerX (Post 2799942)
Are you referring to the creation of custom win & vote conditions for ZM, as these cvars have been in existence for a significant amount of time?



Mistrick, do you have any plans to incorporate fixes for bots that shoot during an active vote?

No, I'm referring to a single team reaching x amount of rounds.
For your second question, both addons have been added to support both zbots and yapb.

ChillerX 02-21-2023 20:08

Re: Map Manager Modular
 
Can you specify which particular team you are referring to? Also, I'm unable to discern why the default cvar would not be adequate for achieving such a goal.

Quote:

Originally Posted by DruGzOG (Post 2799970)
For your second question, both addons have been added to support both zbots and yapb.

Perhaps you could check the definition of the word "incorporate" in the dictionary as soon as possible.

MeliMeli 03-08-2023 12:35

Re: Map Manager Modular
 
I love your vote map, for me and the best these days. It puts what is needed and does not have a 1000-line configuration file that is teeing to configure.

MAJESTIC_SZ 03-11-2023 19:30

Re: Map Manager Modular
 
Quote:

Originally Posted by ChillerX (Post 2799939)
Have you deleted your download folder? it's possible that the new sounds are not downloading because they have the same names as files that were previously downloaded and the client will not recognize them as new, causing it to skip them. Additionally, ensure that you have uploaded them to your FastDL server too.

It's advisable to rename the files and edit the plugin. This is because most clients seldom delete their download folder, and as a result, they may miss out on updates for new sounds, models, and so on, unless they manually delete the folder frequently.

Hi. Yes, i know about all that. I did everything right.
BUT it started working a couple of days i post this, i dont know why.
Maybe some host bug/error.
I changed the sounds again just to test and it works perfect.

Thank you.

MAJESTIC_SZ 03-15-2023 00:17

Re: Map Manager Modular
 
Hello again.

I started using the plugin and i noticed something on the next cvar:

By default keys start at 1, set cvar to 4 and it will start at 5..
mapm_vote_item_offset "4"


I set it like that but while playing i cant press 1,2,3 and 4 keys.
Is that supose to happen? I dont think so... Or am i wrong?

And the cvar to change the map after round end or map time end is not working either.
Even if i set it to change only at map time end, it stills changes at round end.

Thank you!

Mistrick 03-15-2023 23:55

Re: Map Manager Modular
 
Quote:

Originally Posted by MAJESTIC_SZ (Post 2801246)
By default keys start at 1, set cvar to 4 and it will start at 5..
mapm_vote_item_offset "4"


I set it like that but while playing i cant press 1,2,3 and 4 keys.
Is that supose to happen? I dont think so... Or am i wrong?

With these settings you should start voting at 5 and press 5 and up to vote. You don't have items 1 to 4, pressing 1 to 4 should do nothing. If the problem is in pressing keys after voting, then see this cvar mapm_show_result_type.

Quote:

Originally Posted by MAJESTIC_SZ (Post 2801246)
And the cvar to change the map after round end or map time end is not working either.
Even if i set it to change only at map time end, it stills changes at round end.

Show output from this command
Code:

cvarlist mapm_

MeliMeli 03-16-2023 09:10

Re: Map Manager Modular
 
1 Attachment(s)
Mistrick, I do not know if I have a bad configuration, but your plugin always changes map in the second round, voting starts in the first round always
Here's the settings, can you tell me where I went wrong or is it some bug?

MAJESTIC_SZ 03-16-2023 10:28

Re: Map Manager Modular
 
Quote:

Originally Posted by Mistrick (Post 2801285)
With these settings you should start voting at 5 and press 5 and up to vote. You don't have items 1 to 4, pressing 1 to 4 should do nothing. If the problem is in pressing keys after voting, then see this cvar mapm_show_result_type.

I meant that when a votemap is in progress, with cvar mapm_vote_item_offset "4" , i can't use keys 1,2,3 and 4, i press it and nothing happens.
Resuming: During a votemap, i cant select an HE grenade or select the knife for example.
Only after votemap ends those keys work again.
Since the votemap uses key 5 and up, players should be able to play normally during the votemap and use 1,2,3,4 at will.


Show output from this command
Code:

cvarlist mapm_

CVar List
--------------
mapm_blocklist_ban_last_maps : 1
mapm_change_to_default_map : 0
mapm_change_type : 1
mapm_default_map : de_dust2
mapm_early_finish_vote : 0
mapm_extend_map_if_no_votes : 0
mapm_extended_map_max : 3
mapm_extended_rounds : 3
mapm_extended_time : 15
mapm_extended_type : 0
mapm_frags_to_vote : 5
mapm_last_round : 1
mapm_nom_denominate_time : 5
mapm_nom_dont_close_menu : 0
mapm_nom_maps_in_vote : 5
mapm_nom_maps_per_player : 2
mapm_nom_random_sort : 0
mapm_nom_remove_maps : 1
mapm_nom_show_lists : 1
mapm_nom_type : 0
mapm_only_external_vote_items : 0
mapm_prefix : ^4ADP |
mapm_prepare_time : 5
mapm_priority_ignore_nomination : 1
mapm_random_nums : 0
mapm_rounds_to_vote : 2
mapm_rtv_allow_extend : 0
mapm_rtv_change_after_vote : 0
mapm_rtv_delay : 1
mapm_rtv_mode : 0
mapm_rtv_percent : 60
mapm_rtv_players : 16
mapm_second_vote : 1
mapm_second_vote_percent : 50
mapm_show_list_name_in_vote : 0
mapm_show_percent : 2
mapm_show_result_type : 0
mapm_show_selects : 1
mapm_sort_check_nominated_maps : 0
mapm_timeleft_to_vote : 2
mapm_version : 3.1.5, sv
mapm_vote_in_new_round : 0
mapm_vote_item_offset : 4
mapm_vote_time : 10
mapm_votelist_size : 5
--------------
45 CVars for [mapm_]
CvarList ? for syntax

Mistrick 03-16-2023 10:43

Re: Map Manager Modular
 
MAJESTIC_SZ, MeliMeli, mapm_last_round 0

MAJESTIC_SZ 03-16-2023 11:32

Re: Map Manager Modular
 
// EN: Type of map change after voting.
// 0 - after end vote, 1 - in round end, 2 - after end map
mapm_change_type "2"

This does not work, map still changes in round end (mapm_change_type 1) even if i set it to after map end (mapm_change_type 2)

_____________________________________________ ____________

// Allows you to finish the round after voting.
// 0 - disable, 1 - enable
mapm_last_round "1"

I want to finish the round after the end of the vote.

Mistrick 03-16-2023 18:14

Re: Map Manager Modular
 
MAJESTIC_SZ, mapm_last_round blocks mapm_change_type "2", last round is last round, after it you can't play.

MAJESTIC_SZ 03-16-2023 20:30

Re: Map Manager Modular
 
Quote:

Originally Posted by Mistrick (Post 2801324)
MAJESTIC_SZ, mapm_last_round blocks mapm_change_type "2", last round is last round, after it you can't play.

Ah, ok ok, i will try it.

What about keys 1,2,3,4 during votemap?
Will you check it?

Thank you.

Mistrick 03-17-2023 01:26

Re: Map Manager Modular
 
MAJESTIC_SZ, Did you read first part of this?

AllMassive 03-18-2023 00:41

Re: Map Manager Modular
 
would be nice if, when the current map ends after the configured 'last round checks', that in case of a 'draw' in the teamscores (for.ex. 12:12), that theres a 'final round' as 'decision round'?

Mistrick 03-18-2023 01:53

Re: Map Manager Modular
 
Quote:

Originally Posted by AllMassive (Post 2801375)
would be nice if, when the current map ends after the configured 'last round checks', that in case of a 'draw' in the teamscores (for.ex. 12:12), that theres a 'final round' as 'decision round'?

Added in last version. Need tests.

AllMassive 03-18-2023 20:46

Re: Map Manager Modular
 
tested it and it seems that theres a problem when 'rtv' is used - the map doesnt change after voting.

Code:

mapm_last_round "0"
mapm_rtv_mode "0"
mapm_rtv_change_after_vote "1"
mapm_rtv_ignore_spectators "0"
mapm_early_finish_vote "1"
apm_final_round "1"
mapm_change_type "2"


Mistrick 03-19-2023 03:03

Re: Map Manager Modular
 
AllMassive, mapm_final_round should work with mapm_last_round "1" or mapm_change_type "1". With your settings mapm_final_round doesn't work.
mapm_rtv_change_after_vote "1" will block any other change types and change the map immediately after the vote. I don't see any problems with this cvar.

AllMassive 03-23-2023 20:22

Re: Map Manager Modular
 
now it looks like when mapm_second_vote 1 is enabled and a second vote is needed, that the nextmap is changed to a random map, which was not part of the vote.
when theres no second vote needed, the nextmap is correct.

Mistrick 03-24-2023 09:20

Re: Map Manager Modular
 
Quote:

Originally Posted by AllMassive (Post 2801697)
now it looks like when mapm_second_vote 1 is enabled and a second vote is needed, that the nextmap is changed to a random map, which was not part of the vote.
when theres no second vote needed, the nextmap is correct.

Show logs from cstrike\addons\amxmodx\logs

AllMassive 04-04-2023 18:41

Re: Map Manager Modular
 
@Mistrick
sorry - i was wrong :/
the cause for my probs were also a incorrect combination of config-values, but since everything behaves normal again regarding the normal votes/mapchange after fixing my settings, i never 'saw' that a 'final round' has happend.
grepped through the server/amx-logs but couldnt find anything.
could you pls give some advice how to 'log' if a additional round took place?
would also be nice if that 'additional round'-msg would appear more visible as a hud-msg, instead on the chat.

Mistrick 04-05-2023 17:18

Re: Map Manager Modular
 
AllMassive, write below map_manager_scheduler.amxx in plugins list
PHP Code:

#include <amxmodx>
#include <map_manager_scheduler>

public plugin_init()
{
    
register_event("HLTV""event_newround""a""1=0""2=0");
}
public 
event_newround()
{
    if(
get_last_round_state() == LRS_Final) {
        
// DO ANYTHING
    
}



AllMassive 04-14-2023 03:57

Re: Map Manager Modular
 
have saved the plugin from your-post into a file, compiled and put it underneath map_manager_scheduler.amxx in plugins.ini.
recently saw the announce of the additional round ingame, but couldnt find a log entry about it.
what log-entry should i look for?

but since it seems to work:
Quote:

Originally Posted by AllMassive (Post 2802190)
@Mistrick
would also be nice if that 'additional round'-msg would appear more visible as a hud-msg, instead on the chat.


Mistrick 04-15-2023 09:30

Re: Map Manager Modular
 
Quote:

Originally Posted by AllMassive (Post 2802714)
what log-entry should i look for?

I don't understand what you want.
My message about the logs is related to your problem with the second vote. The plugin always writes a log about the start of the second vote.
Code:

[analysis]: second vote started. (%s, %s)
It also logs the end of voting.
Code:

[vote_finished]: nextmap is %s.
AMXX logs the map change.
Code:

L 03/19/2023 - 13:56:09: -------- Mapchange to de_dust --------
I can see in the logs when a map is switched to another map instead of the selected one.
You just ignored me.

Quote:

Originally Posted by AllMassive (Post 2802714)
recently saw the announce of the additional round ingame, but couldnt find a log entry about it.

The plugin does not log anything about the last round and the final round. I showed an example of how you can catch the final round. If you want logs or extra messages, you'll have to do it yourself. I can't cram every wish into the plugin. Modularity is made to allow you to keep your additions without constantly changing the main plugin with every update. I add things that can be useful to many people, not just one person.


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

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