Author Topic: Join Server (Main menu modification)  (Read 1393 times)

Offline 4peterjan4

  • Rank: Private
  • *
  • Posts: 505
    • http://www.specialforces-clan.com
Join Server (Main menu modification)
« on: July 07, 2010, 01:16:21 pm »
Hello,

I am going to explain how you can add an button into your main menu so you can easy let people join your server.

This is an raw file modification!

So you need the raw files of the mod you are using.

Step 1 - Go to your folder where your call of duty 4 raw files are located.

Step 2 - Find the folder ui_mp and copy the file main.menu located in there.

Step 3 - Paste the file in your mods raw folder. (For X4 its for the example : ff/ui_mp)

Step 4 - Open the file main.menu you just placed in your mods raw folder!

Step 5 - Go to line 111 and normally you should see this.

Code: [Select]
//CHOICE_BUTTON_VIS( 2, "@MENU_JOIN_GAME", open join_game_popup;, when( !localvarBool( ui_hideBack ) ) ) (Remove that line)

Step 6  - Now go to line 112 and you would find the same line

Code: [Select]
CHOICE_BUTTON_VIS( 2, "@MENU_JOIN_GAME", open pc_join_unranked;, when( !localvarBool( ui_hideBack ) ) )
Just make it like this

Code: [Select]
//CHOICE_BUTTON_VIS( 2, "@MENU_JOIN_GAME", open pc_join_unranked;, when( !localvarBool( ui_hideBack ) ) )
Step 7 - Now just put an enter between line 112 - 113 and add the following code.

Code: [Select]
CHOICE_BUTTON_VIS( 2, "@Join Our Server", exec "connect yourip:port";, when( !localvarbool( ui_hideBack ) ) )
Step 8 - Open your mod.csv file (In the X4 mod its located in the ff folder)

Add this line to the mod.csv file

Code: [Select]
menufile,ui_mp/main.menu
This is the result you should get. (This one i did for another clan)



If you have any questions just give an reply..

I hope you enjoyed this tutorial.

Greetings PhoeniX

Offline 4peterjan4

  • Rank: Private
  • *
  • Posts: 505
    • http://www.specialforces-clan.com
Re: Join Server (Main menu modification)
« Reply #1 on: July 13, 2010, 10:01:18 am »
For those who want to do this on the easy way.

Just download the file below and read the instructions! (Read Me.txt)

Download Here

Offline 105HolyMoly

  • Rank: Private
  • *
  • Posts: 188
    • http://holymolymods.com
Re: Join Server (Main menu modification)
« Reply #2 on: July 13, 2010, 05:44:36 pm »
:D Excellent tut!