Author |
Topic: zip archive iwd |
InsideOut |
|
General Member Since: Jan 22, 2008 Posts: 171 Last: Sep 12, 2012 [view latest posts] |
|
|
|
|
Saureco |
General Member Since: Aug 12, 2006 Posts: 254 Last: Mar 19, 2008 [view latest posts] |
|
|
|
InsideOut |
|
General Member Since: Jan 22, 2008 Posts: 171 Last: Sep 12, 2012 [view latest posts] |
|
|
|
|
Saureco |
General Member Since: Aug 12, 2006 Posts: 254 Last: Mar 19, 2008 [view latest posts] |
|
|
|
XE_Avenger |
General Member Since: Mar 9, 2008 Posts: 12 Last: Mar 18, 2008 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, Mar. 16, 2008 11:53 pm |
|
Saureco writes...Quote: Quick update:
OK, I found something important. The .tga file I used to create the compass image file was originally called compass_mp_comm_station; I was missing map in the file name. But all the saved files for materials, material_properties, and images were called compass_map_mp_comm_station. All references in zone files and gsc files were called compass_map_mp_comm_station. But the error that pops up when I press the Run Selected Map button specifically says " Error: Couldn't load image 'compass_mp_comm_station' "
What is the connection between the targa file (.tga) name and the final files?
It looks to me like the line in your .gsc that should read:
maps\mp\_compass::setupMiniMap("compass_map_mp_comm_station");
reads:
maps\mp\_compass::setupMiniMap("compass_mp_comm_station");
so the game is looking for the file that the part of the .ff based on the .gsc references, and can't find it. |
|
|
|
Saureco |
General Member Since: Aug 12, 2006 Posts: 254 Last: Mar 19, 2008 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Monday, Mar. 17, 2008 01:30 am |
|
Here is my gsc:
Code: main()
{
//run this code to hide the HUD for screen shot purposes
//==============
//SetSavedDvar( "hud_showStance", 0 );
//SetSavedDvar( "compass", "0" );
//SetSavedDvar( "ammoCounterHide", "1" );
//==============
maps\mp\mp_comm_station_fx::main();
maps\mp\_load::main();
maps\mp\_compass::setupMiniMap("compass_map_mp_comm_station");
//maps\mp\gametypes\_dev2::init();
setExpFog(100, 1000, .5, .5, .5, 0.9); //modify as necessary; range should be 50yds
VisionSetNaked( "mp_bog" );
ambientPlay("ambient/amb_aftermath0v2_lsrs"); //play the background sound for the map
game["allies"] = "sas";
game["axis"] = "spetsnaz";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["allies_soldiertype"] = "woodland";
game["axis_soldiertype"] = "woodland";
setdvar( "r_specularcolorscale", "1" );
setdvar("r_glowbloomintensity0",".25");
setdvar("r_glowbloomintensity1",".25");
setdvar("r_glowskybleedintensity0",".3");
setdvar("compassmaxrange","500");
}
Is something wrong in it? |
|
|
|
Sevenz |
|
General Member Since: Apr 24, 2006 Posts: 2390 Last: May 10, 2013 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Monday, Mar. 17, 2008 01:05 pm |
|
SpeedHighway writes...Quote: It doesn't care what order the command line variables are in.
Well, fs_game works where ever it is in the command line. But the following commands didn't work when i added them as command line options, i had to add them before the devmap command in the batch script:
Code: (...) +set scr_game_playerwaittime 1 +set scr_game_matchstarttime 1 +devmap %mapname% %cmdOptions%
Quote: where is the real compass .iwi file once it's generated?
[...]
it still gives me an error referencing the file compass_map_mp_comm_station is not found.
raw\images (compass_map_mp_yourmap.iwi)
raw\materials
raw\material_properties
copy and paste all three files (compass_map_mp_yourmap) into a new folder structure. To do this, create a new folder on your desktop (or somewhere else, but outside the raw folder). Inside the new folder, create 3 folders called images, materials and material_properties. Make sure the files are in the right folders (material and material_property have the same name, but the property file is always 16 KB). Select all three folders, make a zip archive of it, rename extension from .zip to .iwd and move it to usermaps\mp_yourmap\ (new folder if necessary).
to run your map, server has to be modded. If you don't want any modifications, simply make a new folder, eg. Mods\minimap. When lunching from compile tools or shortcut, add this as command line option: +set fs_game Mods/minimap (slash, not backslash!)
Quote: Where do I find the compass .iwi that I need to place into the images folder in the .iwd?
Put all 3 files mentioned above into the .iwd, not only the iwi.
Quote: All three kinds of sources make it sound so easy, yet none of them work for me.
Worked for me at 100%, though i used a dxt5 dds with an alpha channel and had some problems with the compiler. I explained everything to a friend but we both were not able to make it working without tiling/repeating and with alpha channel. Don't have a clue...
Quote: Is something wrong in it?
Looks fine. Have you rebuilt the fast file and copied both .ff files to usermaps\map_mp_comm_station\ ? |
|
|
|
illram |
General Member Since: Jan 22, 2008 Posts: 233 Last: Jul 15, 2008 [view latest posts] |
|
|
|
Saureco |
General Member Since: Aug 12, 2006 Posts: 254 Last: Mar 19, 2008 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Tuesday, Mar. 18, 2008 02:18 am |
|
Ok, wait. I'm seeing what looks like two different approaches again.
Quote: raw\images (compass_map_mp_yourmap.iwi)
raw\materials
raw\material_properties
copy and paste all three files (compass_map_mp_yourmap) into a new folder structure. To do this, create a new folder on your desktop (or somewhere else, but outside the raw folder). Inside the new folder, create 3 folders called images, materials and material_properties. Make sure the files are in the right folders (material and material_property have the same name, but the property file is always 16 KB). Select all three folders, make a zip archive of it, rename extension from .zip to .iwd and move it to usermaps\mp_yourmap\ (new folder if necessary).
to run your map, server has to be modded. If you don't want any modifications, simply make a new folder, eg. Mods\minimap. When lunching from compile tools or shortcut, add this as command line option: +set fs_game Mods/minimap (slash, not backslash!)
This one says to make three separate folders (images, materials, and material_properties) and place them in the iwd.
Quote: @Saureco
Make sure your compass file is within the same directory structure in your iwd as your gsc file reference. E.g., if your gsc file is calling for it in "maps/mp," make a folder in your iwd called "maps" and another folder in that called "mp" and put your compass in there. At least that's what worked for me; I was getting the same error message. (And load the map from within a mod; this means your iwd must be in the folder for whatever mod you're running, e.g. mods/modwarfare/mp_yourmapname.iwd.)
Hope that helps.
Now this one says to make a directory structure with the gsc and pack it into an iwd.
Come on, guys. Which is it? Drop us a screen shot or video or something. Most of us are visual creatures. Trying to explain file structures in a forum text field is like trying to give directions by drawing on your palm with your finger. I appreciate the help so far (and I didn't mean to hijack this thread), but I don't feel that I can say I'm any closer to a solution yet. |
|
|
|
illram |
General Member Since: Jan 22, 2008 Posts: 233 Last: Jul 15, 2008 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Tuesday, Mar. 18, 2008 06:34 am |
|
First off, try downloading peoples maps, and see if they work. Then rename their iwds to zips, open them up and snoop around to see how they did it.
I'll defer to sevenz and others as he seems far more knowledgeable about this stuff than me. All I know is, the following is how I originally got my compass file to work:
http://img291.imageshack.us/my.php?image=iwdxe9.jpg
That's my .ZIP before I changed it to .IWD. (It has changed since I added my loadscreen.) I made sure my ffs were updated with the new csv and the gsc that referenced my compass file. I placed my ff's in usermaps\mymapname\, and my iwd in \modwarfare. I loaded the game, loaded modwarfare, and opened my map from the console rather than the tools, and it worked. Don't know why, as it is different from the method recommended and from what I see in other iwd's, but thats how it worked for me. I'm a newb too, (first used radiant in late february) but trial and error goes a long way
edited on Mar. 18, 2008 02:35 am by illram |
|
|
|