Page 1 of 2

Grrr

Posted: July 31st, 2008, 3:39 am
by Soviet
Well I've already tried Modsonline and IWnation with no results, so I'm just going to hopelessly try here as well. My reflections won't compile. To quote my topic at IWnation:


I completed a large section of my map for CoD4, and I wanted to compile it with lighting. So, I did all the necessarily things. I have covered my map in light grid texture, I've properly portalled every area, I've added one reflection probe to each portalled area, and I do not have any primary lights that I am aware of. However, every time I click 'Compile Reflections,' the compiler comes up for a split second, too short to see anything except a black flash, then it disappears. It does this no matter how many times I do it. I've tried skipping it and compiling fast file and running the map. However, when I do it has the stupid red tint to it. So right now I'm stuck as I don't even have an error to work off of.

Here is my compile log:

Code: Select all

A subdirectory or file C:\Program Files\Activision\Call of Duty 4 - Modern Warfa
re\raw\maps\mp\ already exists.
.
.
###########################################
                COMPILE BSP
###########################################
.
.
        1 file(s) copied.
CoD4Map v1.1 (c) 2002 Id Software Inc. / Infinity Ward
---- cod2map ----
----- FS_Startup -----
Current search path:
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/main
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_13.iwd (265
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_12.iwd (33 f
iles)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_11.iwd (448
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_10.iwd (230
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_09.iwd (447
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_08.iwd (66 f
iles)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_07.iwd (34 f
iles)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_06.iwd (416
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_05.iwd (716
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_04.iwd (765
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_03.iwd (670
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_02.iwd (1296
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_01.iwd (1456
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_00.iwd (1054
files)
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//main
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//main_shared
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/raw
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/raw_shared
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/devraw
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/devraw_shared
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//players
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//raw
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//raw_shared
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//devraw
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//devraw_shared
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw06.iwd (7 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw05.iwd (1338 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw04.iwd (1730 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw03.iwd (3705 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw02.iwd (3483 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw01.iwd (3181 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw00.iwd (2903 files)
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//raw/english

File Handles:
----------------------
24243 files in iwd files
Loading map file C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\map
_source\mp_new_map.map
writing C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp\
mp_new_map.d3dprt

finding triangle windings...
coalescing coincident windings...
removing occluded winding fragments...
assigning primary lights...
finding sun shadow casters...
splitting large windings...
merging into concave windings...
fixing t-junctions...
tethering holes to their concave windings...
building lightmap groups...
finished in 11 seconds
assigning lightmaps...
finding index mapping and snapping vertices...
triangulating all windings...
0 self-tjunctions fixed
0 degenerate tris removed
smoothing normals...
emitting triangles...
triangulating all windings...
0 self-tjunctions fixed
0 degenerate tris removed
smoothing normals...
emitting triangles...
combining layered materials...
10455 vertices couldn't be merged because the textures point different ways
emitting cells and portals...

building curve/terrain collision...
Adding brush neighbor bevels...
Removing redundant brush collision planes...
removed 526 brush sides
elapsed time 0 seconds
Finished processing world entity

Processing entity 23 of 142
Writing C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\maps\mp\
mp_new_map.d3dbsp
   41 seconds elapsed
.
.
###########################################
                COMPILE LIGHT
###########################################
.
.
        1 file(s) copied.
----- FS_Startup -----
Current search path:
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/main
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_13.iwd (265
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_12.iwd (33 f
iles)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_11.iwd (448
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_10.iwd (230
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_09.iwd (447
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_08.iwd (66 f
iles)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_07.iwd (34 f
iles)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_06.iwd (416
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_05.iwd (716
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_04.iwd (765
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_03.iwd (670
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_02.iwd (1296
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_01.iwd (1456
files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\iw_00.iwd (1054
files)
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//main
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//main_shared
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/raw
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/raw_shared
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/devraw
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\bin\CoD4CompileTools
/devraw_shared
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//raw
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//raw_shared
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//devraw
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//devraw_shared
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw06.iwd (7 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw05.iwd (1338 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw04.iwd (1730 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw03.iwd (3705 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw02.iwd (3483 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw01.iwd (3181 files)
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main\localized_engli
sh_iw00.iwd (2903 files)
C:/Program Files/Activision/Call of Duty 4 - Modern Warfare//raw/english

File Handles:
----------------------
24243 files in iwd files

using map radiosityScale 1.8


using default contrastGain 0.3

building collision data...
building collision took 0.5 seconds
----------------------------------------
Calculating sample areas...
Finished in 0 seconds.
----------------------------------------
Getting radiosity color for each sample...
Finished in 2 seconds.
----------------------------------------
Applying radiosity scale...
Finished in 0 seconds.
----------------------------------------
Loading saved light transport for sky and radiosity...
----------------------------------------
Building light transport for light sources...
Finished in 22 seconds.
----------------------------------------
Normalizing transport weights...
Finished in 0 seconds.
----------------------------------------
Seeding sky light...
Finished in 0 seconds.
----------------------------------------
Radiosity bounce 1...
Finished in 1 seconds.
----------------------------------------
Radiosity bounce 2...
Finished in 1 seconds.
----------------------------------------
Radiosity bounce 3...
Finished in 1 seconds.
----------------------------------------
Radiosity bounce 4...
Finished in 1 seconds.
----------------------------------------
Radiosity bounce 5...
Finished in 1 seconds.
----------------------------------------
Radiosity bounce 6...
Finished in 1 seconds.
----------------------------------------
Finding lightmap bleeding...
Finished in 0 seconds.
----------------------------------------
Building final lightmaps...
Finished in 38 seconds.
----------------------------------------
Calculating ground lighting for static models...
Finished in 0 seconds.
Using 5375 grid points from grid logfile 'C:\Program Files\Activision\Call of Du
ty 4 - Modern Warfare\raw\maps\mp\mp_new_map.grid'.
Using 303888 grid points from grid logfile 'C:\Program Files\Activision\Call of
Duty 4 - Modern Warfare\raw\maps\mp\mp_new_map.grid_auto'.
Light grid sample point file 'C:\Program Files\Activision\Call of Duty 4 - Moder
n Warfare\raw\maps\mp\mp_new_map.grid_not' not found.
----------------------------------------
Calculating light grid...
Finished in 2:40.
----------------------------------------
Quantizing light grid colors...
----------------------------------------
Improving quantization...
Finished in 4:06.
----------------------------------------
Encoding light grid...

Entire light compile finished in 8 minutes 3 seconds
.
.
###########################################
                       DONE
###########################################
.
.
Press any key to continue . . .

Thanks for any help.

Re: Grrr

Posted: July 31st, 2008, 8:39 am
by =ICE=Al3X
I had the same Problem ,then i played the Pac-man Game with devmap and collect the most of the points ,then the red tint was gone ! But why was the red tint before I do not know.

Sry for my bad english :wink:

Re: Grrr

Posted: July 31st, 2008, 8:47 am
by Soviet
That's weird. The volume light grid/collecting dots gets rid of rainbow tint on models, not red tint. I might try it though, I'm pretty desperate.

Re: Grrr

Posted: July 31st, 2008, 1:55 pm
by =ICE=Al3X
Yea i Know that ,but at me it works :lol:

Re: Grrr

Posted: July 31st, 2008, 8:46 pm
by [SoE]_Zaitsev
Soviet wrote:I'm just going to hopelessly try here
We that bad ?

Re: Grrr

Posted: July 31st, 2008, 11:57 pm
by Soviet
you aren't as good as modsonline and iwnation

Re: Grrr

Posted: August 1st, 2008, 1:20 am
by Pedsdude
We aren't? I thought CoDJumper.com was all about CoD4 mapping help?! :cry:

Re: Grrr

Posted: August 1st, 2008, 5:22 am
by Dizzy
Alright soviet this doesnt really help your situation but cod4 has a nice nifty feature that you can view what the lighting will look like without even compiling the map you can do it in radiant... There is a tutorials on modonline...

Re: Grrr

Posted: August 1st, 2008, 6:15 am
by Soviet
yea I know :mrgreen:

Re: Grrr

Posted: August 1st, 2008, 9:07 am
by Dizzy
Alright I was just making sure you knew so you didnt waste your time compiling trying to get lighting to look right :P

Re: Grrr

Posted: August 1st, 2008, 9:44 am
by Soviet
no I'm not, I have scripting though and I'd like the lighting with the scripted objects to be able to see how it looks more.

Re: Grrr

Posted: August 1st, 2008, 12:43 pm
by [SoE]_Zaitsev
Soviet wrote:you aren't as good as modsonline and iwnation
Ah fair enough ;)

Re: Grrr

Posted: August 1st, 2008, 7:47 pm
by Drofder2004
Try this...

Navigate to the CoD4CompileTools Folder
Find a file called "cod4compiletools_reflections.bat"
Open that file in notepad or similar.
At the end of the file, but BEFORE "cls", add the word "pause" on its own line.
Now the black window will stay open.

Report back.

Re: Grrr

Posted: August 1st, 2008, 8:18 pm
by Soviet
now we're getting somewhere

Code: Select all

'mp_tool.exe' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
here is my reflections.bat in case there is a command wrong there

Code: Select all

@ECHO OFF

set treepath=%~1
set mapname=%2
set mpmap=%3

cd %treepath%
if "%mpmap%" == "1" (
	mp_tool.exe +set r_fullscreen 0 +set loc_warnings 0 +set +set developer 1 +set logfile 2 +set thereisacow 1337 +set sv_pure 0 +set com_introplayed 1 +set useFastFile 0 +set ui_autoContinue 1 +set r_reflectionProbeGenerateExit 1+set com_hunkMegs 512 +set r_reflectionProbeRegenerateAll 1 +set r_dof_enable 0 +set r_zFeather 1 +set sys_smp_allowed 0 +set r_reflectionProbeGenerate 1 +devmap %mapname%
) else (
	sp_tool.exe +set r_fullscreen 0 +set loc_warnings 0 +set +set developer 1 +set logfile 2 +set thereisacow 1337 +set com_introplayed 1 +set useFastFile 0 +set ui_autoContinue 1 +set r_reflectionProbeGenerateExit 1+set com_hunkMegs 512 +set r_reflectionProbeRegenerateAll 1 +set r_dof_enable 0 +set r_zFeather 1 +set sys_smp_allowed 0 +set r_reflectionProbeGenerate 1 +devmap %mapname%
)
pause

cls

Re: Grrr

Posted: August 1st, 2008, 11:11 pm
by Drofder2004
Ok, nothing wrong with the bat, but we are going to modify it a little.

Make a copy of the bat as a backup and then go into edit the original bat.

Delete everything and change to

Code: Select all

cd DIR

mp_tool.exe +set r_fullscreen 0 +set loc_warnings 0 +set +set developer 1 +set logfile 2 +set thereisacow 1337 +set sv_pure 0 +set com_introplayed 1 +set useFastFile 0 +set ui_autoContinue 1 +set r_reflectionProbeGenerateExit 1+set com_hunkMegs 512 +set r_reflectionProbeRegenerateAll 1 +set r_dof_enable 0 +set r_zFeather 1 +set sys_smp_allowed 0 +set r_reflectionProbeGenerate 1 +devmap MAP

pause
cls
Firstly change "DIR". This need to be changed to the directory which contains "mp_tool.exe", the root cod directory is default
Second change "MAP" to your map name.

Save and double click. CoD4 will open and will hang for a bit and then flash lots of images, then close.
Reflections compiled.

GL ;)