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

[L4D2] Menu [v1.2 | 23 May 2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 09-04-2021 , 12:28   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #11

Quote:
Originally Posted by RichardHafer View Post
I have the same problem as Mi.Cura first had. I added new commands but they are all mixed up with the ones that were already there. Did a l4d2 update break this plugin?

(Yes I did edit translation file too)
Mine is working perfectly.
Shortcut items added in the l4d2_menu.cfg file must be in the same order as the l4d2_menu.phrases.txt.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 09-04-2021 at 12:32.
Mi.Cura is offline
RichardHafer
Junior Member
Join Date: Dec 2020
Old 09-04-2021 , 16:41   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #12

Quote:
Originally Posted by Mi.Cura View Post
Mine is working perfectly.
Shortcut items added in the l4d2_menu.cfg file must be in the same order as the l4d2_menu.phrases.txt.
Ok I will try that and report back
RichardHafer is offline
RichardHafer
Junior Member
Join Date: Dec 2020
Old 09-04-2021 , 16:58   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #13

Quote:
Originally Posted by Mi.Cura View Post
Mine is working perfectly.
Shortcut items added in the l4d2_menu.cfg file must be in the same order as the l4d2_menu.phrases.txt.
Didnt work :/
RichardHafer is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 09-05-2021 , 12:11   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #14

1) Don't forget to eliminate the default commands that come in configuration, and leave only yours.
2) l4d2_menu.cfg file must be in the same order as the l4d2_menu.phrases.txt.
3) Make sure you have the plugins for the commands you want.
4) Also make sure the sm_ command shortcuts are correct according to each plugin: l4d2_menu.cfg file and l4d2_menu.phrases.txt. (include Title)

Exemple, this is my config: l4d2_menu.cfg file:


PHP Code:
Default: "sm_ivote,sm_buy ammo,sm_buy,sm_hat,sm_srs,sm_lightmenu,sm_top10,sm_eff,sm_sound"
l4d2_menu_options "sm_buy,sm_miss,sm_csm,sm_hat,sm_light,sm_colors,sm_wskin,sm_tp,sm_afk,sm_join,sm_teams" 

Exemple, this is my config: l4d2_menu.phrases.txt

PHP Code:
"Phrases"
{
    
"sm_buy"
    
{
        
"en"            "Shop"
        "pt"            "COMPRAS"
        
    
}
       
"sm_miss"
    
{
        
"en"            "Missiles (text in chat)"
        "pt"            "Misseis (texto no Chat)"            
    
}
        
        
"sm_csm"
    
{
        
"en"            "CSM"
        "pt"            "CSM"
        
    
}
        
"sm_hat"
    
{
        
"en"            "Hat"
        "pt"            "CHAPÉUS"        
        
    
}
    
"sm_light"
    
{
        
"en"            "Light menu"
        "pt"            "MENU LIGHT"
        
    
}
        
"sm_colors"
    
{
        
"en"            "Colors"
        "pt"            "CORÊS"
        
    
}
       
"sm_wskin"
    
{
        
"en"            "SKIN for weapons"
        "pt"            "SKIN WEAPONS"
        
    
}        
        
"sm_tp"
    
{
        
"en"            "3rd Person"
        "pt"            "3ª PESSOA"
        
    
}
        
"sm_afk"
    
{
        
"en"            "IDLE mode"
        "pt"            "MODO AUSENTE"
        
    
}
        
"sm_join"
    
{
        
"en"            "Exit SPEC mode"
        "pt"            "VOLTAR AO JOGO"
        
    
}
        
"sm_teams"
    
{
        
"en"            "TEAM LIST"
        "pt"            "PLAYERS ON-LINE"
        
    
}                

    
"MENU"
    
{
        
"en"        "Menu MZBR | MI.CURA ZOMBIEMOD"
        "pt"        "Menu MZBR | MI.CURA ZOMBIEMOD"        
        
    
}

__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 09-05-2021 at 12:31.
Mi.Cura is offline
RichardHafer
Junior Member
Join Date: Dec 2020
Old 09-06-2021 , 10:47   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #15

Quote:
Originally Posted by Mi.Cura View Post
1) Don't forget to eliminate the default commands that come in configuration, and leave only yours.
2) l4d2_menu.cfg file must be in the same order as the l4d2_menu.phrases.txt.
3) Make sure you have the plugins for the commands you want.
4) Also make sure the sm_ command shortcuts are correct according to each plugin: l4d2_menu.cfg file and l4d2_menu.phrases.txt. (include Title)

