Thanks
I am useing mbuilder how do I get it to write a log when i d
Moderator: Moderators
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
I am useing mbuilder how do I get it to write a log when i d
I am useing mbuilder how do I get it to write a log when i do a compile?
Thanks

Thanks
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
put
At the end of the compile commands, and you wont get the logs in the DOS window -> it will only write it to the file C:\compile_logfile.txt
Code: Select all
>> C:\compile_logfile.txtFor MBuilder:
You can make seperate logs for all steps, or just the one you need. Click on "change" and put the code after your compile option. The text file can have any name you wish.
-v > c:\WINDOWS\desktop\log_bsp.txt
-v > c:\WINDOWS\desktop\log_vis.txt
-final > c:\WINDOWS\desktop\log_light.txt
I have them going to my desktop, so they can be trashed easily after looking them over. But, your path to the desktop may be different. Also, using these logs, nothing will be printed to the DOS window during the compile.
Looking at Bjarne BZR post, I guess using ">>" will make it add to a text file--instead of overwriting it.
-v > c:\WINDOWS\desktop\log_bsp.txt
-v > c:\WINDOWS\desktop\log_vis.txt
-final > c:\WINDOWS\desktop\log_light.txt
I have them going to my desktop, so they can be trashed easily after looking them over. But, your path to the desktop may be different. Also, using these logs, nothing will be printed to the DOS window during the compile.
Looking at Bjarne BZR post, I guess using ">>" will make it add to a text file--instead of overwriting it.
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
This is what I wrote in my batch file and it doesnt seam to work, I tried a few other different ways ................ erm would one of you gents mind poating an example of one of your batch files. With this one I just copied my mbuilder one and copied in the lines you showed me.
Thanks
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -v -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAA\main\maps\obj_hms_hood.map
//newline
>> C:\compile_logfile.txt
//newline
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -vis -v -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAA\main\maps\obj_hms_hood.map
//newline
>> C:\compile_logfile.txt
//newline
"C:\PROGRA~1\MOHAAT~1\MOHlight.exe" -verbose -final -staticshadows -extragrid -gamedir C:\PROGRA~1\EAGAME~1\MOHAA
C:\MOHAA\main\maps\obj_hms_hood.map
//newline
>> C:\compile_logfile.txt
//newline
pause
Copy "C:\MOHAA\main\maps\obj_hms_hood.bsp" C:\PROGRA~1\EAGAME~1\MOHAA\main\maps
cd C:\PROGRA~1\EAGAME~1\MOHAA
"C:\PROGRA~1\EAGAME~1\MOHAA\MOHAA.exe" +set developer 1 +set thereisnomonkey 1 +set cheats 1 +set ui_console 1 +g_gametype 0 +devmap obj_hms_hood
Thanks
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -v -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAA\main\maps\obj_hms_hood.map
//newline
>> C:\compile_logfile.txt
//newline
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -vis -v -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAA\main\maps\obj_hms_hood.map
//newline
>> C:\compile_logfile.txt
//newline
"C:\PROGRA~1\MOHAAT~1\MOHlight.exe" -verbose -final -staticshadows -extragrid -gamedir C:\PROGRA~1\EAGAME~1\MOHAA
C:\MOHAA\main\maps\obj_hms_hood.map
//newline
>> C:\compile_logfile.txt
//newline
pause
Copy "C:\MOHAA\main\maps\obj_hms_hood.bsp" C:\PROGRA~1\EAGAME~1\MOHAA\main\maps
cd C:\PROGRA~1\EAGAME~1\MOHAA
"C:\PROGRA~1\EAGAME~1\MOHAA\MOHAA.exe" +set developer 1 +set thereisnomonkey 1 +set cheats 1 +set ui_console 1 +g_gametype 0 +devmap obj_hms_hood
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Code: Select all
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -v -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAA\main\maps\obj_hms_hood.map >> C:\compile_bsp_logfile.txt
//newline
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -vis -v -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAA\main\maps\obj_hms_hood.map >> C:\compile_vis_logfile.txt
//newline
"C:\PROGRA~1\MOHAAT~1\MOHlight.exe" -verbose -final -staticshadows -extragrid -gamedir C:\PROGRA~1\EAGAME~1\MOHAA
C:\MOHAA\main\maps\obj_hms_hood.map >> C:\compile_light_logfile.txt
//newline
pause
//newline
Copy "C:\MOHAA\main\maps\obj_hms_hood.bsp" C:\PROGRA~1\EAGAME~1\MOHAA\main\maps
//newline
cd C:\PROGRA~1\EAGAME~1\MOHAA
//newline
"C:\PROGRA~1\EAGAME~1\MOHAA\MOHAA.exe" +set developer 1 +set thereisnomonkey 1 +set cheats 1 +set ui_console 1 +g_gametype 0 +devmap obj_hms_hood- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
- small_sumo
- Lieutenant General
- Posts: 953
- Joined: Mon Jul 01, 2002 4:17 pm
- Contact:
would there be anyway to use and have a seperater between each compile log displaying the date of when it was compiled and which map was compiled? I kow i might have to use a date function to get the date, but at least a seperator and any other options which were set. For example:
cos I would like my file to be organized - and i'm very forgetful.
Code: Select all
>> c:\compile_logs.txtCode: Select all
************************
date:
map compiled:
command line:
other options:
************************
first_compile
************************
date:
map compiled:
command line:
other options:
************************
second_compile"We must become the change we want to see in the world" (Mahatma Gandhi)
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Try something like this in a *.bat file:
Code: Select all
echo. >> c:\test.txt
echo ************************ >> c:\test.txt
echo ** BSP COMPILE START *** >> c:\test.txt
echo ************************ >> c:\test.txt
echo date: >> c:\test.txt
date /T >> c:\test.txt
echo time: >> c:\test.txt
time /T >> c:\test.txt
echo ************************ >> c:\test.txt
echo. >> c:\test.txt
"C:\PROGRA~1\MOHAAT~1\Q3map.exe" -v -gamedir D:\Games\MOHAA C:\DOCUME~1\Bjarne\MYDOCU~1\MOHAA\maps\obj\obj_saving_private_frosty.map >> c:\test.txt
echo. >> c:\test.txt
echo ************************ >> c:\test.txt
echo date: >> c:\test.txt
date /T >> c:\test.txt
echo time: >> c:\test.txt
time /T >> c:\test.txt
echo ************************ >> c:\test.txt
echo *** BSP COMPILE END **** >> c:\test.txt
echo ************************ >> c:\test.txt
echo. >> c:\test.txt-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
cheers - i did know what a 'MS-Dos Batch File' was, but i didn't know it was .bat. Also it worked but it didn't - it came up with this:
But it writes to a file, and even if i drop the date that's the important thing for me
cheers,
m4rine
I don't know anything about the date functions (i do in PHP, but not in anyhting else) please help! I just copied the code you put, changed all the directory's/mapname to my own.************************
** BSP COMPILE START ***
************************
date:
Invalid date
Enter new date (dd-mm-yy):
But it writes to a file, and even if i drop the date that's the important thing for me
cheers,
m4rine
"We must become the change we want to see in the world" (Mahatma Gandhi)


