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,957
Reaction score
417
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

Pft... people think the moon landing is fake. Nonsense. The moon doesnt even exist in the first place, it's just the reflection of the earth on the surface of space.
I don't know if anyone will get my old pop culture references. Item: Empty Basket. Description: Don't worry. Yogi Bear won't try to steal it.
My second childrens book is finally uploaded and approved and available to buy! I am so happy!
I just realized I passed 1,000 likes. I'm amazed you people actually like this crap. It's no surprise you'd like my high quality content. :kaopride:
Running on a creative high right now. Expanding my Redwood tile D with doors, windows, and some other odds and ends today.

Forum statistics

Threads
95,751
Messages
931,593
Members
126,140
Latest member
RyanHerman
Top