MV MOGHUNTER LMBS System questions

Hi all, just a quick question, doe anybody have the instructions as how they were on MOGHUNTER's website years ago, I tried looking for it recently but he removed the website and all and any instructions and help is, for as I can see, removed with it... Can kinda reverse engineer most of it, but I would like to have the instructions somewhere again just to make sure I can make full use of it's possibilities. So anyone maybe made screenshots or downloaded in any other way?

Also, I want to have controller support for my game, it works with some buttons, but not all, has someone ever got it working with controller to support all MOGHUNTER LMBS input commands on the controller?

Thanks in advance! Love y'all!
he removed the website and all and any instructions and help is, for as I can see, removed with it
He put a new Web site up years ago. It should be the first result on Google.

1730388490339.png


There are downloads there for all of his MV plugins, including the LMBS. I'm unaware of any separate instructions document, but it does have a demo project.
He put a new Web site up years ago. It should be the first result on Google.

View attachment 321750

There are downloads there for all of his MV plugins, including the LMBS. I'm unaware of any separate instructions document, but it does have a demo project.
Yeah, I got that website too, but there isn't any instruction or guide like he had with his previous website. I can translate portuguese fine, and with the DEMO project i can kinda reverse engineer it sort of, but it would be nice if I could somehow get my hands on the guide he had on his website. AFAIK there were some alternative uses of LMBS described in the the guide that the LMBS demo doesn't really showcase, which helped to give me a better understanding, but alas, that's 2015-16 I am talking about. So I guess it's just lost?
depending on how it was stored on the old website, the wyback machine might work on it.
The instructions I remember from Moghunter's original website were:
  • How to format the sprites
  • Determinating hitboxes.
  • Obligatory poses.
There was nothing else as far as I remember.
As far as the full gamepad support, I can assist you in that regard.
The instructions I remember from Moghunter's original website were:
  • How to format the sprites
  • Determinating hitboxes.
  • Obligatory poses.
There was nothing else as far as I remember.
As far as the full gamepad support, I can assist you in that regard.
Yeah, that's indeed what I was looking for, I remember it being visualized a bit clearer, but I think for now, I can manage with reverse engineering the demo project 🙂

I am very interested in how you can help me get full controller support, should I PM you or.. idk haha, whatever's got your preference! 😀
@Thunder176 Give me a little time and I'll post the full scheme with pointers on how to modify it.
@Thunder176 Give me a little time and I'll post the full scheme with pointers on how to modify it.
You're amazing! Sure man, take your time, I already appreciate you for helping me as is 🙂
I'll be waiting patiently! 😀
JavaScript:
//Locate this function. BattleManager.lmbsUpdateCommand

/*
These are the gamepad keys that MV has available.
So, we're going to add the missing keys.
Input.gamepadMapper = {
    0: 'ok',        // A
    1: 'cancel',    // B
    2: 'shift',     // X
    3: 'menu',      // Y
    4: 'pageup',    // LB
    5: 'pagedown',  // RB
    12: 'up',       // D-pad up
    13: 'down',     // D-pad down
    14: 'left',     // D-pad left
    15: 'right',    // D-pad right
};

To use them, simply determine how you want the button to be pressed.
Input.isTriggered('key') means the action will be done upon the button press.
Input.isPressed('key') means the action will be done until the botton is released.
 Btw, I'm also putting here a small function to detect if a gamepad is connected and split the inputs :)
*/

