B Tutorial Presentation Editing main menu

Users who are viewing this thread

Kryptea

I was making a multiplayer mod but i didnt know how to get rid of the singleplayer option so I asked around and thanks to MadVader and cmpxchg8b I found out how to do it, so I decided to make this tutorial for anyone else who needs to do something similar to what I wanted to do. :smile:

What do we need to go into to edit this?
We dont need to go into or use anything in the module system the only thing you need to go into is game_variables.txt or if your going to do it the second way go into module.ini.

game_variables.txt
Once you have game_variables.txt up search for
Code:
#main menu (initial)
and underneath that you should see
Code:
initial_tutorial_button_position_x = 0.05
initial_tutorial_button_position_y = 0.48
initial_tutorial_button_size_x = 0.185
initial_tutorial_button_size_y = 0.031
initial_tutorial_button_text_size_x = 0.022
initial_tutorial_button_text_size_y = 0.030
initial_tutorial_button_text_flags = 0x10
initial_tutorial_button_text_color = 0xFF110000
initial_tutorial_button_highlight_text_color = 0xFFFFDD00

initial_start_new_game_button_position_x = 0.05
initial_start_new_game_button_position_y = 0.44
initial_start_new_game_button_size_x = 0.185
initial_start_new_game_button_size_y = 0.031
initial_start_new_game_button_text_size_x = 0.022
initial_start_new_game_button_text_size_y = 0.030
initial_start_new_game_button_text_flags = 0x10
initial_start_new_game_button_text_color = 0xFF110000
initial_start_new_game_button_highlight_text_color = 0xFFFFDD00

initial_resume_game_button_position_x = 0.05
initial_resume_game_button_position_y = 0.40
initial_resume_game_button_size_x = 0.185
initial_resume_game_button_size_y = 0.031
initial_resume_game_button_text_size_x = 0.022
initial_resume_game_button_text_size_y = 0.030
initial_resume_game_button_text_flags = 0x10
initial_resume_game_button_text_color = 0xFF110000
initial_resume_game_button_highlight_text_color = 0xFFFFDD00

initial_multiplayer_button_position_x = 0.05
initial_multiplayer_button_position_y = 0.36
initial_multiplayer_button_size_x = 0.185
initial_multiplayer_button_size_y = 0.031
initial_multiplayer_button_text_size_x = 0.022
initial_multiplayer_button_text_size_y = 0.030
initial_multiplayer_button_text_flags = 0x10
initial_multiplayer_button_text_color = 0xFF110000
initial_multiplayer_button_highlight_text_color = 0xFFFFDD00

initial_custom_battle_button_position_x = 0.05
initial_custom_battle_button_position_y = 0.32
initial_custom_battle_button_size_x = 0.185
initial_custom_battle_button_size_y = 0.031
initial_custom_battle_button_text_size_x = 0.022
initial_custom_battle_button_text_size_y = 0.030
initial_custom_battle_button_text_flags = 0x10
initial_custom_battle_button_text_color = 0xFF110000
initial_custom_battle_button_highlight_text_color = 0xFFFFDD00

initial_options_button_position_x = 0.05
initial_options_button_position_y = 0.28
initial_options_button_size_x = 0.185
initial_options_button_size_y = 0.031
initial_options_button_text_size_x = 0.022
initial_options_button_text_size_y = 0.030
initial_options_button_text_flags = 0x10
initial_options_button_text_color = 0xFF110000
initial_options_button_highlight_text_color = 0xFFFFDD00

initial_credits_button_position_x = 0.05
initial_credits_button_position_y = 0.24
initial_credits_button_size_x = 0.185
initial_credits_button_size_y = 0.031
initial_credits_button_text_size_x = 0.022
initial_credits_button_text_size_y = 0.030
initial_credits_button_text_flags = 0x10
initial_credits_button_text_color = 0xFF110000
initial_credits_button_highlight_text_color = 0xFFFFDD00

initial_quit_button_position_x = 0.05
initial_quit_button_position_y = 0.20
initial_quit_button_size_x = 0.185
initial_quit_button_size_y = 0.025
initial_quit_button_text_size_x = 0.022
initial_quit_button_text_size_y = 0.030
initial_quit_button_text_flags = 0x10
initial_quit_button_text_color = 0xFF110000
initial_quit_button_highlight_text_color = 0xFFFFDD00

initial_game_logo_position_x = 0.045
initial_game_logo_position_y = 0.54
initial_game_logo_size_x = 0.2
initial_game_logo_size_y = 0.07

