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

Members Online

»
0 Active | 67 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 4
Category: CoD4 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
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]
Level 5
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Sunday, May. 9, 2010 03:59 pm
[banghead]

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.
Share |
Opel
General Member
Since: Dec 18, 2008
Posts: 21
Last: Sep 4, 2011
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Sunday, May. 9, 2010 04:01 pm
Try running without developer that has caused it for me sometimes.
Share |
Mystic
General Member
Since: Apr 10, 2004
Posts: 6147
Last: Apr 15, 2018
[view latest posts]
Level 10
Forum Moderator
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Sunday, May. 9, 2010 04:14 pm
Post your script.
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
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.
Share |
Blade_MacTavish
General Member
Since: Jun 7, 2009
Posts: 438
Last: Jul 8, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
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";

}
Share |
Blade_MacTavish
General Member
Since: Jun 7, 2009
Posts: 438
Last: Jul 8, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Sunday, May. 9, 2010 05:29 pm
They're all integers, so I don't quite get it.
Share |
Pedro699
General Member
Since: Jun 19, 2006
Posts: 781
Last: Dec 18, 2010
[view latest posts]
Level 7
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.
Share |
Blade_MacTavish
General Member
Since: Jun 7, 2009
Posts: 438
Last: Jul 8, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Sunday, May. 9, 2010 05:39 pm
So I'm missing forward and up?[confused]
Share |
18Rabbit
General Member
Since: Apr 12, 2009
Posts: 196
Last: Jul 11, 2010
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Sunday, May. 9, 2010 06:48 pm
I don't think you can run effects on a .5. Try rounding the numbers up or down. An integer is a whole number.
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Sunday, May. 9, 2010 06:53 pm
Run the game in developer mode to get a more concise error report.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 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

»