Skip to content

sw882882/MSchemGen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSchemGen

An unfinished project about schematic generation outside Mindustry.

USAGE (Parsed JSON Data)

{
  "name": "MSchemGen",
  "description": "output of MSchemGen (example1.json)",
  "tags": ["[Generated Schematic]"],
  "width": 2,
  "height": 2,
  "blocks": [
    {
      "type": "micro-processor",
      "x": 0,
      "y": 0,
      "rotation": 0,
      "config": {
        "code": "op add a a 1\n",
        "links": [{ "x": 1, "y": 1, "name": "wall1" }]
      }
    },
    {
      "type": "micro-processor",
      "x": 0,
      "y": 1,
      "rotation": 0,
      "config": {
        "code": "code:example.mlog", //CONFIG IS NOT YET IMPLEMENTED DO NOT TRY TO USE
        "links": []
      }
    },
    {
      "type": "copper-wall",
      "x": 1,
      "y": 1,
      "rotation": 0,
      "config": 0
    }
  ]
}

USAGE (Command Line)

  • For the blueprint version:

    python blueprint/main.py <your-json-file-here>
    

    no debug:

    python blueprint/main.py <your-json-file-here> > /dev/null
    

    a file named a.msch will appear.

About

Parse Msch into human readable JSON format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%