Main Menu - need help


(avery) #1

I am trying to create a Main Menu page that will open up when the ET game is opened from the start. We have created an installation for ET that includes the correct patch (2.60b), an etkey that is generated through our generator we have created and any files that make it easier for our players to play on our servers. So we are trying to add this main menu file so players can easily click one button and it will connect them to our servers.

I have gone through all of my et files and found one main menu I have seen before and edited all of their info with their permission to add ours and make it our main menu. The problem that I am having is that it was over a year old and some of the info might be out of date. When putting this file into my etmain folder, it will not upload when I start ET and just gives me a blank basic menu that ET normally gives you. I believe there is an error in the menumacros file, but I am not sure.

I have attached a zip file of the menu including everything EXCEPT for the assets folder (it was to large). If you are needing to know what exactly are in my assets folder, just ask. I am trying to get this to be fixed, but I am not quite understanding what is wrong with it.

drcmenu2.zip (24.2 KB)

Now before you go telling me what to do and how to fix it, please remember that I am a beginner at messing with these files and still learning. Step by step processes would be fantastic. I have pakscape, powerarchiver, Notepad ++ and C++ installed, if that helps you at all… lol.

Also, before someone goes ahead and makes their post that is protesting the use of the main menu page, go ahead and please shut up. Re read my post at the top. It is for OUR players. It will not be downloaded to our server files unless our community players want it. Even so, it can be downloaded using our ET installer or from our forums page. So go on somewhere else with your protest speech! Don’t need the drama here! :cool:


(Harle) #2

For a alternative “Main Menu” you only need to edit the file “main.menu” and nothing else. Take the file out of “pak2.pk3” as base.

As you only like to have it optional DO NOT include a campaign file, else server will upload it to the clients if it is inside the etmain folder.

Your pk3 should contain this:

Folders:
ui/

Files:
ui/main.menu
ui/assets/trt_logo.tga
Not nice to replace SD logo with TRT logo :slight_smile:

Do not place a autoexec.cfg into your pk3! Player can have trouble loading their own (if existing) autoexec.cfg files.
There is anyway only NoQuarter that needs more then the standard of 56.

If you really like to set hunkmegs 128 to all clients that don’t did that before there is a much better way to.

Example Your Button: (original)
BUTTON( 6, 36, WINDOW_WIDTH-14, 18, "^3**^4DRC^3**^1Shock & Awe", .3, 14, close main ; exec "connect 66.55.159.57:27960")

Example Your Button: (hunkmegs 128)
BUTTON( 6, 36, WINDOW_WIDTH-14, 18, "^3**^4DRC^3**^1Shock & Awe", .3, 14, close main ; exec "seta com_hunkmegs 128"; exec "connect 66.55.159.57:27960")

That way all clients will have hunkmegs set to 128 as soon as they hit the button and restarted ET. Everybody with own hunkmegs setting in his autoexec.cfg will keep his value. Apply that to whatever button you like.

As filename i suggest to use:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~my_uber_menu.pk3

That will over rule all other menu files from other server (if existing).

If you like to have the hunkmegs set the way i suggested, copy & paste that over your buttons.
main.menu

Buttons //
BUTTON( 6, 36, WINDOW_WIDTH-14, 18, "^3**^4DRC^3**^1Shock & Awe", .3, 14, close main ; exec "seta com_hunkmegs 128" ; exec "connect 66.55.159.57")
 BUTTON( 6, 62, WINDOW_WIDTH-14, 18, "^3**^4DRC^3**^1silEnT Fun", .3, 14, close main ; exec "seta com_hunkmegs 128" ; exec "connect 87.106.138.234")
