effect map help
Moderator: Core Staff
-
- CJ Wannabe
- Posts: 9
- Joined: June 28th, 2010, 2:02 pm
effect map help
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?
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?
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: effect map help
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...{JUMPER}Alfio wrote:What did I do wrong?

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
-
- CJ Wannabe
- Posts: 9
- Joined: June 28th, 2010, 2:02 pm
Re: effect map help
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?
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?
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: effect map help
my guess, either a bas spelling (filename or function call) or a bad file extension.
Otherwise, I do not know.
Otherwise, I do not know.

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
Re: effect map help
try maps\mp\createfx\mp_luna_fx::main();{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();
///////////////////////////////////////////////////////
Ciao da Goro


-
- CJ Wannabe
- Posts: 9
- Joined: June 28th, 2010, 2:02 pm
Re: effect map help
does not work, other suggestions?
-
- CJ Worshipper
- Posts: 289
- Joined: December 5th, 2009, 7:12 am
- Location: Australia
Re: effect map help
Did you add all the separate scripts into your zone file?
Re: effect map help
agree...add this line rawfile,maps/mp/mp_luna_fx.gsciCYsoldier wrote:Did you add all the separate scripts into your zone file?

Who is online
Users browsing this forum: No registered users and 2 guests