mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Manual bramble recursion fix (#480)
Option to manually remove a sender warp for cases where the recursion scanner fails.
This commit is contained in:
commit
1347131d68
@ -365,6 +365,15 @@ namespace NewHorizons.Builder.Props
|
|||||||
var success = PairEntrance(innerFogWarpVolume, config.linksTo);
|
var success = PairEntrance(innerFogWarpVolume, config.linksTo);
|
||||||
if (!success) RecordUnpairedNode(innerFogWarpVolume, config.linksTo);
|
if (!success) RecordUnpairedNode(innerFogWarpVolume, config.linksTo);
|
||||||
|
|
||||||
|
if (config.preventRecursionCrash)
|
||||||
|
{
|
||||||
|
Delay.FireOnNextUpdate(() =>
|
||||||
|
{
|
||||||
|
var destination = GetOuterFogWarpVolumeFromAstroObject(AstroObjectLocator.GetAstroObject(config.linksTo).gameObject);
|
||||||
|
if (destination != null) destination._senderWarps.Remove(innerFogWarpVolume);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// Cleanup for dimension exits
|
// Cleanup for dimension exits
|
||||||
if (config.name != null)
|
if (config.name != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -134,6 +134,12 @@ namespace NewHorizons.External.Modules
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int[] possibleExits;
|
public int[] possibleExits;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// If your game hard crashes upon entering bramble, it's most likely because you have indirectly recursive dimensions, i.e. one leads to another that leads back to the first one.
|
||||||
|
/// Set this to true for one of the nodes in the recursion to fix this, at the cost of it no longer showing markers for the scout, ship, etc.
|
||||||
|
/// </summary>
|
||||||
|
[DefaultValue(false)] public bool preventRecursionCrash = false;
|
||||||
|
|
||||||
#region Obsolete
|
#region Obsolete
|
||||||
|
|
||||||
[Obsolete("farFogTint is deprecated, please use fogTint instead")]
|
[Obsolete("farFogTint is deprecated, please use fogTint instead")]
|
||||||
|
|||||||
@ -661,6 +661,11 @@
|
|||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"preventRecursionCrash": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "If your game hard crashes upon entering bramble, it's most likely because you have indirectly recursive dimensions, i.e. one leads to another that leads back to the first one.\nSet this to true for one of the nodes in the recursion to fix this, at the cost of it no longer showing markers for the scout, ship, etc.",
|
||||||
|
"default": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user