MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber *
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
HL2 Mapping
HL2 FAQs
SOF1 Mapping
Crysis Mapping
Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs
UT2K3 Mapping
SOF2 Mapping
SOF2 FAQs

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
taske [Downl]
INSANE{H|S} [Forum]
aksolo [Tutor]
eXsolved [Forum]

4 Members and 13 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Sunday, Jan. 4th
MODSonair 161 Live
Friday, Jan. 2nd
MODSonair Episode 160
Thursday, Jan. 1st
HAPPY NEW YEAR MODSONLINE AND ALL
Sunday, Dec. 28th
MODSonair 160 Live
Saturday, Dec. 27th
MODSonline Holiday Pwnage
Latest Poll
Modsonair audio or video?
Video from here on. 48.57%
Sticking with audio. 2.86%
Either is good. 17.14%
What is modsonair? 31.43%
Read More...
4 comments

Newsletter
Name:
Email:
Newsletter Archives
Your Membership
User Name:
Password:
Register.
In The Forums
More dead bodies
CoD 4 Scripting.. Posts: (3) Views: (21) by INSANE{H|S}
Final Error... Hopefully!!!
CoD 4 Level Desi.. Posts: (6) Views: (98) by INSANE{H|S}
~ CodCreators.com ~
Offsite Links an.. Posts: (1) Views: (16) by eXsolved
Zombies Crashing?
CoD:WW Zombie/Co.. Posts: (4) Views: (33) by nirvashtype007
Art of War Central Half-Life 2 Mods for Dummies
CoDWW Download
Forums
MODSonline.com Forums

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD 4 Level Design
CoD 4 mapping and level design.
Moderators: foyleman, rEdrUmMDK, Foxhound, Rasta, StrYdeR, The_Caretaker, supersword, batistablr, playername, Welshy
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Next Page
subscribe
Author Topic: [TUTORIAL] How to create a MINIMAP for Multiplayer (FIX)
ColPhilBilko
General Member
Since: Jul 11, 2004
Posts: 8
Last: Jan 29, 2008
[view latest posts]
Level 0
Category: CoD 4 Level Design
Posted: Monday, Jan. 28, 2008 01:24 am
Lots of people seem to be having issues with this, and to get it to work, most people had to convert their multiplayer maps, into a singleplayer map to get the minimap / console commands to work.

This is not the case, as I have found a loop hole to get this to work. On you're compile tools check the box that says "Enable Developer Script"..... So you should have three checked..... Enable Cheats, Enable Developer and Enable Developer Script.

Then run you're map, through the TOOLS by clicking "RUN SELECTED MAP"

PLEASE NOTE THAT DURING THESE NEXT STEPS YOU WILL MOST LIKELY GET A SCRIPT ERROR, WHEN THIS POPS UP HIT ENTER TO GET BACK INTO THE GAME. IT MAY OCCUR NON-STOP. HOWEVER THIS IS EASY STILL TO GET WHAT YOU NEED. CONSOLE COMMANDS WILL STILL WORK EVEN WITH THIS ANNOYING ERROR POP UP.

#1) Spawn into the game as a player.
#2) Open Console "~"
#3) Type into the console " /set scr_minimap_height 10000 " Hit ENTER ( any less a number will bend the view and the player marker on the map will not match when you are in game"
#4) Type into the console " /exec minimap "

Hey look it did not error this time, saying it is missing files or can not find scripts to execute ;)

Now if you are staring at the error screen I mentioned above, then hit enter and you will see the minimap view with a white box around it, and the words "THIS WAY UP" Make sure you rotate by using the mouse until that text is at the top of the screen, and that the lines are straight (no jagged angled edges) and also make sure you move the mouse so it is looking straight down"

Screen capture the image using the print screen option or other screen capture software. Open that image into you're favorite editing software, and CROP the image JUST INSIDE THE WHITE LINES. Resize it to 512x512 and then save it as a 24 BIT TGA file.

