When i try to compile with my .bat file the et console comes up and tells me “couldn’t load defualt.cfg - i am missing essential files - verify your installation.” no clue whats going on this is my .bat file
First: lines starting with “@” are not printed to the console, only their output is. However, if you have set echo to “off” (first line of your batch file), @ rules are no longer necessary for the rest of the batch file.
Let’s move to the interesting part: you have a batchfile to compile, right. For some reason, you included the path to W:ET, and for an even weirder reason used that path to supposedly compile your maps.
Next, you never specify the map needs to be compiled for W:ET, therefore I added “-game et” to GEN_OPTIONS.
Now notice how I changed COMP_PATH to Q3MAP_PATH in the following code listing. This is what the file should actually look like:
@echo off
set Q3MAP_PATH="C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\q3map2.exe"
set et_PATH="C:\Program Files\Wolfenstein - Enemy Territory"
set COMP_PATH="C:\Program Files\Wolfenstein - Enemy Territory\et.exe"
set MAP_PATH="C:\Program Files\Wolfenstein - Enemy Territory\etmain\maps\sock_pom-src.map"
set GEN_OPTIONS=-fs_basepath %et_PATH% -game et
%Q3MAP_PATH% -v -meta %GEN_OPTIONS% %MAP_PATH%
%Q3MAP_PATH% -vis -saveprt %GEN_OPTIONS% %MAP_PATH%
%Q3MAP_PATH% -light -fast -samples 2 -pointscale 1.4 -patchshadows %GEN_OPTIONS% %MAP_PATH%
rem ASE stuff
rem %Q3MAP_PATH% -meta -patchmeta %GEN_OPTIONS% %MAP_PATH%
rem %Q3MAP_PATH% -convert ase %GEN_OPTIONS% %MAP_PATH%
If you want to avoid ANY problems with .bats whatsoever, get yourself a compile-frontend. I recommend Q3map2build by bobdev (search for it on the forum, there are lots of posts). Its simply perfect.
Technically, Q3Map2Build just generates a compile .bat file for you by just clicking a few buttons. You only need to configure it once, thereafter it should work.
That s right. But why go by foot if you can drive a ferrari?
I loved that i was able to change compile settings in seconds, or just have a quick compile without LIGHT stage, etc etc… total variation for fast work. It even reads which compile settings are available, depending on which q3map2 version you are running.