Hey all.
Going to start work on a new AI and also I think this might be useful for WrightAI; can we change the "The AI has crashed" message at all? I've been looking around the API documentation but can't see anything obvious.
The reason I ask is that as the AI is in development, there may be some "known bugs" that I don't want to concern users with. A message like "JAMI has crashed for a known reason. There is no need to report this." would be very helpful.
Thanks in advance.
Custom Crash Messages
Moderator: OpenTTD Developers
Re: Custom Crash Messages
I think you can fix this in your own code by using a try catch block. i.e.:Xander wrote:Hey all.
Going to start work on a new AI and also I think this might be useful for WrightAI; can we change the "The AI has crashed" message at all? I've been looking around the API documentation but can't see anything obvious.
The reason I ask is that as the AI is in development, there may be some "known bugs" that I don't want to concern users with. A message like "JAMI has crashed for a known reason. There is no need to report this." would be very helpful.
Thanks in advance.
try {
crash();
} catch(id) {
// Your message here.
}
Who is online
Users browsing this forum: Google [Bot], peter1138 and 4 guests