Exist directives to q3map.exe record all output in a file ?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Exist directives to q3map.exe record all output in a file ?

Post 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
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

log

Post 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.
Tom Trude,

Image
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Re: log

Post 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 ?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

batch

Post 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.
Tom Trude,

Image
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Always helping...

Tom, more one time, thanks a lot ! :oops:
Post Reply