UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: DeletedUser on August 01, 2015, 10:30:55 pm

Title: menu file cant be loaded
Post by: DeletedUser on August 01, 2015, 10:30:55 pm
i have my menu file in root -> raw -> ui -> scriptmenus -> wardog_pregame.menu and i also have menufile,ui/scriptmenus/wardog_pregame.menu in my mod.csv but yet i still get menu file could not be loaded in game anyone know why

(i am precaching the menu and using OpenMenuNoMouse to open it)

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi.gyazo.com%2F720e9284d83b072b5b5c295293f3db8c.png&hash=feceee6d1898c33faf1b6229bc63623619961b34)

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi.gyazo.com%2F100e045871c98c61caebf24e10649643.png&hash=a5fbb759d7796e0dd58c0736221e6c7fb2d506d9)

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi.gyazo.com%2Fb7ebf4b445d82ec91e076cd70a642acf.png&hash=160333275a583f5b92079c19c6fcd4f430514f33)

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi.gyazo.com%2F38829d55ab936c014321a750055c65bc.png&hash=87db8508b8b080beb6743ee062c20cf9aa93ce01)

Code Snippet
My Menu
#include "ui/menudef.h"

{
menuDef
{
name "wardog_pregame"
rect -200 -125 400 115 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
focuscolor COLOR_FOCUSED
style WINDOW_STYLE_SHADER
background "white"
forecolor 0 0 0 .5
border WINDOW_BORDER_HORZ
borderSize 1.5
bordercolor 0 0.54 1 0.8
blurWorld 2.0
visible 1

onEsc
{
close self;
}
onClose
{
}
onOpen
{
hide buttonsbg;
}
}
}
Title: Re: menu file cant be loaded
Post by: ProGamerzFTW on August 02, 2015, 12:44:34 am
in your mod.csv, put a space between // and Menus aka from this

Code Snippet
Plaintext
//Menus

to

Code Snippet
Plaintext
// Menus

There is a bug if you don't have a space there, it ignores the next line.
Title: Re: menu file cant be loaded
Post by: DeletedUser on August 02, 2015, 12:48:34 am
in your mod.csv, put a space between // and Menus aka from this

Code Snippet
Plaintext
//Menus

to

Code Snippet
Plaintext
// Menus

There is a bug if you don't have a space there, it ignores the next line.
i got told this but didn't believe it, but it turns out its true the bug does exist now my menu works thanks so much
Title: Re: menu file cant be loaded
Post by: Harry Bo21 on August 02, 2015, 12:58:39 am
Yea its a real thing, not sure why though ( assuming due to it being csv, therefore not using ; - endlines )