GithubHelp home page GithubHelp logo

demuddler's Introduction

DeMuddler Project

Welcome to the DeMuddler Project! This tool is designed as a companion to the existing Muddler project. While Muddler compiles a collection of JSON files and a specific folder structure into a single .mpackage file, DeMuddler does the reverse. It takes an .mpackage file and extracts its contents to create a Muddler project structure.

Installation (pre-compiled binaries)

For pre-compiled binaries, please see the Releases section.

Installation (building the project)

For those interested in building DeMuddler themselves.

Getting Started

Before you begin, ensure you have Go (Golang) installed on your system. If you don't have Go installed, you can download it from the official Go website.

  • Clone the Repository: To get started, clone this repository to your local machine. You can do this by running the following command in your terminal or command prompt:
git clone https://github.com/Edru2/DeMuddler/
  • Build the Project: Navigate to the directory where you cloned the repository. Once you are in the project's root directory, compile the project by running:
go build .
  • This command will compile the source code into an executable file, which you will find in the same directory.

Usage

To use DeMuddler, simply use the command line interface. Here's the basic usage:

de-muddler -f [filename]

Replace [filename] with the name of your .mpackage file. For example, if your file is named example.mpackage, you would use:

de-muddler -f example.mpackage

This command will process the specified file using DeMuddler.

Contributing and Issues

This early version of DeMuddler might have bugs or issues. Your feedback is crucial. If you notice anything or have improvement ideas, please share them in the Issues section. All input is welcome!

Additional Notes for Beginners

  • What is Go (Golang)? Go, also known as Golang, is an open-source programming language that makes it easy to build simple, reliable, and efficient software. It's a great language for beginners and experienced developers alike.

  • What are .mpackage files? .mpackage files are specialized packages used within the Mudlet client, a popular platform for MUD (Multi-User Dungeon) gaming. These files can be created directly in Mudlet or through the Muddler tool. Normally, an .mpackage file is a bundle containing scripts, assets, and other resources crucial for enhancing the Mudlet gaming experience. DeMuddler is tailored to interact with these .mpackage files, enabling users to extract and reconstruct a project structure that can be further used with Muddler.

  • Need Help? If you have questions about using DeMuddler or need assistance with anything related to Muddler and DeMuddler, the Mudlet community is a great resource. Known for its welcoming and supportive nature, the community can provide valuable insights and help. For specific support and to engage with fellow users, join the Mudlet Discord server at Mudlet Discord.

demuddler's People

Contributors

edru2 avatar rparet avatar

Stargazers

Michael Programs avatar Daniel McCarney avatar Chris McGee avatar

Watchers

 avatar

Forkers

rparet

demuddler's Issues

nested folders not being demuddled

So for not very good reasons I have a nested structure in my scripts like
paulWalker (folder)
-> paulWalker (no folder icon but has child script object)
-> walker (actual script here)
demudler doesn't see the (grand?) child script in this situation.

The package exporter handles it fine, so this appears to be a valid mudlet object so possibly of interest to handle.
I'm probably just going to remove the extra level of nesting so this is mostly to document the unhandled corner case.

Color trigger format not what muddler expects

Was helping someone troubleshoot a demuddled package this evening and discovered that the color triggers are having their patterns written out as, for example, "FG8BG2" but muddler expects it as "8,2"

As it stands currently this causes muddler to fail while parsing those triggers as it splits on the , and attempts to read index 0 and 1 for the fg and bg respectively, but index 1 is out of bounds when you split FG8BG2 on ,

I'm considering adding support for the second style to muddler but decided I should file an issue on it either way in the meantime.

Lua code on script folders not included

Processed the StickMUD UI through DeMuddler and found the code on the script folders was not included.

Here is a sample of where that code lived.
Screenshot 2024-06-30 at 11 09 27 AM

Nice job on DeMuddler!

-Tamarindo@StickMUD

Reorder the json

Triggers are demuddled and the json puts the name at the top of the trigger; However, for keys, aliases, scripts and timers, the name is not at the top of the list. Placing it at the top would make it easier to find the correct block of code.

Sample trigger demuddle

              "name": "lowSP",
              "isActive": "yes",
              "isFolder": "no",
              "multiline": "no",
              "multilineDelta": "0",
              "matchall": "no",

Sample alias demuddle

       {
              "isActive": "yes",
              "isFolder": "no",
              "name": "aaCheckStatus",
              "regex": "^aa$",
              "script": ""
       },

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.