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

Members Online

»
0 Active | 87 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 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: cannot cast undefined to bool - error :S
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 06:10 pm
Hi, I have a very weird error:

******* 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 15)
[[level.callbackStartGameType]]();
*
started from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)
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 10)

[mad]

I have the AWE mod running I think it has to do something with that..BUT is there a solution without removing the AWE mod ?

Thanks in advance guys
Share |
ArmorMaster
General Member
Since: Mar 30, 2005
Posts: 371
Last: Oct 3, 2009
[view latest posts]
Level 5
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 06:23 pm
Try removing awe. Just to see what happens, just try it...
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 07:52 pm
Ok :(
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 07:56 pm
Still got the same error :(
Please help someone...I like making custom maps, and I also like to play them.
It would really suck if I couldn't play them anymore :(
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 08:02 pm
The error comes from not running your map with pure turned off most likely.

turn if off in your "create new server" menu.
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 08:04 pm
damn...If you are right I wouldn't remove my entire CoD2 and reinstalled it ( what I am doing right now ).
But are you sure? Cause in that case I know it for the next time
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 08:12 pm
90%
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Aug. 9, 2006 09:23 pm
I reïnstalled cod2
went to start new server -> pure -> no
installed patch 1.3
installed mod tools
installed AWE mod
putted in my ( before ) working myserver.cfg
created a shithole map
compiled it WITHOUT PROBLEMS :D
Thanks guys

But now I have another question.
When I've created my map I make an IWD and put it in main.
I go ingame and want to use Rcon to play that map with other guys online..
so I press "~" and then: "/rcon login *********
and then: "/rcon map mp_closecombat

I see a few seconds: deathmatch - close combat
and then It turns to carentan and then back to closecombat and back to carentan :S

Is this normal for first time playing new map online ?

Share |
Senator
General Member
Since: Mar 27, 2004
Posts: 61
Last: Feb 10, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Thursday, Aug. 10, 2006 03:57 am
probably a bad answer, but make sure you have the intermission and deathmatch/tdm and whatnot spawnpoints put in, I think thats one thing that can make it switch back to another map, try doing /rcon g_gametype dm or something to set the gametype before you switch the map, this probably doesnt help but its happened to me. [jumping]
Share |
Futtbucker
General Member
Since: Jun 23, 2006
Posts: 96
Last: Jul 21, 2007
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Thursday, Aug. 10, 2006 08:45 am
Ok thanks for all your help
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»