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

Members Online

»
0 Active | 72 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Compile Problems...
Snoopy12
General Member
Since: Jan 18, 2010
Posts: 13
Last: Feb 8, 2010
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Tuesday, Jan. 19, 2010 08:43 pm
attachment: image(32.5Kb)
This is my second topic in a day [banghead]

Here's the problem. When i compile my map everything is perfect, it compiles correctly (to the best of my knowledge). But when I hit "Run Map" on the compiler, it begins to load my map and then gives me an error message (picture of error message is attached)

Also, here is what the "command prompt" says after it errors:
Code:
Loading 'ui_mp/options_multi.menu'...
	Loading 'ui/playerprofile.menu'...
	Loading 'ui_mp/vid_restart.menu'...
	Loading 'ui/language_restart.menu'...
	Loading 'ui/snd_restart.menu'...
	Loading 'ui/rec_restart.menu'...
	Loading 'ui/quit.menu'...
	Loading 'ui/error.menu'...
	Loading 'ui_mp/multi.menu'...
ERROR: Couldn't find material 'ui/assets/fadebox.tga'
WARNING: Could not find material 'ui/assets/fadebox.tga'
	Loading 'ui_mp/joinserver.menu'...
	Loading 'ui_mp/createserver.menu'...
	Loading 'ui_mp/pb_popmenus.menu'...
	Loading 'ui_mp/cdkey.menu'...
	Loading 'ui_mp/mods.menu'...
	Loading 'ui_mp/connect.menu'...
WARNING: Could not find material '$levelbriefing'
	Loading 'ui_mp/password.menu'...
	Loading 'ui_mp/single_player.menu'...
	Loading 'ui_mp/serverinfo.menu'...
	Loading 'ui_mp/createfavorite.menu'...
	Loading 'ui_mp/filter.menu'...
	Loading 'ui_mp/in_rec_restart.menu'...
	Loading 'ui_mp/auto_update.menu'...
	Loading 'ui_mp/settings_dm.menu'...
Menu load error: ui_mp/settings_dm.menu, line 83: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 84: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 105: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 106: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_tdm.menu'...
Menu load error: ui_mp/settings_tdm.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_ctf.menu'...
Menu load error: ui_mp/settings_ctf.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_hq.menu'...
Menu load error: ui_mp/settings_hq.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_sd.menu'...
	Loading 'ui_mp/settings_sw.menu'...
	Loading 'ui_mp/background.menu'...
WARNING: Could not find 'maps/mp/mp_dmgtriggers.csv'.
	Loading 'ui_mp/ingame.menu'...
	Loading 'ui_mp/ingame_controls.menu'...
	Loading 'ui_mp/ingame_options.menu'...
	Loading 'ui_mp/ingame_system.menu'...
	Loading 'ui_mp/ingame_leave.menu'...
	Loading 'ui_mp/ingame_callvote.menu'...
	Loading 'ui_mp/wm_quickmessage.menu'...
	Loading 'ui_mp/close_highscore.menu'...
	Loading 'ui_mp/open_highscore.menu'...
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Mar 30 2006
----------------------
Game: G_SetupWeaponDef
----------------------
-----------------------------------

******* script runtime error *******
cannot cast undefined to bool: (file 'maps/mp/gametypes/_menus.gsc', line 13)
 if(!level.xenon)
    *
called from:
(file 'maps/mp/gametypes/dm.gsc', line 84)
 thread maps\mp\gametypes\_menus::init();
        *
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 18)
  [[level.callbackStartGameType]]();
          *
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 11)
CodeCallback_StartGameType()
*
************************************
writing to: C:\Program Files\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 11)


I compiled my map using instructions found at this url:
Compiling for Call of Duty 2

Thanks for Reading [wave]
Share |
*UWS*ThisGuy
General Member
Since: Jul 31, 2008
Posts: 215
Last: Jan 8, 2012
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Saturday, Jan. 23, 2010 02:59 pm
What gametype are trying to use?

