Dusty Posted June 9, 2013 Share Posted June 9, 2013 So this menu I have keeps crashing the game. I can't figure out where I went wrong in the menu. Everything seems to be in order, and I've also pinpointed this specific .menu file to be the problem. Can you guys help me find if I did something wrong? In the past it's come down to missing/misplaced brackets or spaces where there shouldn't be. I can't seem to figure this one out though. //----------------------------------------------------------------------------------------------//// MULTIPLAYER - MAIN MENU//// Opening menu. Called when game is first started.////----------------------------------------------------------------------------------------------{menuDef {name "help_menu"fullScreen 1 rect 0 0 640 480 // Size and position of the menu focusColor 1 1 1 1 // Focus color for text and itemsdescX 374descY 452descScale 0.7descColor 0.1 0.7 1 0.9descAlignment ITEM_ALIGN_CENTERvisible 1 onOpen {hide classes ;show group1 } onESC { play "sound/interface/back.mp3" close all ;open main } onClose{ } //----------------------------------------------------------------------------------------------// MENU BACKGROUND//----------------------------------------------------------------------------------------------itemDef {name backgroundgroup nonestyle WINDOW_STYLE_SHADERrect 0 0 640 480background "gfx/menus/mb_background"forecolor 1 1 1 1visible 1decoration} itemDef {name menu_framegroup nonestyle WINDOW_STYLE_SHADERrect 0 0 640 480background "gfx/menus/menu_bar_setcon"forecolor 1 1 1 1visible 1decoration} itemDef {name mblogogroup nonestyle WINDOW_STYLE_SHADERrect 340 385 310 80background "gfx/menus/mb_logo" forecolor 1 1 1 1visible 1decoration} itemDef {name classbuttongroup group1style WINDOW_STYLE_EMPTYtype ITEM_TYPE_BUTTONrect 215 203 174 24 text "Classes" descText "Describes the traits and skills of various player-selectable classes."font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 82forecolor 1 1 1 1visible 0 mouseEnter { show button_glow setitemrect button_glow 210 203 174 25}mouseExit { hide button_glow } action { play "sound/interface/go.mp3" ; hide group1 ; show classes }} itemDef {name weaponsbuttongroup group1style WINDOW_STYLE_EMPTYtype ITEM_TYPE_BUTTONrect 215 223 174 24 text "Weapons" descText "Describes the weapons and their abilities used ingame."font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 82forecolor 1 1 1 1visible 0 mouseEnter { show button_glow setitemrect button_glow 210 223 174 25}mouseExit { hide button_glow } action { play "sound/interface/go.mp3" ; hide group1 ; show weapons }} itemDef {name techniquesbuttongroup group1style WINDOW_STYLE_EMPTYtype ITEM_TYPE_BUTTONrect 215 243 174 24 text "Strategy/Tips" descText "Describes general gameplay strategies used by players."font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 82forecolor 0.1 0.7 1 0.9visible 0 mouseEnter { show button_glow setitemrect button_glow 210 243 174 25}mouseExit { hide button_glow } action { play "sound/interface/go.mp3" ; hide group1 ; show Strategy }} itemDef {name classcategorygroup classesstyle WINDOW_STYLE_EMPTYtype ITEM_TYPE_MULTIrect 205 203 174 24 text "Class:" descText "Describes the traits and skills of various player-selectable classes."font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 82forecolor 0.1 0.7 1 0.9visible 0 cvar ui_classnamecvarStrList{"Soldier" "1; ui_classdesc @HELP_SOLDIER""Elitetrooper" "2; ui_classdesc @HELP_ET""Hero" "3; ui_classdesc @HELP_HERO""Bounty Hunter" "4; ui_classdesc @HELP_BH""Jedi/Sith" "5; ui_classdesc @HELP_JEDI""Clonetrooper" "6; ui_classdesc @HELP_CLONE""ARC Trooper" "7; ui_classdesc @HELP_ARC""Wookiee" "8; ui_classdesc @HELP_WOOKIEE""Droideka" "9; ui_classdesc @HELP_DEKA""Super Battle Droid" "10; ui_classdesc @HELP_SBD""Mandalorian" "11; ui_classdesc @HELP_MANDO"} mouseEnter { show button_glow setitemrect button_glow 210 203 174 25}mouseExit { hide button_glow } action { play "sound/interface/go.mp3" ; exec "vstr ui_classname" }} itemDef {name classdescboxgroup classesstyle WINDOW_STYLE_EMPTYtype ITEM_TYPE_TEXTSCROLLrect 205 223 174 24 font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 82forecolor 0.1 0.7 1 0.9visible 0cvar ui_classdescautowrappedlineHeight 14 } //----------------------------------------------------------------------------------------------// TOP MENU BUTTONS//----------------------------------------------------------------------------------------------itemDef {name button_glowgroup nonestyle WINDOW_STYLE_SHADERrect 0 0 0 0background "gfx/menus/mb_buttonback"forecolor 0.1 0.7 1 0.7visible 0decoration} itemDef {name playbuttongroup nonestyle WINDOW_STYLE_EMPTYtype ITEM_TYPE_BUTTONrect 15 253 174 24 text "PLAY" descText "Start playing"font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 82forecolor 0.1 0.7 1 0.9visible 1 mouseEnter { show button_glow setitemrect button_glow 10 253 174 25}mouseExit { hide button_glow } action { play "sound/interface/go.mp3" ; close all ; open multiplayermenu }} // Big button "PLAYER PROFILE"itemDef {name profilebuttongroup nonetext @MENUS_PROFILEdescText "Change player settings"style WINDOW_STYLE_EMPTYtype ITEM_TYPE_BUTTONrect 15 292 184 24 textaligny 0font 3textscale 1textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 82forecolor 0.1 0.7 1 0.9visible 1 mouseEnter { show button_glow setitemrect button_glow 10 292 184 25}mouseExit { hide button_glow } action { play "sound/interface/go.mp3" ; close all ; open playerMenu}} // Big button "CONTROLS"itemDef {name controlsbuttongroup nonetext @MENUS_CONTROLS2descText "Configure game controls"type ITEM_TYPE_BUTTONstyle WINDOW_STYLE_EMPTYrect 15 330 170 25 font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 78backcolor 0 0 0 0forecolor 0.1 0.7 1 0.9visible 1 mouseEnter { show button_glow setitemrect button_glow 10 330 171 25}mouseExit { hide button_glow } action {play "sound/interface/go.mp3" ; close all ; open controlsMenu ;}} // Big button "SETUP"itemDef {name setupbuttongroup nonetext @MENUS_SETUPdescText "Configure game settings"type ITEM_TYPE_BUTTONstyle WINDOW_STYLE_EMPTYrect 15 369 151 24 font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 73backcolor 0 0 0 0forecolor 0.1 0.7 1 0.9visible 1 mouseEnter { show button_glow setitemrect button_glow 10 369 151 25}mouseExit { hide button_glow } action {play "sound/interface/go.mp3" ; close all ; open setup_menu}} itemDef {name helpbuttongroup nonetext "HELP/TUTORIAL"descText "Learn about classes and game mechanics."type ITEM_TYPE_BUTTONstyle WINDOW_STYLE_EMPTYrect 15 380 141 20 font 3textscale 1textaligny 0textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 73backcolor 0 0 0 0forecolor 0.1 0.7 1 0.9visible 1 mouseEnter { show button_glow setitemrect button_glow 10 380 141 21}mouseExit { hide button_glow } action {play "sound/interface/go.mp3" ; close all ; open help_menu}} //----------------------------------------------------------------------------------------------// OTHER MAIN MENU BUTTONS//---------------------------------------------------------------------------------------------- //MB CreditsitemDef {name creditsareagroup othermaintext ""type ITEM_TYPE_BUTTONstyle WINDOW_STYLE_EMPTYrect 340 385 310 80font 1backcolor 0 0 0 0forecolor 1 1 1 1visible 1 mouseEnter { play "sound/interface/empty.mp3" ; }mouseExit { play "sound/interface/empty.mp3" ; } action { play "sound/interface/go.mp3" ; close all ; open MBcreditsMenu }} itemDef {name exitgamebuttongroup nonetext @MENUS_EXITdescText "Leave the game"type ITEM_TYPE_BUTTONstyle WINDOW_STYLE_EMPTYrect 15 408 136 24 font 3textscale 1textalign ITEM_ALIGN_CENTERtextstyle 0textalignx 70textaligny 0forecolor 0.1 0.7 1 0.9visible 1 mouseEnter { show button_glow setitemrect button_glow 10 408 137 25}mouseExit { hide button_glow } action { play "sound/player/ysalimari.mp3"; close all ; open quitMenu }} }} Link to comment
therfiles Posted June 9, 2013 Share Posted June 9, 2013 Hmmmm...it looks ok to me. IDK, with all the tabs gone, its hard for me to decipher whats going on... BTW - I think I know what you are building Link to comment
Dusty Posted June 9, 2013 Author Share Posted June 9, 2013 Hmmmm...it looks ok to me. IDK, with all the tabs gone, its hard for me to decipher whats going on... BTW - I think I know what you are building And what am I building therfiles? If you thought something related to MB2 you'd be correct. Heh, I still can't figure out what's wrong.... Link to comment
therfiles Posted June 10, 2013 Share Posted June 10, 2013 An ingame tutorial??? Does your .menu file have all the regular spacings? If so, sent it to me and I'll peek at it. I can't really decipher what is going on without my precious whitespace. Link to comment
Dusty Posted June 10, 2013 Author Share Posted June 10, 2013 I dont know, I usually just adlib with the spacing, sometimes the game doesn't like my spacing though... I'll send it to you in an hour or so. Link to comment
Dusty Posted June 10, 2013 Author Share Posted June 10, 2013 Also, the game wouldn't crash for referencing strings in a .str file that don't exist yet would it? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now