diff --git a/NewHorizons/Builder/Props/SignalBuilder.cs b/NewHorizons/Builder/Props/SignalBuilder.cs index fd73f2af..1aef7f33 100644 --- a/NewHorizons/Builder/Props/SignalBuilder.cs +++ b/NewHorizons/Builder/Props/SignalBuilder.cs @@ -146,7 +146,8 @@ namespace NewHorizons.Builder.Props audioSignal._sourceRadius = info.SourceRadius; audioSignal._onlyAudibleToScope = info.OnlyAudibleToScope; audioSignal._identificationDistance = info.IdentificationRadius; - + audioSignal._canBePickedUpByScope = true; + source.clip = clip; source.loop = true; source.minDistance = 0; diff --git a/NewHorizons/Utility/Patches.cs b/NewHorizons/Utility/Patches.cs index e4ae7ee2..ec86082a 100644 --- a/NewHorizons/Utility/Patches.cs +++ b/NewHorizons/Utility/Patches.cs @@ -72,7 +72,9 @@ namespace NewHorizons.Utility public static bool CheckShipOutersideSolarSystem(PlayerState __instance, ref bool __result) { - __result = false; + Transform sunTransform = Locator.GetSunTransform(); + OWRigidbody shipBody = Locator.GetShipBody(); + __result = sunTransform != null && shipBody != null && (sunTransform.position - shipBody.transform.position).sqrMagnitude > Main.FurthestOrbit * Main.FurthestOrbit * 4f; return false; } diff --git a/NewHorizons/schema.json b/NewHorizons/schema.json index 9513b1c2..d919a4d7 100644 --- a/NewHorizons/schema.json +++ b/NewHorizons/schema.json @@ -92,7 +92,7 @@ } } }, - "atmosphere": { + "Atmosphere": { "type": "object", "properties": { "size": { diff --git a/README.md b/README.md index 2e3565e8..d88c6ebb 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ ![Downloads](https://img.shields.io/github/downloads/xen-42/outer-wilds-new-horizons/total) ![Downloads of newest version](https://img.shields.io/github/downloads/xen-42/outer-wilds-new-horizons/latest/total) -A planet creator for Outer Wilds. +A custom world creation tool for Outer Wilds. -You can view the addons creators have made [here](https://outerwildsmods.com/mods/newhorizons/addons/)! +You can view the addons creators have made (or create one yourself) [here](https://outerwildsmods.com/custom-worlds)! Planets are created using a JSON file format structure, and placed in the `planets` folder (or in any sub-directory of it). @@ -59,6 +59,8 @@ Planets are created using a JSON file format structure, and placed in the `plane - Geysers - Meteors - Ghost matter + - Pocket dimensions + - Timed position/velocity changes - Implement custom Nomai scrolls - Implement custom dialogue - Implement constant gravity volumes @@ -327,8 +329,9 @@ A detail info object can have the following parameters: You have three options: Load from the scene hierarchy by setting "path", load from an asset bundle by setting "path" and "assetBundle", or load an obj file by setting "objFilePath" and "mtlFilePath". Asset bundles give much better results than .obj's. #### Asset Bundles -1. Start up a Unity 2017 project (I use Unity 2017.4.40f1 (64-bit), so if you use something else I can't guarantee it will work). +1. Start up a Unity 2017 project (I use Unity 2017.4.40f1 (64-bit), so if you use something else I can't guarantee it will work). The DLC updated Outer Wilds to 2019.4.27 so that probably works but I personally haven't tried it. 2. In the root directory create a folder called "Editor". In it create a file called "CreateAssetBundle.cs" with the following code in it: + ``` using UnityEditor; using UnityEngine; @@ -348,6 +351,7 @@ public class CreateAssetBundles } } ``` + 3. Create your object in the Unity scene and save it as a prefab. 4. Add all files used (models, prefabs, textures, materials, etc) to an asset bundle by selecting them and using the drop down in the bottom right. Here I am adding a rover model to my "rss" asset bundle for the Real Solar System add-on. ![setting asset bundle](https://user-images.githubusercontent.com/22628069/147954146-e1d610c0-0336-428f-8b32-bfc01090061c.png)