Exemple, this is my config: l4d2_menu.cfg file:


PHP Code:
Default: "sm_ivote,sm_buy ammo,sm_buy,sm_hat,sm_srs,sm_lightmenu,sm_top10,sm_eff,sm_sound"
l4d2_menu_options "sm_buy,sm_miss,sm_csm,sm_hat,sm_light,sm_colors,sm_wskin,sm_tp,sm_afk,sm_join,sm_teams" 

Exemple, this is my config: l4d2_menu.phrases.txt

PHP Code:
"Phrases"
{
    
"sm_buy"
    
{
        
"en"            "Shop"
        "pt"            "COMPRAS"
        
    
}
       
"sm_miss"
    
{
        
"en"            "Missiles (text in chat)"
        "pt"            "Misseis (texto no Chat)"            
    
}
        
        
"sm_csm"
    
{
        
"en"            "CSM"
        "pt"            "CSM"
        
    
}
        
"sm_hat"
    
{
        
"en"            "Hat"
        "pt"            "CHAPÉUS"        
        
    
}
    
"sm_light"
    
{
        
"en"            "Light menu"
        "pt"            "MENU LIGHT"
        
    
}
        
"sm_colors"
    
{
        
"en"            "Colors"
        "pt"            "CORÊS"
        
    
}
       
"sm_wskin"
    
{
        
"en"            "SKIN for weapons"
        "pt"            "SKIN WEAPONS"
        
    
}        
        
"sm_tp"
    
{
        
"en"            "3rd Person"
        "pt"            "3ª PESSOA"
        
    
}
        
"sm_afk"
    
{
        
"en"            "IDLE mode"
        "pt"            "MODO AUSENTE"
        
    
}
        
"sm_join"
    
{
        
"en"            "Exit SPEC mode"
        "pt"            "VOLTAR AO JOGO"
        
    
}
        
"sm_teams"
    
{
        
"en"            "TEAM LIST"
        "pt"            "PLAYERS ON-LINE"
        
    
}                

    
"MENU"
    
{
        
"en"        "Menu MZBR | MI.CURA ZOMBIEMOD"
        "pt"        "Menu MZBR | MI.CURA ZOMBIEMOD"        
        
    
}


I do not see a problem with my config and translation file to be honest, maybe you can spot a mistake I made? here is it: (yes I did leave some commands from the plugin because my server uses some plugins that this menu included)

PHP Code:
"Phrases"
{
    
"sm_chmap"
    
{
        
"en"            "Vote Campaign"        
        "zho"            "Vote Campaign"
        "chi"            "Vote Campaign"
    
}

    
"sm_buy"
    
{
        
"en"            "Shop"        
        "zho"            "Shop"
        "chi"            "Shop"
    
}

    
"sm_buy heal"
    
{
        
"en"            "Buy Heal"        
        "zho"            "Buy Heal"
        "chi"            "Buy Heal"
    
}

    
"sm_votemode"
    
{
        
"en"            "Vote Gamemode"        
        "zho"            "Vote Gamemode"
        "chi"            "Vote Gamemode"
    
}

    
"sm_srs"
    
{
        
"en"            "Statistics"        
        "zho"            "Statistics"
        "chi"            "Statistics"
    
}

    
"sm_top10"
    
{
        
"en"            "Top 10 Players"        
        "zho"            "Top 10 Players"
        "chi"            "Top 10 Players"
    
}

    
"sm_mvp"
    
{
        
"en"            "MVP"
        "zho"           "MVP"
        "chi"           "MVP"
    
}

    
"sm_eff"
    
{
        
"en"            "Enable/Disable Combo Effect"
        "zho"           "Enable/Disable Combo Effect"
        "chi"           "Enable/Disable Combo Effect"
    
}

    
"sm_sound"
    
{
        
"en"            "Enable/Disable Combo Sound"
        "zho"           "Enable/Disable Combo Sound"
        "chi"           "开/关连击音效"
    
}

    
"MENU"
    
{
        
"en"            "Menu"        
        "zho"            "選單"
        "chi"            "菜单"
    
}


PHP Code:
// This file was auto-generated by SourceMod (v1.10.0.6510)
// ConVars for plugin "l4d2_menu.smx"


// Use ',' to split the command. Remember to add transitions text for it.
// -
// Default: "sm_ivote,sm_buy ammo,sm_buy,sm_hat,sm_srs,sm_lightmenu,sm_top10,sm_eff,sm_sound"
l4d2_menu_options "sm_chmap,sm_buy,sm_buy heal,sm_votemode,sm_srs,sm_top10,sm_mvp,sm_eff,sm_sound"

// L4D2 menu version
// -
// Default: "v1.2"
l4d2_menu_version "v1.2" 
RichardHafer is offline
Mi.Cura
Veteran Member
Join Date: Dec 2016
Location: Brazil
Old 09-06-2021 , 17:44   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #16

Test first using just one command, example: sm_hat, and test.

If it works, add your commands one by one and test each time.

If it fails at some point, it could be some command that isn't working.

I'll give you an example:
I tested it once adding the command to the tankbuster.smx plugin
I added the sm_tankbuster shortcut and it didn't work.
I checked the plugin and saw that the correct comment is just tunkbuster, without the sm_ .

example:

"sm_buy,sm_miss,sm_csm,tankbuster,sm_hat"

Maybe some command is failing, it's just a suggestion.
__________________
Mi.Cura | Modded Servers | L4D2
https://steamcommunity.com/groups/micuramodzombie

Last edited by Mi.Cura; 09-06-2021 at 17:51.
Mi.Cura is offline
Rego
Junior Member
Join Date: Nov 2021
Old 11-06-2021 , 14:47   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #17

Hello, the menu don´t work, literally open but no one of the options works, just closes when i touch any of the options.
Do you know why? Thanks!
Rego is offline
AsphyxiaJLSA
Member
Join Date: Oct 2021
Location: Lima,Perú
Old 11-25-2021 , 19:17   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #18

this is good, is there a way that the command can only be used by administrators, or those who have a mark or flag, be it ABCD, etc.

try with

try

change this command
PHP Code:
    RegConsoleCmd ("sm_menu"HandleCmdMenu); 

to this
PHP Code:
    RegAdminCmd ("sm_menu"HandleCmdMenuADMFLAG_RESERVATION); 
but I didn't get any results , anyone can open the menu
__________________
→MY STEAM PROFILE←

DISCORD: Asphyxia#9797

Sorry for my bad English

Last edited by AsphyxiaJLSA; 11-25-2021 at 19:18.
AsphyxiaJLSA is offline
changye
New Member
Join Date: Jul 2023
Old 07-29-2023 , 02:36   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #19

After more than 21 commands, the command cannot be loaded
changye is offline
pan0s
Senior Member
Join Date: Nov 2017
Old 08-09-2023 , 06:39   Re: [L4D2] Menu [v1.2 | 23 May 2021]
Reply With Quote #20

Quote:
Originally Posted by changye View Post
After more than 21 commands, the command cannot be loaded
You can change the size
Code:
char g_sCmds[21][32];
char g_sCvar_cmds[512];
Where 21 means the length of comments on the menu, 32 denotes the text length of each commend,
and 512 represents the text length in the .cfg.
__________________
pan0s is offline
Reply



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 17:05.


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