Input.gamepadMapper = {
    //Gamepad 1
    0: 'ok', // A
    1: 'cancel', // B
    2: 'shift', // X
    3: 'menu', // Y
    4: 'LB', // LB
    5: 'RB', // RB
    6: 'LT', // LT
    7: 'RT', // RT
    8: 'select', //Select (Generic)
    9: 'start', //Select (Generic)
    10: 'L3', //Left Stick Press
    11: 'R3', //Right Stick Press
    12: 'up', // D-pad up
    13: 'down', // D-pad down
    14: 'left', // D-pad left
    15: 'right', // D-pad right
};
BattleManager.lmbsUpdateCommand = function() {
   
    var inputMethod = "keyboard";
    if(isGamepadConnected(0)){
        inputMethod = "gamepad";
    }else{
        inputMethod = "keyboard";
    }
    //If anyone checks the code this might sound redundant but I don't want errors :3
   
    if(inputMethod === "keyboard"){
        if ((Input.isTriggered(Moghunter.lmbsKeyMenu) && this.lmbsCanCallMenu()) {
            $gameTemp._lmbsSelectPhase[0] = true;
            $gameTemp._lmbsMenuPhase[0] = true;
            SoundManager.playCursor();
            return
        };
        if (Input.isPressed(Moghunter.lmbsKeyGuard) {this._lmbsActor.lmbsGuard()};
        if (Input.isTriggered(Moghunter.lmbsKeyAttack)) {this._lmbsActor.lmbsAttackAction()};
        if (Input.isTriggered(Moghunter.lmbsKeySkill)) {this._lmbsActor.lmbsSkillActionActor()};
        if (Input.isTriggered('up')) {
            this._lmbsActor.lmbsJump();
        } else if (Input.isPressed('down')) {
        };
        if (Input.isPressed('left')) {
            this._lmbsActor.lmbsMove(2);
        } else if (Input.isPressed('right')) {
            this._lmbsActor.lmbsMove(3);
        };
        if (Input.isPressed(Moghunter.lmbsKeyDash)) {this._lmbsActor.lmbsUpdateDash()
        } else {this._lmbsActor._lmbs_Dash[1] = false};  
        if (Input.isTriggered(Moghunter.lmbsKeyDash)) {this._lmbsActor.lmbsAirDash()};
        if (Input.isTriggered(Moghunter.lmbsKeyPrev) && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsPrevTarget(-1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
        } else if (Input.isTriggered(Moghunter.lmbsKeyNext) && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsNextTarget(1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
        };  
    }else{
        //Gamepad Inputs Start here. Just replace what's between the ''
        if ((Input.isTriggered('start') && this.lmbsCanCallMenu()) {
            $gameTemp._lmbsSelectPhase[0] = true;
            $gameTemp._lmbsMenuPhase[0] = true;
            SoundManager.playCursor();
            return
        };
            //Guard
        if (Input.isPressed('cancel') {this._lmbsActor.lmbsGuard()};
            //Normal Attack
        if (Input.isTriggered('ok')) {this._lmbsActor.lmbsAttackAction()};
            //Skills
        if (Input.isTriggered('RT')) {this._lmbsActor.lmbsSkillActionActor()};
            //Movement
        if (Input.isTriggered('up')) {
            this._lmbsActor.lmbsJump();
        } else if (Input.isPressed('down')) {
        };
        if (Input.isPressed('left')) {
            this._lmbsActor.lmbsMove(2);
        } else if (Input.isPressed('right')) {
            this._lmbsActor.lmbsMove(3);
        };
            //Dash
        if (Input.isPressed('shift') {this._lmbsActor.lmbsUpdateDash()
        } else {this._lmbsActor._lmbs_Dash[1] = false};  
            //AirDash
        if (Input.isTriggered('shift') {this._lmbsActor.lmbsAirDash()};
            //Change Playable Character (Left)
        if (Input.isTriggered('LB') && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsPrevTarget(-1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
            //Change Playable Character (Right)
        } else if (Input.isTriggered('RB') && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsNextTarget(1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
        };  
    }
    if (BattleManager._lmbsActor.lmbsIsEscaping()) {BattleManager._lmbsActor.lmbsUpdateEscape()};
       
};

function isGamepadConnected(index) {
    if (navigator.getGamepads) {
        var gamepads = navigator.getGamepads();
        if (gamepads && gamepads[index]) {
            var gamepad = gamepads[index];
            return gamepad.connected;
        }
    }
    return false;
}

Here's the code. I'm also gonna put it as a plugin, in case you don't feel comfortable modifying the plugin by yourself. Just put it after MOG_LMBS.
PD: I'm not sure if it would work as a plugin, but it should. The thing is, I've modified the LMBS so much that the basic control scheme isn't enough😅
JavaScript:
//Locate this function. BattleManager.lmbsUpdateCommand

/*
These are the gamepad keys that MV has available.
So, we're going to add the missing keys.
Input.gamepadMapper = {
    0: 'ok',        // A
    1: 'cancel',    // B
    2: 'shift',     // X
    3: 'menu',      // Y
    4: 'pageup',    // LB
    5: 'pagedown',  // RB
    12: 'up',       // D-pad up
    13: 'down',     // D-pad down
    14: 'left',     // D-pad left
    15: 'right',    // D-pad right
};

To use them, simply determine how you want the button to be pressed.
Input.isTriggered('key') means the action will be done upon the button press.
Input.isPressed('key') means the action will be done until the botton is released.
 Btw, I'm also putting here a small function to detect if a gamepad is connected and split the inputs :)
*/

Input.gamepadMapper = {
    //Gamepad 1
    0: 'ok', // A
    1: 'cancel', // B
    2: 'shift', // X
    3: 'menu', // Y
    4: 'LB', // LB
    5: 'RB', // RB
    6: 'LT', // LT
    7: 'RT', // RT
    8: 'select', //Select (Generic)
    9: 'start', //Select (Generic)
    10: 'L3', //Left Stick Press
    11: 'R3', //Right Stick Press
    12: 'up', // D-pad up
    13: 'down', // D-pad down
    14: 'left', // D-pad left
    15: 'right', // D-pad right
};
BattleManager.lmbsUpdateCommand = function() {
  
    var inputMethod = "keyboard";
    if(isGamepadConnected(0)){
        inputMethod = "gamepad";
    }else{
        inputMethod = "keyboard";
    }
    //If anyone checks the code this might sound redundant but I don't want errors :3
  
    if(inputMethod === "keyboard"){
        if ((Input.isTriggered(Moghunter.lmbsKeyMenu) && this.lmbsCanCallMenu()) {
            $gameTemp._lmbsSelectPhase[0] = true;
            $gameTemp._lmbsMenuPhase[0] = true;
            SoundManager.playCursor();
            return
        };
        if (Input.isPressed(Moghunter.lmbsKeyGuard) {this._lmbsActor.lmbsGuard()};
        if (Input.isTriggered(Moghunter.lmbsKeyAttack)) {this._lmbsActor.lmbsAttackAction()};
        if (Input.isTriggered(Moghunter.lmbsKeySkill)) {this._lmbsActor.lmbsSkillActionActor()};
        if (Input.isTriggered('up')) {
            this._lmbsActor.lmbsJump();
        } else if (Input.isPressed('down')) {
        };
        if (Input.isPressed('left')) {
            this._lmbsActor.lmbsMove(2);
        } else if (Input.isPressed('right')) {
            this._lmbsActor.lmbsMove(3);
        };
        if (Input.isPressed(Moghunter.lmbsKeyDash)) {this._lmbsActor.lmbsUpdateDash()
        } else {this._lmbsActor._lmbs_Dash[1] = false}; 
        if (Input.isTriggered(Moghunter.lmbsKeyDash)) {this._lmbsActor.lmbsAirDash()};
        if (Input.isTriggered(Moghunter.lmbsKeyPrev) && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsPrevTarget(-1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
        } else if (Input.isTriggered(Moghunter.lmbsKeyNext) && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsNextTarget(1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
        }; 
    }else{
        //Gamepad Inputs Start here. Just replace what's between the ''
        if ((Input.isTriggered('start') && this.lmbsCanCallMenu()) {
            $gameTemp._lmbsSelectPhase[0] = true;
            $gameTemp._lmbsMenuPhase[0] = true;
            SoundManager.playCursor();
            return
        };
            //Guard
        if (Input.isPressed('cancel') {this._lmbsActor.lmbsGuard()};
            //Normal Attack
        if (Input.isTriggered('ok')) {this._lmbsActor.lmbsAttackAction()};
            //Skills
        if (Input.isTriggered('RT')) {this._lmbsActor.lmbsSkillActionActor()};
            //Movement
        if (Input.isTriggered('up')) {
            this._lmbsActor.lmbsJump();
        } else if (Input.isPressed('down')) {
        };
        if (Input.isPressed('left')) {
            this._lmbsActor.lmbsMove(2);
        } else if (Input.isPressed('right')) {
            this._lmbsActor.lmbsMove(3);
        };
            //Dash
        if (Input.isPressed('shift') {this._lmbsActor.lmbsUpdateDash()
        } else {this._lmbsActor._lmbs_Dash[1] = false}; 
            //AirDash
        if (Input.isTriggered('shift') {this._lmbsActor.lmbsAirDash()};
            //Change Playable Character (Left)
        if (Input.isTriggered('LB') && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsPrevTarget(-1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
            //Change Playable Character (Right)
        } else if (Input.isTriggered('RB') && this.lmbsCanCallMenu()) {
            var act = BattleManager._lmbsActor
            BattleManager._lmbsActor = BattleManager.lmbsNextTarget(1,0,true);
            $gameTemp._lmbsPlayerCursor[0] = $gameTemp._lmbsPlayerCursor[1];
            SoundManager.playCursor();
            if (act != BattleManager._lmbsActor) {this.lmbsPlayTurnVoice()};
        }; 
    }
    if (BattleManager._lmbsActor.lmbsIsEscaping()) {BattleManager._lmbsActor.lmbsUpdateEscape()};
      
};

function isGamepadConnected(index) {
    if (navigator.getGamepads) {
        var gamepads = navigator.getGamepads();
        if (gamepads && gamepads[index]) {
            var gamepad = gamepads[index];
            return gamepad.connected;
        }
    }
    return false;
}

Here's the code. I'm also gonna put it as a plugin, in case you don't feel comfortable modifying the plugin by yourself. Just put it after MOG_LMBS.
PD: I'm not sure if it would work as a plugin, but it should. The thing is, I've modified the LMBS so much that the basic control scheme isn't enough😅

Wow, thank you so much, you really went above and beyond! I don't know how I can repay you somehow haha!
I feel bad for asking but I've been testing it now in the LMBS demo project, but it doesn't seem to work, this is probably my incompetence at work here so maybe you got a bit of a tutorial on how to use it? I have almost no JS knowledge so yeah, the incompetence is real, and I am using a Xbone controller, don't know if that matters?
Thanks anyways though, you're amazing! 😀
Ok, So, if you're still using the base LMBS I'm gonna modify it so it works. It'll take a little while.

PD: I'm assuming you don't know how to put a plugin. Is this correct?
Ok, So, if you're still using the base LMBS I'm gonna modify it so it works. It'll take a little while.

PD: I'm assuming you don't know how to put a plugin. Is this correct?
I actually use the plugin below, I don't know if that actually matters, I do have the base plugin, and I don't mind reverting back to that, having controller support is more important for me than combo availability.

I do know how to use plugins and insert them in the project and use them properly if they don't need any additional js coding to work. I can handle myself with notetags and comment tags fine, and I can kinda sometimes "read" js... It's not total gibberish to me but I don't know enough of js to know if something I do might break it or to add code to a js file, if that makes any sense haha
Alright, gonna check why it doesn't work. I'm gonna take a while. I figured you were using Fillip's combo extension a little too late. Hahah
No worries, man, you're amazing as is already, sorry I didn't clarify before, should have probably started with that 😅
Allright, here's the full fixed version. This one does work, tested and approved! Simply add it below the MOG_LMBS plugin and you're all set.

Original thread: https://forums.rpgmakerweb.com/threads/moghunter-lmbs-system-questions.172939/