Virtual Buttons and DPad

Discussion in 'JS Plugin Releases (RMMV)' started by Aloe Guvner, Apr 18, 2018.

  1. ArtikDart

    ArtikDart Dream Developer Member

    Messages:
    24
    Likes Received:
    8
    Location:
    Italia
    First Language:
    Italiano
    Primarily Uses:
    RMMV
    Yes, I already tried in an empty project, using only these 2 plugins and I get the same error, even reversing the order.
    Another curiosity, I just tried to paste the script of the scene in your plugin, inserting:

    Code:
    function Scene_PretitleMap() {
        this.initialize.apply(this, arguments);
      }
     
      Scene_PretitleMap.prototype = Object.create(Scene_Map.prototype);
      Scene_PretitleMap.prototype.constructor = Scene_PretitleMap;
     
      Scene_PretitleMap.prototype.initialize = function() {
        Scene_Map.prototype.initialize.call(this);       
        DataManager.setupNewGame();
        $gamePlayer.reserveTransfer($.MapID, 0, 0);
      }
    and I do not get any more error, it seems that the scene at least apparently is declared, only that I still do not display the keys ...
    I think that does not depend on other plugins being that I receive errors even without those, do you want the same list of my plugins?
     
    #61
  2. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,561
    Likes Received:
    978
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    @Jenova I got around to testing your issue, and I actually don't see the same behavior. My event is below, which is an event on the map that the player starts on (tested both Autorun and Parallel). For me, the controls stay hidden during the entire dialogue, and only appear at the end. My "fade duration" was set to the default of 20 frames.

    2018-11-15 22_06_22-ID_001 - Event Editor.png

    However, if the fade duration is set to lower, then it's possible you may see it pop up (because a lower number means a faster fade-in which can become noticeable). I created new plugin commands for this exact scenario, please see this comment. You can use these plugin commands to instantly hide the UI on the first command of your autorun event and then show it afterwards.

    (as a side note, don't set the fade duration to null or 0. positive integers only :) )

    @ArtikDart All of your troubleshooting was good, thank you for the effort. I have found the issue, and actually it is only due to how the HIME plugin is written, your setup is correct.

    The HIME plugin hides the variables inside a closure, so the variables cannot be accessed from outside, this includes the `Scene_PretitleMap`. In order to allow this, you must make the following edits to the HIME plugin:

    1. Replace every `$` with `TH.PreTitleEvents`
    2. Remove the line which looks like `(function ($) {` it is near line 103
    3. Remove the last line of the plugin which looks like `})(TH.PreTitleEvents);`
    I did these 3 steps and it worked fine for me afterwards.
     
    Last edited: Nov 16, 2018
    #62
  3. Jenova

    Jenova Because you are...a puppet! Veteran

    Messages:
    161
    Likes Received:
    110
    Location:
    Hawaii
    First Language:
    English
    Primarily Uses:
    RMMV
    Here is a video of what is happening:



    Here is my setup:
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    Could it be that I am testplaying the exe and not on my mobile device?

    Thanks!
     
    Last edited: Jan 23, 2019
    #63
  4. ArtikDart

    ArtikDart Dream Developer Member

    Messages:
    24
    Likes Received:
    8
    Location:
    Italia
    First Language:
    Italiano
    Primarily Uses:
    RMMV
    My friend, you were fantastic!!! I really appreciate your help and I thank you so much.
    Now it works perfectly. You were very kind to help me :)
     
    #64
  5. 4nzkiwi

    4nzkiwi Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    So far my only problem with this has been remembering to set specific scenes, and hiding in cutscenes. Is there an easier way than re-entering the plugin command after every dialog? I entered the hide command at the beginning, but it seems to reset every time there is a message box.
     
    #65
  6. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,561
    Likes Received:
    978
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    @Jenova Sorry I missed your reply! I got unsubscribed somehow from notifications on this thread.

    I can't access your images of the configuration, can you try reuploading them?

    @4nzkiwi it was a difficult design decision, because having the UI open on a message box can be ugly especially because the windowskins are somewhat transparent. So by default, the UI is hidden during dialogue and reappears after (no plugin command needed). That new plugin command comes into play if you need to hide the UI immediately as opposed to the duration set in the plugin parameters.
     
    #66
  7. 4nzkiwi

    4nzkiwi Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Oh ok! Still a really great plugin :D
     
    #67
  8. Jenova

    Jenova Because you are...a puppet! Veteran

    Messages:
    161
    Likes Received:
    110
    Location:
    Hawaii
    First Language:
    English
    Primarily Uses:
    RMMV
    I actually had the images hosted on my personal website and I moved hosts and had to make the tough decision of getting rid of Cheverato. With this being said, I did not have a physical copy, so I just uploaded what I remember doing.

    As for now, this isn't a real #1 priority for me, so its ok if you are busy or take your time looking into it. :)
     
    #68
  9. nzell717

    nzell717 Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    italiano
    Primarily Uses:
    RMMV
    hello guys, I have a problem with this plug in, I have version 1.40 of the plug in, I created the mobileUI folder with images but then I do not know how to go on

    hel me pls :)
     
    #69
  10. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,561
    Likes Received:
    978
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    @nzell717 What configuration have you done so far? (plugin parameters)
    Please show a screenshot of your issue
     
    #70
  11. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    110
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    hello, i don't know if this is an error, it is often stuck with the up button and the solution to fix it is to press it again ... every time you go to another map, it will repeat that error once again
     
    #71
    Eliaquim likes this.
  12. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,561
    Likes Received:
    978
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Someone else reported this too, so it must be a real issue. I was never able to replicate it, so can you do the following:
    1. Confirm you have the latest version of this plugin
    2. Confirm the issue happens if only this plugin is on
    3. Share a screenshot of your configuration (plugin parameters)
     
    #72
    Eliaquim likes this.
  13. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    110
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    I have two-thirds of what you said, even on iOS and Android, the same error, screen capture can't help you understand the problem better. I think you should check on a mobile device
    That problem is located in the D-pad button
     
    Last edited: Feb 18, 2019
    #73
    pedrohp3 and Eliaquim like this.
  14. pedrohp3

    pedrohp3 Warper Member

    Messages:
    2
    Likes Received:
    2
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    I'm facing the exact same issue as TenTranVN. The D-Pad often get stuck in an arrow key if I pressed it long enough.
     

    Attached Files:

    #74
    TenTranVN likes this.
  15. TenTranVN

    TenTranVN Veteran Veteran

    Messages:
    110
    Likes Received:
    16
    First Language:
    Vietnam
    Primarily Uses:
    RMMV
    There has been no news since the day I reported the error :v
     
    #75
  16. miani

    miani Veteran Veteran

    Messages:
    75
    Likes Received:
    59
    First Language:
    Portuguese
    #76
  17. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,561
    Likes Received:
    978
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    @TenTranVN @pedrohp3 I never fixed it because I wasn't able to re-create it on my side, if I can't re-create then it's very difficult to find the root cause. Do you have any suggestions for how to re-create the issue?

    Nothing in programming is random, there's always a cause, so what specific steps do you take when the issue happens?
    Like:
    1. Walk right 5 steps
    2. Hold up for 2 seconds
    3. Transfer to another map
    4. Talk to NPC
    ... steps like this, if you can provide the exact steps to re-create the issue then I should be able to find it and fix it :LZSsmile:


    @miani Maybe, but what would the analog stick actually do? RPG Maker MV by default only considers if a button is on or off, it doesn't have any function for analog.
     
    #77
    pedrohp3 likes this.
  18. miani

    miani Veteran Veteran

    Messages:
    75
    Likes Received:
    59
    First Language:
    Portuguese
    I think it would act like a "fake" analog, when it's in the diagonal it's the same that if you're pressing 2 keyboard arrows at the same time. Simulating 8 directions.
     

    Attached Files:

    #78
    TenTranVN likes this.
  19. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,561
    Likes Received:
    978
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    @miani It already works like that, here's the information from the help section in case you didn't see it:

     
    #79
  20. Eliaquim

    Eliaquim Raze: The Rakuen Zero's Guardian! Veteran

    Messages:
    671
    Likes Received:
    234
    Location:
    Brazil - Rio de Janeiro
    First Language:
    Portuguese - Br
    Primarily Uses:
    RMMV
    Hi @Aloe Guvner
    Thinking about the issue, i uploaded an APK for you to see the problem.
    As soon as the game start, you only have to enter in the door above and out, and repeat the process.
    You will see that the player will keep going up. When you press other directions, they will return Up again. It only stops when you press UP again.
    Same thing when you exit the room, but instead going Up, it will going down.
    https://www.dropbox.com/s/po6ma59tui9r7nf/Aloe Issue.apk?dl=0

    Also, i have been thinking if you can implement two things:
    - Change the opacity of the buttons image inside the game;
    - Add an animation to the button when it is pressed (it can be a dark or light flash).
    Like this video for example:
     
    #80
    pedrohp3, TenTranVN and Aloe Guvner like this.

Share This Page