BaNaNaS - tags

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
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

BaNaNaS - tags

Post by Zuu »

Hello,

As you've seen in General Discussions, OpenTTD has got a new content server system where we can upload our AIs and users can download them directly from their OpenTTD clients.

Now, one of the fields that one can enter for AIs is tags. And it is good if we use similar tags for our AIs. Therefore you can here find a suggestion on which tags to use for your AI. This list is based on suggestions and discussions in this thread. So if you have anything you like to add to the list post a comment and if it is reasonable it will probably be added.

(bold = tag)

Transport modes
  • aircraft
  • ship
  • bus
  • tram
  • truck
  • train


Save/Load
For AIs that support save/load the tag save/load can be used. Please note the order of "save" and "load".

Other
Other tags in use currently are: (list updated on 2009-08-31)
  • simple
  • example
  • performance
  • transfer
  • eye candy
  • traffic
  • car
Currently you can only see tags of AIs other than your own from inside OpenTTD.

Ideas and suggestions are welcome.

Changelog (might be incomplete)
* Changed airplane -> aircraft above as suggested by peter1138 and agreed about by Yexo.
* 2009-08-31: Added clearer structure to the tag listing and updated the list of other tags in use.
Last edited by Zuu on 31 Aug 2009 16:23, edited 3 times in total.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
User avatar
Zutty
Director
Director
Posts: 565
Joined: 22 Jan 2008 16:33

Re: BaNaNaS - tags

Post by Zutty »

Thats a great idea. I'll stick to this scheme.
PathZilla - A networking AI - Now with tram support.
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Re: BaNaNaS - tags

Post by peter1138 »

Zuu wrote:airplane
aircraft would be better, as that includes helicopters and the like too, and it's less grating to English speakers who know the correct word is aeroplane.
He's like, some kind of OpenTTD developer.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: BaNaNaS - tags

Post by Yexo »

peter1138 wrote:
Zuu wrote:airplane
aircraft would be better, as that includes helicopters and the like too, and it's less grating to English speakers who know the correct word is aeroplane.
Aircraft is ok with me, other opinions?
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: BaNaNaS - tags

Post by Zuu »

Yexo wrote:
peter1138 wrote:
Zuu wrote:airplane
aircraft would be better, as that includes helicopters and the like too, and it's less grating to English speakers who know the correct word is aeroplane.
Aircraft is ok with me, other opinions?
Aircraft is fine with me. I can change the initial post, but WrightAI need to be changed then, probably by TrueBrain. The reason I took airplane was because that is what WrightAI used.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: BaNaNaS - tags

Post by Zuu »

I got an idea, since not all AIs has working save/load. Perhaps we should add a tag "save/load" to AIs that support save/load so users better can know which AIs support save/load without having to dig into all AI threads?

Yes users will still need to read which might be hard for some of them. But if we at least provide them with text to read, then those who reads will not need to ask, or read through all forum threads. :)

Does this sound like a good plan? Or do anyone has suggestions for another name? I have tested that the slash works in-game. (have added "save/load" as tag to PAXLink, but will change it if we agree on something else)
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: BaNaNaS - tags

Post by Yexo »

Zuu wrote:I got an idea, since not all AIs has working save/load. Perhaps we should add a tag "save/load" to AIs that support save/load so users better can know which AIs support save/load without having to dig into all AI threads?

Yes users will still need to read which might be hard for some of them. But if we at least provide them with text to read, then those who reads will not need to ask, or read through all forum threads. :)

Does this sound like a good plan? Or do anyone has suggestions for another name? I have tested that the slash works in-game. (have added "save/load" as tag to PAXLink, but will change it if we agree on something else)
That sounds like a very good idea. Please add it to the list in the first post. The current version of AdmiralAI doesn't support it, but as soon as I fix it I'll add the tag too.
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: BaNaNaS - tags

Post by Maninthebox »

Could we perhaps make this a sticky before it gets lost? Or perhaps update the wiki with a list of commonly used tags?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: BaNaNaS - tags

