Author Topic: Color Code for fog?+ ERRORS  (Read 5984 times)

What kind of color code does the fog in mission editor use? Is there a chart of the codes and color?

I also can't even load the map due to errors. Halp
« Last Edit: August 18, 2011, 11:08:29 AM by _Dark_ »

Same as anything else with colors. The first number is red, th second is blue, the third is green, and the fourth is alpha

In case Headcrab wasn't clear enough (I'm sure he was), the first value is red. it affects how red the fog is, obviously. Second one is green, and third is blue. They, too, affect the amount of that color. Alpha is how transparent the fog is.

In case Headcrab wasn't clear enough (I'm sure he was), the first value is red. it affects how red the fog is, obviously. Second one is green, and third is blue. They, too, affect the amount of that color. Alpha is how transparent the fog is.
But the code looks different than the colorset code.

Code: [Select]
0 0 0 0Is all black and fully transparent.
Code: [Select]
1 0.5 0 1Is orange and solid.

It doesn't look like that's quite the problem if the pic shows anything...

It doesn't look like that's quite the problem if the pic shows anything...
No the fog isnt the prob. It's jsut errors loading the map.

You deleted the line stating the MissionGroup, or at least it looks like that. Post the .mis file in code tags.

Quote
//--- OBJECT WRITE BEGIN ---
new SimGroup(MissionGroup) {

   new ScriptObject(MissionInfo) {
         name = "Stranded Paradise 2";
         saveName = "Stranded Paradise 2";
   };
   new MissionArea(MissionArea) {
      Area = "-1376 -1664 3744 3328";
         flightCeilingRange = "20";
         locked = "true";
         flightCeiling = "300";
   };
   new Sky(Sky) {
      position = "0 0 0";
      rotation = "1 0 0 0";
      scale = "2048 2048 100";
      materialList = "base/data/skies/sunset/resource.dml";
      cloudHeightPer[0] = "0.349971";
      cloudHeightPer[1] = "0.3";
      cloudHeightPer[2] = "0.199973";
      cloudSpeed1 = "0.0005";
      cloudSpeed2 = "0.001";
      cloudSpeed3 = "0.0003";
      visibleDistance = "500";
      fogDistance = "500";
      fogColor = "1.000000 0.400000 0.000000 1.000000";
      fogStorm1 = "0";
      fogStorm2 = "0";
      fogStorm3 = "0";
      fogVolume1 = "0 0 0";
      fogVolume2 = "0 0 0";
      fogVolume3 = "0 0 0";
      fogVolumeColor1 = "0.000000 0.000000 0.000000 1.000000";
      fogVolumeColor2 = "0.000000 0.000000 0.000000 1.000000";
      fogVolumeColor3 = "0.000000 0.000000 0.000000 1.000000";
      windVelocity = "1 1 0";
      windEffectPrecipitation = "1";
      SkySolidColor = "0.600000 0.100000 0.600000 1.000000";
      useSkyTextures = "1";
      renderBottomTexture = "0";
      noRenderBans = "0";
         locked = "true";
   };
   new Sun() {
      azimuth = "290";
      elevation = "35";
      color = "0.700000 0.700000 0.700000 1.000000";
      ambient = "0.400000 0.400000 0.300000 1.000000";
         position = "0 0 0";
         rotation = "1 0 0 0";
         locked = "true";
         scale = "1 1 1";
         direction = "0.57735 0.57735 -0.57735";
   };
   new TerrainBlock(Terrain) {
      rotation = "1 0 0 0";
      scale = "1 1 1";
      terrainFile = "./strandedparadise2.ter";
      bumpTexture = "~/Map_Kitchen/sand1";
      squareSize = "16";
      bumpScale = "5";
      bumpOffset = "0.0051";
      zeroBumpScale = "5";
      RepeatTerrain = "1";
   };
   new SimGroup(PlayerDropPoints) {

      new SpawnSphere() {
         position = "-379.889 -1427.83 133.178";
         rotation = "1 0 0 0";
         scale = "0.940827 1.97505 1";
         dataBlock = "SpawnSphereMarker";
         canSetIFLs = "0";
         radius = "40";
         sphereWeight = "1";
         indoorWeight = "1";
         outdoorWeight = "1";
            locked = "false";
            homingCount = "0";
            lockCount = "0";
      };
   };
   new ScriptObject() {
      class = "WhoTalkSO";
         textObj = "2855";
         id0 = "3306";
         count = "0";
   };
   new StaticShape() {
      position = "-483.12 -243.458 81.176";
      rotation = "-0.159318 -6.96664e-009 0.987227 180";
      scale = "0.8 0.8 0.8";
      dataBlock = "LCDColon";
      canSetIFLs = "0";
         skinName = "green";
   };
   new TSStatic() {
      position = "-323.833 -1369.71 131.531";
      rotation = "1 0 0 0";
      scale = "10 10 10";
      shapeName = "base/data/shapes/Sharp_Trees/Trees/Palm/Sharp_Palm04.dts";
   };
   new WaterBlock() {
      position = "-328 -1024 24.856";
      rotation = "1 0 0 0";
      scale = "2048 2048 100";
      UseDepthMask = "1";
      RepeatTerrain = "0";
      surfaceTexture = "base/data/skies/sunset/resource.dml";
      ShoreTexture = "base/data/skies/sunset/resource.dml";
      liquidType = "Water";
      density = "1";
      viscosity = "1";
      waveMagnitude = "0";
      surfaceOpacity = "0.75";
      envMapIntensity = "0.1";
      TessSurface = "50";
      TessShore = "60";
      SurfaceParallax = "0.5";
      FlowAngle = "0";
      FlowRate = "0";
      DistortGridScale = "0.1";
      DistortMag = "0.05";
      DistortTime = "0.5";
      ShoreDepth = "10";
      DepthGradient = "1";
      MinAlpha = "0.03";
      MaxAlpha = "1";
      removeWetEdges = "0";
      specularColor = "1.000000 0.400000 0.000000 1.000000";
      specularPower = "6";
      waterColor = "0.200000 0.600000 0.600000 0.300000";
      useCustomFog = "0";
      customFogDistance = "800";
      customVisibilityDistance = "1000";
         params3 = "1.21 -0.61 0.13 -0.33";
         floodFill = "1";
         extent = "100 100 10";
         params0 = "0.32 -0.67 0.066 0.5";
         textureSize = "10000 10000";
         params1 = "0.63 -2.41 0.33 0.21";
         params2 = "0.39 0.39 0.2 0.133";
         envMapTexture = "base/data/skies/sunset/resource.dml";
         seedPoints = "0 0 1 0 1 1 0 1";
};
//--- OBJECT WRITE END ---

I misread the console and only saw the last two ##. Would you mind posting the full error report? :)

It says no missionGroup found, so it's not reading the .mis I would guess.

Quote
>>> Some error context, with ## on sides of error halt
texturesize = "10000 10000";
params1 = "0.63 -2.41 0.33 0.21";
params2 = "0.39 0.39 0.2 0.133";
envMapTexture = "base/data/sunset/skies/resource.dml
seedPoints = " 0 0 1 0 1 1 0 1";
};
//-- OBJECT WRITE END --
##
>>Error Report Complete

Code: [Select]
envMapTexture = "base/data/sunset/skies/resource.dml
should be.
Code: [Select]
envMapTexture = "base/data/sunset/skies/resource.dml";

Code: [Select]
envMapTexture = "base/data/sunset/skies/resource.dml
should be.
Code: [Select]
envMapTexture = "base/data/sunset/skies/resource.dml";
Sorry it is. I couldnt copy and paste so I had to retype it :S

Huh ... I don't see any errors. It may occur to me after looking at this a few times. :c