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

Members Online

»
1 Active | 98 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 subscribe
Author Topic: Script error
armin221
General Member
Since: Oct 30, 2009
Posts: 4
Last: May 30, 2013
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Tuesday, May. 28, 2013 05:44 pm
Hello!
well I need help with my map. I want to test my map but I always get script error and i tried to fix that and i was unsuccesfull.


Here is my log:

Code:

******* 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()
*


and here is my GSC file:
Code:
main()
{
maps\mp\_load::main();<br />
<br />
setExpFog(0.0001, 0.55, 0.6, 0.55, 0);
// setCullFog(0, 16500, 0.55, 0.6, 0.55, 0);
ambientPlay("ambient_france");<br />
<br />
game['allies'] = "american";
game['axis'] = "german";
game['attackers'] = "allies";
game['defenders'] = "axis";
game['american_soldiertype'] = "normandy";
game['german_soldiertype'] = "normandy";<br />
<br />
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");<br />
<br />
}


Share |
BlindSniper
General Member
Since: Aug 22, 2008
Posts: 45
Last: May 29, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Tuesday, May. 28, 2013 09:49 pm
Why are you using line break, < br / > in the code? I've not seen anyone use them in map scripting before.

edited on May. 28, 2013 02:49 pm by BlindSniper
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11672
Last: Apr 20, 2024
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD2 MP Mapping
Posted: Tuesday, May. 28, 2013 10:45 pm
without the actual error you are receiving it is difficult to pinpoint the error - however - i think that BlindSniper is probably pretty close to the mark ....

you have to use a plain text editor - such as wordpad (in plain text) or notepad.

the line break formatting
comes with using a formatting text editor (like MS Word)

i would hazard that if you redo your gsc in plain txt you will alleviate the "unknown" error

[angryalien]
Share |
armin221
General Member
Since: Oct 30, 2009
Posts: 4
Last: May 30, 2013
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Wednesday, May. 29, 2013 02:24 pm
i dont have line breaker in my GSC file that only shows because i put as code on post

EDIT:
i turned pure off and map starts normal but if pure is on then i get error couldn't load map maps/mp/mp_mymap....

edited on May. 29, 2013 07:49 am by armin221
Share |
BlindSniper
General Member
Since: Aug 22, 2008
Posts: 45
Last: May 29, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Wednesday, May. 29, 2013 07:29 pm
Turning pure off basically means that you can run the map without packing it all into an iwd,
So if your map isn't in an iwd then that isn't really an error so just test it with pure off.
Share |
armin221
General Member
Since: Oct 30, 2009
Posts: 4
Last: May 30, 2013
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Wednesday, May. 29, 2013 08:06 pm
thanks ;) but i want to make to work when is in IWD file for my server, i'm nearly done with the map and want to play with my buddies unfortunately it won't work [ohwell]
Share |
BlindSniper
General Member
Since: Aug 22, 2008
Posts: 45
Last: May 29, 2013
[view latest posts]
Level 2
Category: CoD2 MP Mapping
Posted: Wednesday, May. 29, 2013 08:44 pm
What have you got in your iwd at the moment?
Share |
Ni3ls
General Member
Since: Nov 7, 2008
Posts: 256
Last: Sep 9, 2017
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Wednesday, May. 29, 2013 09:17 pm
Any other mods in your main? Click on compability files and delete everything
Share |
armin221
General Member
Since: Oct 30, 2009
Posts: 4
Last: May 30, 2013
[view latest posts]
Level 0
Category: CoD2 MP Mapping
Posted: Thursday, May. 30, 2013 06:00 am
in IWD i have 2 maps (mp and maps)
in mp i have arena file in maps/mp/ gsc and my map

and i dont have anymods i just installed cod2 and patched to 1.3 then i downloaded modtools

edited on May. 29, 2013 11:01 pm by armin221
Share |
Restricted Access Topic is Locked 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

»