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,875
Reaction score
410
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

now I need to determine, how MV determines if an auto tile is complete or not.
Edit:From what I can tell it uses Autotile kinds to do that.
Finished with the ground work for my class system, using Ellye's Class Change Equipment and Yanfly's Class Change Core plugins to implement an equip based subclass feature!
Hi people! I was wondering... Here in Brazil, we have a whats app group for we talk about rpg maker and our projects. A more informal way for we meet each other. Is there any whats app group out there? :)
Hi there im new to this making thing is there any sources you could recomend for teaching myself, on where to get started.
Ksi
Streaming the Valentine games from the RMN Valentiny event! Drop by and say hi!

Forum statistics

Threads
94,279
Messages
919,615
Members
124,009
Latest member
1gnus
Top