Can we permanently change the AI company names?

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

Post Reply
User avatar
paulcobbaut
Engineer
Engineer
Posts: 12
Joined: 20 Apr 2017 08:19

Can we permanently change the AI company names?

Post by paulcobbaut »

Situation:
Play OpenTTD jgrpp 0.64.2 with several instances of AAAHogEx.
Use the sandbox cheat "Play as company" to rename each AI.
Save the game, for a long time the new company names stick.
From time to time they revert to AAAHogEx ##.

As can be seen in this image:

Image

Question:
Is there a way to have the names stick?
--
Sent from Debian Linux
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7437
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Can we permanently change the AI company names?

Post by Redirect Left »

paulcobbaut wrote: 31 Mar 2025 17:09 Is there a way to have the names stick?
That would depend on each AI, and whether they check for the company name on launch (or load). It could probably be added by the AI developers (or yourself if you know Squirrel) to make it not do that, or to have a setting that lets you change the name to X
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
paulcobbaut
Engineer
Engineer
Posts: 12
Joined: 20 Apr 2017 08:19

Re: Can we permanently change the AI company names?

Post by paulcobbaut »

Redirect Left wrote: 31 Mar 2025 18:03
paulcobbaut wrote: 31 Mar 2025 17:09 Is there a way to have the names stick?
That would depend on each AI, and whether they check for the company name on launch (or load). It could probably be added by the AI developers (or yourself if you know Squirrel) to make it not do that, or to have a setting that lets you change the name to X
Thanks, I will take a look at Squirrel...
--
Sent from Debian Linux
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7437
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Can we permanently change the AI company names?

Post by Redirect Left »

paulcobbaut wrote: 31 Mar 2025 18:21 Thanks, I will take a look at Squirrel...
AAAHogEx is also on Github, so you can look at that source code too https://github.com/rei-artist/AAAHogEx
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
AAAHogEx
Traffic Manager
Traffic Manager
Posts: 146
Joined: 30 Jan 2022 15:37
Location: Japan

Re: Can we permanently change the AI company names?

Post by AAAHogEx »

paulcobbaut wrote: 31 Mar 2025 17:09
Thanks a lot for the suggestion!
But since AAAHogEx is used to decide where company names grow on the map, changing it might mess up the distribution.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest