Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 49 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: [tut] - How I got my minimap working..
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Apr. 19, 2008 12:43 am
well is a little easier to type .file & it get s the point across..& easier to explain that way..
Share |
Fluke
General Member
Since: Dec 31, 2004
Posts: 129
Last: Aug 2, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Apr. 19, 2008 12:58 am
First off, excellent tutorial. Best one I have seen, hands down. A few observations

This tut is based from combining others & the pic at wiki..

1. In radiant, add 2 mimimap prefabs..When in top veiw of 2d window, place 1 prefab in the lower lefthand side & 1 in the upper right hand side of the playable area of your map. Place these high enough not to interfere with your map & below the sky box..(I placed both of mine just below the skybox)..Compile map as mormal..

>> Mini-map prefabs, never saw those. Cool. I don't think however that it matters where they go, they should not be visible entities. I think you also mean 'normal' meaning, compile the maps as you would regularly do. Reflections etc.

2.From compiler, make sure you have these three boxes checked: enable developer, enable cheats, & enable developer script. Then run selected map, enter game, open console "~", & type in: /set scr_minimp_height 10000, hit enter & type: /exec minimap..You should be in minimap view with a white box that says this side up (dont move, unless for some reason this side up, is not up) make sure that it is up & u are looking stright down..

>> Might be wise to state, 'that means each vertical line should have no jaggedies.

3. Take your picture & exit game..

>> This means screenshot. PrtScn puts it in your clipboard, and then when you do New in Photoshop it opens it to the size of your screenshot.

4. In photoshop, open your pic, crop the pic just inside the white lines, resize it to 512x512 then SAVE AS, compass_map_mp_mapname.tga 24bit (to save as a tga, u must change the "format", not just put .tga after the name) & SAVE IN: cod/raw/materials folder..

>> If your map is not square you might have some garbage on the sides, so you can use photoshop to doctor your minimap pic some more and make it look better.

>> Saving it in the materials folder is not necessary actually and it should probably be in your texture assets. I know the pic shows that but the pic is not necessarily right, even though you based ur tutorial on it. No biggie, but if you are looking for it later, you might forget.

5. Now open the asset manager(assman), locate material in the box under the entry buttons, click: material then click: new entry, in the entry box, type in: compass_map_mp_mapname & click ok..Now you should see this screen:

If u cant read it , then:
Here
Match all the settings in the pic, for the colormap u want to click "..." & point to your tga in the raw/materials folder..
Then you want to click: file, SAVE AS: comapss_map_mp_mapname & SAVE IN: cod/texture_assets folder (if u do not have a texture_assets folder already, create one & place it in your cod folder).Now your gdt should be saved in cod/texture_assets. Now from the assman, u want to leave all the settings as they were, colormap still pointing same & Click pc convert, current asset only (make sure it converts with no errors before continuing)..

Before you go any further, check to make sure all the correct files were created in the correct places...
A: compass_map_mp_mapname.tga is in raw/materials
B: compass_map_mp_mapname.file should have been created in the raw/materials folder also.

>> I believe you mean a file without an extension is created in this folder....It doesn't actually have an extension .file

C: compass_map_mp_mapname.iwi should have been created in raw/images folder.
D: compass_map_mp_mapname.gdt is in cod/texture_assets folder.
If everything looks good, then continue.

6. Create a folder named images on your desktop, place a COPY of the compass_map_mp_mapname.iwi into this folder.
Zip this folder, DO NOT USE RAR, click the zip & name it mp_mapname.iwd..

7. Place this iwd into a mod folder(custommaps).

>> Custom maps?? That didn't work for me, but putting the .iwd in the cod4/main/Mods/Modwarfare worked for me.

8. add these lines to your mapname.gsc:
maps\mp\_compass::setupMiniMap("compass_map_mp_mapname");
setdvar("compassmaxrange","2000");
Add this line to your cvs (update zone file):
material,compass_map_mp_mapname

>> I have heard some say something about maxrange, however I haven't used it nor do I see it as necessary unless you know what difference it makes. Also, didn't you forget this asset?

rawfile,minimap.cfg (this is created when you issue the exec minimap) it should also show up when you use update your zone file.

Open compiler, uncheck: enable developers script & check: enable custom command line opt., type in: +set fs_game mods/custommaps. (the mod folder that u placed the iwd must match the mod folder that u type in).

>> ahhh this is where custommaps comes in. So whats better? the modwarfare directory or custommaps?!?

Compile, update zone file, build fast files, run selected map, & there ya go..

Also to zoom your minimap, change the number at the end of this line in your mapname.gsc:
setdvar("compassmaxrange","2000");
The higher the number, the higher the mini (zoom out)
The lower the number, the lower the mini (zoom in)

kmabigtime "aka" [aSu]BigTime! (asuclan.com)

>> have no idea what this compassmaxrange is? Zoom in Zoom out?! wtf is that? :)

Overall great tutorial. Way better than what's on this site.
Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Apr. 19, 2008 01:12 am
Look in any stock mp gsc & u will see that line , here is backlot:
main()
{
maps\mp\mp_backlot_fx::main();
maps\createart\mp_backlot_art::main();
maps\mp\_load::main();

maps\mp\_compass::setupMiniMap("compass_map_mp_backlot");

//setExpFog(500, 2200, 0.81, 0.75, 0.63, 0);
//VisionSetNaked( "mp_backlot" );
ambientPlay("ambient_backlot_ext");

game["allies"] = "marines";
game["axis"] = "opfor";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "desert";
game["axis_soldiertype"] = "desert";

setdvar( "r_specularcolorscale", "1" );

setdvar("compassmaxrange","1800");


}
As far as the mod folder, i dont think it matters..Except when I try to run awe mod, it gives an error because of the awe logo ..
& no , there is no rawfile minimap.cfg..Well I didnt get that & im not using it..




edited on Apr. 18, 2008 09:24 pm by kmabigtime
Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Apr. 19, 2008 02:22 am
I just want to add this..U see the date of my membership, well I have never touched a mod tool until that date..well maybe a few days before that...& thx to everyone here at MODS online, some info at wiki, I would say that I am doing pretty good so far...So I do thank everyone here that is going out of their way to help others..
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Saturday, Apr. 19, 2008 09:07 am
setdvar("compassmaxrange","1800");
has no effect, for somereason iw didnt put the script in that sets the players compassmaxrange to what the servers compassmaxrange is, but hopefully they might fix that soon...
Share |
kmabigtime
General Member
Since: Jan 23, 2008
Posts: 162
Last: Apr 22, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Saturday, Apr. 19, 2008 05:17 pm
Well, I wont argue if it works in a server or not (my first two maps were released without a mini), but it did zoom in my testing...I wonder why all the stock gsc's have different height settings if the server is in charge of it? Oh well, I will continue to adjust it to look good while testing..If it doesnt matter in servers, ok, but it dosent hurt either..
Share |
Wiseass
General Member
Since: Mar 23, 2008
Posts: 33
Last: Jun 30, 2009
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Tuesday, Apr. 22, 2008 01:35 am
for some reason, I can compile and whatnot and it seems to work fine, but when I get into game it doesn't give errors, it just doesn't show the minimap.

I do get an error when I build fast file that it cannot find maps/mp_mapname.csv


although I know the .CSV is there because in the next button I can edit it and it says it saved?

I'm running the version downloaded from Steam if that matters, I've noticed it's slightly different in where it keeps the data for the maps and whatnot.



edit: Okay, I found the CSV that was being updated in the \COD4\zone_source folder and I copied it to the \COD4\raw\maps folder and clicked build fast file. It didn't give me the error that it couldn't find the CSV, but now it gives me this:

