1073 Commits

Author SHA1 Message Date
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
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
d072a74b5d Dream candle and projection totem conditions 2025-07-01 17:08:13 -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
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
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
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
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
264bcb2446 make name consistent with reels 2025-04-10 11:12:02 -04:00
Noah Pilarski
ce48a8f53e
Standing Torch Tronworld (#1076)
## Improvements

- Standing vision torch now shows up in tronworld
2025-04-10 11:08:28 -04:00
Noah Pilarski
105e03a3ef Change so that you can still use ringworld model 2025-04-10 10:55:01 -04:00
Noah Pilarski
a69fd7206e Add clean parameter 2025-04-08 22:31:45 -04:00
Noah Pilarski
9365a4845d Add tronworld model for raft 2025-04-08 22:21:08 -04:00
Noah Pilarski
e734ada4b0 allow dream lanterns to interact with these rafts 2025-04-08 21:59:55 -04:00
Noah Pilarski
2f53572d75 change to dreamworld standing torch 2025-04-08 16:38:29 -04:00
Noah Pilarski
fe3196dac9 destroy flood toggles too 2025-04-08 15:06:50 -04:00
Noah Pilarski
50ccd32b8e add docks 2025-04-08 14:18:28 -04:00
xen-42
6767ab3548 Destroy flood sensors on docks 2025-04-08 12:46:36 -04:00
xen-42
9a458ed7a1 Merge branch 'dev' into hawkbar-colliders 2025-03-15 15:06:09 -04:00
Noah Pilarski
930aa480f0 Add bramble name labels 2025-03-13 22:27:48 -04:00
xen-42
12fe7073a5 Fix having 4 quantum objects in one slot (remove unused item copy and allow scaling) 2025-03-01 15:45:59 -05:00
Joshua Thome
d215fc4cef
Fixes for Immediately Disabled Details (#1058)
## Bug fixes

- Fixed details not having collision if they were immediately
deactivated after being created (for instance, via
`activationCondition`)
- Fixed light sensors disabling themselves on activation if their detail
was immediately deactivated after being created
2025-02-26 22:11:19 -06:00
Joshua Thome
9fe04aad7d Unify volume builders and support shapes on all volume types 2025-02-22 14:12:59 -06:00
Joshua Thome
8edc801903 Fix error when single light sensor has no sector 2025-02-22 11:04:56 -06:00
Joshua Thome
5aace8408a Generic shape/collider configs 2025-02-22 11:02:10 -06:00
Joshua Thome
2c7b5a63f6 Disable nomai/translator text scroll colliders 2025-02-21 22:10:54 -06:00
Joshua Thome
5d663ef76a Make item/socket colliders triggers by default, and allow it to be overriden via config 2025-02-21 21:43:21 -06:00
Joshua Thome
dcbc834e93 Fix removeComponents deleting NH item components 2025-02-16 23:26:03 -06:00
Joshua Thome
8b49f94bd4 Fix null item audio types breaking custom items 2025-02-16 23:25:46 -06:00
xen-42
7697e5bb49
profiling nh (#1030)
semi-automated profile marker generation. disable-able with a
project-wide compiler flag
2025-02-15 23:38:55 -05:00
AnonymousStrangerOW
343e54888a fix hawkbar's eye of the universe bug
- fixes a bug at the eye of the universe where new horizons checks for a condition instead of a persistent condition
2025-02-15 21:53:06 -05:00
JohnCorby
5e1fa2aac2 Merge branch 'dev' into profiler 2025-02-15 12:39:08 -08:00
xen-42
964a4b2d60 Comment explaining #831 2025-02-15 02:11:20 -05:00