Entity.Get<>() Problem #235
-
When the number of entities created in the World reaches about 500, the following error occurs. Why is this happening? Is there a limit on the total number of entities? I am developing a game server, and I've created one World in a server and generated 101 map entities. In each of the 101 maps, I created a World, and in each World, I generated about 500 entities. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Which Arch Version? |
Beta Was this translation helpful? Give feedback.
-
Where can I find the latest alpha version? Based on further testing, the Null Exception occurs regardless of the number of entities. In what cases can an entity's World be null? Though I’m not entirely sure, it seems that the entity whose Id is included in the RecycledEntity of recycledIds is causing the problem. I apologize for not being able to reproduce the bug in a simple way. |
Beta Was this translation helpful? Give feedback.
-
It's another error. The error occurs one level deeper here. |
Beta Was this translation helpful? Give feedback.
-
The bug occurred because I was careless with checking specific conditions, leading to the World.Destroy(Entity entity) function being executed more than once. I’m sorry for making you worry, especially when you must be busy |
Beta Was this translation helpful? Give feedback.
The bug occurred because I was careless with checking specific conditions, leading to the World.Destroy(Entity entity) function being executed more than once. I’m sorry for making you worry, especially when you must be busy