Hacker News new | ask | show | jobs
by mashlol 2466 days ago
The `pcall` thing is interesting, didn't think of that. Will it apply to anonymous functions as well? For example, if I wrap my main in pcall, and then set up trigger calls, I expect the pcall won't apply to whenever the trigger callbacks are hit.

As for the desync checker, I've been down that rabbit hole - I removed every async method from the codebase and still had desync issues. I am starting to suspect its an issue with some new native that I am not thinking of, but it's a very slow process to track it down, since I need to get ~5 random players in my game every time to test it, and even if no desync happens it doesn't really mean its solved.

1 comments

Yea the trigger actions need to be wrapped in a pcall too.

Because of that I made a function for trigger creation which wraps the provided action in a pcall.