Skip to content

Commit

Permalink
v1.1.7
Browse files Browse the repository at this point in the history
- fixed infinite loadig bug
- fixed ATP error
  • Loading branch information
hearth1an committed Aug 14, 2023
1 parent 066512e commit 4c115e5
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 48 deletions.
17 changes: 12 additions & 5 deletions TheVision.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ public class TheVision : ModBehaviour
public static INewHorizons newHorizonsAPI;
public static TheVision Instance;
public OWAudioSource PlayerHeadsetAudioSource;
public bool isAtpFixNeeded = false;

private void Awake()
{
Instance = this;
Harmony.CreateAndPatchAll(System.Reflection.Assembly.GetExecutingAssembly());

}
private void Start()
public void Start()
{
ModHelper.Events.Unity.RunWhen(() => EntitlementsManager.IsDlcOwned() != EntitlementsManager.AsyncOwnershipStatus.NotReady, () =>
{
Expand Down Expand Up @@ -69,21 +70,24 @@ private void TitleProps()
SearchUtilities.Find("Scene/Background/PlanetPivot/Prefab_HEA_Campfire/Props_HEA_Campfire/Campfire_Flames").GetComponent<MeshRenderer>().material.color = new Color(0, 5, 4, 1);
SearchUtilities.Find("Scene/Background/PlanetPivot/Prefab_HEA_Campfire/Props_HEA_Campfire/Campfire_Embers").SetActive(false);
}
private void OnStarSystemLoaded(string systemName)
public void OnStarSystemLoaded(string systemName)
{
ModHelper.Console.WriteLine("LOADED SYSTEM " + systemName);

if (systemName == "SolarSystem")
{
SpawnStartProps();
SpawnStartProps();
isAtpFixNeeded = true;
}
if (systemName == "EyeOfTheUniverse")
{
CheckEyeOfTheUniverseProps();
}
if (systemName == "GloamingGalaxy")
{
isAtpFixNeeded = false;
EndGame();

}
}
private void SpawnStartProps()
Expand Down Expand Up @@ -299,6 +303,7 @@ private void SpawnStartProps()

public void ATPfix()
{

// ATP memory animation link fix
var dataStream = SearchUtilities.Find("TimeLoopRing_Body/Effects_TimeLoopRing/Effect 2/Effects_NOM_TimeLoopDataStream");
dataStream.transform.localRotation = new Quaternion(0.8899f, 0, 0, 0.4562f);
Expand All @@ -309,9 +314,10 @@ public void ATPfix()
newMask.transform.localPosition = new Vector3(22.217f, -6.8984f, 5.1757f);
newMask.SetActive(false);

var checkOtherPulse = SearchUtilities.Find("TimeLoopRing_Body/Effects_TimeLoopRing/centralPulse 1");
var checkOtherPulse = SearchUtilities.Find("TimeLoopRing_Body/Effects_TimeLoopRing/centralPulse 1");


TheVision.Instance.ModHelper.Events.Unity.RunWhen(() => checkOtherPulse.gameObject.activeSelf == true, () =>
TheVision.Instance.ModHelper.Events.Unity.RunWhen(() => isAtpFixNeeded != false && checkOtherPulse != null && checkOtherPulse.gameObject.activeSelf == true , () =>
{
dataStream.SetActive(true);
newMask.SetActive(true);
Expand Down Expand Up @@ -655,6 +661,7 @@ public void DisabledPropsOnStart(bool isActive)
}
public void EndGame()
{
isAtpFixNeeded = false;
/*
ModHelper.Events.Unity.FireOnNextUpdate(() =>
{
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "hearth1an",
"name": "The Vision",
"uniqueName": "hearth1an.TheVision",
"version": "1.1.6",
"version": "1.1.7",
"owmlVersion": "2.3.2",
"dependencies": [ "xen.NewHorizons", "JohnCorby.VanillaFix" ],
"conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_Randomizer" ]
Expand Down
45 changes: 17 additions & 28 deletions planets/GloamingGalaxy/Cron.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
"starSystem": "GloamingGalaxy",

"Base": {

"surfaceGravity": 100,
"surfaceSize": 5000,
"hasMapMarker": true,
"surfaceSize": 1000,
"gravityFallOff": "inverseSquared",
"centerOfSolarSystem": true

"centerOfSolarSystem": true,
"groundSize": 500
},

"Orbit": {
"isStatic": true

},

"Atmosphere": {
"size": 5000,
"fogTint": {
Expand All @@ -26,38 +27,26 @@
"fogDensity": 0.4,
"fogSize": 5500
},
"Star": {
"size": 5000,
"lightRadius": 500000,
"tint": {
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"lightTint": {
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"solarLuminosity": 1,
"goSupernova": true


"Spawn": {
"playerSpawn": {
"position": { "y": 20 },
"startWithSuit": true
}

},

"Volumes": {
"creditsVolume": [
{
"creditsType": "fast",
"position": {
"x": 0,
"y": 0,
"z": 0
"x": 1000,
"y": 1000,
"z": 1000
},
"radius": 100000,
"gameOverText": "THE_VISION_TO_BE_CONTINUED",

"deathType": "blackHole",
"rename": "Death_Trigger"
}
Expand Down
25 changes: 11 additions & 14 deletions systems/GloamingGalaxy.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/xen-42/outer-wilds-new-horizons/main/NewHorizons/Schemas/star_system_schema.json",
"Vessel": {
"coords": {
"x": [ 5, 0, 1, 2, 4 ],
"y": [ 4, 0, 2, 3, 5 ],
"z": [ 1, 4, 0, 5, 2 ]
"$schema": "https://raw.githubusercontent.com/xen-42/outer-wilds-new-horizons/main/NewHorizons/Schemas/star_system_schema.json",
"Vessel": {
"coords": {
"x": [ 5, 0, 1, 2, 4 ],
"y": [ 4, 0, 2, 3, 5 ],
"z": [ 1, 4, 0, 5, 2 ]
},
"promptFact": "HOLOGRAM_CHANGED"
},
"vesselPosition": {
"x": 0,
"y": 0,
"z": 8000
},
"promptFact": "HOLOGRAM_CHANGED"
},
"canEnterViaWarpDrive": false
"destroyStockPlanets": false,
"enableTimeLoop": false,
"canEnterViaWarpDrive": false
}

0 comments on commit 4c115e5

Please sign in to comment.