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

Members Online

»
0 Active | 91 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 Runtime Error
MestHead
General Member
Since: Jan 31, 2007
Posts: 95
Last: Dec 17, 2012
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Thursday, Aug. 19, 2010 06:06 pm
Code:
******* script runtime error *******
undefined is not a field object: (file 'maps/mp/gametypes/_weapons.gsc', line 312)
  if(getCvar(level.weapons[weaponname].server_allowcvar) == "")
                          *
called from:
(file 'maps/mp/gametypes/dm.gsc', line 88)
 thread maps\mp\gametypes\_weapons::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: D:\Games\cod2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 10)



I have a gsc and arena file.
Share |
Tristan4592
General Member
Since: Apr 26, 2007
Posts: 235
Last: Nov 11, 2010
[view latest posts]
Level 4
MODSCON
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Thursday, Aug. 19, 2010 07:18 pm
Could you post your .gsc?
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Thursday, Aug. 19, 2010 07:26 pm
ah iv seen this before although u didnt tamper with that at all im guessing ur adding a weapon to another team or somthing or even adding a custom weapon normaly u either
A. Precacheing a weapon and spelt it wrong or somthing
B. adding your weapon to this list here and u numbered it wrong or spelt it wrong so please check that.
Code:
level.weaponnames[19] = "mp44_mp";
	level.weaponnames[20] = "shotgun_mp";
	level.weaponnames[21] = "fraggrenade";
	level.weaponnames[22] = "smokegrenade";

C. adding your weapon like this and u spelt somthing wrong or could have added level.weapons[]; above it this is what u should have as an example
Code:

level.weapons["m1carbine_mp"] = spawnstruct();
	level.weapons["m1carbine_mp"].server_allowcvar = "scr_allow_m1carbine";
	level.weapons["m1carbine_mp"].client_allowcvar = "ui_allow_m1carbine";
	level.weapons["m1carbine_mp"].allow_default = 1;


And if its none of this and i was completly wrong then feel free to make me look like an idiot and post ur script [thumbs_up]
Share |
MestHead
General Member
Since: Jan 31, 2007
Posts: 95
Last: Dec 17, 2012
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Friday, Aug. 20, 2010 11:57 pm
It was a mod that was screwing it up. Problem is now, it won't play any updated version I compile and run from compile tool.
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Saturday, Aug. 21, 2010 12:19 am
are u adding ur b3dbsp into ur .iwd after u compile again?
Share |
MestHead
General Member
Since: Jan 31, 2007
Posts: 95
Last: Dec 17, 2012
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Saturday, Aug. 21, 2010 02:09 am
Yes. I thought that when you run from the compile tool you didn't need to update your map .iwd
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

»