Restart Dead AI patch

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
xarick
Transport Coordinator
Transport Coordinator
Posts: 341
Joined: 26 Feb 2015 00:52

Restart Dead AI patch

Post by xarick »

This patch allows AIs to restart when they crash, without taking their current company infrastructure with them.

I've added a setting for it, so it can be turned on or off. I've also added a savegame conversion.

There's room for improvements though:
- It isn't keeping the old log after it had crashed. It is always starting with a fresh log.
- It does impact the game performance should an AI or several AIs crash immediately upon restarting. I'd like to change this so it doesn't restart immediately after a crash, but only after a period of time or at the start of each month.
restart dead ai v2 r27816.patch
(8.13 KiB) Downloaded 61 times
v2
- updated savegame version to resolve a conflict with trunk r27778 and above
- fixed typos in some strings

Screenshot valid for v1
screenshot#38.png
screenshot#38.png (53.85 KiB) Viewed 1673 times
Previous version (v1)
[+] Spoiler
restart dead ai v1 r27632.patch
(8.05 KiB) Downloaded 75 times
Formerly known as Samu
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 40 guests