⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bldq1_2.cfg

📁 quake的地图编辑器的源代码, 不是quake3的
💻 CFG
字号:
/*
Quest auto building configuration file
Copyright 1998, 1998 Alexander Malmberg

Quake Mega Construction System, Complete anti deletion system with auto
cleaning,
data potection and warning systems.  S J Churchill 1998

Make a 'backups' folder in your quest/level folder or a folder as the Backup
file path.

Change directory locations with a search and replace.

Quake Maps:    d:\quake\id1\maps
Quest Maps:    d:\quake\quest\levels
Compile file:  d:\quake\quest
Backup file:   d:\quake\quest\levels\backups
QBSP Utils:    d:\quake\quest\bin
Quake:         \quake
Quest:         \quake\quest

Add Drive changes if you use multiple drives.  All mine are Drive D only.

*/
{
echo off
cls
rem --------------------
rem Backup Compiled .MAP
rem --------------------
copy d:\quake\quest\compile.map d:\quake\quest\levels\backups\%n.map
del d:\quake\quest\compile.map > nul

rem -------------------
rem Copy Files to Quake
rem -------------------
if not exist==d:\quake\quest\levels\%n.bsp goto end
copy d:\quake\quest\levels\%n.bsp d:\quake\id1\maps > nul
copy d:\quake\quest\levels\%n.pts d:\quake\id1\maps > nul

rem ------------------------------
rem Check if Map file still exists
rem ------------------------------
if exist==d:\quake\quest\levels\%n.map goto quake
echo.
echo WARNING
echo.
echo Your Quake MAP File has been Deleted during compilation please
echo find the file in the BACKUPS folder and resave it with a new name
echo and check your MAP is correct.
echo.
pause

:quake
rem ---------
rem Run Quake
rem ---------
cd \quake
quake +map %n -nojoy -nocdaudio -nonet
cd \quake\quest

:end
rem --------------
rem Clean up a bit
rem --------------
del d:\quake\quest\levels\*.h* > nul
del d:\quake\quest\levels\*.p* > nul
}

/*
Detailed information
--------------------

Examples assume the map is 'c:/quest/maps/test.map'. The directories
will be absolute, so they'll work even if you switch directory.

This:   Replaced with this:
  %%     %
  %n     Just the name ('test').
  %N     Name with directory, forward slashes ('c:/quest/maps/test').
  %M     Name with directory, backslashes ('c:\quest\maps\test').


Format:

"Description"
{
command 1
command 2
etc
}

*/

"Compile: Blocks"
{
echo off
cls
rem ------------------------------
rem Backup Map File, Just in case.
rem ------------------------------
copy d:\quake\quest\levels\%n.map d:\quake\quest\compile.map > nul

rem ---------
rem QBSP Step
rem ---------
cls
d:\quake\quest\bin\qbsp256c d:\quake\quest\levels\%n.map
if exist==d:\quake\quest\levels\%n.bsp goto end
echo.
echo ERROR
echo.
echo Your level did not compile correctly, please check it has the following:
echo.
echo 1) An INFO_PLAYER_START Entity.
echo 2) Correctly Selected Texture File.
echo 3) Bent Brushes, Check by pressing 'K' in Quest.
echo.
pause

:end
}

"Compile: Fast"
{
echo off
cls
rem ------------------------------
rem Backup Map File, Just in case.
rem ------------------------------
copy d:\quake\quest\levels\%n.map d:\quake\quest\compile.map > nul

rem ---------
rem QBSP Step
rem ---------
cls
d:\quake\quest\bin\qbsp256c d:\quake\quest\levels\%n.map
if exist==d:\quake\quest\levels\%n.bsp goto light
echo.
echo ERROR
echo.
echo Your level did not compile correctly, please check it has the following:
echo.
echo 1) An INFO_PLAYER_START Entity.
echo 2) Correctly Selected Texture File.
echo 3) Bent Brushes, Check by pressing 'K' in Quest.
echo.
pause
goto end

:light
cls
rem ----------
rem Light Step
rem ----------
d:\quake\quest\bin\light d:\quake\quest\levels\%n.bsp
if exist==d:\quake\quest\levels\%n.prt goto vis
echo.
echo ERROR
echo.
echo Your level did not light correctly.
echo.
pause
goto end

:vis
cls
rem --------
rem Vis step
rem --------
d:\quake\quest\bin\vis -fast d:\quake\quest\levels\%n.bsp

:end
}

"Compile: Normal"
{
echo off
cls
rem ------------------------------
rem Backup Map File, Just in case.
rem ------------------------------
copy d:\quake\quest\levels\%n.map d:\quake\quest\compile.map > nul

rem ---------
rem QBSP Step
rem ---------
cls
d:\quake\quest\bin\qbsp256c d:\quake\quest\levels\%n.map
if exist==d:\quake\quest\levels\%n.bsp goto light
echo.
echo ERROR
echo.
echo Your level did not compile correctly, please check it has the following:
echo.
echo 1) An INFO_PLAYER_START Entity.
echo 2) Correctly Selected Texture File.
echo 3) Bent Brushes, Check by pressing 'K' in Quest.
echo.
pause
goto end

:light
cls
rem ----------
rem Light Step
rem ----------
d:\quake\quest\bin\light d:\quake\quest\levels\%n.bsp
if exist==d:\quake\quest\levels\%n.prt goto vis
echo.
echo ERROR
echo.
echo Your level did not light correctly.
echo.
pause
goto end

:vis
cls
rem --------
rem Vis step
rem --------
d:\quake\quest\bin\vis d:\quake\quest\levels\%n.bsp

:end
}

"Compile: High Detail"
{
echo off
cls
rem ------------------------------
rem Backup Map File, Just in case.
rem ------------------------------
copy d:\quake\quest\levels\%n.map d:\quake\quest\compile.map > nul

rem ---------
rem QBSP Step
rem ---------
cls
d:\quake\quest\bin\qbsp256c d:\quake\quest\levels\%n.map
if exist==d:\quake\quest\levels\%n.bsp goto light
echo.
echo ERROR
echo.
echo Your level did not compile correctly, please check it has the following:                                                          *
echo.
echo 1) An INFO_PLAYER_START Entity.
echo 2) Correctly Selected Texture File.
echo 3) Bent Brushes, Check by pressing 'K' in Quest.
echo.
pause
goto end

:light
cls
rem ----------
rem Light Step
rem ----------
d:\quake\quest\bin\light -extra d:\quake\quest\levels\%n.bsp
if exist==d:\quake\quest\levels\%n.prt goto vis
echo.
echo ERROR
echo.
echo Your level did not light correctly.
echo.
pause
goto end

:vis
cls
rem --------
rem Vis step
rem --------
d:\quake\quest\bin\vis -level 4 d:\quake\quest\levels\%n.bsp

:end
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -