Napoleon's Minimap

Okay, new problem.

I have a dungeon in which I do not use a minimap.

When I encounter a battle in this dungeon, this is the message I receive:

Script 'Nap 3/4| Minimap' line 839: ArgumentError occurred.

wrong number of arguments (1 for 0)

Something is happening when the random battle starts that causes the crash...

Any ideas?
You're right. You can fix it by:

Remove (true)

$minimap.dispose(true) if Nap::Minimap::HIDE_BEFORE_BATTLE_TRANSITIONto

$minimap.dispose if Nap::Minimap::HIDE_BEFORE_BATTLE_TRANSITIONOr just by downloading the new version. 1.11b
Thanks Nap,

You've been quite helpful in this process so far and it means a lot 🙂

-Mike
Excuse me when i open the menu of minimap this error happens  ;_;

Script'  + Nap Minimap Menu' Line 382: NoMethodError ocurred.

undefined method `clamp´ for 1259.0:Float

also sometimes this 

Script'  + Nap Minimap Menu' Line 382: NoMethodError ocurred.

undefined method `clamp´ for 4267:FixNum
Add these 2 methods above the miniscript (add it to a new script)

class Fixnum def clamp(min, max) if self == nil then nil end if (self < min) then min elsif self > max then max else self end endendclass Float  def clamp(min, max)    if self == nil then nil end       if (self < min) then min    elsif self > max then max    else self    end         endendAlternatively you can add my core script. I will add it to the next version so you don't have to use my core script. But a larger version is underway anyway that will introduce quiet some improvements.
Updated to version 1.2

Special thanks To Breaking Owl/Lemony for this version and to Duqueelmagoblanco for reporting 3 issues.

This version contains several bug fixes and performance improvements. If you have an older version then I highly recommend that you update to this version.

And as usual please keep informing me of any (new) bugs that may arise.

Update 1.2a:

Fixed 2 crashes from version 1.2 that were reported by Duqueelmagoblanco.

Update 1.2b:

Fixed a crash when loading a savegame.

Update 1.2c:

Fixed ANOTHER crash when loading a savegame.

Update 1.2d:

Fixed a crash when an event's page was being setup when the $minimap was nil.
My browser (Google Chrome) says the download is malware.
Wouldn't be the first time Chrome comes with such nonsense. Just scan it with a real antivirus after downloading. Chrome is like the old Internet Explorer currently when it comes to it's malware alerts. Huge loads of false positives.

There are so many people using this script and I can't possibly imagine that it contains malware unless someone hacked my dropbox account and injected it somehow.
Awesome script! I found a bug, however. If the last POI you were looking at in the map menu screen becomes deactivated (it switches to a new page without the comment tags) and you try to open the map again from the menu screen, the game crashes.
Thanks for reporting that.

I fixed it and uploaded a new Napoleons Minimap Menu (Addon) (1.02). You only have to replace "  + Nap | Minimap Menu" to update it.
Code:
class Fixnum  def clamp(min, max)    if self == nil then nil end       if (self < min) then min    elsif self > max then max    else self     end         endendclass Float  def clamp(min, max)    if self == nil then nil end       if (self < min) then min    elsif self > max then max    else self    end         endend
When is self == nil in this case?
Yeah you're right it makes no sense. I'll remove those lines.
I had a chance to test again. Still crashing when the last POI selected in the map menu loses its comment tags and then the map is pulled again. Here is the error message:

Script ' + Nap | Minimap Menu' line 358: NoMethodError occured.

undefined method 'desc' for nil:NilClass
Ugh you're right... I had the -1 on the wrong side of the if-statement...

Replace just "  + Nap | Minimap Menu" again to update and now it should be fixed (I tested it again).
Had a question about the Minimap Menu, is it possible to also render objects on it like in the regular minimap?  I noticed the chest and Swords where on the Minimap but not on the Minimap Menu and I tried changing the tags to Minimap: like the Red Haired Girl on the Main Hall but that didn't work.  Also would it be possible to render something on the Minimap Menu without having it listed?  Wanted to also add a boulder blockade to the map until an event clears it which works fine on the Minimap but didn't really want it listed as a POI.

Also been trying to toggle the Minimap On and Off though something seems wrong.

Toggle Code

Conditional Branch: Script: $minimap.enabled == false Script: $minimap.enabled = trueElse Script: $minimap.enabled = falseBranch EndThis works most of the time but sometimes the Minimap initializes On by default and didn't want to go map by map making restrictions so

Then went to Nap 2/3 | Minimap "def initialize" and changed "@enabled = true" to "@enabled = false" which I believed would change the starting state of the Minimap to Off as I wanted it to be off until the player turned it on via item, switch, or equipment

Did this because didn't see the option for in Nap 1/3 | Minimap [Members] as the only thing that seemed similar was "ENABLED_SWITCH" though it states it has a different function then toggling the Minimap.

Though sometimes when moving between saves even if it was off on the one save and never turned on for the other it still will display the Minimap and I'm not sure why...

Oh and in the Master Demo some of the busts where not included, doesn't mean much to me though it did cause a crash when talking to one of the actors.

Thanks for your time Napoleon and great script
It is giving 404 not found when i click your link.

also sorry if i'm necroposting it wasn't my intention.
The links are broken 🙁 anyone min putting link to this demo/script? 
The links are broken 🙁 anyone min putting link to this demo/script? 
🙁 ((
http://www.4shared.com/zip/-mLA_zrjba/Napoleons_Master_Demo.html

http://www.mediafire.com/download/hbd8yrme95495bu/Napoleons+Master+Demo.zip

https://mega.nz/#!PctVjAwb!2sUL3px0CSQRIEfajYTbcv34ZTf8soWVnkMZwry5XSg
Anyone know how to fix this bug?

If I disable (hide) the minimap, via a switch or the included script call "$minimap.enabled = false", if I open the main menu, when I get out of the menu, the map stays hidden, but the blip is there and the only way to hide it is to unhide and then hide the minimap again.

Anyone have any ideas?

Original thread: https://forums.rpgmakerweb.com/threads/napoleons-minimap.13801/