Code:
ERROR: Couldn't find material 'code_post_gfx_mp'
ERROR: Couldn't find material 'common_mp'
ERROR: Couldn't find material 'localized_code_post_gfx_mp'
ERROR: Couldn't find material 'localized_common_mp'
ERROR: Couldn't find material 'maps/mp/mp_stargatewarehouse.d3dbsp'
ERROR: Couldn't find material 'mp_stargatewarehouse'
ERROR: Couldn't find material 'common'
ERROR: Couldn't find material '!all_mp'
ERROR: Couldn't find material 'generic'
ERROR: Couldn't find material 'voiceovers'
ERROR: Couldn't find material 'multiplayer'
ERROR: Couldn't find material 'body_complete_sp_usmc_zach'
ERROR: Couldn't find material 'body_mp_usmc_specops'
ERROR: Couldn't find material 'head_mp_usmc_tactical_mich_stripes_nomex'
ERROR: Couldn't find material 'body_mp_usmc_sniper'
ERROR: Couldn't find material 'head_mp_usmc_tactical_baseball_cap'
ERROR: Couldn't find material 'body_mp_usmc_recon'
ERROR: Couldn't find material 'head_mp_usmc_nomex'
ERROR: Couldn't find material 'body_mp_usmc_assault'
ERROR: Couldn't find material 'head_mp_usmc_tactical_mich'
ERROR: Couldn't find material 'body_mp_usmc_support'
ERROR: Couldn't find material 'head_mp_usmc_shaved_head'
ERROR: Couldn't find material 'body_mp_arab_regular_cqb'
ERROR: Couldn't find material 'head_mp_arab_regular_headwrap'
ERROR: Couldn't find material 'viewhands_desert_opfor'
ERROR: Couldn't find material 'body_mp_arab_regular_sniper'
ERROR: Couldn't find material 'head_mp_arab_regular_sadiq'
ERROR: Couldn't find material 'body_mp_arab_regular_engineer'
ERROR: Couldn't find material 'head_mp_arab_regular_ski_mask'
ERROR: Couldn't find material 'body_mp_arab_regular_assault'
ERROR: Couldn't find material 'head_mp_arab_regular_suren'
ERROR: Couldn't find material 'body_mp_arab_regular_support'
ERROR: Couldn't find material 'head_mp_arab_regular_asad'
ERROR: Couldn't find material 'minimap.cfg'


BEFORE I copied the file over, I never got this error. Now I do?



edited on Apr. 21, 2008 09:39 pm by Wiseass
Share |
illram
General Member
Since: Jan 22, 2008
Posts: 233
Last: Jul 15, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Tuesday, Apr. 22, 2008 03:26 am
Don't copy the .csv there, the yellow warning is for a different .csv that is created for your loadscreen. Don't worry about that error for now, your compass issues lie elsewhere.
Share |
Wiseass
General Member
Since: Mar 23, 2008
Posts: 33
Last: Jun 30, 2009
[view latest posts]
Level 2
Category: CoD4 MP Mapping
Posted: Tuesday, Apr. 22, 2008 11:43 pm
illram writes...
Quote:
Don't copy the .csv there, the yellow warning is for a different .csv that is created for your loadscreen. Don't worry about that error for now, your compass issues lie elsewhere.


okay, I removed the file, and double-checked everything, now I get this when building the fast file


ERROR: Could not open 'vision/mp_stargatewarehouse.vision'
ERROR: failed loading 'vision/mp_stargatewarehouse.vision' of type 'rawfile'

i added the .vision line to the zone file, but still get that error when building the FF

still no mini map :(
Share |
illram
General Member
Since: Jan 22, 2008
Posts: 233
Last: Jul 15, 2008
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Tuesday, Apr. 22, 2008 11:58 pm
You need to create a vision file.

http://www.infinityward.com/community/forum/index.php?topic=12965.0

But that's not your issue either, unfortunately.
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»