effect map help

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
User avatar
{JUMPER}Alfio
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: June 28th, 2010, 2:02 pm

effect map help

Post by {JUMPER}Alfio » January 9th, 2012, 7:56 pm

Hello everyone, I would like to add lighting effects to my map I followed this guide but when I open http://wiki.modsrepository.com/index.ph ... Cs_scripts map I get an error:

scrip compile error
could not find scipt 'maps/mp/mp_luna_fx'
maps/mp/mp_luna_fx::main();
(see console for details)

What did I do wrong?

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: effect map help

Post by Drofder2004 » January 10th, 2012, 3:52 am

{JUMPER}Alfio wrote:What did I do wrong?
You didn't read the tutorial correctly, and that is where you went wrong. go ba k and try it again, this time read it slower...
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
{JUMPER}Alfio
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: June 28th, 2010, 2:02 pm

Re: effect map help

Post by {JUMPER}Alfio » January 10th, 2012, 5:16 pm

So, I explain what I did:
1) I created the file mp_luna_fx.gsc in raw/maps/createfx with in this script
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//_createfx generated. Do not touch!!
main()
{
ent = maps\mp\_utility::createOneshotEffect( "firelp_vhc_lrg_pm_farview" );
ent.v[ "origin" ] = ( 320, -520, 1935 );
ent.v[ "angles" ] = ( 270, 0, 0 );
ent.v[ "fxid" ] = "firelp_vhc_lrg_pm_farview";
ent.v[ "delay" ] = -15;
ent.v[ "soundalias" ] = "fire_metal_large";
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

2) in raw/maps/mp i created file mp_luna_fx.gsc with in this script

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
main()
{
level._effect[ "firelp_vhc_lrg_pm_farview" ] = loadfx( "fire/firelp_vhc_lrg_pm_farview" );

/#
if ( getdvar( "clientSideEffects" ) != "1" )
maps\createfx\mp_luna_fx::main();
#/
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

3) in my file mp_luna.gsc in raw/maps/mp after maps\mp\_load::main(); i added

////////////////////////////////////////////////////////
maps\mp\mp_luna_fx::main();
///////////////////////////////////////////////////////

4) in my file zone_source mp_luna.csv add this line

//////////////////////////////////////////////////
fx,fire/firelp_vhc_lrg_pm_farview
/////////////////////////////////////////////////


So what did I do wrong?

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: effect map help

Post by Drofder2004 » January 10th, 2012, 5:29 pm

my guess, either a bas spelling (filename or function call) or a bad file extension.

Otherwise, I do not know.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: effect map help

Post by Goro92 » January 10th, 2012, 10:09 pm

{JUMPER}Alfio wrote:
3) in my file mp_luna.gsc in raw/maps/mp after maps\mp\_load::main(); i added

////////////////////////////////////////////////////////
maps\mp\mp_luna_fx::main();
///////////////////////////////////////////////////////
try maps\mp\createfx\mp_luna_fx::main();

Ciao da Goro :)
Image

User avatar
{JUMPER}Alfio
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: June 28th, 2010, 2:02 pm

Re: effect map help

Post by {JUMPER}Alfio » January 11th, 2012, 5:11 pm

does not work, other suggestions?

User avatar
iCYsoldier
CJ Worshipper
CJ Worshipper
Posts: 289
Joined: December 5th, 2009, 7:12 am
Location: Australia

Re: effect map help

Post by iCYsoldier » January 12th, 2012, 12:29 am

Did you add all the separate scripts into your zone file?

User avatar
Goro92
CJ Spammer!
CJ Spammer!
Posts: 605
Joined: March 7th, 2011, 5:54 pm
Location: Brescia, Italy

Re: effect map help

Post by Goro92 » January 12th, 2012, 9:19 am

iCYsoldier wrote:Did you add all the separate scripts into your zone file?
agree...add this line rawfile,maps/mp/mp_luna_fx.gsc
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests