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)

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.