4614 Commits

Author SHA1 Message Date
xen-42
0b419b66c4 Revert "Add a security check to ScatterBuilder (#1109)"
This reverts commit ced49c6606e88fb7a40b8cecb8fb7c753cd24214, reversing
changes made to 4c3d92a4a3f90c981420eacac1d048a0f44da303.
2025-08-04 21:50:11 -04:00
xen-42
94ff93d597 Reapply "Add a security check to ScatterBuilder (#1109)"
This reverts commit 696bce2f3a719f9f23a7b15357672378d5793ac9.
2025-08-04 21:47:18 -04:00
xen-42
696bce2f3a Revert "Add a security check to ScatterBuilder (#1109)"
This reverts commit ced49c6606e88fb7a40b8cecb8fb7c753cd24214, reversing
changes made to 4c3d92a4a3f90c981420eacac1d048a0f44da303.
2025-08-04 21:46:33 -04:00
xen-42
8af363f8f8 Update manifest.json 2025-08-04 21:44:43 -04:00
xen-42
831a94cdbc Fixed a floating point rounding error 2025-08-04 21:44:18 -04:00
xen-42
57d945d6ee Merge branch 'dev' into too-many-signals 2025-08-04 21:12:11 -04:00
xen-42
8089de358a Just expect 32 signals max instead of constantly refreshing the array 2025-08-04 21:12:00 -04:00
Noah Pilarski
ced49c6606
Add a security check to ScatterBuilder (#1109)
## Security check
What currently happens is that if `preventOverlap` is not true then
there is no array of point emptied progressively and points are rolled
in a loop of size count for each prop. The problem is that the loop can
be infinite due to `i--; // Try this point again`. A reroll happens when
`height < propInfo.minHeight` or `height > propInfo.maxHeight`, height
being rolled between `heightMap.minHeight` and `heightMap.maxHeight`
(which are not the constraints above).
- This PR checks before the loop if there is less than 0.1% chance for
the upcoming heightMap rolls to be considered correct, and if not it
always skips this check, ignoring `propInfo.minHeight` and `.maxHeight`
to prevent a very long (possibly infinite) loop.
2025-08-04 19:03:44 -04:00
Noah Pilarski
201a310e2b extend a little 2025-08-04 19:02:27 -04:00
Noah Pilarski
38ae757f58 add log 2025-08-04 19:00:57 -04:00
Peter-Mikhaël Richard
f7c9685457
Update ScatterBuilder.cs 2025-07-31 06:21:48 +02:00
Noah Pilarski
31a6093a1b
unloading streaming stuff in custom systems (#1103)
## Improvements

- do not load unnecessary bundles in custom systems. saves VRAM. does
not affect RAM

details stay visible
does not seem to cause softlocks.
works when going from custom to regular (you dont fall thru TH)
seems to cause no extra errors in logs
2025-07-20 20:21:28 -04:00
JohnCorby
361fc2aa57 Reapply "unload immediate"
This reverts commit b0f445e415f9e0b19131ee99c0d67f16630235d4.
2025-07-19 01:14:38 -07:00
JohnCorby
b0f445e415 Revert "unload immediate"
This reverts commit d38d9fa1c86323d48376f79ea55efd71e1a50fab.
2025-07-19 01:11:15 -07:00
JohnCorby
d38d9fa1c8 unload immediate 2025-07-19 01:07:04 -07:00
JohnCorby
20126dfe91 unload streaming in custom systems 2025-07-19 00:59:47 -07:00
Noah Pilarski
ea85e3bab0 Fix items not having sound when you make socket first 2025-07-12 20:00:07 -04:00
Noah Pilarski
fdf78802e9
More Condition Triggers (#1096)
## Major features

- Added `conditionTriggerVolumes` to set a dialogue condition when the
player (or scout or ship) enters an area.
- Added `interactionVolumes` for interactable objects that set a
dialogue condition, play a sound, and/or trigger an animation.

## Minor features

- Added `condition` fields to `dreamCandles` and `projectionTotems` to
set dialogue conditions when they are lit or extinguished.
2025-07-08 16:14:40 -04:00
xen-42
3403c5da34 Make dialogue usable in ship 2025-07-06 23:59:09 -04:00
Joshua Thome
1d4a2b328b Merge branch 'hawkbar-more-condition-triggers' of https://github.com/Outer-Wilds-New-Horizons/new-horizons into hawkbar-more-condition-triggers 2025-07-04 14:27:24 -05:00
Joshua Thome
e4f89be4e9 Remove accidental import 2025-07-04 14:27:19 -05:00
Ben C
2e06de70c2 Updated Schemas 2025-07-04 19:22:54 +00:00
Joshua Thome
e626dc6974 Merge branch 'hawkbar-more-condition-triggers' of https://github.com/Outer-Wilds-New-Horizons/new-horizons into hawkbar-more-condition-triggers 2025-07-04 14:21:50 -05:00
Joshua Thome
1330df64b4 Interaction volumes 2025-07-04 14:21:14 -05:00
Ben C
b71aa9f845 Updated Schemas 2025-07-01 22:10:15 +00:00
Joshua Thome
7223a4f523 Merge branch 'hawkbar-more-condition-triggers' of https://github.com/Outer-Wilds-New-Horizons/new-horizons into hawkbar-more-condition-triggers 2025-07-01 17:08:20 -05:00
Joshua Thome
d072a74b5d Dream candle and projection totem conditions 2025-07-01 17:08:13 -05:00
Ben C
330564538a Updated Schemas 2025-07-01 17:36:52 +00:00
Joshua Thome
b84d94a404 Condition trigger volume 2025-07-01 12:28:12 -05:00
Peter-Mikhaël Richard
3fbe752395
Added security to ScatterBuilder.cs
Prevent prop positioning loop going infinite when there are too much constraint on height
2025-06-30 18:47:18 +02:00
xen-42
41f3e5df3b Add in missing system merging 2025-06-08 00:28:49 -04:00
xen-42
0a058ac135 Add clear system api method for Nomai Sky 2025-05-24 20:51:50 -04:00
xen-42
20158fd94a Update Main.cs 2025-05-24 20:49:50 -04:00
xen-42
3c09f84e0b Update manifest.json 2025-05-12 17:36:08 -04:00
xen-42
59261eae5a
Add popup recommending chinese font fix if its not installed and the … (#1092)
## Improvements

- NH will now recommend users installed the Chinese Font Fix mod if they
do not have it and the language is set to Simplified Chinese.
2025-05-12 17:33:28 -04:00
xen-42
ce2b247ebf
Repair Volumes (#1085)
## Minor features

- Added `repairVolumes` which act like the repairable nodes on the
"satellite" in the Zero-G cave. Resolves #1084

[Examples
PR](https://github.com/Outer-Wilds-New-Horizons/nh-examples/pull/59)

Also in this PR I've fixed two unrelated minor issues that were causing
warnings to be flagged on every build.
2025-05-12 17:33:08 -04:00
xen-42
ae5f1b7a68 Add popup recommending chinese font fix if its not installed and the language is set to chinese 2025-04-27 11:57:36 -04:00
xen-42
5f00a3e4cf Merge branch 'dev' into hawkbar-repairables 2025-04-25 12:09:06 -04:00
xen-42
a5c3a822c1 Update manifest.json 2025-04-25 11:56:57 -04:00
xen-42
2ffca2b710 Update VanishVolumeInfo.cs 2025-04-25 11:56:34 -04:00
xen-42
38d1605fc0 Forgot these can use any collider shape, just needs to be a collider 2025-04-25 11:55:30 -04:00
xen-42
b20cda59e9 Make VanishVolumes never use shapes 2025-04-25 11:48:48 -04:00
xen-42
6fe96a0ac9 Forgot to use shape here 2025-04-19 22:33:05 -04:00
xen-42
8da5b26838 Update manifest.json 2025-04-19 22:12:16 -04:00
Ben C
a77fff0c78 Updated Schemas 2025-04-20 00:30:43 +00:00
xen-42
555418394e Rewrite description, change default radius to 1m, if two conflicting radii are given use whatever is non-default or the ShapeInfo one 2025-04-19 20:29:15 -04:00
xen-42
465a7ac2fb Merge branch 'fix-held-item-volumes' of https://github.com/Outer-Wilds-New-Horizons/new-horizons into fix-held-item-volumes 2025-04-19 19:20:36 -04:00
xen-42
717965fc5e Add comment on scrolls disabling trigger colliders 2025-04-19 19:20:29 -04:00
Ben C
29f4fa0df9 Updated Schemas 2025-04-19 23:19:43 +00:00
xen-42
6ee8f16cc4 Change volumes back to shapes by default not colliders (broke mod puzzles with volumes on held items) 2025-04-19 19:17:53 -04:00