Giter VIP home page Giter VIP logo

mudlexus's Introduction

Nasuta's Achaea Package Tools

ABANDONED

Making Mudlet packages port over to Nexus was an interesting experiment which ultimately failed because the only Lua VM I could get to run in Nexus successfully (lua.vm.js; also tried wasmoon and Fengari) doesn't handle globals truly globally -- they don't persist between calls of lua.execute(). That could be fine under controlled conditions, but most Mudlet packages probably won't work this way.

Leaving this in its current state in case anyone else wants to fork and pick up the experiment. I'll keep working on the packaging tool. Cheers!

Usage

Just run the script! (by default ./achpkg.py) Note: Currently expects Python3 to be installed.

└──╼ ./achpkg.py 

    Nasuta's Achaea Packaging Tools
    ===============================

    1. Extract a package into files and folders
    2. Compile files and folders into a package
    3. Quit

    Your choice? 1

    Enter the path to your package: examples/nexMap version 1.4.nxs

    Enter the path to store the result: nexmap

    Overwrite the target directory? (Y/n) y

Extracting (option 1) takes either a Mudlet .xml or Nexus .nxs package and extracts it into a directory of your choice with a file and folder structure mimicking what it would have in its native client.

Code is extracted into editable .js files and .json config (which you are NOT meant to edit) which can then be re-compiled (option 2) into a hopefully working .nxs package.

└──╼ tree nexmap
nexmap
├── alias19.js
├── alias19.json
├── Aliases
│   ├── alias50.js
│   ├── alias50.json
│   ├── alias76.js
│   └── alias76.json
├── Functions
│   ├── customTabs_function.js
│   ├── customTabs_function.json
│   ├── onGMCP_function.js
│   └── onGMCP_function.json
├── onLoad_function.js
├── onLoad_function.json
├── README_function.js
├── README_function.json
└── Triggers
    ├── Anti Universe Area_trigger.js
    ├── Anti Universe Area_trigger.json
    ├── Farsee
    │   ├── trigger41.js
    │   ├── trigger41.json
    │   ├── trigger59.js
    │   ├── trigger59.json
    │   ├── trigger60.js
    │   └── trigger60.json
    ├── Gags
    │   ├── trigger33.js
    │   ├── trigger33.json
    │   ├── trigger35.js
    │   ├── trigger35.json
    │   ├── trigger36.js
    │   ├── trigger36.json
    │   ├── trigger37.js
    │   ├── trigger37.json
    │   ├── trigger38.js
    │   ├── trigger38.json
    │   ├── trigger43.js
    │   ├── trigger43.json
    │   ├── trigger58.js
    │   ├── trigger58.json
    │   ├── trigger68.js
    │   └── trigger68.json
    ├── trigger40.js
    ├── trigger40.json
    ├── trigger62.js
    ├── trigger62.json
    ├── trigger65.js
    ├── trigger65.json
    ├── trigger74.json
    ├── trigger75.js
    ├── trigger75.json
    ├── Universe Tarot_trigger.js
    └── Universe Tarot_trigger.json

5 directories, 49 files

EXPERIMENTAL FEATURES

Mudlet .mpackage files are currently unsupported, but will be at some point in the near future.

For Mudlet to Nexus conversions, Lua is currently experimentally being run in a JavaScript VM(!), with a shim from me providing some very basic Mudlet stuff to get things running. We'll see how this goes...

mudlexus's People

Watchers

Megophrys Nasuta avatar

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.