did you add a 1 DM spawn along with your TDM spawn?

Try calling your map fron console:
* open the game
* start new server and set pure to no
* hit the ~ key and enter /map mp_yourmapname
Share |
Xylozi
General Member
Since: Jul 12, 2008
Posts: 218
Last: Mar 1, 2012
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Sunday, Jan. 24, 2010 12:22 am
Looks like this line:

Code:
cannot cast undefined to bool: (file 'maps/mp/gametypes/_menus.gsc', line 13)
 if(!level.xenon)


Is causing the problem. So I'd simply get a stock version of _menus.gsc (Either from a friend or the download of the Mod Tools) and overwrite your current one, and it should remove that error, and let your map launch.
Share |
clanhelio
General Member
Since: Aug 30, 2008
Posts: 223
Last: Mar 24, 2011
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Sunday, Jan. 24, 2010 03:11 am
That IS a stock version of it, at least that line is. I get it too. What I do is comment out that whole if/else statement (and letting the if(!level.xenon) parts stay since you need that, because COD2 is stupid and finds errors where they don't exist.
Share |
Ray
General Member
Since: Apr 24, 2006
Posts: 1027
Last: Nov 17, 2013
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Sunday, Jan. 24, 2010 10:29 am
Post up your .gsc please.
Share |
afuzzybunny408
General Member
Since: Mar 22, 2011
Posts: 9
Last: Jan 28, 2013
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 31, 2011 05:08 am
Snoopy12 writes...
Quote:
This is my second topic in a day [banghead]

Here's the problem. When i compile my map everything is perfect, it compiles correctly (to the best of my knowledge). But when I hit "Run Map" on the compiler, it begins to load my map and then gives me an error message (picture of error message is attached)

Also, here is what the "command prompt" says after it errors:
Code:
Loading 'ui_mp/options_multi.menu'...
	Loading 'ui/playerprofile.menu'...
	Loading 'ui_mp/vid_restart.menu'...
	Loading 'ui/language_restart.menu'...
	Loading 'ui/snd_restart.menu'...
	Loading 'ui/rec_restart.menu'...
	Loading 'ui/quit.menu'...
	Loading 'ui/error.menu'...
	Loading 'ui_mp/multi.menu'...
ERROR: Couldn't find material 'ui/assets/fadebox.tga'
WARNING: Could not find material 'ui/assets/fadebox.tga'
	Loading 'ui_mp/joinserver.menu'...
	Loading 'ui_mp/createserver.menu'...
	Loading 'ui_mp/pb_popmenus.menu'...
	Loading 'ui_mp/cdkey.menu'...
	Loading 'ui_mp/mods.menu'...
	Loading 'ui_mp/connect.menu'...
WARNING: Could not find material '$levelbriefing'
	Loading 'ui_mp/password.menu'...
	Loading 'ui_mp/single_player.menu'...
	Loading 'ui_mp/serverinfo.menu'...
	Loading 'ui_mp/createfavorite.menu'...
	Loading 'ui_mp/filter.menu'...
	Loading 'ui_mp/in_rec_restart.menu'...
	Loading 'ui_mp/auto_update.menu'...
	Loading 'ui_mp/settings_dm.menu'...
Menu load error: ui_mp/settings_dm.menu, line 83: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 84: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 105: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 106: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_tdm.menu'...
Menu load error: ui_mp/settings_tdm.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_ctf.menu'...
Menu load error: ui_mp/settings_ctf.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_hq.menu'...
Menu load error: ui_mp/settings_hq.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_sd.menu'...
	Loading 'ui_mp/settings_sw.menu'...
	Loading 'ui_mp/background.menu'...
WARNING: Could not find 'maps/mp/mp_dmgtriggers.csv'.
	Loading 'ui_mp/ingame.menu'...
	Loading 'ui_mp/ingame_controls.menu'...
	Loading 'ui_mp/ingame_options.menu'...
	Loading 'ui_mp/ingame_system.menu'...
	Loading 'ui_mp/ingame_leave.menu'...
	Loading 'ui_mp/ingame_callvote.menu'...
	Loading 'ui_mp/wm_quickmessage.menu'...
	Loading 'ui_mp/close_highscore.menu'...
	Loading 'ui_mp/open_highscore.menu'...
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Mar 30 2006
----------------------
Game: G_SetupWeaponDef
----------------------
-----------------------------------

******* script runtime error *******
cannot cast undefined to bool: (file 'maps/mp/gametypes/_menus.gsc', line 13)
 if(!level.xenon)
    *
called from:
(file 'maps/mp/gametypes/dm.gsc', line 84)
 thread maps\mp\gametypes\_menus::init();
        *
called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 18)
  [[level.callbackStartGameType]]();
          *
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 11)
CodeCallback_StartGameType()
*
************************************
writing to: C:\Program Files\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 11)


