SkillAgentSearch skills...

CryBarEditor

Age of Mythology Retold resource manager, BAR editor, modding tool

Install / Use

/learn @CryShana/CryBarEditor
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<div align="center"> <a href="https://github.com/CryShana/CryBarEditor"><img src="https://assets.cryshana.me/KaDz0e4q7ubO.png" /></a> </div> <div align="center"> <b>CryBarEditor</b> - AoM:Retold resource manager / BAR editor / modding tool </div>

Description

The purpose of this tool is to enable fast and easy modding of Age of Mythology Retold.

Features

Highlights

  • Read BAR archives
  • Read FMOD banks (play, view and export FMOD events)
  • Preview 3D TMM models (export to OBJ or glTF with or without materials)
  • Read Scenario(mythscn) files (export to XML and back) - currently experimental
  • Dependency Finder and Graph (easily find what other files are references in a file)
  • Pick a Root directory (usually \games folder) for fast switching between BAR and other files
  • Pick an Export root directory for fast exporting either from BAR or from Root directory
  • Supports following formats:
    • BAR (decoding)
    • XMB (decoding + encoding)
    • DDT (decoding + encoding)
    • TMM (decoding)
    • TMM.DATA (decoding)
    • TMA (decoding)
    • mythscn/TRG (decoding + encoding)
  • Rich preview for TMM models (bones, mesh groups, materials, attachments) and TMM.DATA (vertex/triangle stats)
  • Syntax highlighting for common formats (json,xml,ini,xs,...) and folding support for XML

Extras

  • Replace existing DDT image with custom image on export (params are copied) for easy texture manipulation
  • Tools for file manipulation:
    • Convert XML -> XMB
    • Convert XMB -> XML
    • Convert DDT -> TGA
    • Convert DDT -> PNG
    • Convert TMM -> OBJ (optionally with materials)
    • Convert TMM -> glTF (optionally with materials)
    • Convert image -> DDT
    • Convert mythscn -> XML
    • Convert XML -> mythscn
    • Compress with Alz4/L33t
    • Decompress file with Alz4/L33t
  • Scenario tools:
    • Scenario -> XML
    • XML -> Scenario
    • Scenario -> extract TRG
    • TRG -> XML -> XS (lossy and lossless approach)
    • XS -> XML -> TRG
  • Easily create additive mod for files that support it with right click
  • "Search everything" tool added that searches text in all files, BAR entries and their contents (for finding references)
  • Tool for converting XS trigger scripts to RM-friendly scripts for easy inclusion in random maps
  • Remembering last opened directories and files so you can easily resume where you left off

Usage

  • Load the Root directory (usually C:\Program Files (x86)\Steam\steamapps\common\Age of Mythology Retold\game)
  • Select the export directory (usually your mod folder C:\Users\[USER]\Games\Age of Mythology Retold\[YOUR_ID]\mods\local\[MOD_NAME])
  • Files in root directory will appear in 1st column, select any file to preview it
    • if selected file is .BAR, it will immediately load in 2nd column
    • you can select entries from inside .BAR file too, they will be previewed the same
  • Any file/BAR entry you wish to modify, right click and export it, for most cases you will use Export X selected (convert)
    • Relative paths are retained! This also works for exporting from Root directory as long as it contains \game in it's path

Download

For people new to GitHub - the releases are located here.

Just download the latest version .zip and extract it into a folder, run the .exe file and that will open the app.

Modding Basics

Please read Modding Basics document to get started.

I describe the Standard and Additive modding method. You should always prefer the Additive method if possible

XS scripting reference

If you are writing XS scripts, you can also checkout my personal reference I wrote here

Otherwise I recommend you check out the official documentation in game's folder.

Screenshots

Previewing XMB content

CryBarEditor_1

Previewing image

CryBarEditor_2

Previewing DDT image and (old searching)

CryBarEditor_3

Dependency graph

CryBarEditor_Graph

Exporting selected files

CryBarEditor_4

Creating DDT from selected image

CryBarEditor_5

Real-time status if file is overriden (in export directory)

CryBarEditor_6

Reading FMOD banks

CryBarEditor_7

Searching through all files (new searching experience)

CryBarEditor_8

3D Preview of TMM models

CryBarEditor_9

Advanced export

CryBarEditor_10

XML <-> XS conversion (Lossy)

CryBarEditor_11

Extra CLI tool

Not part of editor, but a separate tool download. The CLI crybar.exe implements most of the functions that the editor supports. Can be used for scripting.

CryBarEditor_12

Thanks

I wish to thank the developers of AoE3 Resource Manager, their code helped me with decoding of XMB and DDT files.

I also wish to thank @ChaosRobie and @slifer87 on Discord for their work on TMM exporting.

View on GitHub
GitHub Stars41
CategoryDevelopment
Updated1h ago
Forks0

Languages

C#

Security Score

80/100

Audited on Apr 1, 2026

No findings