Hi Guys, Please help me out here. there is an AI created A LOT of "T" sign + other sign total of 50k of sign created. please see the attached. how do i remove all this sign?
Thanks
AI create a lot of "T" sign
Moderator: OpenTTD Developers
AI create a lot of "T" sign
- Attachments
-
- TTD.PNG (224.88 KiB) Viewed 1771 times
Re: AI create a lot of "T" sign
The bug is in MailAi 2.22. To fix it you must change one line in their code.
Open EventManager.nut and delete or comment out (adding // at the begin) the line 144: (not an actual fix, but a workaround)
The error sign is triggered when the AI fails to convert rail track after 33 tries. Notice this AI is bugged and abandoned.
The are 2 ways to delete those signs from a running game. First, the hard one, manually, which is impracticable if the AI was building signs for a while. The second way is adding some cleaning code to main.nut in MailAI::Start function after "fixing" the bug.
(code borrowed from SuperLib)
After the next run you can delete or comment it out to avoid interference with newly created signs.
Do not update the AI from online content. It will overwrite the fixed version and the bug will come back.
Enjoy.
Open EventManager.nut and delete or comment out (adding // at the begin) the line 144:
Code: Select all
MailAI.BuildSign(t1,"T");
The error sign is triggered when the AI fails to convert rail track after 33 tries. Notice this AI is bugged and abandoned.
The are 2 ways to delete those signs from a running game. First, the hard one, manually, which is impracticable if the AI was building signs for a while. The second way is adding some cleaning code to main.nut in MailAI::Start function after "fixing" the bug.
(code borrowed from SuperLib)
Code: Select all
local sign_list = AISignList();
foreach(i, _ in sign_list)
{
AISign.RemoveSign(i);
}
Do not update the AI from online content. It will overwrite the fixed version and the bug will come back.
Enjoy.
Re: AI create a lot of "T" sign
Here a copy of the modified file:
Re: AI create a lot of "T" sign
It works. Thanks you so much Sir!
- Attachments
-
- ttd.PNG (355.42 KiB) Viewed 1690 times
Re: AI create a lot of "T" sign
No problem. Those Bank signs seem to be created by a crashed AI. To remove them you must add the cleaning code to a GS script (too bad if you are not using anyone in your game) because AIs only can delete their own signs created by the current instance.
Re: AI create a lot of "T" sign
ok noted. Thank you again.HGus wrote: 28 Aug 2022 02:42 No problem. Those Bank signs seem to be created by a crashed AI. To remove them you must add the cleaning code to a GS script (too bad if you are not using anyone in your game) because AIs only can delete their own signs created by the current instance.

Who is online
Users browsing this forum: nihues and 42 guests