I compiled my map using instructions found at this url:
Compiling for Call of Duty 2

Thanks for Reading [wave]

Im having the Same problem can anyone help
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 31, 2011 08:43 am
This error:
Quote:
Fatal Error
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc' line 11)

occurs, if your map has no gsc file. Here the minimum content:

Code:
main()
{
	maps\mp\_load::main();
}


save this as a plaintext file and rename the extension to .gsc (make sure you really changed it, http://windows.microsoft.com/en-US/windows-vista/Show-or-hide-file-name-extensions )

The filename has to be like your map, e.g.
mp_mylevel (mp_mylevel.map / mp_mylevel.d3dbsp)
mp_mylevel.gsc

For a mp map, the gsc file has to be in maps\mp\ and should start with mp_
gsc file for SP map would go maps\

You might have to put it in an iwd, basically a zip-compressed archive with extension .iwd
Make sure you zip the folder structure, e.g. mp_mylevel.iwd\maps\mp\mp_mylevel.gsc
Share |
afuzzybunny408
General Member
Since: Mar 22, 2011
Posts: 9
Last: Jan 28, 2013
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 31, 2011 05:17 pm
Sevenz you helped me just recently and i hope you can help me fix this problem as well heres my gsc file
Code:
main()  	
{  	
maps\mp\_load::main();          
maps\mp\teleportenter::main();  	
}

and heres the teleportenter.gsc
Code:
main()  
{      
entTransporter = getentarray("enter","targetname");    
if(isdefined(entTransporter))    
 {     
for(lp=0;lp<entTransporter.size;lp=lp+1)        
entTransporter[lp] thread Transporter();    
 }     
}      
Transporter()  
{    
while(true)    
 {      
self waittill("trigger",other);      
entTarget = getent(self.target, "targetname");        
wait(0.10);      
other setorigin(entTarget.origin);      
other setplayerangles(entTarget.angles);      
//iprintlnbold ("You have been teleported !!!");      
wait(0.10);    
 }  
}  

I have faith in Sevenz [thumbs_up]
Share |
ukdjaj
General Member
Since: Jun 1, 2008
Posts: 2726
Last: Nov 15, 2020
[view latest posts]
Level 9
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 31, 2011 05:21 pm
whats the problem you are getting?
Share |
afuzzybunny408
General Member
Since: Mar 22, 2011
Posts: 9
Last: Jan 28, 2013
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Wednesday, Aug. 31, 2011 05:48 pm
Im having this problem
Code:
Loading 'ui_mp/settings_dm.menu'...
Menu load error: ui_mp/settings_dm.menu, line 83: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 84: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 105: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_dm.menu, line 106: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_tdm.menu'...
Menu load error: ui_mp/settings_tdm.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_tdm.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_ctf.menu'...
Menu load error: ui_mp/settings_ctf.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_ctf.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

	Loading 'ui_mp/settings_hq.menu'...
Menu load error: ui_mp/settings_hq.menu, line 79: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 80: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 101: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.

Menu load error: ui_mp/settings_hq.menu, line 102: Attempting to change type from 0 to 9.
Move the type definition higher up in the itemDef.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»