mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Merge branch 'master' into warp-drive
This commit is contained in:
commit
056e5a1b7b
@ -146,7 +146,8 @@ namespace NewHorizons.Builder.Props
|
|||||||
audioSignal._sourceRadius = info.SourceRadius;
|
audioSignal._sourceRadius = info.SourceRadius;
|
||||||
audioSignal._onlyAudibleToScope = info.OnlyAudibleToScope;
|
audioSignal._onlyAudibleToScope = info.OnlyAudibleToScope;
|
||||||
audioSignal._identificationDistance = info.IdentificationRadius;
|
audioSignal._identificationDistance = info.IdentificationRadius;
|
||||||
|
audioSignal._canBePickedUpByScope = true;
|
||||||
|
|
||||||
source.clip = clip;
|
source.clip = clip;
|
||||||
source.loop = true;
|
source.loop = true;
|
||||||
source.minDistance = 0;
|
source.minDistance = 0;
|
||||||
|
|||||||
@ -72,7 +72,9 @@ namespace NewHorizons.Utility
|
|||||||
|
|
||||||
public static bool CheckShipOutersideSolarSystem(PlayerState __instance, ref bool __result)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -92,7 +92,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"atmosphere": {
|
"Atmosphere": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"size": {
|
"size": {
|
||||||
|
|||||||
10
README.md
10
README.md
@ -3,9 +3,9 @@
|
|||||||

|

|
||||||

|

|
||||||
|
|
||||||
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).
|
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
|
- Geysers
|
||||||
- Meteors
|
- Meteors
|
||||||
- Ghost matter
|
- Ghost matter
|
||||||
|
- Pocket dimensions
|
||||||
|
- Timed position/velocity changes
|
||||||
- Implement custom Nomai scrolls
|
- Implement custom Nomai scrolls
|
||||||
- Implement custom dialogue
|
- Implement custom dialogue
|
||||||
- Implement constant gravity volumes
|
- 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.
|
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
|
#### 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:
|
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 UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@ -348,6 +351,7 @@ public class CreateAssetBundles
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Create your object in the Unity scene and save it as a prefab.
|
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.
|
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.
|
||||||

|

|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user