Page 1 of 1
Exist directives to q3map.exe record all output in a file ?
Posted: Tue Mar 21, 2006 10:53 pm
by mcunha98
Hi
In my last map i have some problems and the output window of q3map dont is the best alternative to show the compilation steps (one by one).
My question is if exist a command to compile map with the output of compilation directly to a file.
Example...
q3map ../../main/maps/mp_98zampur > mp_98zampur.log
log
Posted: Wed Mar 22, 2006 4:05 am
by tltrude
For MBuilder:
You can make seperate logs for all steps, or just the one you need. In Mbuilder, click on "change" and put the additional code lines after your compile options. The text file can have any name you wish.
-v > C:\Documents and Settings\tltrude\Desktop\log_bsp.txt
-v > C:\Documents and Settings\tltrude\Desktop\log_vis.txt
-final > C:\Documents and Settings\tltrude\Desktop\log_light.txt
I have a shortcut on my desktop, so the logs can be trashed easily after looking them over. But, you can have the logs going any folder you like. Also, when using these logs, the details of the compilers will not be seen in the DOS window during the compile.
The little arrow (>) is important.
Re: log
Posted: Wed Mar 22, 2006 1:39 pm
by mcunha98
Some questions...
1) I dont use mohbuilder, i use a .bat file to compile my maps. So, the method work fine, right ?
2) The convention of names/paths in DOS case (using bat file) require the output path in DOS format (like c:\docume~1\tltrude.....) or not ?
batch
Posted: Wed Mar 22, 2006 8:54 pm
by tltrude
Code: Select all
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -v > C:\Documents and Settings\tltrude\Desktop\log_bsp.txt -gamedir C:\PROGRA~1\EAGAME~1\MOHAA\main\maps\tltrude\door2.map
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -vis -v -gamedir C:\PROGRA~1\EAGAME~1\MOHAA\main\maps\tltrude\door2.map
"C:\PROGRA~1\MOHAAT~1\MOHlight.exe" -final -gamedir C:\PROGRA~1\EAGAME~1\MOHAA\main\maps\tltrude\door2.map
pause
Copy "C:\PROGRA~1\EAGAME~1\MOHAA\main\maps\tltrude\door2.bsp" \main\maps
I only did the BSP log above, but that is how MBuilder would make the .bat file. The path to the log file can be to anywhere you wish, but it must be the whole path.
> mp_98zampur.log = bad
> C:\Documents and Settings\tltrude\Desktop\log_bsp.txt = good
> C:\Program Files\EA GAMES\MOHAA\main\maps\logs\mp_98zampur.log = good
You will need three paths for BSP, VIS, and LIGHT, if you want to log everything.
Posted: Thu Mar 23, 2006 12:13 pm
by mcunha98
Always helping...
Tom, more one time, thanks a lot !