Now move that newly created file into the following directory .../[root]/texture_assets ([root] is you're COD 4 install directory) If you do not have this folder, create it.

Use the above folder ALWAYS to convert you're textures into usable iwi's.

Add the asset to your map's fast file (.csv) adding this line: material,compass_map_yourmapname

In your map's script file, insert the following line of code: maps\mp\_compass::setupMiniMap("compass_map_yourmapname");

To convert it into an iwi, in the tools, click the applications tab, then click LAUNCH ASSET MANAGER.

Once it loads, OPEN the following file: " [root]/source_data/ levels.gdt"

Once it is open use the below image as a reference image.


http://img179.imageshack.us/img179/4687/assmancompasssettingsvj4.jpg

Click MATERIAL in the scrollable window, Then click NEW ENTRY, a little window will pop up, type in: compass_map_mp_yourmapname

Under COLOR MAP point it to you're TGA file in the texture_assets folder.

Then match the settings in the image I linked, (minus the changes you did.) Click PC CONVERT from the menu and choose CONVERT THIS ASSET ONLY.

If you have done all that I mentioned, you're new material will be converted into a iwi.

Almost there :) Load up the tools again and UNCHECK, the ENABLE DEVELOPER SCRIPT. (so you can play test the map without that annoying error)

Update you're ZONE FILE by adding the compass line, which should be in the left window pane. Simply cut and paste that line into the right windows pane. Then click SAVE.

Then highlight the map, and RUN SELECTED MAP.

Voila. You now have a fully working minimap :)

I hope this helps....

- Col. Phil Bilko (aka: CDN Merc Bilko)

edited on Jan. 28, 2008 01:28 am by ColPhilBilko
[OUTLAW]DrUmBuM
General Member
Since: Jul 10, 2007
Posts: 142
Last: Nov 14, 2008
[view latest posts]
Level 4
Category: CoD 4 Level Design
Posted: Monday, Jan. 28, 2008 09:51 am
I LOVE YOU!!! Will try it later when i have time, but thanks so much man, this whole thing was what was holding me back from releasing a map!
ueb0258
General Member
Since: Jan 21, 2008
Posts: 35
Last: Feb 14, 2008
[view latest posts]
Level 2
Category: CoD 4 Level Design
Posted: Monday, Jan. 28, 2008 10:07 am
This is a great tutorial. I spent yesterday playing with the directions from others on this board only to have them not work. The folder thing I finally read over on the wiki when looking to build a loadscreen. I think that is the biggest thing the rest of the tuts on this board have left out is how to get that .iwi file. With all that being said I still have not gotten the minimap working. I have the file made and I have the lines in my .gsc and .csv files and I have no errors on compile but I still have the standard texture on the minimap. Any ideas? Is there something special with the script_origins that I need to be doing? Do they need to be removed? Is there anything special to their placement? Thanks for any help that can be given.
ColPhilBilko
General Member
Since: Jul 11, 2004
Posts: 8
Last: Jan 29, 2008
[view latest posts]
Level 0
Category: CoD 4 Level Design
Posted: Monday, Jan. 28, 2008 02:25 pm
Note to MODSONLINE:

I forgot to add information to my tutorial. Please add the information below, after the line I mentioned :) Thanks

AFTER THIS LINE: This is not the case, as I have found a loop hole to get this to work. On you're compile tools check the box that says "Enable Developer Script"..... So you should have three checked..... Enable Cheats, Enable Developer and Enable Developer Script.

ADD THIS:

In Radiant, place two script_origin entities with a targetname value of "minimap_corner". These must be at opposite corners of a square which represents the playable area of your map. Keep in mind that the square won't necessarily be aligned to the X and Y axes; it will be aligned to North, which is set by northyaw in your worldspawn. (northyaw 90 in most cases)

Then proceed to save you're map, and then compile it.

Hey guys;

I am glad this worked for you :)

As for origin placement, simply place one in the upper left corner of you're map, and one in the lower right of you're map. They have to be in opposing corners. Thats how the engine determines the maps border. (the white minimap outline) Just remember to place them in the corners of the PLAYABLE AREA of you're map.

Regards

- Col. Phil Bilko

edited on Jan. 28, 2008 02:32 pm by ColPhilBilko

