Commit graph

3645 commits

Author SHA1 Message Date
PepperCode1
605daed671 Update Flywheel
- Fix SBB model buffering passing empty instead of virtual model data,
resulting in blocks like shafts appearing invisible with Flywheel off
- Fix endAndCombine not null checking unshadedData before transferring
it
- Remove VirtualEmptyBlockGetter which already exists in Flywheel
2024-04-02 19:23:14 -07:00
Jozufozu
7613ebcb1e Embed and virtualize
- Use VisualEmbedding in ContraptionVisual
- Remove context shaders
- Directly use the model from the blockstate in VirtualRenderHelper
  - Fixes many bes trying to use empty meshes because they correctly
    identify as ENTITYBLOCK_ANIMATED
- Fix valves being unlit
- Fix bearing contraptions spinning way too fast
- Do not implement SimpleDynamicVisual in CarriageContraptionVisual,
  that's taken care of by the base ContraptionVisual now
2024-04-02 19:23:13 -07:00
Jozufozu
286d2a68ab As shrimple as that
- Update to SimpleDynamicVisuals
- Translate old context stuff to new api
- Add contraption visual, doesn't fully work yet
- Strip out more FlwContraption stuff
2024-04-02 19:23:13 -07:00
Jozufozu
633a7abc23 Exit stage right
- Update to implicit render stage API.
- Fix bounding sphere transformers.
- Bump flywheel version.
- Update flywheel mixin config jsons.
2024-04-02 19:23:13 -07:00
Jozufozu
5038d04ac4 Pretty rad
- Bump flywheel build.
- Fix all(?) places where radians methods were passed degrees
- Add DiffuseLightCalculator.
- Add overlay to belt and rotating types.
- Use joml quaternions in instance types.
2024-04-02 19:23:13 -07:00
Jozufozu
b6d1f02d6a Chugging along
- Fix compile errors with new flywheel light update system.
- Fix compile errors in instance shaders.
- Call Instance#setChanged where needed.
2024-04-02 19:23:13 -07:00
Jozufozu
1c46bc8ae1 What's in a name
- Rename all *Instance -> *Visual.
- FlapData -> FlapInstance.
- Rename VisualizationContext variables.
2024-04-02 19:23:13 -07:00
Jozufozu
5bac9e5224 Things on the screen again
- Use our own model cache that's aware of virtual data.
- Fix memory write issues with instance types.
- Indirect works too, though the cull shaders are still incorrect.
2024-04-02 19:23:13 -07:00
Jozufozu
e892003eb5 Throwing shade
- Actually register instance types.
- Update instance shaders to compile with new flywheel.
- Add cull shaders.
- Update flywheel dep in mods.toml.
- Bump flywheel build.
2024-04-02 19:23:13 -07:00
PepperCode1
45c9e2c87a Potentially fix SBB and virtual block buffering 2024-04-02 19:23:13 -07:00
Jozufozu
d925d697cc Sweeping things under the rug
- Comment out some stuff to get it to compile.
- Pull in ModelUtil virtual stuffs from old flywheel.
- Update build.gradle to always download sources/javadoc in IDEA.
2024-04-02 19:23:13 -07:00
Jozufozu
8d54e9268a Top 50 errors of all time
- Down to 50 compile errors.
- Port over to new instance type builders.
- Move shaders and delete program specs.
- Switch #use to #include.
- Move content.kinetics.base.flwdata.* up a level.
- Move BeltInstance to the belt package.
- Make all instance fields public.
2024-04-02 19:23:13 -07:00
Jozufozu
458f63820b Starting to visualize it
- All visuals have their compile errors sorted out*
- I realize that flywheel flipped the semantics of rotate so that it now
  takes radians instead of degrees. I fixed everything I noticed but
  this will need follow up.
- Implement collectCrumblingInstances for every visual.

