[205][ModAPI] GetEntityById() does not work properly in threads

Digi shared this bug 54 days ago
Won't Fix

I dunno if this was always the case, but it is now... first off I'm wondering if this is even intended, this behavior is very odd to me.

The primary issue is that we can't know if an event is invoked in a thread, some events mostly trigger main thread but only sometimes in parallel ones, it's already madness, please don't have retrieving entities require main thread xD


Steps to reproduce:

1. Get the attached mod and place it in local mods folder

2. Add the local mod to a world that has some grids in it (probably required to trigger this)

3. Load the world and afterwards open SE log, at the end you'll see the results:

Thread:   1 ->  ### Test_GetEntityByIdThread: Test main-thread #1: OK
Thread:  10 ->  ### Test_GetEntityByIdThread: Test other thread #10: FAIL

Replies (1)

photo
1

Hello Digi,

Thank you for writing to us.

After discussing this internally, we would like to inform you that we are aware of this issue, and it is not limited to MODs alone. Unfortunately, we will not be moving forward with a fix at this time, as doing so could potentially break other core functionalities of the game.

We are closing this thread for now, but if you encounter any other issues, please feel free to open a new thread.

Thank you for your understanding.

Kind Regards,

Keen Software House: QA Department

photo
1

Ah that is sad. Regardless thanks for looking into it and replying :}

photo
Leave a Comment
 
Attach a file