Jump to content

How do you reduce fog client side? (Fix found)


FL nar Rayya

Recommended Posts

I've got a server with a couple of friends playing and one of my friend keeps complaining about the fog, that it's there at least once every single day and I kind of agree with him, it gets obnoxious. But whenever he tries the "weather fog 0" command it sets MY fog to 0. It seems like the command only changes the hosts' fog so I'm wondering if there's any quick and easy way my friend can enjoy some games without any fog (outside of modding the game), my friends aren't tech savvy and we're enjoying 7 days to die a lot as a way to relax out of our daily lives, so I'm hoping to get the solution here so he can enjoy the game the way he'd like it.

 

On a side note is it me or has the fog been increasing in the recent alphas? Back in a16.4 I don't remember it being a problem.

 

Fix found below.

 

Edited by FL nar Rayya
Fixed (see edit history)
Link to comment
Share on other sites

I don't think you can modify the fog conditions without modifying the game (not sure how you want to remove the fog without modding the game)...

 

From the biomes xml file (pine forest as an example)

    <biome name="pine_forest" topsoil_block="terrForestGround" biomemapcolor="#004000" lootstage_modifier = "0" lootstage_bonus="0">

        <weather name="default" prob="83">
            <Temperature min="65" max="70" prob="1"/>
            <CloudThickness min="0" max="0" prob="35"/>
            <CloudThickness min="10" max="70" prob="65"/>
            <Precipitation min="0" max="0" prob="1"/>
            <Fog min="0" max="2" prob="1"/>
            <Wind min="3" max="22" prob="1"/>
        </weather>
        <weather name="fog" prob="7">
            <Temperature min="65" max="70" prob="1"/>
            <CloudThickness min="35" max="70" prob="1"/>
            <Precipitation min="0" max="0" prob="1"/>
            <Fog min="16" max="27" prob="1"/>
            <Wind min="2" max="5" prob="1"/>
        </weather>
        <weather name="rain" prob="7">
            <Temperature min="65" max="70" prob="1"/>
            <CloudThickness min="70" max="90" prob="1"/>
            <Precipitation min="30" max="80" prob="1"/>
            <Fog min="1" max="3" prob="1"/>
            <Wind min="10" max="25" prob="1"/>
            <spectrum name="Rainy"/>
        </weather>
        <weather name="storm" prob="3">
            <Temperature min="65" max="70" prob="1"/>
            <CloudThickness min="90" max="100" prob="1"/>
            <Precipitation min="90" max="100" prob="1"/>
            <Fog min="2" max="8" prob="1"/>
            <Wind min="35" max="40" prob="1"/>
            <spectrum name="Stormy"/>
        </weather>

 

I think if you change all the fog probabilities to 0 then you won't get fog in the pine forest.  The other biomes would have the same code.  Someone else might have a better idea, but a modlet is most likely your best avenue.

Link to comment
Share on other sites

I’ve actually tried & failed. If it is raining and you want the rain to stop, you type     Weather rain 0     In the console and the rain stops. Typing  weather fog 0  does nothing. I should say I’ve been admin with the commands so I don’t know if the commands work if you aren’t admin.

Link to comment
Share on other sites

@Star69 The "weather fog 0" command works but only for the host of the game (which is I), it allows you to view the entire world, rain or not. I've also already set my friends as admin if they ever get glitched out or something. I think @BFT2020's idea will be the best choice, especially since my friend was complaining about the fog in pine forest. I'll just walk him through the changes while he shares his screen. I just hope it doesn't block him from getting in our vanilla 7 days to die game as it would consider his game modded.

Edited by FL nar Rayya
syntax edit for better reading (see edit history)
Link to comment
Share on other sites

14 hours ago, FL nar Rayya said:

@Star69 The "weather fog 0" command works but only for the host of the game (which is I), it allows you to view the entire world, rain or not. I've also already set my friends as admin if they ever get glitched out or something. I think @BFT2020's idea will be the best choice, especially since my friend was complaining about the fog in pine forest. I'll just walk him through the changes while he shares his screen. I just hope it doesn't block him from getting in our vanilla 7 days to die game as it would consider his game modded.

 

If you guys are playing together, you just need to modify the server files and not the client side ones (since they would only be xml edits).  However, this will affect all players (so nobody would see fog at that point).  I don't think you can mod client side only as the server config files will be the ones being used (to prevent people from hacking on servers).  I got another modlet I am going to work on this evening for another person so I can easily throw one together for fog and test it out at the same time.

Link to comment
Share on other sites

  • 2 weeks later...

Sorry for the late reply, we haven't played 7 days since last time (holidays and stuff) and we finally got together yesterday only to find the changes he did on the biomes.xml did not work (changing fog min-max of the biomes to 0), like you mentioned above it's a host setting (I assumed it would work since in my modding experience it always affected client side) afterwards I tried to change mine and it did not work for some reason.

 

After looking around the files I found fog settings in worldglobal.xml, after messing around with it, I accidentally deleted the fog for everyone and my 2 other friends complained that they liked it better with the fog.

 

Once the gaming session was over, I went and played with the settings for an hour.

Here's my final worldglobal.xml file, the fog setting I played with was "fogPower"

<?xml version="1.0" encoding="UTF-8"?>

<!-- Defines global world information -->

<worldglobal>

	<environment>

		<!-- day, night -->
		<property name="ambientEquatorScale" value=".7, .45"/>
		<property name="ambientGroundScale" value=".3, .05"/>
		<property name="ambientSkyScale" value="1, 1"/>
		<property name="ambientSkyDesat" value=".95, .7"/>

		<property name="ambientMoon" value=".9, .3"/><!-- add, scale -->

		<property name="ambientInsideSpeed" value=".3"/>
		<property name="ambientInsideThreshold" value=".2"/>
		<property name="ambientInsideEquatorScale" value=".5"/>
		<property name="ambientInsideGroundScale" value=".4"/>
		<property name="ambientInsideSkyScale" value=".7"/>

		<property name="fogPower" value="1.5, 1.5"/>		<!-- day, night -->
		<property name="fogWater" value=".47, .2"/>	<!-- density, speed -->
		<property name="fogWaterColor" value=".38, .42, .38"/>

		<property name="test" value="1"/>
	</environment>

</worldglobal>

 

The value inside the "fogPower" works in reverse with a maximum value of 2. Meaning "0, 0" = Full fog (you can't see 2 inches in front of you), "1, 1" = Normal, "2, 2" (and above) = No fog. I put it to 1.5 and as a result our game has half the normal fog.

 

I know it affects everyone in the server since I'd first set it to 10 thinking it would give 1/10 fog but just deleted it.

 

All that happened pretty quickly, which is why I didn't have time to test your modlet @BFT2020 before coming back here, sorry for that.

Edited by FL nar Rayya
A little extra I should mention... (see edit history)
Link to comment
Share on other sites

  • FL nar Rayya changed the title to How do you reduce fog client side? (Fix found)

Just a FYI, the modlet does work for anyone that wants to remove fog completely.  I tried it out in my game and no fog for the first week.  Removed it after the first horde night and I been getting fog on a regular basis now.

 

OPs issue was trying to get only one person to have no fog when the game tries to simulate the weather like in real life (where if one person is standing in fog, the person 2 feet from them are also standing in fog - issues withstanding  😉  )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...