2059 Commits

Author SHA1 Message Date
xen-42
03ef2f4e81 Revert "Sand Effect Ruleset (#1110)"
This reverts commit 2c36015a681b9b3058f96c4bedfa3281a04194ba, reversing
changes made to ff699e313d9b6d4312ca215ab699051c8c6ff38a.
2025-09-24 12:51:09 -04:00
xen-42
2c36015a68
Sand Effect Ruleset (#1110)
## Bug fixes

- Added an effect ruleset to sand. Fixes #1099

<img width="1920" height="1080" alt="image"
src="https://github.com/user-attachments/assets/84570d55-08cc-48fe-97d7-e791461b378a"
/>
2025-09-13 19:20:21 -04:00
Noah Pilarski
4e3e438cde better variable name 2025-08-27 02:17:43 -04:00
Noah Pilarski
1c7faa93fc comment 2025-08-27 02:16:03 -04:00
Noah Pilarski
1511cc5cb0 Fix interaction volumes breaking when no shape 2025-08-04 23:05:46 -04:00
Noah Pilarski
54165a8d5e Merge branch 'dev' into sandEffectRuleset 2025-08-04 22:23:54 -04:00
Noah Pilarski
be3f77d02b Revert "fix error"
This reverts commit 2e07c93fc45c2511084b66ff9ffd810e266ad86d.
2025-08-04 22:23:07 -04:00
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
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
2e07c93fc4 fix error 2025-08-04 20:24:06 -04:00
Noah Pilarski
915b5bc55d Fix effect ruleset 2025-08-04 20:24:05 -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
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
e4f89be4e9 Remove accidental import 2025-07-04 14:27:19 -05:00
Joshua Thome
1330df64b4 Interaction volumes 2025-07-04 14:21:14 -05:00
Joshua Thome
d072a74b5d Dream candle and projection totem conditions 2025-07-01 17:08:13 -05: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
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
5f00a3e4cf Merge branch 'dev' into hawkbar-repairables 2025-04-25 12:09:06 -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
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
717965fc5e Add comment on scrolls disabling trigger colliders 2025-04-19 19:20:29 -04: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
Joshua Thome
4212027aca Repair volume builder and wire-up 2025-04-19 14:29:29 -05:00
Joshua Thome
b97ba018cb Fix general NH warnings 2025-04-19 14:28:41 -05:00
Noah Pilarski
54d27bedeb match with others 2025-04-19 00:21:07 -04:00
Noah Pilarski
550f992398 Merge branch 'dev' into hawkbar-colliders 2025-04-19 00:20:33 -04:00
Noah Pilarski
1f5a873e11
Docked/Clean Rafts and Speed Limiter Volumes (#1083)
## Minor features

- Added `raftDocks` to `Props` module. An easier way to spawn in docks
for rafts.
- Added `dockPath` to `RaftInfo`. This is a path to the dock the raft
will start attached to.
- Added `pristine` boolean to `RaftInfo`. Makes the raft use the
dreamworld model.
- Added `speedLimiterVolumes` to `Volumes` module. This is the same
thing the Stranger uses to slow you down.

## Bug fixes

- NH-made rafts no longer skip a node when riding on the Dam's raft
carrier.
2025-04-19 00:12:19 -04:00
xen-42
f4f78f5aaa Get components in children also checks self for components 2025-04-19 00:06:00 -04:00
xen-42
7953517e2d Merge branch 'dockedRafts' of https://github.com/Outer-Wilds-New-Horizons/new-horizons into dockedRafts 2025-04-19 00:04:48 -04:00
xen-42
4a6d3cfcf6 Merge branch 'dev' into dockedRafts 2025-04-19 00:04:38 -04:00
Noah Pilarski
6d480546c8 Merge branch 'dev' into dockedRafts 2025-04-18 23:56:48 -04:00
Noah Pilarski
5cde777159 log xml file 2025-04-18 05:53:41 -04:00
Joshua Thome
c9b1f91c7b Disable collision checks for complex shapes 2025-04-16 21:21:41 -05:00
Joshua Thome
4e9ec84427 Merge branch 'dev' into hawkbar-colliders 2025-04-15 22:58:15 -05:00
Joshua Thome
f1246810c7 Minor typo in error message 2025-04-15 22:57:12 -05:00
Noah Pilarski
5374448514 Speed Limiter 2025-04-10 14:30:56 -04:00
Noah Pilarski
264bcb2446 make name consistent with reels 2025-04-10 11:12:02 -04:00