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

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Page
Next Page
subscribe
Author Topic: error with fx gsc
MOTLEY
General Member
Since: Mar 4, 2005
Posts: 74
Last: Jul 1, 2007
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 02:28 am
Hiya all.Im having trouble running a fx gsc.It errors no matter what i try....i couldnt really find too much on this topic and basicaly made the fx gsc from bits and peices i could find

here is the map gsc
main()
{
maps\mp\_load::main()
maps\mp\mp_sabes_du_mot_17_fx::main();

// set fog. density, red, green, blue, alpha
setExpFog(0.0001, 0.55, 0.6, 0.55, 0);

// set background ambient noise
ambientPlay("ambient_mp_sabes_du_mot_17");

// set nationalities of allies and axis
game["allies"] = "american"; // or british or russian
game["axis"] = "german";

// set who does what in SD
game["attackers"] = "allies";
game["defenders"] = "axis";

// set the way allies and axis look
// possible values are:
// for american: normandy
// for british: normandy, africa
// for russian: coats, padded
// for german: normandy, africa, winterlight, winterdark
game["american_soldiertype"] = "normandy";
game["german_soldiertype"] = "normandy";

// set up bloom and sky bleeding effects
setCvar("r_glowbloomintensity0", ".25");
setCvar("r_glowbloomintensity1", ".25");
setcvar("r_glowskybleedintensity0",".3");
}

and here is the fx gsc

main()
{
level thread precacheFX();
level thread spawnWorldFX();
}

precacheFX()
{
level._effect["glow_latern"] = loadfx ("fx/misc/glow_latern.efx");

}

spawnWorldFX()
{
//fire
maps\_fx::loopfx("glow_latern", (5136.0, -643.0, 204), 1);


}

could someone please tell me what im doing wrong...thx
Share |
cybershot
General Member
Since: Dec 29, 2005
Posts: 944
Last: Mar 4, 2018
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 02:36 am
when you make chanes to the gsc files, you do not need to compile the map. what i suggest you do is run the map. when it stops, it will give you an error that says script runtime error or compile error. see console for details. if you press the console button or just read the box that pops up if you launched it from the compiler, it will give you vital clues as to what is wrong. if you can't figure it out, post that error here so whe can help you. without that info, it could be anything.. so run the game again, get the error message poster here then we can talk
Share |
MOTLEY
General Member
Since: Mar 4, 2005
Posts: 74
Last: Jul 1, 2007
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 02:39 am
thx for your quick reply....here is what the error says:

******* script compile error *******
unknown function: (file 'maps/_gameskill.gsc', line 790)
setblur(blur, 0);
*
************************************
writing to: C:\Program Files\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script compile error
(see console for details)
Share |
Shoot
General Member
Since: Jun 22, 2002
Posts: 260
Last: Mar 22, 2008
[view latest posts]
Level 5
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 03:17 am
The script compile error seems to come from a mod file not your map - it is coming from _gameskill.gsc line 790 and some fucntion with that - try running your map without any mods.
Share |
MOTLEY
General Member
Since: Mar 4, 2005
Posts: 74
Last: Jul 1, 2007
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 03:21 am
There are no mods or custom maps in my folders at all....totaly clean

thx
Share |
cybershot
General Member
Since: Dec 29, 2005
Posts: 944
Last: Mar 4, 2018
[view latest posts]
Level 7
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 03:36 am
******* script compile error *******
unknown function: (file 'maps/_gameskill.gsc', line 790)
setblur(blur, 0);
*
what is that. where do you have maps/_gameskill.gsc...if you opened it up, i am sure the line 790 would be setblur (blur,0);
I don't know what this is or how to fix it. that is a whole nother problem. if you do know, use the script compile error to narrow it down. change the line. what does the gameskill.gsc do? do you know?
Share |
MOTLEY
General Member
Since: Mar 4, 2005
Posts: 74
Last: Jul 1, 2007
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 03:43 am
go figure..........did a search for the file.....no such file found on my system.Im really stuck
Share |
veef
General Member
Since: Apr 25, 2006
Posts: 1258
Last: Aug 29, 2006
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 03:48 am
The _gameskill.gsc is a stock singleplayer script that is being loaded because he forgot the "mp" part in his fx so the game thinks he is trying to load a singleplayer level. The part in red is what you need to add to fix this problem.
Quote:
main()
{
level thread precacheFX();
level thread spawnWorldFX();
}

precacheFX()
{
level._effect["glow_latern"] = loadfx ("fx/misc/glow_latern.efx");

}

spawnWorldFX()
{
//fire
maps\mp\_fx::loopfx("glow_latern", (5136.0, -643.0, 204), 1);


}
Share |
MOTLEY
General Member
Since: Mar 4, 2005
Posts: 74
Last: Jul 1, 2007
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 04:02 am
ok veef...thx for your reply,i did what u suggested ,it took care of the gameskill error and i thank you very much.But now its giving me this error

******* script runtime error *******
undefined is not an object: (file 'maps/mp/mp_sabes_du_mot_17.gsc', line 4)
maps\mp\mp_sabes_du_mot_17_fx::main();
*
started from:
(file 'maps/mp/mp_sabes_du_mot_17.gsc', line 1)
main()
*
************************************
writing to: C:\Program Files\Activision\Call of Duty 2\servercache.dat
Error during initialization:
script runtime error
(see console for details)
(file 'maps/mp/mp_sabes_du_mot_17.gsc', line 1)
Share |
MOTLEY
General Member
Since: Mar 4, 2005
Posts: 74
Last: Jul 1, 2007
[view latest posts]
Level 3
Category: CoD2 MP Mapping
Posted: Monday, Jun. 12, 2006 04:11 am
by the way veef...if you want to contact me on msn...addy is motley_25@hotmail.com


thx
Share |
Restricted Access Topic is Locked
Page
Next Page
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

»