PDA

View Full Version : Modding Rome.LNT



Roman_Man#3
05-03-2007, 01:10
First things first, remember to make a back up.

Rome.LNT It defines what the menu looks like. It is not labelled as a .txt file, but it is one, rest assured. Open it with notepad or another editor.

You can find it by going to your RTW directory (if you don't know where that is, why are you even trying to learn?)and going here: data/menu/

It is called Rome.LNT. Now I will give you a short break down of what each one means. If you have more in-depth questions, ask me.

Once your in it, search for this line:
<layout> You will want to mod the parts after it to get the desired effect and to not get a ctd.


<layout_width>1024</layout_width>
<layout_height>768</layout_height>
That is the first thing it says, and it defines how big the screen is, and the limit of you measurements later on. Don't change this.

the next four lines you can skip, so jump directly to this:


<lpage>main_menu
<UI piece>main_menu_rome_logo
<identifier>UIP_EMPTY_ART</identifier>
<Parameters>
<x>266</x>
<y>30</y>
<width>489</width>
<height>168</height>
</Parameters>
<object_id>rome_logo_main_menu</object_id>
</UI piece>
<UI piece>main_menu_singleplayer
<identifier>UIP_MENU_BUTTON</identifier>
<Parameters>
<x>255</x>
<y>256</y>
<width>513</width>
<height>38</height>
<menu_id>new_game</menu_id>
<UI text>UI_MAIN_MENU_SINGLE_PLAYER
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
<tool_tip_id>UI_MAIN_MENU_SINGLE_PLAYER_INFO</tool_tip_id>
</Parameters>
<object_id>empty_push_button</object_id>
</UI piece>
<UI piece>main_menu_continue
<identifier>UIP_MAIN_CONTINUE</identifier>
<Parameters>
<x>255</x>
<y>320</y>
<width>513</width>
<height>38</height>
<UI text>UI_MAIN_MENU_CONTINUE
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
<tool_tip_id>UI_MAIN_MENU_CONTINUE_INFO</tool_tip_id>
</Parameters>
<object_id>empty_push_button</object_id>
</UI piece>
<UI piece>main_menu_multiplayer
<identifier>UIP_MENU_BUTTON</identifier>
<Parameters>
<x>255</x>
<y>384</y>
<width>513</width>
<height>38</height>
<menu_id>multiplayer</menu_id>
<UI text>UI_MAIN_MENU_MULTIPLAYER
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
<tool_tip_id>UI_MAIN_MENU_MULTIPLAYER_INFO</tool_tip_id>
</Parameters>
<object_id>empty_push_button</object_id>
</UI piece>
<UI piece>main_menu_load_game
<identifier>UIP_MENU_BUTTON</identifier>
<Parameters>
<x>255</x>
<y>448</y>
<width>513</width>
<height>38</height>
<menu_id>load_game</menu_id>
<UI text>UI_MAIN_MENU_LOAD_GAME
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
<tool_tip_id>UI_MAIN_MENU_LOAD_GAME_INFO</tool_tip_id>
</Parameters>
<object_id>empty_push_button</object_id>
</UI piece>
<UI piece>Main_menu_options2
<identifier>UIP_MENU_BUTTON</identifier>
<Parameters>
<x>255</x>
<y>512</y>
<width>513</width>
<height>38</height>
<menu_id>options</menu_id>
<UI text>UI_MAIN_MENU_OPTIONS
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
<tool_tip_id>UI_MAIN_MENU_OPTIONS_INFO</tool_tip_id>
</Parameters>
<object_id>empty_push_button</object_id>
</UI piece>
<UI piece>main_menu_quit2
<identifier>UIP_QUIT_DIALOG</identifier>
<Parameters>
<x>255</x>
<y>577</y>
<width>513</width>
<height>38</height>
<UI text>UI_MAIN_MENU_QUIT
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
<tool_tip_id>UI_MAIN_MENU_QUIT_INFO</tool_tip_id>
</Parameters>
<object_id>empty_push_button</object_id>
</UI piece>
<UI piece>main_menu_info
<identifier>UIP_STATIC_TOOLTIP</identifier>
<Parameters>
<x>128</x>
<y>726</y>
<width>768</width>
<height>26</height>
<UI text>EMPTY_TEXT
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
</Parameters>
<object_id>empty_art</object_id>
</UI piece>
<UI piece>TM
<identifier>UIP_UNDEF</identifier>
<Parameters>
<x>758</x>
<y>31</y>
<width>43</width>
<height>29</height>
</Parameters>
<object_id>TM</object_id>
</UI piece>
</lpage>

Looks confusing eh?

Lets start with something smaller.


<UI piece>main_menu_singleplayer
<identifier>UIP_MENU_BUTTON</identifier>
<Parameters>
<x>255</x>
<y>256</y>
<width>513</width>
<height>38</height>
<menu_id>new_game</menu_id>
<UI text>UI_MAIN_MENU_SINGLE_PLAYER
<font_id>arial_split_CAF</font_id>
<align>centre</align>
</UI text>
<tool_tip_id>UI_MAIN_MENU_SINGLE_PLAYER_INFO</tool_tip_id>
</Parameters>
<object_id>empty_push_button</object_id>
</UI piece>

That is the code that says what the button for "singleplayer" on the main menu will look like, and where it will be. Right now, I will start with the most basic things for any modifying of this file, and will expand on it further on.


<x>255</x>
<y>256</y>
This defines where it will be located. Remember, for the Y axis, the RTW engine measures from the top-left corner, so move accordingly. Changing the numbers will move the button.


<width>513</width>
<height>38</height>

This is how wide and tall it is. making the width bigger, will increase the width, while the height will increase how tall it is.

Hope it helps, and if you have anymore questions, post here.

RM3

more research is being done, so bear with me.