* Flywheel needs to re-implement stealInstance
2024-04-02 19:23:12 -07:00
Jozufozu
5451a9afc7 Less than 400 errors
- Lots of work on updating instances
- Pulled in some old utility classes from flywheel that were removed
2024-04-02 19:23:12 -07:00
Jozufozu
6d9587b463 Doesn't build script
- Update buildscript/gradlew and bump flywheel version
2024-04-02 19:23:12 -07:00
KdotJPG
c92bbdda2d
Increase layered ore shape variation (#6158) 2024-03-21 12:01:31 +01:00
simibubi
a41053b896 Merge remote-tracking branch 'origin/mc1.19/dev' into mc1.20.1/dev 2023-11-02 15:35:37 +01:00
simibubi
26fc820c69 Merge branch 'mc1.18/dev' into mc1.19/dev 2023-11-02 15:35:09 +01:00
simibubi
2201d87da7 Asset patches
- Fixed uvs on stress- and speedometers' block models
- Toolbox hotbar slot overlay now uses the revised brass palette from 0.5.1
2023-11-02 15:30:32 +01:00
simibubi
1e666e400d Merge remote-tracking branch 'origin/mc1.19/dev' into mc1.20.1/dev 2023-11-02 12:20:29 +01:00
simibubi
aef8947e35 Merge branch 'mc1.18/dev' into mc1.19/dev 2023-11-02 11:55:11 +01:00
simibubi
fff2512a67 Bump version 2023-11-02 11:48:09 +01:00
simibubi
8e323d03c9 1.19 datagen 2023-11-02 11:41:34 +01:00
simibubi
6e19661bf9 Port Changes 2023-11-02 11:32:38 +01:00
simibubi
04406690ca Merge branch 'mc1.18/dev' into mc1.19/dev 2023-11-02 11:32:20 +01:00
simibubi
f8ef93fbd9
Merge pull request #5523 from Creators-of-Create/l10n_crowdin_translations
New Crowdin translations
2023-11-02 11:16:28 +01:00
Crowdin Bot
6e5aced6b8 New Crowdin translations by Github Action 2023-11-02 10:00:49 +00:00
simibubi
962f03c1c5 Sisyphus's broken printer
- Fixed Schematics failing to load when containing items with sensitive nbt #5680
- Fixed Turntable handler causing a crash during world shutdown #5696
- Cached outputs of BeltHelper.isItemUpright()
2023-11-02 10:57:00 +01:00
simibubi
eea8bb2607 Filter code caused global warming
- Contents of a filter are no longer deserialised from item nbt each time a stack is tested
- FilteringBehaviour.getFilter() no longer creates a copy of the item
- MovementContext for contraption actors now have a shortcut to a cached filter from their corresponding BlockEntity
2023-11-02 00:08:34 +01:00
simibubi
d6708cef3b Collide on sight
- Trains check their distance before running full collision tests
- Trains can no longer collide when on separate track networks
- Micro-optimised some streams and map value iterators
2023-11-01 20:22:29 +01:00
simibubi
77ba1e8bf6
Merge pull request #5681 from TimovVeen/mc1.18/pathfinding
Train navigation optimization
2023-11-01 14:17:51 +01:00
Timo van Veen
3c3ce93fa1 final cleanup 2023-11-01 13:56:53 +01:00
simibubi
bc340c7d3e Implement #5666 on main branch 2023-11-01 12:56:14 +01:00
Timo van Veen
30a90a6203 Fix crash on invalid schedule regex (e.g. "station \\E1\\Q") 2023-10-30 19:50:58 +01:00
Timo van Veen
aff05bf84a cleanup 2023-10-30 18:38:29 +01:00
Timo van Veen
2565fa7605 Fix #4756 2023-10-30 14:14:11 +01:00
Timo van Veen
d6781acbf6 Multiple stations 1 call 2023-10-30 04:01:07 +01:00
Timo van Veen
321056bdd0 Fix penalties not applying on station edge 2023-10-29 12:23:05 +01:00
PepperCode1
2cf7d171df Vertical threshold switch redstone fix
- Fix vertical threshold switches outputting redstone signal from wrong
sides
2023-10-28 19:44:24 -07:00
PepperCode1
8bf42ffa6f Fixes and tweaks
- Add #create:blaze_burner_capturable entity type tag
- Make it so blocks that do not implement IWrenchable and that are
tagged can only be picked up with a wrench while sneaking
- Fix AnalogLeverInstance not rendering indicator on 1.18 and 1.19 and
rendering indicator at wrong place in 1.20
- Change AirCurrent entity distance calculation to fix issues with some
items not being processed
- Simplify AirCurrent max VoxelShape depth calculation by using min and
max instead of raycasting
- Fix pipe cobblestone generation
- Fix vertical smart observers outputting redstone signal from wrong
sides
- Fix smart observer using wrong bottom texture
2023-10-28 13:58:40 -07:00
Timo van Veen
740ec9092f Use octile distance instead of euclidean 2023-10-28 17:10:25 +02:00
Timo van Veen
1b2f3b1a8d Remove unused lines 2023-10-27 00:42:42 +02:00
Timo van Veen
0014ea6ac6 Cache position in search method 2023-10-27 00:17:12 +02:00
Timo van Veen
aa03346fa5 Remove comments 2023-10-27 00:11:38 +02:00
Timo van Veen
2597812645 Keep old FrontierEntry constructor 2023-10-26 23:53:49 +02:00
Timo van Veen
b0d1a9e3bb cleanup 2023-10-26 01:30:58 +02:00
Timo van Veen
bb11cd7b59 Fix distance estimator 2023-10-26 01:21:48 +02:00
Timo van Veen
29358d2dee A* priority heuristic 2023-10-25 21:07:42 +02:00
Timo van Veen
57fbe3cb48 Optimize navigation refresh 2023-10-24 22:04:29 +02:00
Timo van Veen
67ebc8a2c6 Rewrite to remove unneeded pathfind call 2023-10-24 19:12:15 +02:00