Page 1 of 2

RE: Minimap Tutorial

Posted: Sat Aug 05, 2006 4:07 am
by archer01
After answering someone's question about minimaps, I did a search and was suprised that I couldn't find a tutorial for it... I hope I didn't miss anything and this has already been done or something, but here is a quick explaination anyway (if this has been done already, could an admin please lock/delete this thread, thanks):


Step 1: Start by adding a region to your map's base layer. To make aligning the map easier later on, make sure the region is a square and position it so it encapsulates the area your map is going to display.

Step 2: Name this region "mapbounds" and set it's type to "mapbounds".

Step 3: Now for the tough part... You have to draw the map yourself. Open an image editor that can save tga files, and create a square image that is a power of two in size (usually 256x256 or 512x512 pixels). Draw the map, then save it into the same folder as your map's '.wld' file using the name "***_map.tga" (replace the stars with the name of your map). Also, the image must be a 'type 2' tga file, 24bits/pixel, 16 million colours, no compression (Thanks to OGEB1103 for pointing this bit out). If you're not sure how to set these options the easiest thing to do is copy one of the game's original mini-maps, open it, copy-paste your new map over it, save, and then rename the file.

Step 4: It should already be there, but make sure something like this is in your map's '.req' file:

Code: Select all

REQN
	{
		"texture"
		"***_map"
	}
If it isn't there, add it manually. (Again, the stars are the name of your map)

Step 5: Munge the world and that's it.


NOTE!!! To make the map drawing a lot easier try this:
- In ZeroEditor, switch view to "height" mode
- Open the "Camera" menu
- Select "Top-Down view"
- Select "Orthographic view"
- Use the "r" and "t" keys to zoom in/out to see the whole map
- Select "Save screenshot"

Now you can sort of "paint" over this screenshot to get things lined up correctly.

RE: Minimap Tutorial

Posted: Sat Aug 05, 2006 4:47 am
by OGEB1103
Actually the texture wouldn't work unless you saved it the same type targa as the originals so it might be easier to edit an original map instead of creating a new one...other than that great mini tut. Should be called "Mini Mini-map Tutorial" :wink:

RE: Minimap Tutorial

Posted: Sat Aug 05, 2006 4:48 am
by Penguin
open up an exisiting map and copy the colors from it

RE: Minimap Tutorial

Posted: Sat Aug 05, 2006 5:37 am
by Lollilo
very good tut!
but 1 question: why must i set the mapbound-region?

Posted: Sat Aug 05, 2006 5:45 am
by darthpingu
Mapbound region because that determines where the edge of the minimap is:)

Posted: Sat Aug 05, 2006 10:57 am
by Hebes24
Nice tutorial, followed it very well! (i'm in the middle of tweaking it right now). thanks!! :D I'v always wondered how to do this.

Re: Minimap Tutorial (FAQ)

Posted: Fri Nov 28, 2008 6:48 pm
by ecusoccerdude
what do u mean paint over it
:mrgreen:

Re: Minimap Tutorial (FAQ)

Posted: Fri Nov 28, 2008 7:05 pm
by computergeek
Yeah thats what I did =D
Although you may want to cover up terrain cutters (their purple boxes are still there)

Re: Minimap Tutorial (FAQ)

Posted: Sat Nov 29, 2008 1:05 am
by AQT
ecusoccerdude wrote:what do u mean paint over it
:mrgreen:
Tracing.

Re: Minimap Tutorial (FAQ)

Posted: Sat Nov 29, 2008 12:36 pm
by computergeek
But why do that when you have a beautiful minimap with color ingame?

Re: Minimap Tutorial (FAQ)

Posted: Sat Nov 29, 2008 8:25 pm
by Commander_Fett
What do you mean? It's just a blank map with cps and units unless you do this.

Re: Minimap Tutorial (FAQ)

Posted: Sat Nov 29, 2008 8:43 pm
by computergeek
Yes
This adds a picture and region for the game to follow so you can see the mini map
It has no effect on AI, but makes a map look complete

Re: Minimap Tutorial (FAQ)

Posted: Sat Nov 29, 2008 9:15 pm
by Commander_Fett
Oh, I put a question mark instead of a period. Sorry for the confusion, I already knew that.

Re: Minimap Tutorial (FAQ)

Posted: Sun Nov 30, 2008 12:25 am
by AQT
computergeek wrote:But why do that when you have a beautiful minimap with color ingame?
But what if your map has a dark terrain with dark objects? :wink: Oh well.

Re: Minimap Tutorial (FAQ)

Posted: Mon Jul 13, 2009 11:04 pm
by asleeponduty
Hey I tried ur tut it worked great for my space assault map xcept that in the top right corner where it should show the capital ships i get a prob
Hidden/Spoiler:
Image
What did I do wrong??? :faint:

Re: Minimap Tutorial (FAQ)

Posted: Mon Jul 13, 2009 11:33 pm
by Commander_Fett
Uh, I thought that a line of script in space assault mode LUAs disabled minimaps. Maybe it's those conflicting?

Re: Minimap Tutorial (FAQ)

Posted: Tue Jul 14, 2009 11:45 am
by asleeponduty
I found that line too "DisableSmallMapMiniMap()" And i just deleted it. It has something to do with the minimap showing up on your hud.

I just tried it and now the minimap appears on top of the green strange boxes.

Re: Minimap Tutorial (FAQ)

Posted: Tue Jul 14, 2009 11:59 am
by YaNkFaN
exactly if you don't want the mini map put that line back if you do then leave it out :roll:

Re: Minimap Tutorial (FAQ)

Posted: Thu Aug 13, 2009 4:12 pm
by RC-1309
what req file do you edit??

Re: Minimap Tutorial (FAQ)

Posted: Thu Aug 13, 2009 5:39 pm
by Xavious
Your world's req file (modID.req).

(That's weird, every time I post this message it appears on both the first and second pages, and I can't delete one without deleting them both)