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
Exist directives to q3map.exe record all output in a file ?
Moderator: Moderators
log
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.
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
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 ?
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
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
> 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.
