Napoleon's Minimap

mspaulding86

Villager
Member
Joined
Jun 14, 2014
Messages
6
Reaction score
0
First Language
English
Primarily Uses
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?
 

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
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
 

mspaulding86

Villager
Member
Joined
Jun 14, 2014
Messages
6
Reaction score
0
First Language
English
Primarily Uses
Thanks Nap,

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

-Mike
 
Joined
Jun 24, 2014
Messages
2
Reaction score
0
First Language
Español
Primarily Uses
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
 
Last edited by a moderator:

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
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.
 

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
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.
 
Last edited by a moderator:

PortolaBobby

Warper
Member
Joined
Jul 21, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
My browser (Google Chrome) says the download is malware.
 

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
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.
 

shaynec1981

Veteran
Veteran
Joined
Jun 10, 2014
Messages
88
Reaction score
21
First Language
English
Primarily Uses
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.
 

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
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.
 

cremnophobia

Veteran
Veteran
Joined
Dec 10, 2013
Messages
216
Reaction score
97
Primarily Uses
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?
 

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
Yeah you're right it makes no sense. I'll remove those lines.
 

shaynec1981

Veteran
Veteran
Joined
Jun 10, 2014
Messages
88
Reaction score
21
First Language
English
Primarily Uses
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
 

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
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).
 

masterdragonson

Villager
Member
Joined
Dec 8, 2014
Messages
9
Reaction score
3
First Language
English
Primarily Uses
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
 

Sato1999

Yangfly Master(Previously)
Veteran
Joined
Sep 9, 2014
Messages
338
Reaction score
84
First Language
Portuguese
Primarily Uses
RMVXA
It is giving 404 not found when i click your link.

also sorry if i'm necroposting it wasn't my intention.
 
Last edited by a moderator:

Fallun

Villager
Member
Joined
May 24, 2014
Messages
26
Reaction score
1
First Language
Danish
Primarily Uses
The links are broken :( anyone min putting link to this demo/script? 
 

exnem

Veteran
Veteran
Joined
Sep 13, 2015
Messages
62
Reaction score
8
First Language
english
Primarily Uses
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?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top