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

M2TW Mobile File Structure (Android): Difference between revisions

From TWC Wiki

No edit summary
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 2: Line 2:
File structure with notes about format types, for an M2TW installation on Android including the Kindoms DLCs.
File structure with notes about format types, for an M2TW installation on Android including the Kindoms DLCs.


All the accessible files are within either
All the accessible files are within one of these main Android folders:
* ''Internal storage\Android\'''data'''\com.feralinteractive.medieval2_android\''  
:''device/Internal storage/Android/'''data'''/com.feralinteractive.medieval2_android/''  
* ''Internal storage\Android\'''obb'''\com.feralinteractive.medieval2_android\''
:''device/Internal storage/Android/'''obb'''/com.feralinteractive.medieval2_android/''


The folder name 'data' can come up multiple times on the file paths so it is important to remember which 'data' folder you are looking at.
The folder name 'data' can come up multiple times on the file paths so it is important to remember which 'data' folder you are looking at.


= Android\'''data''' files =
Localized.pack files are extracted (and created) by the PACK tool [https://www.twcenter.net/resources/xidx-idx-packer-extractor-binary-distribution.3560/ XIDX] for dat/idx files.
 
------
= Android/'''data''' files =
The content for the DLCs are all located in:
The content for the DLCs are all located in:
      device\Internal storage\Android\'''data'''\com.feralinteractive.medieval2_android\files\feral_app_support\RemoteResources\Data
:''device/Internal storage/Android/'''data'''/com.feralinteractive.medieval2_android/files/feral_app_support/RemoteResources/Data''
which contains \localised and \mods folders.
which contains /localised and /mods folders.
==localised==
==localised==
Contains folders for the following language options:
Contains folders for the following language options:
* \cs
* /cs
* \de
* /de
* \en
* /en
* \es
* /es
* \fr
* /fr
* \hu
* /hu
* \it
* /it
* \pl
* /pl
* \ru
* /ru
Taking en (english) as an example the contents are
Taking en (english) as an example the contents are
* \en
* /en
** \americas  
** /americas  
*** \data
*** /data
**** movies and sounds .xml files, sounds .txt files
**** movies and sounds .xml files, sounds .txt files
**** \sounds \ voice.dat and voice.idx
**** /sounds / voice.dat and voice.idx
*** \packs  
*** /packs  
**** localized.pack - when upacked with xidx that contains:
**** localized.pack - when upacked with xidx the pack contains:
***** \mods\americas\data\menu\splash.tga
***** /mods/americas/data/menu/splash.tga
***** \mods\americas\data\text - .txt.strings.bin files as PC version and credits and factionintrosubtitles.txt files
***** /mods/americas/data/text - .txt.strings.bin files as PC version and credits and factionintrosubtitles.txt files
** \british_isles - contents as above but with british_isles in packed paths
** /british_isles - contents as above but with british_isles in packed paths
** \crusades - contents as above but with crusades in packed paths
** /crusades - contents as above but with crusades in packed paths
** \teutonic - contents as above but with teutonic in packed paths
** /teutonic - contents as above but with teutonic in packed paths
 
Example full path:
:''device/Internal storage/Android/data/com.feralinteractive.medieval2_android/files/feral_app_support/RemoteResources/Data/localised/en/crusades/data/sounds/voice.idx''


==mods==
==mods==
This contains the contents required for each of the DLCs, the content is '''not packed'''. The structure is very similar to that found in the PC version if you have unpacked the game files on PC.
There are folders for
* /americas
* /british_isles
* /crusades
* /teutonic
each of which contains a /data folder


= Android\'''obb''' files =
The contents of each mods/DLCname/data folder are similar to the content that can be extracted from the obb main game files. As with the PC versions, only files that are different from the main game files need to be included.
 
Example full path:
:''device/Internal storage/Android/data/com.feralinteractive.medieval2_android/files/feral_app_support/RemoteResources/Data/mods/teutonic/data/ui/pips/pip_ireland.astc''
 
At time of writing there is no known way of adding an additional folder for a user made mod and having it used by the game. The only way to add a mod is by replacing one of the DLCs and using its menu button to launch the game.
 
-------
 
= Android/'''obb''' files =
These are packs containing most of the base game files and a small part of the DLC content, they are located at:
These are packs containing most of the base game files and a small part of the DLC content, they are located at:
       device\Internal storage\Android\obb\com.feralinteractive.medieval2_android\
       device/Internal storage/Android/'''obb'''/com.feralinteractive.medieval2_android/
named with a number which can change with version:
named with a number which can change with version:
* main.*****.com.feralinteractive.medieval2_android.obb  
* main.*****.com.feralinteractive.medieval2_android.obb  
* patch.*****.com.feralinteractive.medieval2_android.obb
* patch.*****.com.feralinteractive.medieval2_android.obb
The inclusion of the DLC export_descr_unit.txt means modders currently have to modify the main.obb file by hex editing that reference out.
The inclusion of the DLC export_descr_unit.txt means modders currently have to modify the main.obb file by hex editing the reference to that file, changing one letter of the name so it is not found.


Unpacked with anton1111's unpacker and parsing tool the file contents are as detailed below. The information is provided for reference only to indicate the format and content that could be included in modded DLCs. Attempting to modify and repack the .obb is not recommended.
Unpacked with anton1111's unpacker and parsing tool the file contents are as detailed below. The information is provided for reference only to indicate the format and content that could be included in modded DLCs. Attempting to modify and repack the .obb is not recommended.


== data ==
== data ==
This is similar to the PC version of the game, but with some file format differences. The folders are listed in subsections below, with differences from PC version in bold.
This is similar to the PC version of the game, but with some additions and file format differences.  
=== folders in data ===
==== animations ====
As per PC version:
* Engine folder containing .cas and .evt files.
* pack.dat, pack.idx, skeletons.dat, skeletons.idx


==== armies ====
See '''[[M2TW Mobile File Structure (Android) - Data Folders]]''' for details of folder content.
'''Not present in PC version''' contains .cax files which appear to be .xml files for each faction giving unit selections for a custom army.


==== banners ====
See '''[[M2TW Mobile File Structure (Android) - Data Files]]''' for details of loose file content.
==== battlefield ====
==== blockset ====
==== cameras ====
==== cursors ====
==== editor ====
==== fmv ====
==== fonts ====
These fonts are in '''.ttf format'''
==== globallighting ====
==== graphics ====
==== loading screen ====
==== menu ====
==== models ====
==== models_effects ====
==== models_engine ====
==== models_landscape ====
==== models_missile ====
==== models_strat ====
==== models_terrain_blocks ====
==== new_vegetation ====
==== overlaytextures ====
==== scripts ====
==== settlements ====
==== shaders ====
==== siege_engines ====
==== sounds ====
==== terrain ====
==== text ====
==== textures ====
==== tools ====
==== ui ====
==== unit_models ====
==== unit_sprites ====
==== vegetation ====
==== world ====
 
=== files in data ===
Files are only mentioned where they differ from the PC version:
==== descr_font_db.txt ====
There are also descr_font_db_cs.txt and descr_font_db_ru.txt versions of this file.
 
Feral have included comments:
<pre>
;; FERAL - MJN 22-Jul-2021 - Add support for TrueType fonts.
;;
;; Various bits of information specified in the CUF font header have been moved
;; here. Some notes:
;;
;;  - Unlike previously "size" now specifies the height of the font's EM square
;;    in pixels (ppem) as you'd expect.
;;  - "vertical_adjust" can be used to offset the text up or down.
;;  - "hinting" controls FreeType hinting. "on" is the default, "off" disables
;;    all hinting, "auto" forces the autohinter over the native hinter.
</pre>
 
An example of the content is shown below:
<pre>
font verdana_med
{
file kingthingspetrocklight.ttf
size 27
line_height 24
ascender 18
;; Hinting can result in some odd vertical positioning.
hinting off
}
 
font feral_verdana_menu
{
file kingthingspetrocklight.ttf
size 27
line_height 23
ascender 18
descender -5
}
</pre>
 
==== feral_descr_character_hotseat.txt ====
'''Not present in PC version'''
==== feral_descr_projectile.txt ====
'''Not present in PC version'''
==== feral_descr_unit.txt ====
'''Not present in PC version'''
==== feral_export_descr_buildings.txt ====
'''Not present in PC version'''
==== feral_export_descr_buildings_hotseat.txt ====
'''Not present in PC version'''


== feral ==
== feral ==
Line 182: Line 112:
== mods ==
== mods ==
Contains folders for the DLCs:
Contains folders for the DLCs:
* americas
* /americas
* british_isles
* /british_isles
* crusades
* /crusades
* teutonic
* /teutonic
Each of those contains
Each of those contains
** data  
* /data  
*** export_unit_rebalancing.txt
** export_unit_rebalancing.txt
*** feral_descr_character_hotseat.txt
** feral_descr_character_hotseat.txt
*** feral_export_descr_buildings_hotseat.txt
** feral_export_descr_buildings_hotseat.txt
*** packagedb.txt
** packagedb.txt
 
[[Category:M2TW Mobile Modding]]

Latest revision as of 02:58, 5 January 2026

File structure with notes about format types, for an M2TW installation on Android including the Kindoms DLCs.

All the accessible files are within one of these main Android folders:

device/Internal storage/Android/data/com.feralinteractive.medieval2_android/
device/Internal storage/Android/obb/com.feralinteractive.medieval2_android/

The folder name 'data' can come up multiple times on the file paths so it is important to remember which 'data' folder you are looking at.

Localized.pack files are extracted (and created) by the PACK tool XIDX for dat/idx files.


Android/data files

The content for the DLCs are all located in:

device/Internal storage/Android/data/com.feralinteractive.medieval2_android/files/feral_app_support/RemoteResources/Data

which contains /localised and /mods folders.

localised

Contains folders for the following language options:

  • /cs
  • /de
  • /en
  • /es
  • /fr
  • /hu
  • /it
  • /pl
  • /ru

Taking en (english) as an example the contents are

  • /en
    • /americas
      • /data
        • movies and sounds .xml files, sounds .txt files
        • /sounds / voice.dat and voice.idx
      • /packs
        • localized.pack - when upacked with xidx the pack contains:
          • /mods/americas/data/menu/splash.tga
          • /mods/americas/data/text - .txt.strings.bin files as PC version and credits and factionintrosubtitles.txt files
    • /british_isles - contents as above but with british_isles in packed paths
    • /crusades - contents as above but with crusades in packed paths
    • /teutonic - contents as above but with teutonic in packed paths

Example full path:

device/Internal storage/Android/data/com.feralinteractive.medieval2_android/files/feral_app_support/RemoteResources/Data/localised/en/crusades/data/sounds/voice.idx

mods

This contains the contents required for each of the DLCs, the content is not packed. The structure is very similar to that found in the PC version if you have unpacked the game files on PC.

There are folders for

  • /americas
  • /british_isles
  • /crusades
  • /teutonic

each of which contains a /data folder

The contents of each mods/DLCname/data folder are similar to the content that can be extracted from the obb main game files. As with the PC versions, only files that are different from the main game files need to be included.

Example full path:

device/Internal storage/Android/data/com.feralinteractive.medieval2_android/files/feral_app_support/RemoteResources/Data/mods/teutonic/data/ui/pips/pip_ireland.astc

At time of writing there is no known way of adding an additional folder for a user made mod and having it used by the game. The only way to add a mod is by replacing one of the DLCs and using its menu button to launch the game.


Android/obb files

These are packs containing most of the base game files and a small part of the DLC content, they are located at:

     device/Internal storage/Android/obb/com.feralinteractive.medieval2_android/

named with a number which can change with version:

  • main.*****.com.feralinteractive.medieval2_android.obb
  • patch.*****.com.feralinteractive.medieval2_android.obb

The inclusion of the DLC export_descr_unit.txt means modders currently have to modify the main.obb file by hex editing the reference to that file, changing one letter of the name so it is not found.

Unpacked with anton1111's unpacker and parsing tool the file contents are as detailed below. The information is provided for reference only to indicate the format and content that could be included in modded DLCs. Attempting to modify and repack the .obb is not recommended.

data

This is similar to the PC version of the game, but with some additions and file format differences.

See M2TW Mobile File Structure (Android) - Data Folders for details of folder content.

See M2TW Mobile File Structure (Android) - Data Files for details of loose file content.

feral

This contains the pre game menu, notes and help contents.

localised

This is the section that provides different content depending on your language choice. It contains folders for:

  • cs
  • de
  • en
  • es
  • fr
  • hu
  • it
  • pl
  • ru

Each folder contains

  • data
    • fmv
      • event / contains videos in .webm format
      • faction / contains videos in .webm format (faction_win/lose)
  • mods
    • americas / data / export_descr_unit.txt
    • british_isles / data / export_descr_unit.txt
    • crusades / data / export_descr_unit.txt
    • teutonic / data / export_descr_unit.txt
  • packs
    • localized.pack - when unpacked using xidx this contains:
      • data
        • fonts / fonts in .cuf format
        • text / strings.bin files (as PC version) and .txt files: audiotest_regions_and_settlement_names.txt, credits.txt, date_format.txt, descr_shortcuts.txt, factionintrosubtiltes.txt, norman_prologue_regions_and_settlement_names.txt

mods

Contains folders for the DLCs:

  • /americas
  • /british_isles
  • /crusades
  • /teutonic

Each of those contains

  • /data
    • export_unit_rebalancing.txt
    • feral_descr_character_hotseat.txt
    • feral_export_descr_buildings_hotseat.txt
    • packagedb.txt
Cookies help us deliver our services. By using our services, you agree to our use of cookies.