MAPPING: compiling

*map* *map* *map*

MAPPING: compiling

Postby SteveMcqueen » 04.01.09

there are three stages that are important for us in urban terror: BSP; VIS; LIGHT. BSPC does not count as we will not play with bots...
BSP is the making of the mapfile itself
VIS calculates the different "rooms" you can see depending on where you stand, all what you can see will be rendered, relates to FPS and playability
LIGHT calculates the lighting your map does have.

use q3map2 to (de)compile maps... or better 27's hacked version: FS_q3map_Radbump_2a
http://forums.urbanterror.net ... go search 27's big thread, there it is.
and howto integrate it into the radiant: (so no frontend or commandline usage is needed)

for 1.5 are two ways...
place the compiler FS_q3map_Radbump_2a.exe into your radiant folder and rename it to q3map2.exe
(there should be already a q3map2.exe, rename that one before^^)

OR if you want to have the luxus of several different compilers being able to use from within your radiant:
close the radiant in case it is open.
open the following file with an editor:
Code: Select all
C:Dokumente und Einstellungen<username>AnwendungsdatenRadiantSettings1.5.0q3.gamebuild_menu.xml

for enlish windoze it should be similar to this:
c:documents and settings<username>preferences?RadiantSettings1.5.0q3.gamebuild_menu.xml
(IIRC)
better back the file up before... and have your radiant closed while doing all this!
paste:
Code: Select all
<var name="FS_q3map_Radbump_2a">&quot;[RadiantPath]FS_q3map_Radbump_2a.[ExecutableType]&quot; -v<cond value="[MonitorAddress]"> -connect [MonitorAddress]</cond> -game quake3 -fs_basepath &quot;[EnginePath]&quot;<cond value="[GameName]"> -fs_game [GameName]</cond></var>
<build name="BSP">

between the first defined variable (defining "q3map2") and the first set of build commands (<build name="...).
safe file and close editor.

start the radiant.
now you can use both compilers by setting a different shortcut under "Build">>"Customize..." in your radiant..
i.e. [FS_q3map_Radbump_2a] -meta "[MapFile]" etc instead of [q3map2] -meta "[MapFile]"
if you would need to use the old one just change the the line back to [q3map2]

for 1.4:
somewhere in the urt.net forums there is a description...



you can set q3map2toolz (or any other frontend you are using) or radiant up, so it will automatically start urban terror after it has finished compiling.
q3maptoolz: via a checkbox somewhere
radiant: under options, press P, goto "Build", "Run Engine After Compile"

no matter how you do it, now go and BUILD!

q3map2 wiki, all the compile stage switches: http://en.wikibooks.org/wiki/Q3Map2

lists of error messages:
also on http://www.urbanterror.net .... (...)
http://www.lucasforums.com/showthread.php?t=125242
http://www.katsbits.com/htm/tutorials/common_error_messages.php?subaction=showfull&id=1149147724&archive=&start_from=&ucat=15&

decompiling:
use a frontend... or a START>>RUN/Ausführen>>cmd
<your path to the compiler>q3map2.exe -convert -format map <path to map><map>.bsp
in the folder where the .bsp was located you should find an new file: <mapname>_converted.map

#######################################################

when you want to playtest a map, you will need sv_pure 0 set in urbanterror, because of the .bsp file is not put into a .pk3 mapfile, pure servers wont work. and bombmode is g_gametype 8 by the way, and restart works via map_restart.

how to make a .pk3 : <placeholder> <---- here will be the link sometime in the future, as soon as i know everything and i am about to release ut4_de_train_rc1 ...

#######################################################

another program for decompiling: http://www.vgpro.com/file/16538_matchstick101.zip.html
dont know why i posted the last link, but it will stay... maybe was a decompiler for halflife...
SteveMcqueen
 

Re: q3map2

Postby SteveMcqueen » 04.01.09

Code: Select all
-meta
this is for a quick check of the map

-vis -saveprt
this compiles the vis part and makes a portal file, so you can check vis stuff via it?

-light -fast -filter -patchshadows -gamma 1.35 -samples 2 -bounce 15
i dont know yet what all this means...


this is what tub (devteam mapper) uses for compiling...
SteveMcqueen
 

Re: MAPPING: (De)Compiling, q3map2

Postby SteveMcqueen » 04.09.09

SteveMcqueen
 

Re: MAPPING: compiling

Postby SteveMcqueen » 06.24.09

my current set:

BSP: -meta -patchmeta -v
VIS: -vis -hint -merge -saveprt -v
LIGHT: -light -fast -filter -patchshadows -gamma 1.5 -pointscale 1 -sky 1.7 -samples 3 -bounce 2 -v
SteveMcqueen
 

Re: MAPPING: compiling

Postby SteveMcqueen » 06.24.09

having huge compile times?

Gerbil05-02-2003, 21:05
try not choosing one [light stage] that includes -bounce [or -bouncegrid]
Radiosity is a huuuuge time eater, and it's really not essential for anything except final final final build (and mostly not even then).

That should speed it up :)

Another possible cause may be over enthusiasm with hint brushes, or not using detail / structural wisely.

I recall my first map used to take hours to compile - because it was entirely structural! When I was playing around fairly recently I made it properly detail / structural. Compile time sank to about 5 minutes...
SteveMcqueen
 


Who is online

Users browsing this forum: No registered users and 0 guests

Misc