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

Members Online

»
0 Active | 47 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: exploding barrels won't work
muddog
General Member
Since: Jan 16, 2007
Posts: 2
Last: May 10, 2007
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, May. 5, 2007 02:08 pm
I followed the tutorial on the exploding barrels, but when I try to run it, I get the following error:

******* script runtime error *******
size cannot be applied to undefined: (file 'maps/mp/barrels.gsc', line 24)
for( k = 0 ; k < level.barrels.size ; k++ ) {
*
called from:
(file 'maps/mp/mp_muddog1.gsc', line 2)
maps\mp\barrels::barrelInit();
*
started from:
(file 'maps/mp/mp_muddog1.gsc', line 1)
main() {
*


Any idea as to what I am doing wrong?

Share |
TheModDoctor
General Member
Since: Apr 27, 2007
Posts: 174
Last: Jan 10, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Saturday, May. 5, 2007 03:32 pm
Not what wrong but, why not use exploding barrels that are already made and doesn't require a script? You get it in Radiant. Right click in 2D window, select misc --> prefab, go to interactable_objects, select benzin.map. There you go, all exploding, no scripting!
Share |
XiteR!
General Member
Since: Oct 3, 2006
Posts: 84
Last: Aug 10, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Thursday, May. 10, 2007 04:53 pm
Well, i got the same error...testing the tutorial of exploding barrels, with the benzin prefab. And i test that prefab and don't explode?

edited on May. 10, 2007 12:55 pm by XiteR!
Share |
techno2sl
General Member
Since: Aug 5, 2004
Posts: 2977
Last: Oct 14, 2010
[view latest posts]
Level 9
Category: CoD2 Scripting
Posted: Thursday, May. 10, 2007 05:22 pm
Those prefabs are for singleplayer.
Share |
XiteR!
General Member
Since: Oct 3, 2006
Posts: 84
Last: Aug 10, 2008
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Thursday, May. 10, 2007 05:59 pm
so...how can i connect, 1 model and 1 clip brush, to form only 1?
Share |
muddog
General Member
Since: Jan 16, 2007
Posts: 2
Last: May 10, 2007
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Thursday, May. 10, 2007 06:49 pm
I'd really like to know why it wouldn't work, rather then having me use something else. I followed the tutorial exactly, so if there is something wrong with the tutorial, or if I'm doing something wrong I would like to know.
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Friday, May. 11, 2007 03:27 am
It looks like your entity is not found in the map.
Double check the tute and make sure you have all targetnames correct.
Also if you have only one (1) barrel in the map then try adding another making sure all names and triggers are correct.

Sometimes a script will fall over if it has been written to handle multiple entities and comes across only one entity.

Grassy
Share |
TheModDoctor
General Member
Since: Apr 27, 2007
Posts: 174
Last: Jan 10, 2009
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, May. 11, 2007 05:38 pm
I think the tutorial is for SP barrels
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Saturday, May. 12, 2007 12:35 am
No it's for either MP or SP.
I was part of a group that helped out with some of the scripting issues when the author created it.
I know it works, if the instructions are followed.
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

»