YesNoOk
avatar

[RELEASE] MEMAE: MUGEN Extraction Machine and Executor (Read 2580 times)

Started by B_E_P_I_S_M_A_N, October 12, 2017, 02:42:31 am
Share this topic:
[RELEASE] MEMAE: MUGEN Extraction Machine and Executor
#1  October 12, 2017, 02:42:31 am
  • *
  • oh my god
Mugen Fighters Guild | GBATemp


NOTE:  I'm still relatively new to this forum.  If you are a moderator and believe this thread should be moved elsewhere, feel free to do so, though I would appreciate it if informed.

What is this?
The MUGEN Extraction Machine and Executor is a short Python script that extracts all characters/stages in a directory to their respective MUGEN folders, updates the select.def file, then runs MUGEN.  I made it because I was tired of having to extract assets and edit the select.def file by hand, and figured the process could be better automated using a scripting language like Python.

How do I use this?
You will need Python 3 installed.  Python 2 won't work.

Clone the repository (using "git clone https://github.com/BEPISMAN2/MEMAE.git", or just download it as a zip and extract it).  Make a folder called "install", and in that folder, create two more folders, "chars" and "stages".  More on these later.

Edit the config.json.  You will see something along the lines of this:
Code:
{
    "mugen-install" : "path/to/your/mugen/install",
    "empty-space" : "randomselect"
}

Replace "path/to/your/mugen/install" with, well, the path to your MUGEN install (excluding the .exe).  Be sure to replace all backward-slashes ("\") with double-backward-slashes ("\\"), or else the script may turn up errors.  Replace "randomselect" with whatever keyword your select.def file uses to denote an empty/vacant slot in the character select screen.  Save these changes to config.json.

Once the configuration is set up, whenever you want to install characters and/or stages, first extract them to the appropriate folders. You will put your character files in chars (make sure characters are separated into separate folders or zip files), and your stage files in "stages" (you can keep them organized as you like for this folder).

Once that's done, open up a Command Prompt/PowerShell, navigate to the directory where you put MEMAE, then run:
Code:
python .\memae.py

This will automatically move these files to your MUGEN install.  Once the installation is done, MEMAE will run MUGEN for you.

Per-Character Configuration
MEMAE can also be useful for character creators.  By creating a memae.json file in a character's directory, one can edit the stage, theme, and order of the character when it's being extracted by MEMAE.

Example:
Code:
{
    "line" : "kfm, randomselect, order=3"
}

Bugs?
If you encounter bugs in the program, feel free to create an issue on GitHub, or post about it either here on the MFG or on the GBATemp thread.

Anyways, hope y'all enjoy~
Re: [RELEASE] MEMAE: MUGEN Extraction Machine and Executor
#2  October 15, 2017, 11:24:19 am
  • *
  • = +...To This Union a Sun was Born...+ =
    • USA
Haven't tried it yet but this is potentially game changing.  Don't know why this isn't receiving more attention. I'll be back to give feedback.

Edit: Read on the github that you may update it to read from a cloud or online based storage. Is that possible? If so, I'm willing to pay you money if you could achieve this.
Lover of beautiful women, fighting games and potstickers







92% of people have Hate rap Solely for what they see on BET and MTV. If your part of the 8% who
defends real Hip-hop put this in your signature.
Last Edit: October 16, 2017, 10:16:01 am by Zatoichi 03
Re: [RELEASE] MEMAE: MUGEN Extraction Machine and Executor
#3  November 07, 2017, 07:00:54 pm
  • *
  • oh my god
Haven't tried it yet but this is potentially game changing.  Don't know why this isn't receiving more attention. I'll be back to give feedback.

Edit: Read on the github that you may update it to read from a cloud or online based storage. Is that possible? If so, I'm willing to pay you money if you could achieve this.

Gah, sorry for being 22 days late to respond!  I'm not as active as I should be on this, or in general.

Anyways, some sites like Dropbox and MEGA have Python libraries which you can use to manipulate files and such.  It would require the user to make an account on said services and apply for development permissions, which may be a bit much, but it would allow for easy file downloading from these sites.
Re: [RELEASE] MEMAE: MUGEN Extraction Machine and Executor
#4  November 07, 2017, 07:24:08 pm
  • avatar
  • ***
  • ̢̻̮̫̬̹̞̼̲̪̜̭͇̲͒ͪ̌ͬ̒̄̔̐͘͟ͅ ̢̋ͬ̓͗̏̇̌̑͐ͤ͗̔̊̕͏̴̣͎̟͈̬͚
    • Monaco
u no make a video how it works?
http://signavatar.com/32255_s.gif

please visit my request thread. here
bad grammar is art
Re: [RELEASE] MEMAE: MUGEN Extraction Machine and Executor
#5  November 07, 2017, 07:41:23 pm
  • *
  • oh my god