Skip to content

A tool for converting MXML - the No Man's Sky game data format - to a lua table

Notifications You must be signed in to change notification settings

roie-r/mxml_2_lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MXML 2 LUA

A tool for converting MXML files - the No Man's Sky game data file format, generated by MBINCompiler - to a lua table and back. The tool handles full files or specific sections. It can load the data to memory directly or write it to a text file as a ready-to-use lua script.

mxml-as-lua table format

Every section in its own table, and each section has a meta table containing the attributes of the mxml class or list. Using these rules, the following describes a string class section:

{
    meta = {name='ZoomLevels', value='GcZoomData'},
    ZoomType = 'Mid',
    EffectStrength = 1.0,
    MoveSpeed = 10.0,
    FoV = 40.0,
    MinScanDistance = 5.0,
    MaxScanDistance = 70.0
}

An ordered list of values just stores them in order:

{
    meta = {name='LodDistances'},
    0,
    50,
    80,
    150,
    500
}

An ordered list of named values stored each key-and-value in a separate table:

{
    meta = {name='Reward', value='GcRewardSalvageShip'},
    GcRewardSalvageShip = {
        meta = {name='GcRewardSalvageShip'},
        RewardShipParts = true,
        SpecificCustomisationSlotIDs = {
            meta = {name='SpecificCustomisationSlotIDs'},
            {Freighter = ''},
            {Dropship = 'DROPSHIP_WINGS'},
            {Fighter = 'FIGHTER_WINGS'},
            {Scientific = 'SCI_L_WING'},
            {Shuttle = 'SHUTTLE_WING'},
            {PlayerFreighter = ''},
            {Royal = ''},
            {Alien = ''},
            {Sail = 'SAIL_WINGS'},
            {Robot = ''}
        }
    }
}

This format can describe any MXML data.

About

A tool for converting MXML - the No Man's Sky game data format - to a lua table

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages