Coder Social home page Coder Social logo

mlogwatcher's Introduction

MlogWatcher

The Mindustry Mod for developing Mindustry Logic.

Principle

This mod watches for changes to a specific .mlog file (the custom file extension which contains mlog).
When a new compilation is made, the file being watched changes, and the mode detects this and injects the file contents into the selected logic processor.

Config

Because of the principle described above, you must first select the path to the file to be watched before using it.

image

How to use it

just select the processor. that's all!
The processor injector compresses and injects code remotely into the selected processor, so you don't need to enter the canvas or anything like that.

java_jcWgh8Mx2d

if you click the block which isn't the processor, the processor will be unselected.

Demo

Mindustry_zXbYlxGUJJ.mp4

MlogJSWatchTemplate

If you are using mlogjs, I recommend using mlogJSTemplate as the development environment.
This template repository is also ready for watch mode: if you edit and save script.ts, it will automatically compile.
so if you use it with this mod, you have a complete continuous development flow!

mlogwatcher's People

Contributors

jeanjpnm avatar sharlottes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mlogwatcher's Issues

Allow updates via http requests

This is a feature request that would allow triggering the mlog watcher in a way does not require writing to the filesystem, which makes integrating it with other tools such as web-based editors (like the ones provided by mindcode, go-mlog and mlogjs) much more convenient.

The idea is making the mod setup a basic http server that can receive requests that tell it to update the mlog code on the currently selected processor (just like a write to the filesystem would).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.