Bevy 0.17 Migration#136
Merged
Merged
Conversation
Reverts panic-on-invalid-input back to automatic clamping for production safety. Prevents crashes from floating-point drift, config errors, and FixedScore edge cases. I did try a little and faced an issue whereas I did not with this one my bad here
- Guard wave helpers against zero vectors and apply displacement from rest pose - Fix wave solver chunking, force accumulation, and basic ai if-let - Harden ai need decay, weighted product, and save reflection
- Update all crates from bevy 0.16 to 0.17 - Migrate Event to Message for internal communication - Add #[reflect(Component)] annotations - Update reflection serialization API - Fix component iterator dereferencing Closes erematorg#135
Bevy 0.17 fresh builds take longer than 25 minutes. Prevents timeout during cache warming on first run after dependency changes.
Replace animal-centric need types with universal biological drives that apply to all life forms (animals, plants, fungi, microbes): - Hunger → Energy (food/sunlight/decomposition) - Add Resources (water, minerals, nutrients) - Expand Safety (predators, herbivores, environmental hazards) - Add Homeostasis (temperature, pH, osmotic regulation) - Add Reproduction (universal biological drive) This enables the AI system to work seamlessly with any organism type through component-based satisfaction mechanisms rather than hardcoded organism-specific logic.
- Delete utility.rs with unused caching system - Consolidate Score type in scorers.rs - Fix DRY violation in core/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR completes the Bevy 0.17 migration and applies several cleanup improvements across the codebase.
Changes
Bevy 0.17 Migration
Eventusage with the newMessageAPIs (derive, writer/reader, plugin wiring)ReflectSerializerCode Quality Improvements
core::scorers::ScoreNeedTypeso the same enum covers plants, fungi, microbes, and animals or whatever elseiter_combinations()for symmetric field interactions (skip redundant permutations)ElectromagneticWave::newto surface invalid inputsTesting
cargo check --workspaceIssues