795 Commits

Author SHA1 Message Date
Joshua Thome
e021523151 Using GeneralPropBuilder for spawn points, vessel and warp exit points, and remotr dialogue triggers 2023-03-18 09:17:36 -05:00
Joshua Thome
88f60f883c Better name for base prop class 2023-03-18 08:15:56 -05:00
Joshua Thome
c8bd63e5d5 Change volumes to use GeneralPropBuilder and cleaned up some others 2023-03-18 07:48:43 -05:00
Joshua Thome
e732a01e02 Make bramble nodes use GeneralPropBuilder 2023-03-18 03:58:26 -05:00
Joshua Thome
3ca6d9a3db Migrate more modules to the GeneralPropBuilder 2023-03-17 14:13:23 -05:00
Joshua Thome
cc9e86d712 Merge branch 'hawkbar-prop-cleanup' of https://github.com/Outer-Wilds-New-Horizons/new-horizons into hawkbar-prop-cleanup 2023-03-16 20:14:31 -05:00
Joshua Thome
ee99c5e937 Include rotation in body alignment calculations 2023-03-16 20:14:22 -05:00
Will Corby
00729ef4ae
Update DetailBuilder.cs 2023-03-16 16:04:52 -07:00
Joshua Thome
37e6c42b85 Consolidating generic prop building into a single builder 2023-03-16 17:15:06 -05:00
Joshua Thome
f98b33251d Consolidate prop info definitions and add support for missing properties to geyser and quantum sockets 2023-03-16 15:08:56 -05:00
Joshua Thome
67495d8972 Gracefully log errors for missing script components when building details 2023-03-16 14:04:41 -05:00
Nick
ffb8dc7ee5 Use else if on FixSectoredComponent 2023-03-04 21:47:37 -05:00
Nick
da470691ed Don't use delay, implement fixer components 2023-03-04 21:44:53 -05:00
Nick
20532b83ac Deprecate NomaiTextBuilder class 2023-03-04 18:04:54 -05:00
Nick
8481dd8021 Bug 533 - don't show lantern electricity effect 2023-03-04 17:50:49 -05:00
Nick
0448ce8e93 Fixes scroll text showing in hand 2023-03-03 20:42:21 -05:00
Nick
99868b94a8 Fix locator by waiting 2023-03-03 19:49:15 -05:00
Nick
575b54a168 Merge branch 'dev' into vr-camera-fix 2023-03-03 19:26:25 -05:00
Nick
7db864cf6f Fix getting camera to work with VR 2023-03-03 18:55:36 -05:00
Will Corby
c33150823d
Fix fog fading occurring for bramble seeds (#526)
Instead of always patching false, use the ratio between exit radius and
warp radius to determine if it's a seed.
2023-02-23 14:49:30 -08:00
JohnCorby
451f70fe75 ignore obsolete guy and migrate debug menu to new nomai text thing 2023-02-22 17:01:52 -08:00
TerrificTrifid
12e6fc56ee Fix fog fading occurring for bramble seeds 2023-02-22 13:08:09 -06:00
FreezeDriedMangos
b325f87f5f
Auto spiral placement 2 electric boogaloo (#519)
<!-- A new module or something else important -->
## Major features
- NOTE: "nomaiText" has been deprecated in order to preserve the legacy
nomai text generation. Please use "translatorText" in the future, it is
exactly the same except it lets you use the new automatic spiral
placement, caching, and so on
- Caching! 
   - Lots to say about this, both for nh devs and addon devs
   - Addon Devs:
- This feature introduces new .nhcache files, which New Horizons will
generate automatically. One nhcache file will be generated per planet
- Make sure to include these files when releasing your addon. This will
allow your players to have fast loading times on their first loop. If
you forget to include them, no worries, their first loop will be slow to
load but every following loop will be fast.
- ~~WARNING: before releasing, delete all your cache files and
regenerate them by opening the game~~
- ~~the reason for this is that as you develop, your caches will get
filled up with old data. Deleting them and letting them regenerate keeps
your release light~~
- Cache files automatically clear unused entries, so there's no need for
you to manage them, they should stay minimal on their own
   - NH Devs:
- Checkout the Cache property on NewHorizonBody. Use it how you want,
whether that's storing procedurally generated meshes or the private key
you brute forced using a botnet you embedded in new horizons.
- Actually scratch that second usecase. Caching doesn't support illegal
activity
- For an example of an actual use of caching, check out
NomaiTextBuilder.MakeArc()
      - Also read the section for Addon Devs if you haven't
   - How does auto spirals use the cache?
- When building a wall text, the cache is checked to see if it has been
built before, and if so, is loaded from there
- Whenever a NomaiTextArcInfo in the json is changed, the corresponding
wall text generates a new entry in the cache
- Also, whenever an xml file used by a wall text is changed, that wall
text will generate a new entry in the cache
- These old entries do accumulate during development of an addon, so
please make sure to check the note above for addon devs for how to deal
with that
- New Horizon's Nomai text arcs are now procedurally generated 
- Automatic Nomai text arc placement! 
- Nomai wall text is now automatically arranged to fit on a whiteboard,
no need to place text manually anymore!
   - Manual placement is still supported if you want it
- If you want to specify certain arcs to be written by children (or
strangers) instead of adults without requiring manual placement, use the
"keepAutoPlacement" property of ArcInfo
- I hope this feature makes wall text less intimidating to include in
addons, I know it'll save me literal hours
- Despite being listed last here, this is the actual main feature of
this PR


<!-- A new parameter added to a module, or API feature -->
## Minor features
-

<!-- Some improvement that requires no action on the part of add-on
creators i.e., improved star graphics -->
## Improvements
- Everything technically goes here too, except maybe caching. Auto
spiral placement is automatic unless overriden by specifying arcInfo
(without using the "keepAutoPlacement" property)

<!-- Be sure to reference the existing issue if it exists -->
## Bug fixes
-
2023-02-21 18:11:37 -05:00
FreezeDriedMangoes
d080be35f3 removed uneeded comment 2023-02-21 17:24:44 -05:00
FreezeDriedMangoes
8c1032e67a reintroduced legacy NomaiTextBuilder and put new code under the name (and module) of TranslatorTextBuilder 2023-02-04 14:47:58 -05:00
JohnCorby
cb2b8815fd move to separate component 2023-02-03 18:51:21 -08:00
JohnCorby
a6e190ffd8 remove sector error. its ok 2023-02-03 18:40:20 -08:00
JohnCorby
9885e30295 i dont care enough to fix it 2023-02-03 18:17:32 -08:00
JohnCorby
7ac3322740 TEMP: remove impact audio cuz right now it sounds bad 2023-02-03 13:46:38 -08:00
JohnCorby
cee425db24 oh well 2023-02-03 13:41:21 -08:00
JohnCorby
e45a4d1c3c finalize 2023-02-03 13:40:21 -08:00
JohnCorby
d11c998dd6 more tweaking 2023-02-03 13:27:22 -08:00
JohnCorby
7ca84069df Merge branch 'dev' into zero-g-props 2023-02-03 12:58:27 -08:00
JohnCorby
e0dd75d310 restructure how physics object is created 2023-02-03 12:58:22 -08:00
FreezeDriedMangoes
97c602b88c fixed null reference error and removed debug sphere 2023-02-03 11:39:35 -05:00
FreezeDriedMangoes
5727493fde updated stranger arc color 2023-02-02 23:04:04 -05:00
FreezeDriedMangoes
9ba8472988 found stranger color and made rectangular mesh generating function 2023-02-02 22:51:55 -05:00
FreezeDriedMangoes
022dd0ac8a framework for removing stranger arc jank 2023-02-01 22:46:00 -05:00
FreezeDriedMangoes
104ff288d6 fixed stranger arcs and removed debug logs 2023-02-01 22:34:44 -05:00
FreezeDriedMangoes
bf2043a80b added mirror status to spiral cache and fixed bugs with loading cache 2023-02-01 13:02:21 -05:00
FreezeDriedMangoes
c03938a1ab fixed the Cache class not being able to handle loading arbitrary data 2023-02-01 12:40:13 -05:00
FreezeDriedMangoes
7061a23e1f fixed cache reading 2023-02-01 11:30:55 -05:00
FreezeDriedMangoes
a1b7a4ab86 added stuff to read nomai wall text data from the cache 2023-01-31 22:47:07 -05:00
FreezeDriedMangoes
f99de094c1 spiral meshse and positions are now being cached 2023-01-31 21:13:31 -05:00
FreezeDriedMangoes
a99054f0d4 passing a reference to the cache to the text builder 2023-01-31 15:00:31 -05:00
Noah Pilarski
2e502e0da8
Merge branch 'dev' into flashlight 2023-01-30 23:15:41 -05:00
FreezeDriedMangoes
151d935b59 Merge branch 'caching' into auto-spiral-placement-2-electric-boogaloo 2023-01-30 22:54:40 -05:00
FreezeDriedMangoes
3372073a8d updated some comments 2023-01-30 19:00:57 -05:00
FreezeDriedMangoes
cca1afe034 finally switched startS and endS so they're consistent 2023-01-29 10:45:17 -05:00
JohnCorby
02f4d085bc set field here too (same bug as detail builder bug) 2023-01-28 20:56:40 -08:00