[DiscordArchive] why map update?
[DiscordArchive] why map update?
Archived author: <o> • Posted: 2022-02-08T14:58:18.729000+00:00
Original source
e.g. a player logging out, map being unloaded etc
Archived author: Dep • Posted: 2022-02-08T14:58:20.984000+00:00
Original source
but they all have GUIDs right
Archived author: Dep • Posted: 2022-02-08T14:58:41.573000+00:00
Original source
so null check, check for guid, all is good
Archived author: <o> • Posted: 2022-02-08T14:58:49.903000+00:00
Original source
you can't null check dangling pointers
Archived author: Dep • Posted: 2022-02-08T14:58:56.754000+00:00
Original source
if it fails then look up the pointer again
Archived author: Dep • Posted: 2022-02-08T14:59:03.376000+00:00
Original source
uugh
Archived author: Dep • Posted: 2022-02-08T14:59:08.708000+00:00
Original source
fuck. yeah you're right
Archived author: <o> • Posted: 2022-02-08T14:59:51.617000+00:00
Original source
there is no way to store pointers safely, the solution is to store everything interesting on the core side instead of building your own structures script-side
Archived author: <o> • Posted: 2022-02-08T15:00:15.445000+00:00
Original source
i don't know how that would work with .net, but in our core we store stuff like events/timers and unit groups as actual data on the units themselves
Archived author: Dep • Posted: 2022-02-08T15:00:24.507000+00:00
Original source
kind of defeats the purpose if you end up with EventAI but without the DB