BUTTON( 6, 86, WINDOW_WIDTH-14, 18, "^3**^4DRC^3**^1Special Forces", .3, 14, close main ; exec "seta com_hunkmegs 128" ; exec "connect 87.106.182.242")
BUTTON( 6, 110, WINDOW_WIDTH-14, 18, "^3**^4DRC^3**^Sniper", .3, 14, close main ; exec "seta com_hunkmegs 128" ; exec "connect 87.106.142.116")
BUTTON( 6, 134, WINDOW_WIDTH-14, 18, "^3**^4DRC^3**^1JAYMOD TESTING", .3, 14, close main ; exec "seta com_hunkmegs 128" ; exec "connect 87.106.142.116:27961")
BUTTON( 6, 158, WINDOW_WIDTH-14, 18, "^2PLAY ^1ONLINE", .3, 14, close main ; exec "seta com_hunkmegs 128" ; uiScript UpdateFilter ; uiScript ServerSortDown 4 ; open playonline )
BUTTON( 6, 182, WINDOW_WIDTH-14, 18, "^2RE^1PLAYS", .3, 14, close main ; exec "seta com_hunkmegs 128"; open viewreplay )
BUTTON( 6, 206, WINDOW_WIDTH-14, 18, "^2OP^1TIONS", .3, 14, close main; exec "seta com_hunkmegs 128" ; open options )
BUTTON( 6, 230, WINDOW_WIDTH-14, 18, "^2PRO^1FILE", .3, 14, close main ; exec "seta com_hunkmegs 128" ; open profile )
BUTTON( 6, 254, WINDOW_WIDTH-14, 18, "^2CRE^1DITS", .3, 14, close main ; exec "seta com_hunkmegs 128" ; open credits_splashdamage )
BUTTON( 6, 278, WINDOW_WIDTH-14, 18, "^2EXIT ^1GAME", .3, 14, clearFocus ; exec "seta com_hunkmegs 128"; open quit ) 

(avery) #3

I guess I should have mentioned that I was wanting to have the words in the different menus (ie. server list, options, etc.) a different color, thus the reason I have the different packs for it as well. Do I add that files for those in there as well? If so, what needs to be added? I figured the menu.txt document probably should be in there… I had only changed the colors of words… so it wasn’t even that big of a change, but I can deal without that.

If I want to add a sound when someone presses a button, how would I add that to the main_menu file? I ave the .wav file, and I believe I can find a coding in another menu file that they use, but I think that will probably screw with something.

Thanks for your help so far, I will be working on this when I am not at work and able to use other programs other then word pad lol


(Harle) #4

I did not take a closer look into the other menu files. If you only have changed the colour then add them into your pk3. Menu.txt is not needed to be added as long you don’t add new menu files. Sound should be possible to add but i never used that…


(avery) #5

I uploaded the stuff I wanted into the pak2.pk3… and it didn’t work when I put it into my etmain folder. Then when typing out everything I did to realize… I forgot to make it a pk3. The menu was still a .zip… whoops! I feel stupid now. The menu looks god awful and will need some work done to it! lol


(Cambodunum) #6

… (btw) never touch pak0, pak1 or pak2
… create a custom/own one instead

greetz Cambo


(avery) #7

I made a copy of the pak2.pk3 from a ET installation I don’t use. I ended up not using any of it after all and went and tackled a custom menu.


(avery) #8

Now I don’t understand what happened. The one before works btw… I just don’t like it to much. Looks not so great… I created a new one, put more detail into it and even made it to look nicer and better to use, but it won’t work :confused:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~drcmenu.zip (50.7 KB)
Little confused what is wrong with it. Might need to check menumacro or menudef. I’m just not that computer literate to tell what is wrong with them.

Feedback is welcome and I’d really thank you for it! I’m gonna continue to look through my files and maybe some of the default pak2 files to see if there is something I need to change… ie menumacro/menudef


(ailmanki) #9

[QUOTE=avery;381334]Now I don’t understand what happened. The one before works btw… I just don’t like it to much. Looks not so great… I created a new one, put more detail into it and even made it to look nicer and better to use, but it won’t work :confused:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~drcmenu.zip (50.7 KB)
Little confused what is wrong with it. Might need to check menumacro or menudef. I’m just not that computer literate to tell what is wrong with them.

Feedback is welcome and I’d really thank you for it! I’m gonna continue to look through my files and maybe some of the default pak2 files to see if there is something I need to change… ie menumacro/menudef[/QUOTE]
Had a quick look, only checked menu.txt, there are already files defined which are not in the zip; maybe thats the error.


(avery) #10

I’ll be honest… I have no clue what I had done… but it works. Looks great too! There are minor bugs, but nothing serious. Thanks for the support!


(Harle) #11

If you did not create any new menu files (editing existing files does not matter) you don’t need to add a new menu.txt.
Only edited files have to be placed in the new .pk3 file.

Good luck.


(avery) #12

http://www.splashdamage.com/forums/showthread.php/31273-Beginner-s-Guide-to-Creating-a-Main-Menu