NeXus .

Failed to load menu

8 posts in this topic

I am getting these errors after I have preached both the menufile and the menudef if I chosen just to precache the menufile it won't work as menudef is named differently.

 

n4Rr7xJ.jpg

 

Source:

 

Error: Could not load menufile "ui_mp/scriptmenus/character_menu.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_characters.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_characters2.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_sprays.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_weapons.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_weapons2.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_weapons3.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_weapons4.menu".
Error: Could not load menufile "ui_mp/scriptmenus/dr_trails.menu".
 
They are all preached as menudef so obv that these errors occur but i want to understand why and how to avoid them.
0

Share this post


Link to post
Share on other sites

add them to the mod/map csv?

Yeah but the menufile does not exist because it's a menudef in a different menufile which is already added to the csv and im not sure you can add menudefs.

 

The problem is that if i add the menudef to menus.gsc it will look for a menufile but without it added it won't work at all.

 

Thanks a lot for the fast reply tho.

0

Share this post


Link to post
Share on other sites

Yeah but the menufile does not exist because it's a menudef in a different menufile which is already added to the csv and im not sure you can add menudefs.

 

The problem is that if i add the menudef to menus.gsc it will look for a menufile but without it added it won't work at all.

 

Thanks a lot for the fast reply tho.

 

So you say you have multiple 'menuDef { ... }' in a single .menu file am I right?

0

Share this post


Link to post
Share on other sites

Well, just add this to mod.csv:

 

menufile,path/nameofthemenu.extension

 

then inside any .gsc file add:

 

prechacheMenu("the menudef "name" goes inside here");

 

 

 

Ex:

 

MenuDef

{

name "weaponsmenu"

}

 

....

 

then inside a .gsc file you would write:

 

precacheMenu("weaponsmenu");

 

 

 

 

Hope it helps :P

 

EDIT: If it works or not, I want to see that sexy menu >:D

0

Share this post


Link to post
Share on other sites

 

EDIT: If it works or not, I want to see that sexy menu > :D

I already had that all done thats the problem preaching the menudef, Although it works with the error I still want to fix.

 

A lot of other deathrun servers i check in their console seem to have the exact problem, so all and all maybe it just an error i can ignore.

 

Example GSC:

 

prechacheMenu("dr_example");

 

Console:

 

Failed to load ui_mp/scriptmenus/dr_example.menu

 

This error occurs because the dr_example is in character_stuff and trying to file a menufile.

 

Here the menus as you requested down below:

 

 

Main Menu:

JuyxjM1.jpg

 

 

Customize Menu:

I0nYTDM.jpg

 

Settings:

8pbeVYN.jpg

 

Charater:

1XXhOPG.jpg

 

0

Share this post


Link to post
Share on other sites

Use the loadmenu menu function for MenuDef's instead of trying to precache them or manually add them to the mod.csv and put them into a .txt file type. You can find examples of this used in CoD4 mod tools.

 

The errors themself don't really mean that much unless it's the main name of the menu.

0

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now