For the Eve and Laythe editions of this hack, this seems to work. For Duna, I get NRE spam at the Space Center scene and any flight scene on Duna:
[EXC 16:07:04.428] NullReferenceException: Object reference not set to an instance of an object
scatterer.RefractionCamera.OnPreCull ()
This stops when I switch to another world, or go to the map or tracking station.
The only thing different between Duna and the rest is the lack of ocean. I tried hacking in a hidden ocean, but this didn't seem to make any difference.
Oddly, the Duna atmosphere still behaves as expected in both flight and map views.
What else can I check for that would help troubleshoot this? Should I make other changes to my configs to avoid this?
@Scatterer_planetsList:NEEDS[scatterer]:AFTER[DunaSpaceProgram]
{
@scattererCelestialBodies
{
@Item,0 //Kerbin
{
%celestialBodyName = Bin
%transformName = Bin
}
}
}
@Scatterer_ocean:NEEDS[scatterer]:AFTER[DunaSpaceProgram]
{
@Ocean[Kerbin]
{
%name = Bin
}
}
@Scatterer_atmosphere:NEEDS[scatterer]:AFTER[DunaSpaceProgram]
{
@Atmo[Kerbin]
{
%name = Bin
}
}
Kopernicus identifies these worlds after displayName and cbNameLater take effect:
[LOG 16:06:53]: Found Body: Sun:0 -> SOI = Infinity, Hill Sphere = Infinity
[LOG 16:06:53]: Found Body: Duna:1 -> SOI = 47921949.369738, Hill Sphere = 125063736.748336
[LOG 16:06:53]: Found Body: Mun:2 -> SOI = 2429559.11656475, Hill Sphere = 3170563.33757116
[LOG 16:06:53]: Found Body: Minmus:3 -> SOI = 2247428.3879023, Hill Sphere = 3730392.49065433
[LOG 16:06:53]: Found Body: Moho:4 -> SOI = 9646663.02332811, Hill Sphere = 22060314.8155466
[LOG 16:06:53]: Found Body: Eve:5 -> SOI = 85109364.7382441, Hill Sphere = 185949494.965972
[LOG 16:06:53]: Found Body: Ike:6 -> SOI = 1049598.93931162, Hill Sphere = 1225978.58343315
[LOG 16:06:53]: Found Body: Jool:7 -> SOI = 2455985185.42347, Hill Sphere = 4065824625.34358
[LOG 16:06:53]: Found Body: Bin:8 -> SOI = 84159286.4796305, Hill Sphere = 196414707.77848
[LOG 16:06:53]: Found Body: Vall:9 -> SOI = 2406401.44479404, Hill Sphere = 3893201.55262436
[LOG 16:06:53]: Found Body: Bop:10 -> SOI = 1221060.86284253, Hill Sphere = 2029674.44211376
[LOG 16:06:53]: Found Body: Tylo:11 -> SOI = 10856518.3683586, Hill Sphere = 14757877.6267184
[LOG 16:06:53]: Found Body: Gilly:12 -> SOI = 126123.271704568, Hill Sphere = 142427.423478875
[LOG 16:06:53]: Found Body: Pol:13 -> SOI = 1042138.89230178, Hill Sphere = 2038945.47430365
[LOG 16:06:53]: Found Body: Dres:14 -> SOI = 32832839.5767762, Hill Sphere = 92059713.5005964
[LOG 16:06:53]: Found Body: Eeloo:15 -> SOI = 119082941.647812, Hill Sphere = 266016718.015223
[LOG 16:06:53]: Found Body: Laythe:16 -> SOI = 3723645.81113302, Hill Sphere = 5186318.66159496