Post by planetmaker »

More over, I think it might be a good idea to extend this topic beyond the NoAI part. NewGRFs would also profit a lot from uniform tag usage...
Chruker
Engineer
Engineer
Posts: 49
Joined: 01 Jun 2009 20:13

Re: BaNaNaS - tags

Post by Chruker »

Why the need for a load/save tag?

Doesnt all AI's get their data (vehicles, stations, track etc) stored?

If I read the wiki right, only information that cant be gathered from the API, should be stored in savegames.

I would say its a bug/designflaw in the AI, if it doesnt load&save essential information that cant be gathered from the API.
User avatar
Michiel
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 13 Jul 2008 00:57
Contact:

Re: BaNaNaS - tags

Post by Michiel »

Chruker wrote:I would say its a bug/designflaw in the AI, if it doesnt load&save essential information that cant be gathered from the API.
It is, and mine doesn't, so that's why it doesn't have the tag :p
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: BaNaNaS - tags

Post by Zuu »

The save/load mechanism was introduced 8-9 months after NoAI became publicly available and the NoAI forum thread was opened. (Before this sub forum opened there was just a NoAI thread). So many AIs was written before save/load was introduced and thus may therefor be harder to add save/load support than if one would start a new AI today. Clueless for example was written when you had to keep quite a bit more information stored because you couldn't read it out from the map. Therefor adding save/load support to it will require saving a decent amount of information. PAXLink on the other hand I wrote a lot later and used the approach to read things from the map instead of keeping things in memory and thus eliminating the need for much of the save/load code that will be needed in CluelessPlus.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
User avatar
Zutty
Director
Director
Posts: 565
Joined: 22 Jan 2008 16:33

Re: BaNaNaS - tags

Post by Zutty »

I noticed not everyone uses a tag for save/load, and its not in the "official" list in this thread, so I didn't bother.
PathZilla - A networking AI - Now with tram support.
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: BaNaNaS - tags

Post by Zuu »

Zutty wrote:I noticed not everyone uses a tag for save/load, and its not in the "official" list in this thread, so I didn't bother.
If you mean the list in my first post, then yes save/load is there. The code-box just shows tags for transport modes. Below you find tags for other purposes than supported transport modes mentioned.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
User avatar
Zutty
Director
Director
Posts: 565
Joined: 22 Jan 2008 16:33

Re: BaNaNaS - tags

Post by Zutty »

*slaps forehead* Oh yeah! I might change my tags then.
PathZilla - A networking AI - Now with tram support.
Chruker
Engineer
Engineer
Posts: 49
Joined: 01 Jun 2009 20:13

Re: BaNaNaS - tags

Post by Chruker »

Suggested tag: newgrf

To be used when the AI can function, handle and utilize NewGRF. Possible pitfalls:
- Changing constructions costs which causes hardcoded values to fail
- Use NewGRF stations
- Can handle new or changed cargo types and cargo relationships

EDIT: So much for going to the freaking wiki main page so see what the heck it was called.
Last edited by Chruker on 29 Jul 2009 18:17, edited 1 time in total.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: BaNaNaS - tags

Post by Roujin »

it's called NewGRF btw., not NewGFX.
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: BaNaNaS - tags

Post by Yexo »

Chruker wrote:Suggested tag: newgfx
While I like the idea, I think it's too vague.
To be used when the AI can function, handle and utilize NewGFX. Possible pitfalls:
- Changing constructions costs which causes hardcoded values to fail
- Use NewGFX stations
- Can handle new or changed cargo types and cargo relationships
Should an AI support all of these before it uses the label? What about new vehicles? Should it also support cargo stockpiling for ecs and pbi industries?
Chruker
Engineer
Engineer
Posts: 49
Joined: 01 Jun 2009 20:13

Re: BaNaNaS - tags

Post by Chruker »

The initial idea was just as a sign like the load/save tag - so basicly indicating that it wont die horribly when using some fancy newgfx
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest