(noob) Few problem with custom stuff (menu, config etc)


(lysek) #1

Hello!

This is first time i run a etpro sever. I created some custom stuff so it be more fun. First thing i done was custom vchat .pk3. But i have problem with integrating wm_quickmessage* stuff.

I created a pk3 (zip file offcourse) with directories like:
scripts/
wm_allies_chat.voice wm_axis_chat.voice
sound/
(all waves here)
ui/
wm_quickmessageAlt.menu wm_quickmessage.menu

Vchat works great! I mean when you type in console


/vsay _something_custom_

it work ok. The problem is the menu from ui/ dir. To QM_MENU_START( “wm_quickmessage” ) in wm_quickmessage.menu i added:


QM_MENU_ITEM(           "U. Custom",            close wm_quickmessage;                  open wm_quickcustom,            "u", 7 )

and to wm_quickmessageAlt.menu:


QM_MENU_ITEM(           "8. Custom",            close wm_quickmessageAlt;       open wm_quickcustom_alt,                "8", 7 )

next i created a menu that “8. Custom” will open:

for wm_quickmessage.menu:


QM_MENU_START( "wm_quickcustom" )

        QM_MENU_ITEM( "F. Food fiiight",                exec "VoiceChat food_fight";    close wm_quickcustom,   "f", 0 )
        QM_MENU_ITEM( "G. Get down",                    exec "VoiceChat get_down";      close wm_quickcustom,   "g", 1 )
        QM_MENU_ITEM( "I. Im a gouch",                  exec "VoiceChat Im_a_Gouch";    close wm_quickcustom,   "i", 2 )
        QM_MENU_ITEM( "K. Kewl",                        exec "VoiceChat Kewl";          close wm_quickcustom,   "k", 3 )
        QM_MENU_ITEM( "M. Kiss my ass",                 exec "VoiceChat kiss_my_ass";   close wm_quickcustom,   "m", 4 )
        QM_MENU_ITEM( "L. Live now",                    exec "VoiceChat live_now";      close wm_quickcustom,   "l", 5 )
        QM_MENU_ITEM( "H. Im here",                     exec "VoiceChat im_here";       close wm_quickcustom,   "h", 6 )
        QM_MENU_ITEM( "S. Kill last",                   exec "VoiceChat gonna_kill";    close wm_quickcustom,   "s", 7 )
        QM_MENU_ITEM( "W. Whooa",                       exec "VoiceChat whooa";         close wm_quickcustom,   "w", 8 )
        QM_MENU_ITEM( "O. Shoot Eye",                   exec "VoiceChat shoot_eye";     close wm_quickcustom,   "o", 9 )
        QM_MENU_ITEM( "O. Astalavista",                 exec "VoiceChat astalavista";   close wm_quickcustom,   "y", 10 )

QM_MENU_END

for wm_quickmessageAlt.menu:


QM_MENU_START( "wm_quickcustom_alt" )

        QM_MENU_ITEM( "1. Food fiiight",                exec "VoiceChat food_fight";    close wm_quickcustom_alt,   "1", 0 )
        QM_MENU_ITEM( "2. Get down",                    exec "VoiceChat get_down";      close wm_quickcustom_alt,   "2", 1 )
        QM_MENU_ITEM( "3. Im a gouch",                  exec "VoiceChat Im_a_Gouch";    close wm_quickcustom_alt    "3", 2 )
        QM_MENU_ITEM( "4. Kewl",                        exec "VoiceChat Kewl";          close wm_quickcustom_alt,   "4", 3 )
        QM_MENU_ITEM( "5. Kiss my ass",                 exec "VoiceChat kiss_my_ass";   close wm_quickcustom_alt,   "5", 4 )
        QM_MENU_ITEM( "6. Live now",                    exec "VoiceChat live_now";      close wm_quickcustom_alt,   "6", 5 )
        QM_MENU_ITEM( "7. Im here",                     exec "VoiceChat im_here";       close wm_quickcustom_alt,   "7", 6 )
        QM_MENU_ITEM( "8. Kill last",                   exec "VoiceChat gonna_kill";    close wm_quickcustom_alt,   "8", 7 )
        QM_MENU_ITEM( "9. Whooa",                       exec "VoiceChat whooa";         close wm_quickcustom_alt,   "9", 8 )
        QM_MENU_ITEM( "10. Shoot Eye",                  exec "VoiceChat shoot_eye";     close wm_quickcustom_alt,   "10", 9 )
        QM_MENU_ITEM( "11. Astalavista",                exec "VoiceChat astalavista";   close wm_quickcustom_alt,   "11", 10 )

QM_MENU_END

But it doesnt work… I see Custom in menu but when i choose it it close whole menu immidietly without showing the vchats. What i do wrong?

You can download the pk3 file connecting via et (or ASE or XQF etc) to 80.53.112.246:9898 <-- you will get lyseksnd.pk3 look into if u want help me :).

Tnx in advance!


(lysek) #2

lol, nevermind i had a typo ( no ‘,’ in item 3) …