Author |
Topic: type undefined is not an int |
Blade_MacTavish |
|
General Member Since: Jun 7, 2009 Posts: 438 Last: Jul 8, 2012 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 9, 2010 03:59 pm |
|
Day 2 on this error. Everytime I try to run my map, I get this stupid f**king error.
type undefined is not an int
WHAT?! In the console it refers to line 90 in the _fx.gsc
Can someone help me before I lose my mind. |
|
|
|
|
|
Mystic |
|
General Member Since: Apr 10, 2004 Posts: 6147 Last: Apr 15, 2018 [view latest posts] |
|
|
|
|
|
SparkyMcSparks |
|
General Member Since: Feb 28, 2004 Posts: 1713 Last: Dec 29, 2016 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 9, 2010 04:27 pm |
|
Undefined means the variable doesn't have a value.
More info: http://en.wikipedia.org/wiki/Undefined_value
An int (integer) is a whole number.
More info: http://en.wikipedia.org/wiki/Integer
It looks like the error is coming from your level's FX where an undefined variable is supposed to have an integer. Recheck your level FX script for errors or typos. |
|
|
|
Blade_MacTavish |
|
General Member Since: Jun 7, 2009 Posts: 438 Last: Jul 8, 2012 [view latest posts] |
|
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 9, 2010 04:46 pm |
|
I'm not running in developer mode, and here's my script.
//_createfx generated. Do not touch!!
main()
{
ent = maps\mp\_utility::createOneshotEffect( "sand_aftermath" );
ent.v[ "origin" ] = ( -6576, 688, 16 );
ent.v[ "angles" ] = ( 0, 90, 0 );
ent.v[ "fxid" ] = "sand_aftermath";
ent.v[ "delay" ] = -15;
ent.v[ "soundalias" ] = "airplane_wind_loop";
ent = maps\mp\_utility::createOneshotEffect( "fog_aftermath" );
ent.v[ "origin" ] = ( -5104, 1712, 16 );
ent.v[ "angles" ] = ( 0, 0, 0 );
ent.v[ "fxid" ] = "fog_aftermath";
ent.v[ "delay" ] = -15;
ent.v[ "soundalias" ] = "emt_alarm_missile_siren";
ent = maps\mp\_utility::createOneshotEffect( "fog_aftermath" );
ent.v[ "origin" ] = ( -4063.5, 1728, -5.5 );
ent.v[ "angles" ] = ( 0, 20, 0 );
ent.v[ "fxid" ] = "fog_aftermath";
ent.v[ "delay" ] = -15;
ent.v[ "soundalias" ] = "emt_alarm_missile_siren";
ent = maps\mp\_utility::createOneshotEffect( "fallout_aftermath" );
ent.v[ "origin" ] = ( -4060.5, 1072.5, 14.5 );
ent.v[ "angles" ] = ( 0, 270, 0 );
ent.v[ "fxid" ] = "fallout_aftermath";
ent.v[ "delay" ] = -15;
ent.v[ "soundalias" ] = "aftermath_fmr_epicenter";
ent = maps\mp\_utility::createOneshotEffect( "fallout_aftermath" );
ent.v[ "origin" ] = ( -6961.5, 1126.5, 14.5 );
ent.v[ "angles" ] = ( 0, 270, 0 );
ent.v[ "fxid" ] = "fallout_aftermath";
ent.v[ "delay" ] = -15;
ent.v[ "soundalias" ] = "aftermath_fmr_evacuation";
}
|
|
|
|
Blade_MacTavish |
|
General Member Since: Jun 7, 2009 Posts: 438 Last: Jul 8, 2012 [view latest posts] |
|
|
|
|
Pedro699 |
General Member Since: Jun 19, 2006 Posts: 781 Last: Dec 18, 2010 [view latest posts] |
|
|
Category: CoD4 MP Mapping Posted: Sunday, May. 9, 2010 05:35 pm |
|
Well line 90 of _fx.gsc is this:
Code: self.looper = spawnFx( level._effect[self.v["fxid"]], self.v["origin"], self.v["forward"], self.v["up"] );
As one of the variables there is undefined, I would suggest it is the self.v["forward"] and self.v["up"] ones. If you re-run your script with developer enabled you will see a little asterisk underneath the undefined variable in the error text.
Edit:
Actually, these should be calculated for you, however if you run the script anyway it will tell you what the problem variable is and you can work from there. |
|
|
|
Blade_MacTavish |
|
General Member Since: Jun 7, 2009 Posts: 438 Last: Jul 8, 2012 [view latest posts] |
|
|
|
|
18Rabbit |
General Member Since: Apr 12, 2009 Posts: 196 Last: Jul 11, 2010 [view latest posts] |
|
|
|
SparkyMcSparks |
|
General Member Since: Feb 28, 2004 Posts: 1713 Last: Dec 29, 2016 [view latest posts] |
|
|
|
|