Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.
 Actions

Rome.LNT: Difference between revisions

From TWC Wiki

m categories
mNo edit summary
Line 86: Line 86:


[[Category:Modding]]
[[Category:Modding]]
[[Category:RTWModding]]
[[Category:RTW Modding]]

Revision as of 15:54, 9 September 2007

WIP article currently based on research on RTW/BI only, please add information on M2TW and remove this note

Rome.LNT is used to edit the main menu and subsequent pages of RTW and M2TW. It can be used to change the location of text, add new text and images, create new pages etc; it will also allow you to remove text and images as well.

Examples of various pieces of code:

<texture>textures\FE_texture1.tga
 <path>textures</path>
 <region>rome_logo_main_menu
   <left>0</left>
   <top>36</top>
   <right>489</right>
   <bottom>204</bottom>
 </region>
 <region>gold_bar
   <left>0</left>
   <top>206</top>
   <right>348</right>
   <bottom>211</bottom>
 </region>
 <region>arrow_continue
   <left>180</left>
   <top>213</top>
   <right>237</right>
   <bottom>246</bottom>
 </region>

and:

<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>

The trouble is, what does it all mean?


Deciphering the Code

We will look at what different pieces of code are, and what they might reference to. Note:Each description will be for the code above it.

<texture>textures\FE_texture1.tga

This line references the TGA file located in data/menu/textures.

 <path>textures</path>
 <region>rome_logo_main_menu
   <left>0</left>
   <top>36</top>
   <right>489</right>
   <bottom>204</bottom>
 </region>
 <region>gold_bar
   <left>0</left>
   <top>206</top>
   <right>348</right>
   <bottom>211</bottom>
 </region>
 <region>arrow_continue
   <left>180</left>
   <top>213</top>
   <right>237</right>
   <bottom>246</bottom>
 </region>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.