Mist isn't showing up ingame

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Mist isn't showing up ingame

Post by B.I.G_Cookie »

I searched already, but the only threads I found were "how to add mist" and something like that..

This is just a little problem I have:
I want Dagobah mist on my map, but it isn't showing up ingame.

I have all Dagobah effetcs in my effect folder.
I have the Dagobah mist odf in my odf folder.
I have the Dagobah mist texture and the msh in my msh folder and I placed the odf in ZE, but it isnt't showing up ingame, why? :?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: mist isn't showing up ingame

Post by AQT »

I'm not sure but how about replacing the SkyInfo() section in your .sky file with

Code: Select all

SkyInfo()
{
	Enable(1);

	FogColor(95,111,126);
	WorldFogRange(-1.7, -5.0);

	PC()
	{
		NearSceneRange(20.0, 30.0, 60.0, 80.0);
		FarSceneRange(0.0);
	}
	
}
and adding this section to your .fx file

Code: Select all

Effect("FogCloud")
{
	Enable(1);
	Texture("fluffy");
	Range(60.0, 100.0);
	Color(168, 172, 180, 128);
	Velocity(5.0, 0.0);
	Rotation(0.1);
	Height(16.0);
	ParticleSize(28.0);
	ParticleDensity(60.0);
}
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: mist isn't showing up ingame

Post by YaNkFaN »

yea that's not what he's asking for (i don't think it is at least)

if this mist
Hidden/Spoiler:
Image
is what you want you can do it 1 of two ways or both (which is what is seen here) 1 is place this object dag1_prop_effectvine or 2 attach this effect dag1_mist (this is an effect file not a .odf) to an emmiter maybe myg1_bldg_fire_effect (can be found in .odf for myg).
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: mist isn't showing up ingame

Post by Fiodis »

YaNkFaN wrote:yea that's not what he's asking for (i don't think it is at least)

if this mist
Hidden/Spoiler:
Image
is what you want you can do it 1 of two ways or both (which is what is seen here) 1 is place this object dag1_prop_effectvine or 2 attach this effect dag1_mist (this is an effect file not a .odf) to an emmiter maybe myg1_bldg_fire_effect (can be found in .odf for myg).
I believe that, as mentioned above, you should add in the lines to your FX file.

Also, in addition to the method Yankfan suggested, you can attach an effect to a node through a LUA line.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: mist isn't showing up ingame

Post by AQT »

I don't see a difference between fog and mist, at least in SWBF.
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: mist isn't showing up ingame

Post by B.I.G_Cookie »

YaNkFaN wrote:yea that's not what he's asking for (i don't think it is at least)

if this mist

is what you want you can do it 1 of two ways or both (which is what is seen here) 1 is place this object dag1_prop_effectvine or 2 attach this effect dag1_mist (this is an effect file not a .odf) to an emmiter maybe myg1_bldg_fire_effect (can be found in .odf for myg).
Ok I placed dag1_prop_effectvine in ZE, but there isn't any object and it isn't showing up ingame as well. And how do you mean this part

"attach this effect dag1_mist (this is an effect file not a .odf) to an emmiter maybe myg1_bldg_fire_effect (can be found in .odf for myg)."

Is it necassary change the .fx file and the.syk file first like AQT said?
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: mist isn't showing up ingame

Post by YaNkFaN »

you sure dag1_prop_effectvine doesn't work because that's the object make sure you have dag1_prop_effectvine.msh in your msh folder and dag1_mist in your effects folder
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: mist isn't showing up ingame

Post by AQT »

Is it necassary change the .fx file and the.syk file first like AQT said?
It depends on the look you are going for. "Mist" is just up-close fog. If you also change your .fx and .sky file, then you'll see fog in the distance blocking whatever is in the distance.
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: mist isn't showing up ingame

Post by B.I.G_Cookie »

I just want the same type of fog like in Yankfans pic.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: mist isn't showing up ingame

Post by Fiodis »

If all this isn't working for you I'd recommend just using LUA to attach it to a node.

Code: Select all

nodematrix = GetPathPoint("Path's_name", "node's_name")
AttachEffectToMatrix(CreateEffect("Effect's_name"), nodematrix)
It'll probably help things if the path has only the one node in it.

Also, from the tutorial, regarding this method:
Hidden/Spoiler:
[quote]Get your own effect and Object, place this in your LUA under ScriptPostLoad, and you'd be done...but the problem is, the game isn't loading your effect. Check, and you'll see it is munged, but still not in game. For some reason, you have to create an object - odf and msh - that references your effect. It has to have hard points. Sneak it somewhere in your map. The effects will then be loaded.
[/quote]
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: mist isn't showing up ingame

Post by B.I.G_Cookie »

Well I got some fog ingame, but it looks like this :?
Hidden/Spoiler:
Image
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: mist isn't showing up ingame

Post by Fiodis »

Well, you got it in-game! :)

That is strange. If anything were wrong with the effect itself, I'd expect it to make squares instead of strange shapes....which effect are you using, exactly?
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: mist isn't showing up ingame

Post by B.I.G_Cookie »

The effect is dag1_mist.fx and the fog comes from dag1_prop_effectvine.odf
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Mist isn't showing up ingame

Post by YaNkFaN »

go into the .fx file and click ctrl+f and type in texture now keep clicking find next until you've made sure you have all the appropriate .tgas in your effects folder not .msh folder
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: Mist isn't showing up ingame

Post by B.I.G_Cookie »

Well the mist has a texture.
It just looks like this
Hidden/Spoiler:
Image
How to fix this?
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Mist isn't showing up ingame

Post by RogueKnight »

B.I.G_Cookie wrote:Well the mist has a texture.
It just looks like this
Hidden/Spoiler:
Image
How to fix this?
go into the .fx file and click ctrl+f and type in texture now keep clicking find next until you've made sure you have all the appropriate .tgas in your effects folder not .msh folder
:roll:
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Mist isn't showing up ingame

Post by DarthD.U.C.K. »

i reckon cookie did that..
Post Reply