initial_version_info_position_x = 0.18
initial_version_info_position_y = 0.525
initial_version_info_text_size_x = 0.016
initial_version_info_text_size_y = 0.016
initial_version_info_text_flags = 0x200
initial_version_info_text_color = 0xFF110000

initial_module_version_info_position_x = 0.029
initial_module_version_info_position_y = 0.475
initial_module_version_info_size_x = 0.15
initial_module_version_info_size_y = 0.03
initial_module_version_info_text_size_x = 0.014
initial_module_version_info_text_size_y = 0.014
initial_module_version_info_text_flags = 0x8
initial_module_version_info_text_color = 0xFF110000
to change positions or remove stuff in the main menu screen these are the lines you want to edit.

The tutorial, start new game and resume game etc are all edited the same way so to show you I'm just going to edit the first one
Code:
initial_tutorial_button_position_x = 0.05
initial_tutorial_button_position_y = 0.48
initial_tutorial_button_size_x = 0.185
initial_tutorial_button_size_y = 0.031
initial_tutorial_button_text_size_x = 0.022
initial_tutorial_button_text_size_y = 0.030
initial_tutorial_button_text_flags = 0x10
initial_tutorial_button_text_color = 0xFF110000
initial_tutorial_button_highlight_text_color = 0xFFFFDD00
The initial_tutorial_button_position_(x/y) changes where the tutorial option in the main menu will be placed
If you want to get rid of the option change
Code:
initial_tutorial_button_size_x = 0.185
initial_tutorial_button_size_y = 0.031
initial_tutorial_button_text_size_x = 0.022
initial_tutorial_button_text_size_y = 0.030
so it looks like this
Code:
initial_tutorial_button_size_x = 0
initial_tutorial_button_size_y = 0
initial_tutorial_button_text_size_x = 0
initial_tutorial_button_text_size_y = 0
and now when you go into the game you wont have the tutorial option

module.ini.
cmpxchg8b said:
Code:
has_single_player = 0
has_tutorial = 0
Won't get rid of quick battle, though.

Hope this helps, and if theres any errors or anything that needs to be added i'll put it in
 
cwr said:
Kryptea said:
oh and can somebody move this to unoficial tutorials. thanks
You have to PM Yoshiboy to get it moved.


Yoshiboy said:
You might have noticed that this board is set to reply only. If you've written a quality tutorial which I've missed or forgotten to move over just send me a PM to a link to your topic and I'll have a read over it to make sure it's all ok and then move it over.

We will accept tutorials which are outdated or for old versions of Mount&Blade providing they still have some relevance or value but we would rather they were kept up to date (I'm guilty enough for my tutorials.)

Thanks again to everyone who has contributed, the threads are still open so you will be able to ask questions in them - just try to keep the question on the topic of the tutorial or it's likely your post will just be deleted.

- Yoshiboy
ok thank you
 
Thanks a lot for doing this. I know how to do it already, but the idea of making a tutorial simply because there isn't one already is actually really good practice. Thanks again, you have won my respect. :3
 
Jarvisimo said:
Thanks a lot for doing this. I know how to do it already, but the idea of making a tutorial simply because there isn't one already is actually really good practice. Thanks again, you have won my respect. :3
no problem :grin:
 
chazzerberg said:
Thanks for this! One more thing, where do you get the colour codes from then because I want to change the colour.

Take a look at their format:
Code:
0x[b][color=black]FF[/color][color=red]11[/color][color=green]00[/color][color=navy]00[/color][/b]
.

The
Code:
0x
preffix just indicates an hexadecimal number.

The first chunk,
Code:
[b][color=black]FF[/color][/b]
, is the amount of transparency (also called alpha), in this case FF = 255/255, fully opaque.
The second chunk,
Code:
[b][color=red]11[/color]
, is the amount of red 11 = 11/255.
The third chunk, 
Code:
[b][color=green]00[/color][/b]
, is the amount of green, 00 = 0/255.
The fourth chunk, 
Code:
[b][color=navy]00[/color][/b]
, is the amount of blue, 00 = 0/255.

You can use websites like this to visually grab hex color codes (image editing software like Photoshop, or GIMP, come with this kind of functionality too):
Code:
http://www.colorpicker.com/110000

Normally the hex color code only encompasses the RGB portion, leaving the first chunk of transparency out (
Code:
0x[b][color=red]11[/color][color=green]00[/color][color=navy]00[/color][/b]
).
So, most of the times is just a matter of appending the
Code:
[b][color=black]FF[/color][/b]
and call it a day.

That's it! Pretty easy, right?
 
Back
Top Bottom