SynTrans - A Synaptic Network AI
Moderator: OpenTTD Developers
SynTrans - A Synaptic Network AI
I am proud to presend my NoAI AI, SynTrans!
SynTrans stands for Synaptic Transportation. It can build massive road and aircraft networks. Will probably never implement train support... but oh well The AI is very good with Road and Air.
The AI features many improvements from its origionation, RoadAI:
1. Added Aircraft Support
2. Added Save/Load support (may be a buggy feature)
3. Better vehicle management
4. Better station placement (thanks GeekToo)
5. Various Bug fixes
6. And many other small improvements
--The Goals (in order of priority)--
1. To make a stable AI that works as intended in any situation
2. To make an AI that builds more realistically and is fun to play with
3. To make the AI extremely fast
4. To make the AI a good competitor
Keep in mind this AI depends on SuperLib v13.
If you find any bugs in the AI, please send them in. Feature requests are also appreciated
My code is free and Opensource, use may use any portion or change it to your hearts content!
SynTrans stands for Synaptic Transportation. It can build massive road and aircraft networks. Will probably never implement train support... but oh well The AI is very good with Road and Air.
The AI features many improvements from its origionation, RoadAI:
1. Added Aircraft Support
2. Added Save/Load support (may be a buggy feature)
3. Better vehicle management
4. Better station placement (thanks GeekToo)
5. Various Bug fixes
6. And many other small improvements
--The Goals (in order of priority)--
1. To make a stable AI that works as intended in any situation
2. To make an AI that builds more realistically and is fun to play with
3. To make the AI extremely fast
4. To make the AI a good competitor
Keep in mind this AI depends on SuperLib v13.
If you find any bugs in the AI, please send them in. Feature requests are also appreciated
My code is free and Opensource, use may use any portion or change it to your hearts content!
- Attachments
-
- SynTrans-1.tar
- (51 KiB) Downloaded 1108 times
Last edited by 11Runner on 15 Apr 2014 02:58, edited 1 time in total.
Re: SynTrans - A Synaptic Network AI
Hello, you got two spelling errors in on your info.nut:
tranport => transport
Tip: Many text editors suitable for editing code also have a spell checker for comments and literal strings.
The AI itself, I don't have had time to test yet. But I'm sure will do as I really like that you have taken the network approach instead of just doing point to point connections.
seprate => separateCode: Select all
The maximum number of seprate tranport networks for the roads SynTrans may build
tranport => transport
Tip: Many text editors suitable for editing code also have a spell checker for comments and literal strings.
The AI itself, I don't have had time to test yet. But I'm sure will do as I really like that you have taken the network approach instead of just doing point to point connections.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: SynTrans - A Synaptic Network AI
It is obvious I am rushing way to much in my coding. Good call
Re: SynTrans - A Synaptic Network AI
small problem
- Attachments
-
- Przechwytywanie.PNG
- (147.12 KiB) Downloaded 5 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: SynTrans - A Synaptic Network AI
Fixed the above listed problems (as well as a couple of bugs I found ).
You may also notice I am starting the train support if you look at the source code
You may also notice I am starting the train support if you look at the source code
- Attachments
-
- SynTrans-2.tar
- (59 KiB) Downloaded 497 times
Re: SynTrans - A Synaptic Network AI
Your rail stub is about five times longer than the rail stub in CluelessPlus (as I only got one rail file)
On a more serious note, I think you should add SynTrans to bananas.
On a more serious note, I think you should add SynTrans to bananas.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: SynTrans - A Synaptic Network AI
I will do this as soon as I can. I just wasnt sure it was time just yetZuu wrote:On a more serious note, I think you should add SynTrans to bananas.
Re: SynTrans - A Synaptic Network AI
eGRVTS in 1710 result in problems as all vehicles are articulated.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: SynTrans - A Synaptic Network AI
Hello,
Attatched is version 3. Sorry it took so long (I am very busy )
Here is an incomplete list of the improvements (and yes, the list will always be incomplete because I don't bother to keep track of the changes)
1.
2. Fixed a few minor bugs
3. Slightly better connection building
Also, my rail stub is so long because I plan on adding somewhat extensive train support to my AI (It will be using ro-ro stations and junctions mentioned on the OTTD wiki manual, all in a network. I just wanted to start with road vehciles to alvoid confusion as I learn NoAI )
Attatched is version 3. Sorry it took so long (I am very busy )
Here is an incomplete list of the improvements (and yes, the list will always be incomplete because I don't bother to keep track of the changes)
1.
The AI now builds those vehicles and the appropriate stationsKogut wrote:eGRVTS in 1710 result in problems as all vehicles are articulated.
2. Fixed a few minor bugs
3. Slightly better connection building
Also, my rail stub is so long because I plan on adding somewhat extensive train support to my AI (It will be using ro-ro stations and junctions mentioned on the OTTD wiki manual, all in a network. I just wanted to start with road vehciles to alvoid confusion as I learn NoAI )
- Attachments
-
- SynTrans-3.tar
- (79.5 KiB) Downloaded 457 times
Re: SynTrans - A Synaptic Network AI
Here is SynTrans v4.
All I did was:
1. Update to SuperLib v15 (and did my things with the stuff I wanted to do with it)
2. Further developed train stub (not complete)
All I did was:
1. Update to SuperLib v15 (and did my things with the stuff I wanted to do with it)
2. Further developed train stub (not complete)
- Attachments
-
- SynTrans-4.tar
- (80 KiB) Downloaded 348 times
Re: SynTrans - A Synaptic Network AI
Good to see that development is going on, I'm eagerly waiting for train support
Anyway, in my tests, your AI doesn't build aircraft. I start the game in 1950, and the plane limit is 20, might that be the case?
Unfinished roads are quite a common sight when using your AI: The AI log is full of messages like "Could not find a road vehicle to use!", although there are buses running on the roads, and I cheated to give your AI 'some' money, so money shouldn't be an issue now. I have the Generic Tram Set enabled, but anyway it's the default road vehicle set. I don't know if it makes a difference...
Anyway, in my tests, your AI doesn't build aircraft. I start the game in 1950, and the plane limit is 20, might that be the case?
Unfinished roads are quite a common sight when using your AI: The AI log is full of messages like "Could not find a road vehicle to use!", although there are buses running on the roads, and I cheated to give your AI 'some' money, so money shouldn't be an issue now. I have the Generic Tram Set enabled, but anyway it's the default road vehicle set. I don't know if it makes a difference...
Re: SynTrans - A Synaptic Network AI
Sorry, I dont get much time to test my AI myself, I am so busy these days
Anyway, here is the next release.
Anyway, here is the next release.
Sorry about that. I broke my AI's ability to build aircraft with a new function I failed to test. It has been fixed in this release.Anyway, in my tests, your AI doesn't build aircraft. I start the game in 1950, and the plane limit is 20, might that be the case?
Part of the same aircraft bug it appears, but if you continue seeing those messages, let me know .The AI log is full of messages like "Could not find a road vehicle to use!", although there are buses running on the roads, and I cheated to give your AI 'some' money, so money shouldn't be an issue now. I have the Generic Tram Set enabled, but anyway it's the default road vehicle set.
This is a known bug. I have taken various steps to preventing it from happening. It seems to never happen to me, I plan on fixing it (again) in the next release (the aircraft bug was more important and I didn't have enough time)Unfinished roads are quite a common sight when using your AI
- Attachments
-
- SynTrans-5.tar
- (90 KiB) Downloaded 375 times
Re: SynTrans - A Synaptic Network AI
Merry Christmas Everyone
Here is SynTrans v6. This release features the most improvements thus far:
* Speed improvements
* Bigger networks faster
* Smarter Aircraft Support
* Builds HQ (for supporting CityDomination )
* Many other small bugfixes
Bug reports and feature requests welcome!
Side Note: Does anyone know how to load an older version of a AI using the start_ai command? I would like to show you graphs of improvements in this release.
Here is SynTrans v6. This release features the most improvements thus far:
* Speed improvements
* Bigger networks faster
* Smarter Aircraft Support
* Builds HQ (for supporting CityDomination )
* Many other small bugfixes
Bug reports and feature requests welcome!
Side Note: Does anyone know how to load an older version of a AI using the start_ai command? I would like to show you graphs of improvements in this release.
- Attachments
-
- SynTrans-6.tar
- (100 KiB) Downloaded 372 times
Re: SynTrans - A Synaptic Network AI
You can use this for example:
Code: Select all
start_ai syntrans.5
Re: SynTrans - A Synaptic Network AI
I get this error when it loads the AI:
"Your script made an error: couldn't find library 'util.superlib'"
I couldn't find any util.superlib file on the forums. Is there something I'm missing here?
"Your script made an error: couldn't find library 'util.superlib'"
I couldn't find any util.superlib file on the forums. Is there something I'm missing here?
Re: SynTrans - A Synaptic Network AI
I was having the same issue too, but I assumed it was just my own misconfiguration. I suppose Zuu could have renamed the library or something. I will fix the problem as soon as possible. Thank you for the notice
Re: SynTrans - A Synaptic Network AI
Not as far as I'm concerned11Runner wrote:I suppose Zuu could have renamed the library or something.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: SynTrans - A Synaptic Network AI
Turns out my AI was trying to load SuperLib v15 Thank you for the report, it has now been fixed. You can find SynTrans v7 on bananas or the download link belowbman wrote: I get this error when it loads the AI:
"Your script made an error: couldn't find library 'util.superlib'"
I couldn't find any util.superlib file on the forums. Is there something I'm missing here?
- Attachments
-
- SynTrans-7.tar
- (97 KiB) Downloaded 482 times
-
- Engineer
- Posts: 1
- Joined: 02 Mar 2012 23:28
Re: SynTrans - A Synaptic Network AI
Fix:
Change line 236 from
to
Change line 236 from
Code: Select all
raildir = Tile.TurnDirClockwise90Deg(Tile.GetDirectionToAdjacentTile(site, bridge), 1);
Code: Select all
raildir = Direction.TurnDirClockwise90Deg(Direction.GetDirectionToAdjacentTile(site, bridge), 1);
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Who is online
Users browsing this forum: No registered users and 2 guests