Skip to content
/ mxdict Public

Convert a No Man's Sky MXML file to a working Python dictionary

Notifications You must be signed in to change notification settings

roie-r/mxdict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MXDICT

A tool for converting MXML files - the No Man's Sky game data file format, generated by MBINCompiler - to a working Python Dictionary.

Example:

{
    "template": "cGcRewardTable",
	"SpecialRewardTable": {
        "meta": {"name": "SpecialRewardTable"},
        "R_SWIT_SHIP01": {
            "meta": {
                "name": "SpecialRewardTable",
                "value": "GcGenericRewardTableEntry",
                "_id": "R_SWIT_SHIP01"
            },
            "Id": "R_SWIT_SHIP01",
            "List": {
                "meta": {"name": "List", "value": "GcRewardTableItemList"},
                "RewardChoice": "GiveAll",
                "OverrideZeroSeed": "false",
                "UseInventoryChoiceOverride": "false",
                "IncrementStat": "",
                "List": {
                    "meta": {"name": "List"},
                    "0": {
                        "meta": {
                            "name": "List",
                            "value": "GcRewardTableItem",
                            "_index": "0"
                        },
                        "PercentageChance": "100.000000",
                        "LabelID": "",
                        "Reward": {
                            "meta": {
                                "name": "Reward",
                                "value": "GcRewardSpecificShip"
                            },
                            "GcRewardSpecificShip": {
                                "meta": {"name": "GcRewardSpecificShip"},
                                "0": {
                                    "meta": {
                                        "name": "ShipResource",
                                        "value": "GcResourceElement"
                                    },
                                    "Filename": "MODELS/COMMON/SPACECRAFT/FIGHTERS/FIGHTERSPECIALSWITCH.SCENE.MBIN",
                                    "ResHandle": {
                                        "meta": {
                                            "name": "ResHandle",
                                            "value": "GcResource"
                                        },
                                        "ResourceID": "0"
                                    },
                                    "Seed": "1",
                                    "ProceduralTexture": {
                                        "meta": {
                                            "name": "ProceduralTexture",
                                            "value": "TkProceduralTextureChosenOptionList"
                                        },
                                        "Samplers": null
                                    },
                                    "AltId": ""
                                },
                                "1": {
                                    "meta": {
                                        "name": "Customisation",
                                        "value": "GcCharacterCustomisationData"
                                    },
                                    "DescriptorGroups": null,
                                    "PaletteID": "",
                                    "Colours": null,
                                    "TextureOptions": null,
                                    "BoneScales": null,
                                    "Scale": "1.000000"
                                },
                                "2": {
                                    "meta": {
                                        "name": "ShipLayout",
                                        "value": "GcInventoryLayout"
                                    },
                                    "Slots": "28",
                                    "Seed": "1",
                                    "Level": "1"
                                },
                                "3": {
                                    "meta": {
                                        "name": "ShipInventory",
                                        "value": "GcInventoryContainer"
                                    },
                                    "Slots": {
                                        "meta": {"name": "Slots"},
                                        "LAUNCHER": {
                                            "meta": {
                                                "name": "Slots",
                                                "value": "GcInventoryElement",
                                                "_id": "LAUNCHER"
                                            },
                                            "Type": {
                                                "meta": {
                                                    "name": "Type",
                                                    "value": "GcInventoryType"
                                                },
                                                "InventoryType": "Technology"
                                            },
                                            "Id": "LAUNCHER",
                                            "Amount": "200",
                                            "MaxAmount": "200",
                                            "DamageFactor": "0.000000",
                                            "FullyInstalled": "true",
                                            "Index": {
                                                "meta": {
                                                    "name": "Index",
                                                    "value": "GcInventoryIndex"
                                                },
                                                "X": "-1",
                                                "Y": "-1"
                                            }
                                        }
                                    },
                                    "ValidSlotIndices": null,
                                    "Class": {
                                        "meta": {
                                            "name": "Class",
                                            "value": "GcInventoryClass"
                                        },
                                        "InventoryClass": "S"
                                    },
                                    "StackSizeGroup": {
                                        "meta": {
                                            "name": "StackSizeGroup",
                                            "value": "GcInventoryStackSizeGroup"
                                        },
                                        "InventoryStackSizeGroup": "Default"
                                    },
                                    "BaseStatValues": null,
                                    "SpecialSlots": null,
                                    "Width": "0",
                                    "Height": "0",
                                    "IsCool": "false",
                                    "Name": "",
                                    "Version": "0"
                                },
                                "CostAmount": "0",
                                "5": {
                                    "meta": {
                                        "name": "CostCurrency",
                                        "value": "GcCurrency"
                                    },
                                    "Currency": "Units"
                                },
                                "6": {
                                    "meta": {
                                        "name": "ShipType",
                                        "value": "GcSpaceshipClasses"
                                    },
                                    "ShipClass": "Fighter"
                                },
                                "UseOverrideSizeType": "false",
                                "8": {
                                    "meta": {
                                        "name": "OverrideSizeType",
                                        "value": "GcInventoryLayoutSizeType"
                                    },
                                    "SizeType": "SciSmall"
                                },
                                "NameOverride": "UI_SWIT_SHIP_01_NAME_L",
                                "IsGift": "true",
                                "IsRewardShip": "true",
                                "FormatAsSeasonal": "false",
                                "13": {
                                    "meta": {
                                        "name": "ModelViewOverride",
                                        "value": "GcModelViews"
                                    },
                                    "ModelViews": "None"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

About

Convert a No Man's Sky MXML file to a working Python dictionary

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages