Minimap Tutorial (FAQ)

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

archer01

RE: Minimap Tutorial

Postby archer01 » Sat Aug 05, 2006 4:07 am

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.

OGEB1103

RE: Minimap Tutorial

Postby OGEB1103 » Sat Aug 05, 2006 4:47 am

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:

Jedi Admin
User avatar
Posts: 2544
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Minimap Tutorial

Postby Penguin » Sat Aug 05, 2006 4:48 am

open up an exisiting map and copy the colors from it

Lollilo

RE: Minimap Tutorial

Postby Lollilo » Sat Aug 05, 2006 5:37 am

very good tut!
but 1 question: why must i set the mapbound-region?

darthpingu

Postby darthpingu » Sat Aug 05, 2006 5:45 am

Mapbound region because that determines where the edge of the minimap is:)

Sith Master
User avatar
Posts: 2652
Joined: Sat Jun 03, 2006 5:15 pm
Location: In An Epic Space Battle!

Postby Hebes24 » Sat Aug 05, 2006 10:57 am

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.

Private Recruit
User avatar
Posts: 18
Joined: Sun Sep 28, 2008 6:29 pm

Re: Minimap Tutorial (FAQ)

Postby ecusoccerdude » Fri Nov 28, 2008 6:48 pm

what do u mean paint over it
:mrgreen:

General
User avatar
Posts: 799
Joined: Thu Jun 07, 2007 6:26 pm
Location: Far Far away....
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set

Re: Minimap Tutorial (FAQ)

Postby computergeek » Fri Nov 28, 2008 7:05 pm

Yeah thats what I did =D
Although you may want to cover up terrain cutters (their purple boxes are still there)

Gametoast Staff
User avatar
Posts: 4983
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA
Projects :: Naboo Selton

Re: Minimap Tutorial (FAQ)

Postby AQT » Sat Nov 29, 2008 1:05 am

ecusoccerdude wrote:what do u mean paint over it
:mrgreen:

Tracing.

General
User avatar
Posts: 799
Joined: Thu Jun 07, 2007 6:26 pm
Location: Far Far away....
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set

Re: Minimap Tutorial (FAQ)

Postby computergeek » Sat Nov 29, 2008 12:36 pm

But why do that when you have a beautiful minimap with color ingame?

High General
User avatar
Posts: 850
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Minimap Tutorial (FAQ)

Postby Commander_Fett » Sat Nov 29, 2008 8:25 pm

What do you mean? It's just a blank map with cps and units unless you do this.
Last edited by Commander_Fett on Sat Nov 29, 2008 9:14 pm, edited 1 time in total.

General
User avatar
Posts: 799
Joined: Thu Jun 07, 2007 6:26 pm
Location: Far Far away....
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set

Re: Minimap Tutorial (FAQ)

Postby computergeek » Sat Nov 29, 2008 8:43 pm

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

High General
User avatar
Posts: 850
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Minimap Tutorial (FAQ)

Postby Commander_Fett » Sat Nov 29, 2008 9:15 pm

Oh, I put a question mark instead of a period. Sorry for the confusion, I already knew that.

Gametoast Staff
User avatar
Posts: 4983
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA
Projects :: Naboo Selton

Re: Minimap Tutorial (FAQ)

Postby AQT » Sun Nov 30, 2008 12:25 am

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.

Private First Class
User avatar
Posts: 78
Joined: Tue Jul 22, 2008 3:05 pm
Location: Illinois
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set

Re: Minimap Tutorial (FAQ)

Postby asleeponduty » Mon Jul 13, 2009 11:04 pm

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:

High General
User avatar
Posts: 850
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Minimap Tutorial (FAQ)

Postby Commander_Fett » Mon Jul 13, 2009 11:33 pm

Uh, I thought that a line of script in space assault mode LUAs disabled minimaps. Maybe it's those conflicting?

Private First Class
User avatar
Posts: 78
Joined: Tue Jul 22, 2008 3:05 pm
Location: Illinois
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set

Re: Minimap Tutorial (FAQ)

Postby asleeponduty » Tue Jul 14, 2009 11:45 am

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.

Field Commander
User avatar
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Minimap Tutorial (FAQ)

Postby YaNkFaN » Tue Jul 14, 2009 11:59 am

exactly if you don't want the mini map put that line back if you do then leave it out :roll:

Private Second Class
User avatar
Posts: 63
Joined: Fri Jul 31, 2009 5:19 pm
Location: Miami, FL

Re: Minimap Tutorial (FAQ)

Postby RC-1309 » Thu Aug 13, 2009 4:12 pm

what req file do you edit??

Sith Master
User avatar
Posts: 2786
Joined: Mon Jun 12, 2006 3:46 pm

Re: Minimap Tutorial (FAQ)

Postby Xavious » Thu Aug 13, 2009 5:39 pm

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)

Next

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 1 guest