Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 13 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Compiler Help Please
{PADZ}grimreaper
General Member
Since: Apr 23, 2005
Posts: 334
Last: Aug 11, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Thursday, Aug. 11, 2011 07:14 am
Hey there.

I was trying to compile a new map.
But its not even creating the BSP file.

Now my question is how can i add a "pause" at the end of the compile so i can see what the errors are cause my compile windows always close right away.

Thx in advance.
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Thursday, Aug. 11, 2011 07:55 am
Just add

Code:
-pause


in the .bat file, at the end.

edited by Mystic - fixed mistake.
Share |
{PADZ}grimreaper
General Member
Since: Apr 23, 2005
Posts: 334
Last: Aug 11, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Thursday, Aug. 11, 2011 08:02 am
And where is that compile log?
Do i add it in the custom command line options?
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Thursday, Aug. 11, 2011 10:02 am
Sorry, i meant to say .bat file not compile log, cant remember the exact name of the file but you should be able to find it easy enough. It will probably be name something like compile.bat. Just open it in notepad
Share |
{PADZ}grimreaper
General Member
Since: Apr 23, 2005
Posts: 334
Last: Aug 11, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Thursday, Aug. 11, 2011 05:27 pm
Yeah i read about that before.
So i opened cod4compiletools_compilebsp.bat
I added - pause at the end but it still doesnt pause.
It doesn't pause with anything not with the bsp and not with the fast files.

This is the .bat:

Code:
@ECHO OFF

:: ###########################################

:: 		SET UP VARIABLES
:: ###########################################


set bsppath=%~1
set mapsourcepath=%~2
set treepath=%~3
set mapname=%4
set parmBSPOptions=%~5
set parmLightOptions=%~6
set compileBSP=%7
set compileLight=%8
set compilePaths=%9
shift
set compileVIS=%9
shift
set mpmap=%9

if "%parmBSPoptions%" == "-" (
	set parmBSPoptions=
)

if "%parmLightOptions%" == "-" (
	set parmLightOptions=
)

mkdir "%bsppath%

if "%compileBSP%" == "1" (

	echo .
	echo .
	echo ###########################################

	echo 		COMPILE BSP
	echo ###########################################

	echo .
	echo .
	
	copy "%mapsourcepath%%mapname%.map" "%bsppath%%mapname%.map"
	"%treepath%bin\cod4map" -platform pc -loadFrom "%mapsourcepath%%mapname%.map" %parmBSPOptions% "%bsppath%%mapname%"
)

if "%compileLight%" == "1" (
	
	echo .
	echo .
	echo ###########################################

	echo 		COMPILE LIGHT
	echo ###########################################

	echo .
	echo .

	IF EXIST "%mapsourcepath%%mapname%.grid"	copy "%mapsourcepath%%mapname%.grid" "%bsppath%%mapname%.grid"
	"%treepath%bin\cod4rad" -platform pc %parmLightOptions% "%bsppath%%mapname%"
)

IF EXIST "%bsppath%%mapname%.map"	del "%bsppath%%mapname%.map"
IF EXIST "%bsppath%%mapname%.d3dprt"	del "%bsppath%%mapname%.d3dprt"
IF EXIST "%bsppath%%mapname%.d3dpoly"	del "%bsppath%%mapname%.d3dpoly"
IF EXIST "%bsppath%%mapname%.vclog"	del "%bsppath%%mapname%.vclog"
IF EXIST "%bsppath%%mapname%.grid"	del "%bsppath%%mapname%.grid"

IF EXIST "%bsppath%%mapname%.lin"	move "%bsppath%%mapname%.lin" "%mapsourcepath%%mapname%.lin"

if "%compilePaths%" == "1" (
	
	echo .
	echo .
	echo ###########################################

	echo 		CONNECTING PATHS
	echo ###########################################

	echo .
	echo .

	cd %treepath%
	sp_tool.exe +set r_fullscreen 0 +set logfile 2 +set monkeytoy 0 +set com_introplayed 1 +set usefastfile 0 +set g_connectpaths 2 +devmap %mapname%

)

