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

Post 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.
OGEB1103

RE: Minimap Tutorial

Post 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:
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Minimap Tutorial

Post by Penguin »

open up an exisiting map and copy the colors from it
Lollilo

RE: Minimap Tutorial

Post by Lollilo »

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

Post by darthpingu »

Mapbound region because that determines where the edge of the minimap is:)
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post 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.
User avatar
ecusoccerdude
Private Recruit
Posts: 18
Joined: Sun Sep 28, 2008 6:29 pm

Re: Minimap Tutorial (FAQ)

Post by ecusoccerdude »

what do u mean paint over it
:mrgreen:
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: Minimap Tutorial (FAQ)

Post by computergeek »

Yeah thats what I did =D
Although you may want to cover up terrain cutters (their purple boxes are still there)
AQT
Gametoast Staff
Gametoast Staff
Posts: 4883
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Minimap Tutorial (FAQ)

Post by AQT »

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

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

Re: Minimap Tutorial (FAQ)

Post by computergeek »

But why do that when you have a beautiful minimap with color ingame?
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Minimap Tutorial (FAQ)

Post by Commander_Fett »

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.
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: Minimap Tutorial (FAQ)

Post 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
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Minimap Tutorial (FAQ)

Post by Commander_Fett »

Oh, I put a question mark instead of a period. Sorry for the confusion, I already knew that.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4883
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Minimap Tutorial (FAQ)

Post 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.
User avatar
asleeponduty
Private First Class
Posts: 77
Joined: Tue Jul 22, 2008 3:05 pm
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set
Location: Illinois

Re: Minimap Tutorial (FAQ)

Post 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:
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: Minimap Tutorial (FAQ)

Post by Commander_Fett »

Uh, I thought that a line of script in space assault mode LUAs disabled minimaps. Maybe it's those conflicting?
User avatar
asleeponduty
Private First Class
Posts: 77
Joined: Tue Jul 22, 2008 3:05 pm
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set
Location: Illinois

Re: Minimap Tutorial (FAQ)

Post 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.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Minimap Tutorial (FAQ)

Post by YaNkFaN »

exactly if you don't want the mini map put that line back if you do then leave it out :roll:
User avatar
RC-1309
Private Second Class
Posts: 63
Joined: Fri Jul 31, 2009 5:19 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Miami, FL

Re: Minimap Tutorial (FAQ)

Post by RC-1309 »

what req file do you edit??
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Minimap Tutorial (FAQ)

Post 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)
Post Reply