[DiscordArchive] https://elunaluaengine.github.io/Unit/GetAura.html is this invalidated also ?
[DiscordArchive] https://elunaluaengine.github.io/Unit/GetAura.html is this invalidated also ?
Archived author: stoneharry • Posted: 2024-03-10T00:12:09.587000+00:00
Original source
What's the problem with letting a bad script crash the server? People will soon learn that what they are doing is wrong. And trying to prevent badly performing scripts is more hassle than it's worth imo. You just want the behaviour to be deterministic. Pointers don't get invalidated at consistent times so storing a pointer without some protection can cause random crashes, and I agree we should protect against that.
Archived author: jackpoz • Posted: 2024-03-10T00:12:14.949000+00:00
Original source
Some sort of static analysis rules
Archived author: jackpoz • Posted: 2024-03-10T00:13:02.559000+00:00
Original source
A bad script can cause a crash 10 minutes later
Archived author: stoneharry • Posted: 2024-03-10T00:13:05.926000+00:00
Original source
At the end of the day, people can already write such bad code with the C++ script API. I have seen so many spell scripts crash servers.
Archived author: jackpoz • Posted: 2024-03-10T00:13:09.779000+00:00
Original source
With a random callstack
Archived author: jackpoz • Posted: 2024-03-10T00:13:34.276000+00:00
Original source
That is very frustrating to troubleshoot if the issue was a bad custom script in the end
Archived author: jackpoz • Posted: 2024-03-10T00:13:54.906000+00:00
Original source
And to test a scripting engine, you always have custom script
Archived author: jackpoz • Posted: 2024-03-10T00:14:24.699000+00:00
Original source
So you have no clue if the issue is in the C++ code and should be fixed, or in the script