UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[Tutorial] Basic Menufile Editing

broken avatar :(
Created 9 years ago
by HitmanVere
0 Members and 1 Guest are viewing this topic.
5,156 views
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
For Starters:
To make sure everything goes fine, we are going to make sure menufile is new one and not raw one.
First: Copy paste main.menu from raw/ui folder to mods/mapname/ui folder (if you don't have this folder, then create it)
Second: Rename it to something new, like hit_main.menu.
Third: Call it in mod.csv via:
Code Snippet
Plaintext
menufile,ui/hit_main.menu
Now that we have new menufile only mod-related, we can start modifying it.
HOX: Sometimes, when menufile is in mods folder, it doesn't let you save it. Just copy paste the file in desktop, do modifications, save and then put it back to the mods folder.
Also, build mod twice, when doing modifications to menufiles. Usually menufile changes don't get build in mod the first time, so second one is needed.

Removing Buttons:
Let's look up how to remove credits button as a starter. At about 1/3rd of the menufile, you will see these lines:

You can see line 474 and 475 have stuff related to credits. Comment them out, so they look like this:
Code Snippet
Plaintext
// CHOICE_BUTTON_VIS_NOHI( 8, "@MENU_CREDITS", SETUP_ACTION_CREDITS, when( !localvarBool( ui_hideBack ) && dvarInt( mis_01 ) < dvarInt( mis_01_unlock ) ); )
// CHOICE_BUTTON_VIS_NOHI( 8, "@MENU_CREDITS", SETUP_ACTION_CREDITS, when( !localvarBool( ui_hideBack ) && dvarInt( mis_01 ) >= dvarInt( mis_01_unlock ) ); )
But if you were to compile now and go in-game, you would leave a gap between Quit and Mods buttons.
What you have to do is to change the first value of Quit button. Credits uses number 8 and Quit uses number 9, so we change 9 to 8:
Code Snippet
Plaintext
CHOICE_BUTTON_VIS( 8, "@MENU_QUIT", open quit_popmenu, when( !localvarBool( ui_hideBack ) ); )
The number is basically the button slot, so the smaller the value = the more up it is.

Fixing Alien Font:
You probably will get Alien Font, when installing a font due to objectivefont not being loaded in by World At War.
To fix this, first look up For Starters-section for copying the necessary menufiles.
Go through menufiles and look for:
Code Snippet
Plaintext
UI_FONT_OBJECTIVE
Change that to:
Code Snippet
Plaintext
UI_FONT_NORMAL
After that, save and you should be done.

Adding Background:
Now, in raw/ui, there is a file called bg.inc. Take that and do 1st step.
Open the file and look for:
Code Snippet
Plaintext
background		"menu_background_coop"
Change that to your background image, for example:
Code Snippet
Plaintext
background		"hitman_menu"
Then in bg.inc file, remove these 2 lines:
Code Snippet
Plaintext
#ifdef PS3
#endif // #ifdef PS3
Then in Asset Manager, you need to convert material with power of 2 image. This images type has to be set to 2D, so that it works in menufiles.
Example:

When that is done, move the image in modname/images, tick in Launcher and add this in mod.csv:
Code Snippet
Plaintext
material,hitman_menu
Now to apply it in mainmenu. Open main.menu file we have created and look for:
Code Snippet
Plaintext
// background
#include "ui/bg.inc"
Change the bg.inc to your menufile, for example:
Code Snippet
Plaintext
#include "ui/hit_bg.inc"
Now to add the file in mod.csv, you do:
Code Snippet
Plaintext
rawfile,ui/hit_bg.inc
HOX: To have background in all pages of your menu, then you need to go in several menufiles and add that include line.
Maybe in later date I will add all the files to modify.

If done all the steps as shown, you can have menu looking like this:


Errors And How To Fix:
(!) UNRECOVERABLE ERROR: duplicate menu name 'main'
-You have menufile added in twice in mod.csv, remove the old line, since it's still calling in unmodified menufile.

More to come in later date. If you have something I should add, then ask. If I don't know how to add it, then help is appreciated :)
Thanks to Andy Whelan for testing this tutorial and getting screenshot from in-game.
broken avatar :(
×
broken avatar :(
True Blue Elite
Location: auAustralia
Date Registered: 8 February 2015
Last active: 8 months ago
Posts
688
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Still Kickin'
Signature


×
Andy Whelan's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Andy Whelan's Contact & Social LinksAndyWhelanAndyWhelan01AndyWhelan
;) Good tutorial, I can confirm it works 100%
Spoiler: click to open...
Oh DEER
Last Edit: September 12, 2015, 09:30:45 am by Andy Whelan
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Hitman's new nickname: HitmainDeer
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Are you kidding me after i spend all my time learning menus people make a menu tutorial :( anyways good tutorial havnt tried it out but looks like it would work
broken avatar :(
×
broken avatar :(
True Blue Elite
Location: auAustralia
Date Registered: 8 February 2015
Last active: 8 months ago
Posts
688
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Still Kickin'
×
Andy Whelan's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Andy Whelan's Contact & Social LinksAndyWhelanAndyWhelan01AndyWhelan
Hitman's new nickname: HitmainDeer

But I was the one that put the deer there :(
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 September 2017
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Konclan's Groups
Konclan's Contact & Social LinksAfroMelonEndazKonclanKonclan
Used this tutorial in my mapping work, thank you very much for providing useful information :D
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 18 October 2013
Last active: 2 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
gabritelos's Groups
gabritelos's Contact & Social Links
I tried but failed multiple times to put the actual bg. Am i supposed to have a textures.gdt file in the source_data? I tried to to put new asset in asset manager with the respective values show in the picture, them open my bg.dds but i failed. the backgound is just purple and green with withe squares.
At least i managed to do the first part of the tutorial thx.

 
Loading ...