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

Members Online

»
0 Active | 5 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 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
Page
Next Page
subscribe
Author Topic: rain
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 07:58 pm
I used rastas rain tut. and I followed all the steps but when ever I try to load the map it says "script compile error, bad syntax" can someone plzz help?
Share |
Hercules
General Member
Since: Jan 23, 2005
Posts: 775
Last: Apr 26, 2011
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 08:09 pm
are you copying and pasting it exactly how he has done it ? post your .gsc here ill have a look
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: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 08:15 pm
As long as you follow the tutorial which you can find here, you should have no problem at all.
Share |
Big-Madman
General Member
Since: May 14, 2006
Posts: 197
Last: May 7, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 08:29 pm
[cool] yop as hercules sais just post here your gsc and give a screeny of the error ...

[rocking]
Share |
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 09:22 pm
my gsc is:



main()
{

maps\mp\_load::main();
maps\mp\mp_rain::main();
maps\mp\mortar::main();
maps\mp\mp_passendale_fx::main();

setExpFog(0.00020, 0.15, 0.14, 0.13, 0);
ambientPlay("ambient_mp_passendale");

game["attackers"] = "allies";
game["defenders"] = "axis";

game["allies"] = "american";
game["axis"] = "german";

setcvar("r_glowbloomintensity0","1");
setcvar("r_glowbloomintensity1","1");
setcvar("r_glowskybleedintensity0",".25");





if(getcvar("g_gametype") == "hq")
{
level.radio = [];
level.radio[0] = spawn("script_model", (888, -784, 64));
level.radio[0].angles = (0, 270.577, 0);

level.radio[1] = spawn("script_model", (-80, 400, 160));
level.radio[1].angles = (0, 75.577, 0);

level.radio[2] = spawn("script_model", (8, -544, 192));
level.radio[2].angles = (0, 210.577, 0);

level.radio[3] = spawn("script_model", (-480, 520, 216));
level.radio[3].angles = (2.00192, 105.559, -0.515415);

level.radio[4] = spawn("script_model", (-728, -120, 352));
level.radio[4].angles = (0, 270.559, 0);

level.radio[5] = spawn("script_model", (-1072, 672, 168));
level.radio[5].angles = (0, 150.559, 0);


}


}



and my fx.gsc is:

main()

{
precacheFX();
ambientFX();

level.scr_sound["flak88_explode"] = "flak88_explode";
level.rasta_cod2_rain = loadfx ("fx/misc/rain_light.efx");

}

precacheFX()

{

level._effect["tank_fire_turret"] = loadfx ("fx/fire/tank_fire_turret_small.efx");
level._effect["thin_light_smoke_L"] = loadfx ("fx/smoke/thin_light_smoke_L.efx");


}


ambientFX()

{

//mortar

maps\mp\_fx::loopfx("thin_light_smoke_L", (-192,-960,143), 1, (1817,-1474,89));

maps\mp\_fx::loopfx("thin_light_smoke_L", (-236,156,156), 1, (1817,-1474,89));

maps\mp\_fx::loopfx("thin_light_smoke_L", (-2448,-976,166), 1, (1817,-1474,89));



}


and the error is exactly this,
"*******script compile error********
bad syntax


edited on Sep. 29, 2006 05:24 pm by webber17
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: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 09:28 pm
Run the map in develper mode you wil get more info on the error (/developer 1)
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 09:55 pm
also post your rain gsc....that might be the one thats causing teh problem also
Share |
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 10:52 pm
first of all the rain is straight from the page, i just copied it and second of all, how do i run in developer mode?
Share |
Trigonous
General Member
Since: Mar 8, 2006
Posts: 80
Last: Oct 3, 2006
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 10:59 pm
Look in the advanced portalling, outdoor portalling tutorial.

And even if you THINK you copied it straight from the tutorial, there is a slim chance you messed something up or the computer did, so post the rain .gsc anyway[biggrin]

edited on Sep. 29, 2006 07:00 pm by Trigonous
Share |
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Sep. 29, 2006 11:11 pm
the rain script:

//Script by rasta, please credit if used
main()
{
level thread level.rain();
}

level.rain()

{
zufall = RandomInt(100);

while(1) {


players = getentarray("player", "classname");

if(players.size > 0) {

max_nodes = 20;
max_nodes_per_player = max_nodes/players.size;


for(ii=0;ii

for(i = 0; i < players.size; i++) {

player = players;

if(isAlive(player)) {

x= 350-randomfloat(700);
y= 350-randomfloat(700);

pos = player.origin +(x,y,200) ;
trace = bulletTrace(pos,pos +(0,0,-250), true, undefined);

if(trace["fraction"] != 1) playfx(level.rain,trace["position"]);
wait 0.05;

}
}
}
}

wait 0.05;
}
}
Share |
Restricted Access Topic is Locked
Page
Next Page
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

»