echo .
echo .
echo ###########################################

echo 		       DONE
echo ###########################################

echo .
echo .

pause
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Thursday, Aug. 11, 2011 10:01 pm
That's strange, pause should stop the file until you press any key to continue.

Try debugging it by running an echo statement at each stage and see if it displays.
Code:


:: ###########################################


:: 		SET UP VARIABLES
:: ###########################################



set bsppath=%~1
set mapsourcepath=%~2
set treepath=%~3
set mapname=%4
set parmBSPOptions=%~5
set parmLightOptions=%~6
set compileBSP=%7
set compileLight=%8
set compilePaths=%9
shift
set compileVIS=%9
shift
set mpmap=%9

if "%parmBSPoptions%" == "-" (
	set parmBSPoptions=
)

if "%parmLightOptions%" == "-" (
	set parmLightOptions=
)

mkdir "%bsppath%

if "%compileBSP%" == "1" (

	echo .
	echo .
	echo ###########################################


	echo 		COMPILE BSP
	echo ###########################################


	echo .
	echo .
	
	copy "%mapsourcepath%%mapname%.map" "%bsppath%%mapname%.map"
	"%treepath%bin\cod4map" -platform pc -loadFrom "%mapsourcepath%%mapname%.map" %parmBSPOptions% "%bsppath%%mapname%"
)
ECHO DEBUG: .bsp complete
PAUSE
if "%compileLight%" == "1" (
	
	echo .
	echo .
	echo ###########################################


	echo 		COMPILE LIGHT
	echo ###########################################


	echo .
	echo .

	IF EXIST "%mapsourcepath%%mapname%.grid"	copy "%mapsourcepath%%mapname%.grid" "%bsppath%%mapname%.grid"
	"%treepath%bin\cod4rad" -platform pc %parmLightOptions% "%bsppath%%mapname%"
)

IF EXIST "%bsppath%%mapname%.map"	del "%bsppath%%mapname%.map"
IF EXIST "%bsppath%%mapname%.d3dprt"	del "%bsppath%%mapname%.d3dprt"
IF EXIST "%bsppath%%mapname%.d3dpoly"	del "%bsppath%%mapname%.d3dpoly"
IF EXIST "%bsppath%%mapname%.vclog"	del "%bsppath%%mapname%.vclog"
IF EXIST "%bsppath%%mapname%.grid"	del "%bsppath%%mapname%.grid"

IF EXIST "%bsppath%%mapname%.lin"	move "%bsppath%%mapname%.lin" "%mapsourcepath%%mapname%.lin"
ECHO DEBUG: light complete
PAUSE
if "%compilePaths%" == "1" (
	
	echo .
	echo .
	echo ###########################################


	echo 		CONNECTING PATHS
	echo ###########################################


	echo .
	echo .

	cd %treepath%
	sp_tool.exe +set r_fullscreen 0 +set logfile 2 +set monkeytoy 0 +set com_introplayed 1 +set usefastfile 0 +set g_connectpaths 2 +devmap %mapname%

)
ECHO DEBUG: paths complete
PAUSE
echo .
echo .
echo ###########################################


echo 		       DONE
echo ###########################################


echo .
echo .
ECHO Did it work? Copy and paste this to MODSonline if it did.
PAUSE


It should pause and each stage

edited on Aug. 11, 2011 06:05 pm by Mystic
Share |
{PADZ}grimreaper
General Member
Since: Apr 23, 2005
Posts: 334
Last: Aug 11, 2011
[view latest posts]
Level 5
Category: CoD4 MP Mapping
Posted: Thursday, Aug. 11, 2011 10:57 pm
Yeah that seemed to work.
I had to press a key twice that time.
Thx.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»