Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Chad
@ChadJenkins
Ah okay. I have the asset store version and it's just .dll files for the most part.
Wu Zheng
@sgamerw

Hi, do entities collected in reactive system are in ordered as they created?
I have a reactive system to handle socket messages, triggers like this:

protected override ICollector<InputEntity> GetTrigger(IContext<InputEntity> context)
    {
        return context.CreateCollector(InputMatcher.SocketRecv);
    }

protected override void Execute(List<InputEntity> entities)
    {
        foreach (var entity in entities)
        {
            HandleMessage(entity.socketRecv.module, entity.socketRecv.cmd, entity.socketRecv.body);
        }
    }

and I read buffer to create socket message entity, maybe create two or three at once.

var recv = _contexts.input.CreateEntity();
            recv.AddSocketRecv(enumModule, enumCmd, data);

so does the reactive system above can handle the message entities in order properly?

Nikolaj Satchok
@nisatchok_twitter
Hi! Did anyone try to use new stateless Unity Physics with Entitas instead of dots? It seems to be a better solution for predictable simulation. And not very hard one.
I'm planing to try it out, but maybe someone already done it?
Simon Schmid
@sschmid

Hi guys! :wave:

It's been a while since I've been in the chat. I'm currently very busy with our new games company Popcore. It's going really well! We're using Entitas for all of our games ;) Great fun!
The founder of Unity David Helgason is one of our investors and we will do an event in Berlin where he will give a talk. I will also give a tech talk and others will as well.

If you're in Berlin next thursday I'd be happy to invite you to our event.

More information:
Unity Evening with David Helgason (Founder of Unity) and more
https://www.eventbrite.com/e/unity-evening-with-david-helgason-founder-of-unity-and-more-tickets-76000223715

It's a very short notice, but if anyone of you guys wants to share something and also wants to do a talk, please let me know and we can figure sth out!
Rauno Villberg
@Angryhead
Congratulations Simon, that's really cool! Here's hoping those talks will be recorded too :)
matanpjelly
@matanpjelly
Please please record the session. The community will greatly appreciate it
Andrew Bastien
@volundmush
so seriously, why is entitas not on Nuget?
Andrew Bastien
@volundmush
I'm kinda new to C# and am not sure how to add entitas to my project without Install-Package... *headscratches
Alexander Hunt
@T2RKUS
I told you how
But I don’t think entitas works on .net core
horeaper
@horeaper
It does compiles under .net standard 2.0, so it should work.
René
@StormRene
@sgamerw nope they are not ordered. But simple add a second component with an index or something and you are good to go :smile:
René
@StormRene
(you could also utilise the creationIndex that's part of every entity)
Alexander Hunt
@T2RKUS
Won’t the number wrap though?
If you reach the end and it wraps around the smaller number is actually the one after
René
@StormRene
You mean the creationIndex? Maybe. We are talking about an Int32 here.
I guess you would need a lot of sockets for that purpose :smile:
Alexander Hunt
@T2RKUS
Something to be cautious of I guess
René
@StormRene
I doubt there are enough sockets to even come in the near of limits of int32
Alexander Hunt
@T2RKUS
My god, this app on iPhone is awful. After sending messages it constants bounces me up like 100 or so messages and I have to close and open it again. Even as I type and message box gets bigger it moves me up the message history.... After upgrading my iPhone os it’s been doing this ugh
René
@StormRene
But yeah if that's a problem a self made component with int64 comes into my mind. But I guess by that amount of entities you get other problems
Alexander Hunt
@T2RKUS
I really want discord now
matanpjelly
@matanpjelly
Hi guys, has anyone tried to combine entitas with Zenject in his project, and can give tips regarding what is a good way/ architecture to work with both?
jrmacgill
@jrmacgill
@sschmid :wave: !
horeaper
@horeaper
Does components has to be a class? Can I use struct?
3egg
@3egg
Hi Guys, As a newcomer, I found if I use IExecuteSystem to change two moveStates simultaneously _contexts .player.ReplacePlayer(moveState, null); my ReactiveSystem can only receive one moveState. For example, if I Input.GetKey for both A key and D key simultaneously . Only A key or D key was Executed by ReactiveSystem . Can anyone help me?
René
@StormRene
@3egg that's correct behaviour. The reactive system reacts becaus of change data. When it is executed it evaluates the current state of the data.
Instead of replacing an existing component to show that input happened you should create one entity with an input component A an D. So you can evaluate two entities.
In your current system you are basically saying that you only count the newest input because you replacing it. In OOP you would introduce some kind of queue. And that's also true inecs if you create multiple sets of data.
René
@StormRene
@horeaper nope. As far as I know entitas supports only classes. They are
horeaper
@horeaper
thx!
nanikore
@erectsnake_twitter
Hey guys
It's a question about Unity's ECS. Now, I love Entitas for how flexible and easy it is to use. One of the things I love in Entitas is the event system.
I was wondering, anybody has an idea how to do something similar in Unity's ECS?
In Unity ECS you cannot have Listener interfaces in components
I am trying to do this
It doesn't look like there is an optimal way to do the "observers" with Unity's ECS.
nanikore
@erectsnake_twitter
This is all for educational purposes only.
3egg
@3egg
@rglobig Thanks, I create a component and system and I use input.CreateEntity().AddInputBtn(A) to let the system know I press the A key or D key. It works very well. Thanks!
Andrew Bastien
@volundmush
huzzah I figured out how to get Entitas working
Andrew Bastien
@volundmush
can now add it via 'using' :D now to figure out how to get things generating
René
@StormRene
@3egg
Keep it mind that the list of entities as argument in the execute of your system is probably not in the some order as you fired your buttons.
If you need to order them you can use the creationIndex for example that all entities have to know which entity is before the other fired
Andrew Bastien
@volundmush
so all of Entitas' instructions seem oriented towards Unity and only Unity.
but I can't be using Unity... so I'm not sure how to get this going. hrm
onMouseUp
@onMouseUp
@matanpjelly found this, might help and answer some questions regarding integration of Zenject
--> sschmid/Entitas-CSharp#689
I'm using a C-Sharp port of Swiftsuspender. Not as powerful as Zenject but easy to use.
matanpjelly
@matanpjelly
Thanks