Need help fixing a bug with Napoleon's Minimap

KingHazeel

Veteran
Veteran
Joined
Jul 5, 2018
Messages
125
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Here's a couple of links I found for his Master Demo if anyone needs help finding it:

http://www.mediafire.com/file/hbd8yrme95495bu/Napoleons_Master_Demo.zip/file
https://mega.nz/#!PctVjAwb!2sUL3px0CSQRIEfajYTbcv34ZTf8soWVnkMZwry5XSg

Basically this issue occurs whenever the minimap is turned off, either by script call or switch. This is the minimap while on:

https://i.imgur.com/XFq17ID.png

And turning it off initially has no issues:

https://i.imgur.com/hdlGNFh.png

However, if you pause at any point after turning the minimap off, the map will remain hidden, but your cursor sprite will pop back up:

https://i.imgur.com/SIRsxu5.png

Does anyone know what might be causing this or how it can be fixed?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
1,924
Reaction score
414
First Language
English
Primarily Uses
RMVXA
I don't how you have it configured in your game. I use the same script and using the @minimap.enabled = true
works and setting a switch works.
 

GGZiron

Veteran
Veteran
Joined
Nov 6, 2016
Messages
75
Reaction score
25
First Language
Bulgarian
Primarily Uses
RMVXA
Try with this snippet:
Code:
#Napoleon Minimap Player_Sprite fix.
#Place Under Napoleon Minimap Scripts.

module Nap
# ======================================================================
#                           Options
# ======================================================================
  RESET_CURSOR_LOCATION = false
  # For what I seen, it works better with that disabled, so the player in
  # minimap doesn't go center first, then real location, but directly to real
  # location. Still, you can set it to true, so it would work as in original
  # Minimap Script.
 
# =========================== End of Options ===========================

  class Minimap
 
    alias_method :refresh_old34, :refresh
    alias_method :reset_cursor_location_old34, :reset_cursor_location
   
    def refresh
      refresh_old34
      @player_sprite.visible = @enabled
    end
   
    #Overwrite method
    def reset_cursor_location
      reset_cursor_location_old34 if RESET_CURSOR_LOCATION
    end

  end

end
You have to put it bellow Napoleon Minimap Scripts, recomended with no other scripts in between.
Also I disable one method from the original script that first center the player on minimap, then put it on
the original position. If that cause problems, just set the value of the option I give to true.

Would like to know if it works for you, if you test it.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

being an extreme introvert with massive anxiety... I forget this is really, REALLY frustrating for people who are the exact opposite. still, wait this out and stay home...
I hope you all are keeping safe. <3 If you need a shoulder or an ear, I have two of both and am more than willing to listen & support you! Times are weird.
My dad, super frustrated by seclusion, asking me how I live like this. I shrug. "It helps to not like what is outside."
Apparently it's not just people who are hit by corona virus. My phone has set itself to English language on its own. Not that I'm complaining... :D
I got a new computer and can't find my product activation key for MV, what do I do ;-;

Forum statistics

Threads
95,443
Messages
929,182
Members
125,683
Latest member
medialrs
Top