MBS - Map Zoom and Galv - MV Timed Message Popups

Discussion in 'Javascript/Plugin Support' started by Acer2020, Feb 26, 2019.

  1. Acer2020

    Acer2020 Villager Member

    Messages:
    23
    Likes Received:
    20
    First Language:
    English
    Hello everyone, hope your all well. I'm having some compatibility issues with two plugins:
    MBS - Map Zoom and MV Timed Message Popups.

    Basically, the message popups work fine at normal scale. However, when I zoom into any map, the popups do not anchor to events as intended.
    Unfortunately i'm not knowledgeable enough with JS to attempt to fix it myself.:aswt:
    Any help or advice would be greatly appreciated. Thanks!

    The plugins in question are:
    https://forums.rpgmakerweb.com/index.php?threads/mbs-map-zoom.48267/
    https://galvs-scripts.com/2016/03/23/mv-timed-message-popups/

    I created a quick demo to showcase the problem. It's under 1MB:
     

    Attached Files:

    #1
  2. Acer2020

    Acer2020 Villager Member

    Messages:
    23
    Likes Received:
    20
    First Language:
    English
    Okay, made a bit of progress!

    By adding
    var scale = $gameMap.zoom;
    this.scale = new PIXI.Point(scale.x, scale.y);
    under line 442 of the Timed Message Popups plugin, the message boxes now zoom in with the screen.

    Now trying to offset the window so it lines up with the target event.

    upload_2019-2-27_22-47-59.png
     
    #2
  3. bazrat

    bazrat Veteran Veteran

    Messages:
    237
    Likes Received:
    162
    Location:
    Washington State
    First Language:
    English
    Primarily Uses:
    RMMV
    Wow thank you for posting this. These plugins are so important for my game and was giving me the same issue. Ive had some other weird issues with galvs plugins where his plugin will turn into another plugin. Message styles and timed message popups and cam control and zoom plugin do it. Its really bizarre. But man galv made some good plugins in his days!

    Also dont know if you have this issue too but when you increase font size the times pop up window doesnt wrap the text real well

    Keep posted if you find out anything else!
     
    Last edited: Feb 28, 2019
    #3
    Acer2020 likes this.
  4. Acer2020

    Acer2020 Villager Member

    Messages:
    23
    Likes Received:
    20
    First Language:
    English
    Hahaha, glad to hear i'm not the only one wanting these plugins to work together! I've never had that experience with Galv's plugins transforming into others. That does sound bizarre.

    I have, however, encountered the font size issue in the pop up window, and I have found some kind of temporary solution!

    Change line 298 of Timed Message Popups plugin from
    var h = this.fittingHeight(this._txtArray.length);
    to
    var h = this.fittingHeight(2);

    That 2 can be replaced by whichever number you need to make the window look good with your font size.
    The problem with this solution is that it changes the window size for all popups, not just the ones with big fonts. Again i'm far from a JS expert, but as I understand it the plugin extends the window size based only on the length of the message, and not on the height or size of the text.

    I'll keep posting if I come across any more solutions. Holler if you also find anything. :ohappy:
     
    #4
  5. bazrat

    bazrat Veteran Veteran

    Messages:
    237
    Likes Received:
    162
    Location:
    Washington State
    First Language:
    English
    Primarily Uses:
    RMMV
    Thats good to know, what ive been doing is if the size is too big i hit return to go to a second line and add a space, that makes a blank link underneath it, still doesnt work perfect though :/

    Another thing i would like to figure is how to get rid of the timedpop animation the window makes when it pops up. I have dialogue that happens back to back and i make it look like its on the same window(like a chat) and it would be awesome if it could just instantly pop (skip that short animation it makes) and make it look smoother
     
    #5
  6. Acer2020

    Acer2020 Villager Member

    Messages:
    23
    Likes Received:
    20
    First Language:
    English
    The opening animation can be removed my changing line 307 of the message popups plugin from:
    this.openness = 0;
    to:
    this.openness = 255;

    Same problem as before though, this will remove the opening animation for all popups.
    It's also worth noting that this doesn't remove the closing animation. However if you use the script call: Galv.Mpup.clear(); one frame before the popup window closes and immediately open a new pop up window after the script call, it will create the same effect as the absence of a closing animation.
     
    #6
  7. bazrat

    bazrat Veteran Veteran

    Messages:
    237
    Likes Received:
    162
    Location:
    Washington State
    First Language:
    English
    Primarily Uses:
    RMMV
    wow this is exactly what i needed. the opening one was the real problem because the way they overlap the closing one usually has no visual ques. duuuuude this is game changing. glad i stumbled upon this post lol :D
     
    #7
  8. Acer2020

    Acer2020 Villager Member

    Messages:
    23
    Likes Received:
    20
    First Language:
    English
    Great news! Glad I could help and look forward to seeing how you use it in your future projects!
     
    #8

Share This Page