Napoleon's Minimap

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
First Language
indonesian
Can I request a patch napoleon. :D .

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).
 
Last edited by a moderator:

Napoleon

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

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,309
Reaction score
531
First Language
indonesian
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. :D . 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 :D ).
 
Last edited by a moderator:

nathkyo

Veteran
Veteran
Joined
Mar 13, 2012
Messages
31
Reaction score
1
First Language
English
Primarily Uses
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.
 

ronel09

Warper
Member
Joined
Jul 9, 2013
Messages
2
Reaction score
0
First Language
english
Primarily Uses
Failed to load actor data .. 
 

Napoleon

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

Lord Marius

Warper
Member
Joined
Sep 29, 2013
Messages
1
Reaction score
1
First Language
Italian
Primarily Uses
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
 

Napoleon

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

TheFroMofo

Hired Merc
Veteran
Joined
Oct 7, 2013
Messages
68
Reaction score
9
First Language
English
Primarily Uses
Is there a way where I can only get the minimap in the menu (like with what happened to Lionheart) and change the position?
 

Napoleon

Veteran
Veteran
Joined
Dec 29, 2012
Messages
869
Reaction score
97
First Language
Dutch
Primarily Uses
I have no idea what you mean, I mean, who/what is lionheart? But it can be visible in the menu yes.
 

dandroid

Warper
Member
Joined
Dec 28, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
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.
 

Napoleon

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

dandroid

Warper
Member
Joined
Dec 28, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Napoleon

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

 
Last edited by a moderator:

mspaulding86

Villager
Member
Joined
Jun 14, 2014
Messages
6
Reaction score
0
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Napoleon

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

mspaulding86

Villager
Member
Joined
Jun 14, 2014
Messages
6
Reaction score
0
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Napoleon

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

mspaulding86

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

Napoleon

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

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