edited on Jan. 28, 2008 02:33 pm by ColPhilBilko
Pinball
General Member
Since: Jun 19, 2005
Posts: 50
Last: Dec 27, 2008
[view latest posts]
Level 2
Category: CoD 4 Level Design
Posted: Thursday, Jan. 31, 2008 01:50 pm
Might have a problem but not sure. I have a map done and now I have to do the minimap. I've followed the minimap tutorial for mp, which worked but the graphic I have for the mini map looks like this:

I set the hieght to 10000, map isn't really all that big and I have my skbox set at a hieght of 2048 (in the editor on the Z axis window). But isn't this pic suppose to look like the map from a top view point? Just wondering, Please help me!!!
ueb0258
General Member
Since: Jan 21, 2008
Posts: 35
Last: Feb 14, 2008
[view latest posts]
Level 2
Category: CoD 4 Level Design
Posted: Thursday, Jan. 31, 2008 02:53 pm
That is kinda weird. I did my map from 5000 and not 10000.
SparkyMcSparks
General Member
Since: Feb 27, 2004
Posts: 976
Last: Jan 7, 2009
[view latest posts]
Level 7
Category: CoD 4 Level Design
Posted: Thursday, Jan. 31, 2008 03:05 pm
10,000 > 2048.
You're probably outside the skybox, so the image gets all messed up and all you're really looking at is the ground texture it looks like.
Pinball
General Member
Since: Jun 19, 2005
Posts: 50
Last: Dec 27, 2008
[view latest posts]
Level 2
Category: CoD 4 Level Design
Posted: Thursday, Jan. 31, 2008 05:08 pm
Could be but here are a few screenshots of the map in the editor Top, Front & Side views and the locations of the minimap_corner(s)



Pikakilla
General Member
Since: Nov 29, 2005
Posts: 22
Last: Mar 14, 2008
[view latest posts]
Level 1
Category: CoD 4 Level Design
Posted: Thursday, Jan. 31, 2008 05:35 pm
doesnt one minimap corner go at the top of one corner and the other at the bottom of the opposite corner?


if that makes sense




edited on Jan. 31, 2008 05:37 pm by Pikakilla
Pinball
General Member
Since: Jun 19, 2005
Posts: 50
Last: Dec 27, 2008
[view latest posts]
Level 2
Category: CoD 4 Level Design
Posted: Thursday, Jan. 31, 2008 10:11 pm
I was only able to do this minimap thing 1 time. Now when I do it again & again & again, I get this error now (from the console_mp.log file):

******* script runtime error *******
setstat: developer_script is false.: (file 'maps/mp/gametypes/_persistence.gsc', line 72)
self setStat( int(tableLookup( "mp/playerStatsTable.csv", 1, dataName, 0 )), value + curValue );


And I have the 3 check boxs checked (from the tutorial) in the compile tools. I hit the run selected map it starts to load my map them jumps to loading a default mapm then I have to type in the console /map mp_mapname and now It won't even load through the compile tools. I can load my map from the desktop MP icon with no problem. What am I doing wrong here????? Like I said, it worked once but not any more.

I need to resolve this issue so I can release my 1st. CoD4 MP map.

[banghead] [confused] [mad]
Restricted Access Restricted Access
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD 4 Level Design
All logos and trademarks and information in this site are property of MODSonline LLC © 2009.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
Art of War Central
Partners
modbase.be
Battle for Europe COD2
CODAddicts - Call of Duty News & Downloads
Frag Universe
Call of Duty Headquarters
The Firing Box
XoXide
Ask About
Advertising
Friends
After Life Gaming
Canada Kicks Ass Clan
MODS Reloaded
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
MODSonair Releases
MODSonair Episode 160
MODSonair Episode 159
MODSonair Episode 158
MODSonair Episode 157
MODSonair Episode 156
Next Show
The next MODSonair show will air LIVE on:
01/11/2009 12:00 EST

Time remaining:
Copyright © 2009 MODSonline
Tresware Content Management System Copyright © 2009 Tresware
Website Designed and Hosted   Tresware