Napoleon's Minimap

Can I request a patch napoleon. 😀 .

When we use 'large' graphic as event (for example dragon). It will drawn as 1x1 tile graphic on the minimap. Can you make it drawn as it look on the map. (Of course by adding note as flag to draw it on real size. So if we don't put that note it will still draw 1x1 tile size...)

Since I create some of my building using event (so I can build and decorate and also can animate it using move route).
No problem that's just a tiny feature. Here I added it to 1.05b for ya.

I'm just a bit annoyed about this bug:

The events are not centered perfectly. Currently the default events are offset by [-4, -4] using the EV_OFFSET setting but this is a bug. The same problem applies to the "original_size" tagged events.
Because for the large events it's clearly visible.
thx for the patch. i'll try it out. and if i have time i'll try looking for that bug you mentioned too.

edit: i realize one thing. you archive your demo by version.

some suggestion to save dropbox space (and easier post management). rename the filename of the demo to not containing the version.

Ex: Minimap Demo.zip

then everytime you made changes. recreate the zip files using the Same Name. then copy that and overwrite old one in dropbox folder.

it will use 'same' link (no need to update the link in your post). you just need to state that the demo link is the 'latest' demo. it save lots of space instead creating each individual version like you did. 😀 . also make you only need to add change log in your post to notify the user that your script updated (no need to modify the link anymore 😀 ).
I wanted to say thank you to you guys for your help . I have some idea on editing that's not the problem in getting the image and lining it up just right with the next one.

I did have an idea to get around the whole harbor issue just simply draw a map in real life and overlay it and have it be a special map.
Failed to load actor data .. 
Ron, are you sure that the error you receive is not caused by another script? And do you have Actors.rvdata2 in the data folder?
Hi Napoleon,

thanks for your very useful script, it's fantastic!

 

If you enter the following code in a new line (or instill Nap 3/4 | Minimap), the minimap is hidden during the battle, and reappear when you return to the game, such as when it is hidden for opening the game menu.

 

#===============================================================================# ** Mario Buonocore - Hide Napoleon's Minimap in Battle## Nasconde la minimappa durante la battaglia.# Fa riferimento al valore della costante HIDE_IN_MENU.#===============================================================================class Scene_Map < Scene_Base alias lm_pre_battle_scene pre_battle_scene def pre_battle_scene $minimap.dispose if Nap::Minimap::HIDE_IN_MENU lm_pre_battle_scene endend#===============================================================================



Regards,

Mario
Thanks for sharing. I will add it to the next version.

This script has a free license and anyone is allowed to modify it. Sharing your mods is of course appreciated by everyone else!

EDIT:

Patched. Uploaded 1.06.
Is there a way where I can only get the minimap in the menu (like with what happened to Lionheart) and change the position?
I have no idea what you mean, I mean, who/what is lionheart? But it can be visible in the menu yes.
There seems to be a bug when transferring a player to a new map when the minimap mode is set to default. The opacity of the minimap seems to increase to 255 as soon as the transfer is complete. This doesn't happen when the mode is set to scroll. Any ideas why? I've tinkered around a bit but can't track it down.
Indeed I forgot to make it a class variable. It should work now.

I didn't spend a lot of time testing the new version (new years eve) so if it doesn't work please let me know.

Uploaded a new version 1.06a.

I need to rewrite this code when I have some time next month anyway.
Thanks, Napoleon. I'll check it out soon. Enjoy the holiday!

Edit:

I checked it out and the problem still remains. I had time to really get down into it and look today and found that the problem is actually in create_sprite. The old sprite isn't being cleared before a new one is created, so it's making a new one on top of the old one.
- I uploaded a huge update. Version 1.11 1.11a.

- Comes with 2 addons that feature a new menu with a larger instance of the minimap menu with POI support.

- Please report any bugs, it's brand new.

- Wow the view count on this topic is increasing pretty fast.

[IMG]http://forums.rpgmakerweb.com/uploads/monthly_05_2014/post-9339-0-41539900-1401489929.png[/IMG]
This is probably a noob question, however I am stuck.

I copied over the portions of the script that are required for the minimap (all located under minimap).

Then I copied over the graphics/minimap folder.

Then I added an event on a map with these scripts:

$minimap.enabled = true

$minimap.opacity = 255

$minimap.set_location(rect)

$minimap.mode = :default

$minimap.overlay_enabled = false

 

and when I try to play the game...

It gives me this error:

 

Script 'Game_Interpreter' line 1411: NameError occurred.

undefined local viarable or method 'rect' for #<Game_Interpreter:0x92c6b14>

 

Any suggestions?

Is there anything else I forgot to copy over?

How do I define that variable/method?

 

Is there an easier way to install your minimap into my game without having to copy it piece by piece?

 

Thank you,

Michael

 

Attached is a little screenshot of the scripts I added from your game/demo.

scripts.png
I haven't tried it myself. But you can't just call:

$minimap.set_location(rect)You must define rect first... Like:

$minimap.set_location(Rect.new(10, 10, 128, 128)) # example valuesBut you do not have to call that method. You can just delete it instead and it will use the default values and place it in the upper right corner.
Napoleon,

that did fix the error that was appearing, but now there is a new error, haha. This is what I get for trying to use a big script in my first game.

The new error is:

Script 'Game_Interpreter' line 1411: NoMethodError occurred.

undefined method 'visible=' for nil:NilClass

Note: I did not have these errors before the script implementation. Do you know what might be causing this from the minimap?

I am very excited about getting the minimap to work, I just don't know what I'm doing--haha.

I then tried to load the game in a scene where I didn't have any scripts and I received this message:

Script 'Nap 3/4| Minimap' line 554: NoMethodError occurred.

undefined method 'visible=' for nil:NilClass
My guess is that you try to make the minimap visible for a map that has no minimap. You can't change the minimap values if there is no minimap for your current map. You need a map-image with the proper name as well or the minimap will assume that you don't want a minimap for that map and disables itself automatically. That probably triggers your nil error.

$minimap.enabled = true

$minimap.opacity = 255

$minimap.set_location(rect)

$minimap.mode = :default

$minimap.overlay_enabled = false # <<< this is the only line you really need (Not sure but you might even be able to change this setting in the script directly as well). The other settings should be default values anyway. And ONLY use the $minimap variable for a map that actually has one!
Ah, great. Well then.

I see where you tell how to name a map, but where do you define what minimap correlates to what actual map?

Is there a place where I type something like:

bedroom = map001.png

or similar?

Thanks again!
I understand that my documentation may not be newbie-friendly but please take a closer look at the documentation near the top in the header of the file:

Minimap Documentation said:
- Place mapshots of your map inside the Minimap Folder with the (default)
  format "MAP<map_id>.png" w/o te quotes. Example: Graphics/Minimap/Map025.png
  The map must have 3 digits. So Map001 is good but Map1 or Map01 is not good.
  You may use: http://himeworks.wordpress.com/2013/02/25/map-screenshot/
So call it Map001.png if you want it to show for map with id 1.

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