• 0
GamersRoost

KeyFrame help - Nothing has changed that i know.

Question

I am getting the error:

7:34:43   Error position: <_keyframeName;
_interval setFog getNumbe>
 7:34:43   Error Undefined variable in expression: _keyframename
 7:34:43 File exile_server\code\ExileServer_system_weather_thread_weatherSimulation.sqf, line 16
 7:34:43 Error in expression <igFile >> "CfgSettings" >> "Weather" >> _keyframeName;
_interval setFog getNumbe>

 

It is spamming my RPT like i cannot explain.

I have changed nothing that i know of, and here is my weather keyframes and settings.

 

Spoiler

 class Weather
 {
  /*
   You can define multiple "keyframes" for the weather to change. The server will pick
   a keyframe randomly to simulate the weather. It will change the weather-keyframes
   based on the following interval
  */
  interval = 30;

  /*
   Add the keyframes here. The server will pick one random, so if you want one
   weather type of be more dominant compared to others, add it multiple times
  */
  keyframes[] = {"Sunny","Cloudy","Sunny","Cloudy","Sunny","Cloudy","Thunderstorm"};

  /*
   This is a keyframe. Look up the BIKI to get more details about the parameters

   Be sure to design the fog settings at a view distance of 1,600m as this is the
   limit in multiplayer by default

   https://community.bistudio.com/wiki/fogParams
   https://community.bistudio.com/wiki/overcast
   https://community.bistudio.com/wiki/setWaves
   https://community.bistudio.com/wiki/setWindStr
   https://community.bistudio.com/wiki/setGusts
   https://community.bistudio.com/wiki/setRain
   https://community.bistudio.com/wiki/setLightnings
   https://community.bistudio.com/wiki/setRainbow
  */
  class Sunny
  {
   fogValue = 0.1;
   fogDecay = 0.2;
   fogBase = 5;
   overcast = 0.2;
   waves = 0.2;
   wind = 0.25;
   gusts = 0.1;
   rain = 0;
   lightnings = 0;
   rainbows = 0;
  };

  class Cloudy
  {
   fogValue = 0.2;
   fogDecay = 0.1;
   fogBase = 5;
   overcast = 0.4;
   waves = 0.4;
   wind = 0.25;
   gusts = 0.5;
   rain = 0.1;
   lightnings = 0.1;
   rainbows = 1;
  };

  class Thunderstorm
  {
   fogValue = 0.7;
   fogDecay = 0.2;
   fogBase = 5;
   overcast = 1;
   waves = 1;
   wind = 0.25;
   gusts = 0.5;
   rain = 1;
   lightnings = 1;
   rainbows = 0.5;
  };
 };

I have looked at the keyframe BIKI - everything looks right.

I have also copied the <spoiler> info from a server that has no errors in the RPT.

I'm just hoping someone might see where its incorrect.

Thanks!

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

exile_server\code\ExileServer_system_weather_thread_weatherSimulation.sqf, line 16

that's where the issue lives, you will need to paste that somewhere

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, red_ned said:

exile_server\code\ExileServer_system_weather_thread_weatherSimulation.sqf, line 16

that's where the issue lives, you will need to paste that somewhere

First off, your trader includes is epic.... Thanks for doing all that for the community.

Now, I have looked at that file in Exile server code and it is un-touched from the latest release of 0.9.41 (Difmerged it).

Here it is however.

Spoiler

/**
 * ExileServer_system_weather_thread_weatherSimulation
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_interval","_keyframes","_keyframeName","_keyframeConfig"];
_interval = round(getNumber (configFile >> "CfgSettings" >> "Weather" >> "interval") * 60);
_keyframes = getArray (configFile >> "CfgSettings" >> "Weather" >> "keyframes");
_keyframeName = _keyframes select (floor (random (count _keyframes)));
_keyframeConfig = configFile >> "CfgSettings" >> "Weather" >> _keyframeName;
_interval setFog getNumber (_keyframeConfig >> "fogValue");
_interval setFog
[
 getNumber (_keyframeConfig >> "fogValue"),
 getNumber (_keyframeConfig >> "fogDecay"),
 getNumber (_keyframeConfig >> "fogBase")
];
_interval setOvercast (getNumber (_keyframeConfig >> "overcast"));
_interval setWaves (getNumber (_keyframeConfig >> "waves"));
_interval setWindStr (getNumber (_keyframeConfig >> "wind"));
_interval setGusts (getNumber (_keyframeConfig >> "gusts"));
_interval setRain (getNumber (_keyframeConfig >> "rain"));
_interval setLightnings (getNumber (_keyframeConfig >> "lightnings"));
_interval setRainbow (getNumber (_keyframeConfig >> "rainbows"));
true

The only thing i can think of with my little pea brain is that the order of the weather is not correct in the Config.cpp.

 

private["_interval","_keyframes","_keyframeName","_keyframeConfig"];
_interval = round(getNumber (configFile >> "CfgSettings" >> "Weather" >> "interval") * 60);

Edited by GamersRoost
Hooked on phonics

Share this post


Link to post
Share on other sites
  • 0

[RESOLVED]

 

Within my Config.cpp there was an extra brace  - };  - just above the classWeather.

Diffmerge for some reason did not see it.

 

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.