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

Members Online

»
0 Active | 9 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 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 subscribe
Author Topic: FX Error
Vistrum
General Member
Since: Jan 2, 2007
Posts: 146
Last: Mar 12, 2010
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Thursday, Mar. 4, 2010 05:39 am
So I've tried everything I can think of and its not working for me.

I'm making a castle map and I created a torch prefab. I'm trying to make fire play at every torch in the map but I only get the Missing FX image playing instead of the fire fx.

Here's my torch script (mp_castle2_fire.gsc):
Code:
	main()
{
	Torch = getentarray("torch", "targetname");

	
	for(i = 0; i < Torch.size; i++)
	{
		maps\mp\_fx::loopfx("fire", Torch[i].origin, 0.5);
		maps\mp\_fx::loopfx("smoke", Torch[i].origin, 0.5);
	}
	//maps\mp\_fx::loopfx("fire", Torch.origin, 0.5);
}



mp_castle2.gsc:
Code:

		main()
{	
	
	maps\mp\mp_castle2_fire::main();
	maps\mp\mp_castle2_fx::main();
	maps\mp\_load::main();
	//maps\mp\mp_castle2_efx::main();

	//maps\mp\_compass::setupMiniMap("compass_map_mp_bog");

	ambientPlay("ambient_crossfire");

	game["allies"] = "marines";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "desert";
	game["axis_soldiertype"] = "desert";
	
	setdvar( "r_specularcolorscale", "2" );
	
	setdvar("compassmaxrange","1800");
}


mp_castle2_fx.gsc:
Code:

main()
{
level._effect["fire"] = loadfx("fire\firelp_small_dl");
level._effect["smoke"] = loadfx("smoke\thin_black_smoke_M");		
}


My zone file has:
Code:

ignore,code_post_gfx_mp
ignore,common_mp
ignore,localized_code_post_gfx_mp
ignore,localized_common_mp
col_map_mp,maps/mp/mp_castle2.d3dbsp
rawfile,maps/mp/mp_castle2.gsc
rawfile,maps/mp/mp_castle2_fire.gsc
rawfile,maps/mp/mp_castle2_fx.gsc
impactfx,mp_castle2
sound,common,mp_castle2,!all_mp
sound,generic,mp_castle2,!all_mp
sound,voiceovers,mp_castle2,!all_mp
sound,multiplayer,mp_castle2,!all_mp
xmodel,body_mp_usmc_specops
xmodel,head_mp_usmc_tactical_mich_stripes_nomex
xmodel,body_mp_usmc_sniper
xmodel,head_mp_usmc_tactical_baseball_cap
xmodel,body_mp_usmc_recon
xmodel,head_mp_usmc_nomex
xmodel,body_mp_usmc_assault
xmodel,head_mp_usmc_tactical_mich
xmodel,body_mp_usmc_support
xmodel,head_mp_usmc_shaved_head
xmodel,body_mp_arab_regular_cqb
xmodel,head_mp_arab_regular_headwrap
xmodel,viewhands_desert_opfor
xmodel,body_mp_arab_regular_sniper
xmodel,head_mp_arab_regular_sadiq
xmodel,body_mp_arab_regular_engineer
xmodel,head_mp_arab_regular_ski_mask
xmodel,body_mp_arab_regular_assault
xmodel,head_mp_arab_regular_suren
xmodel,body_mp_arab_regular_support
xmodel,head_mp_arab_regular_asad
xmodel,body_mp_usmc_specops
xmodel,head_mp_usmc_tactical_mich_stripes_nomex
xmodel,body_mp_usmc_sniper
xmodel,head_mp_usmc_tactical_baseball_cap
xmodel,body_mp_usmc_recon
xmodel,head_mp_usmc_nomex
xmodel,body_mp_usmc_assault
xmodel,head_mp_usmc_tactical_mich
xmodel,body_mp_usmc_support
xmodel,head_mp_usmc_shaved_head
xmodel,body_mp_arab_regular_cqb
xmodel,head_mp_arab_regular_headwrap
xmodel,viewhands_desert_opfor
xmodel,body_mp_arab_regular_sniper
xmodel,head_mp_arab_regular_sadiq
xmodel,body_mp_arab_regular_engineer
xmodel,head_mp_arab_regular_ski_mask
xmodel,body_mp_arab_regular_assault
xmodel,head_mp_arab_regular_suren
xmodel,body_mp_arab_regular_support
xmodel,head_mp_arab_regular_asad
fx,fire/firelp_small_dl
fx,smoke/thin_black_smoke_m


IDK what else to do.. I've created fx before with no problems lol

Thanks =)

edited on Mar. 4, 2010 12:40 am by Vistrum

*EDIT*
Also, when i load the game my zone file puts messed up versions of the fx on the left side:

fx,firefirelp_small_dl
fx,smoke hin_black_smoke_m
Share |
Vistrum
General Member
Since: Jan 2, 2007
Posts: 146
Last: Mar 12, 2010
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Thursday, Mar. 4, 2010 09:44 am
Fixed.
The problem was one of two things:
1) Somehow the text in my script (not copy+pasted) was saved in a format that wasn't readable by CoD4.

2) You must use "/" and not "\".

Thank you all

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

»