Can't figure out how to use Napoleon's Minimap script

I don't know what I'm doing wrong, but I just can't get this to work. I've copied the script directly and followed the install instructions to the letter, but the minimap just doesn't show up. I have a map called Map009 in my Graphics/Minimap folder. I've even tried putting the script call commands in an event and they don't do anything when I activate it. I tried enabling it with a switch and that didn't work. I get no error messages or crashes.

These are the commands I used in the script call.
$minimap.enabled = true
$minimap.mode = :scroll


Do you have all the scripts for it?
Requires his core script and the minimap is in 3 parts.
I don't have any issues. I have the switch turned on and thats it. Map loads when I have a picture for it.
Do you have all the scripts for it?
Requires his core script and the minimap is in 3 parts.
I don't have any issues. I have the switch turned on and thats it. Map loads when I have a picture for it.
Yes, I have all three of the parts and the core script.

Today I changed the minimap name to a seperate map, and the minimap works there. All I did was change the name from Map009 to Map010. I tried this with a few other maps, and I got the same result. For some reason it doesn't want to load on map 009.
What does the second map script say on line 284?
filename = "#{FILE_PREFIX}#{eff_map_id.to_s.rjust(3, '0')}"
What does the second map script say on line 284?
filename = "#{FILE_PREFIX}#{eff_map_id.to_s.rjust(3, '0')}"
filename = "#{FILE_PREFIX}#{eff_map_id.to_s.rjust(3, '0')}" is what mine says.
Ok, so on line 270? what is in that def routine?
And in the first script what do you have in MAP_IMAGE_OVERRIDE section? Line 258
Ok, so on line 270? what is in that def routine?
And in the first script what do you have in MAP_IMAGE_OVERRIDE section? Line 258

Def routine 267 to 276 in part 2
Code:
 #-----------------------------------------------------------------------------
  # * Get Effective Map ID
  #-----------------------------------------------------------------------------
  def self.get_effective_map_id
    if MAP_IMAGE_OVERRIDE.has_key?($game_map.map_id)
      return MAP_IMAGE_OVERRIDE[$game_map.map_id]
    else
      return $game_map.map_id
    end
  end

Line 252 to 258 in part 1
Code:
  MAP_IMAGE_OVERRIDE = {
    #<map id that this applies to> => <map_id of the map image to use>
    9 => 6,
  } # << do not remove this '}'

  # ** Events on map **
  # The event comment tag value. By default this is: "<minimap>".
Yes and there you have it.
The script is fine, there were no adjustments made, but the configuration is what is wrong.
Did you read that part? Understand it?
When you are on map 9 use id 6. So on map 009 it will load Map006 graphic.
Oh, ok. So if I want map 009 to use the map 009 graphic, then I would change it to this?


Code:
  MAP_IMAGE_OVERRIDE = {
    #<map id that this applies to> => <map_id of the map image to use>
    9 => 9,
  } # << do not remove this '}'
Yes you can do that, or you can change the 9 to another number that you don't want a map on.
This section is for overriding. (like maybe if you had two maps that were the same). You could use one picture for two maps.
So now I am getting crashes based on the minimap menu part of the script. It's giving me an NoMethod error based on these lines:
Code:
  def store_player_source_rect
    $mm_icons[:player_src_rect] = $game_player.sprite.src_rect if $imported[:nap_minimap_menu]
  end
This is lines 83 to 85 in the 2nd part of the minimap script.
I don't use the map in menu in my project. But testing it on a demo project works fine.
With player sprite on or off.

Original thread: https://forums.rpgmakerweb.com/threads/cant-figure-out-how-to-use-napoleons-minimap-script.122933/