GetName() and Strings that contain special chars

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
borg83
Engineer
Engineer
Posts: 27
Joined: 29 Jan 2007 22:28
Location: NRW, Germany
Contact:

GetName() and Strings that contain special chars

Post by borg83 »

To the API developers:

If I call AIEngine.GetName(engine) for some engines (for example the large Airbus A380 of the av8 NewGRF) and use the returned String in an AILog function, then not the whole logging message will be printed. It seems to me like some engines use special chars in front of their names so that the text does not overlap with the large engine graphics. But I cannot find a way to remove those chars using Squirrel, so my question is:
Could you remove those chars as part of the API functions?

greetz, BørG
Image
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: Bing [Bot] and 6 guests