Mindustry Settings Processor

Select a copy of your settings.bin

Warning: I have seen some odd behavior if you select your live settings.bin and Mindustry is running

Or load a Sample

Notes:

Graphs

Production Zoomable Sunbursts

Production By Sector

Production By Type

Export Zoomable Sunbursts

Exports By Sector

Exports By Type

Production Zoomable Treemaps

Production By Sector

Production By Type

Export Zoomable Treemaps

Exports By Sector

Exports By Type

Outputs

Click here for production CSV of occupied sectors; download here
        
Click here for export CSV of occupied sectors; download here
        
Click here for raw JSON decode of occupied sectors; download here
        

License

Click here for the license
The MIT License (MIT)
Copyright (c) 2022 Lee Burton

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
            

Technical

This uses Kaitai to parse the file initially and then ubjson to parse the underlying sector info. Tree maps and sunbursts are then displayed using d3js. This was originally done in an ugly mess of Kaitai/C#/PowerShell but I figured a single html page is easier to ship about / host ;)

Click to see the Kaitai source used to parse the file
        
meta:
  id: mindustry_settings
  file-extension: bin
  endian: be
seq:
  - id: amount
    type: u4
  - id: values
    type: mindustry_value
    repeat: expr
    repeat-expr: amount

types:
  mindustry_value:
    seq:
      - id: key
        type: string_value
      - id: type
        type: u1
      - id: value
        type:
          switch-on: type
          cases:
            0: bool_value
            1: int_value
            2: long_value
            3: float_value
            4: string_value
            5: binary_value
  binary_value:
    seq:
      - id: length
        type: u4
      - id: bytes
        size: length
  bool_value:
    seq:
      - id: bool
        type: u1
  int_value:
    seq:
      - id: int
        type: u4
  long_value:
    seq:
      - id: long
        type: u8
  float_value:
    seq:
      - id: float
        type: u4
  string_value:
    seq:
      - id: strlength
        type: u2
      - id: string
        type: strz
        encoding: UTF-8
        size: strlength
    
    

The rest of the source including the generated Kaitai JS code is in this file you're looking at.

Available on github to make improvements here