elliotb256 / ecscombat Goto Github PK
View Code? Open in Web Editor NEWA space battle simulation, based around Unity ECS framework
A space battle simulation, based around Unity ECS framework
InvalidOperationException: GetSingleton<Battle.Combat.GameTimeDelta>() requires that exactly one Battle.Combat.GameTimeDelta exist that match this query, but there are 0.
Unity.Entities.EntityQueryImpl.GetSingleton[T] () (at Library/PackageCache/[email protected]/Unity.Entities/Iterators/EntityQuery.cs:849)
Unity.Entities.EntityQuery.GetSingleton[T] () (at Library/PackageCache/[email protected]/Unity.Entities/Iterators/EntityQuery.cs:1523)
Battle.AI.RetargetBehaviourSystem.OnUpdate () (at Assets/Battle/AI/Aggression/Retarget.cs:34)
Unity.Entities.SystemBase.Update () (at Library/PackageCache/[email protected]/Unity.Entities/SystemBase.cs:412)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:472)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:477)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:417)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:472)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:417)
Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:114)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:333)
"/Assets/Scenes/standard" scene doesn't work due to missing and misplaced prefabs.
Thanks for the recent changes, it's nice to see someone taking a look! Perhaps I can get your opinions on some thoughts.
I'm thinking of splitting the repo up into separate packages; it would help enforce decoupling of the logic between different core parts of the game to promote reusability in other projects. e.g. in https://github.com/ElliotB256/ECSCombat_Spawning I've added behaviours for spawning ships through a 'Spawn' entity, which can be coupled with modifiers and refits to swap out components on the ships (so, eg you can create an entity to spawn a number of fighters and swap their small weapons hookpoints for lasers, for instance). It's used in this prototype:
https://elliotb256.itch.io/command-deck
Personally I'm not sure what the best way to handle this in unity is. For now I've set it up using git submodules, so each module is pulled in as a separate sub repo to the main project Assets folder. It could probably also be done using UPM (probably the more technically 'correct' way in unity ecosystem?), but I've had bad experiences with UPM in the past. Very open to suggestions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.