Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Mar 20, 2019 6:48 pm

All times are UTC




Post new topic  Reply to topic  [ 56 posts ]  Go to page Previous 1 2 3 Next
Author Message
 Post subject: Re: AroAI - V1.0.0
PostPosted: Tue Aug 03, 2010 5:16 pm 
Offline
President
President

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 897
Nice to see an update, now I'm testing your AI a bit longer. :)
It's good to see that the AI already knows how to expand stations, and notices if the vehicle limit is reached.
There was no crash again, good work!
Anyway, do you have any ideas what you will work on next? So, what will be the next feature(s) to be implemented?

And one little note: you forgot to modify the topic title to 'AroAI - V1.0.1' :wink:


Top
   
 Post subject: Re: AroAI - V1.0.0
PostPosted: Tue Aug 03, 2010 6:51 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4549
Location: /home/sweden
If you un-tar the AI, you can see a todo-list in the readme file.

_________________
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)


Top
   
 Post subject: Re: AroAI - V1.0.0
PostPosted: Wed Aug 04, 2010 7:33 am 
Offline
President
President

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 897
Oops, not seeing farther than my own nose :oops: thanks anyway


Top
   
 Post subject: Re: AroAI - V1.0.1
PostPosted: Thu Aug 05, 2010 12:28 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
thanks Zuu, and as you suggested, i'll probably work on what i call 'original bus stations' next, as soon as i've sorted out the problem here

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
 Post subject: Re: AroAI - v1.0.2(r59)
PostPosted: Mon Aug 09, 2010 8:44 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
Updatey goodness!

CHANGELOG


1.0.2 (2010-08-09)
------------------------------------
- Add: Forum url (r59)
- Fix: Variable not declared properly in vehiclemanager.nut (r59)
- Change: rename moneymanager.nut to manager.nut in preparation for something... (r58)
- Fix: Display town name in GetTowns (r57)
- Add: Properly limit AI to management only when vehicle limit reached or unable to build bus route properly (r56)

download in first post or on bananas!

number of total downloads (all versions) = ~115! :mrgreen: 3 figures!

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
 Post subject: Re: AroAI - v1.1.0(r72)
PostPosted: Sat Aug 21, 2010 9:35 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
BIG UPDATE!! :mrgreen:

CHANGELOG

1.1.0 (2010-08-21)
------------------------------------
- Change: Simplify the sign remover (r72)
- Change: A debug in loan management to something that makes better sense (r71)
- Feature: Build Bus Stations when drive through bus stations cannot (r70)
- Add: noai.openttd.org url (r69)
- Change: Rewrite build depot code as when out of money the AI could freeze/not build the depot (r68)
- Change: Fiddle around with build route errors (r67)
- Fix: AIAbstractList has been replaced with AIList, so needed to upgrade. AI NOW REQUIRES r20563 OR LATER(r66)
- Feature: Deal with build road depot errors (r65)
- Change: An Error() to a Warning() in Stop(); to make it clearer (r64)
- Change: Rename debugs.nut to util.nut and move some functions into it (r63)
- Feature: Reformed debug output (r62)
- Feature: Events Manager (r61)
- Change: Some debugs in manager.nut (r60)

download in first post or from bananas

number of total downloads (all versions) = ~250! 1/4 of a thousand! :mrgreen:

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
 Post subject: Re: AroAI - v1.1.0(r72)
PostPosted: Sun Aug 22, 2010 9:59 am 
Offline
President
President

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 897
AroAI 1.1.0 crashed immediately on startup: (using OpenTTD r20589)


Attachments:
aroai crash.png
aroai crash.png [ 10.17 KiB | Viewed 4482 times ]
Top
   
PostPosted: Sun Aug 22, 2010 10:33 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
@&%£!!! :o
didn't change a debug properly :roll:
thanks! :mrgreen:

update in first post or on bananas

CHANGELOG

1.1.0.1 (2010-08-22)
------------------------------------
- Fix: Debug not changed properly [Brumi] (r73)

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
PostPosted: Mon Aug 23, 2010 7:58 am 
Offline
President
President

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 897
I did a test with 3 AroAIs (and one SimpleAI). I know it's not very wise to use multiple instances of the same AI, but here it wasn't a big problem. But the centre city of the three AroAIs got a bit crammed with bus stations:
Attachment:
bus city.png [340.76 KiB]
Downloaded 1 time

The problem here is that some of the pink player's stations are unused.
Here is a savegame:


Attachments:
AroAI test.sav [495.22 KiB]
Downloaded 100 times
Top
   
PostPosted: Mon Aug 23, 2010 9:32 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
again, something fairly high up on my list of things to do is delete stations when failure building the rest of the route :roll:

expect it in next major release (1.2.0) :mrgreen:

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
PostPosted: Mon Aug 23, 2010 10:00 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
oh, and by all means use the bug tracker here, just tell me if you've put something on there!

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
PostPosted: Thu Sep 02, 2010 6:22 am 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9209
Location: Sol d
Hi,

you AI currently seems to have some problems starting at all in the first place (OpenTTD 1.0.4-RC1). When I start OpenTTD I get these debug lines:
Code:
dbg: [misc] [squirrel] Failed to compile '/Users/ingo/Documents/OpenTTD/content_download/ai/AroAI-1.1.0.1r73.tar/aroai-1.1.0.1r73/info.nut'
Your script made an error: the index doesn't exist

CALLSTACK
*FUNCTION [main()] AroAI-1.1.0.1r73.tar/aroai-1.1.0.1r73/info.nut line [49]

LOCALS
[this] TABLE


Cheers,
pm

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
PostPosted: Thu Sep 02, 2010 7:51 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
Lord Aro wrote:
This AI uses 1.1API, so you need a recent nightly for the AI to function (~r20653 or later)
:wink:

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
PostPosted: Tue Nov 09, 2010 6:17 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Tue Apr 17, 2007 2:28 pm
Posts: 236
How do I check which r***** version I have? Is 1.05-RC1 compatible? I tried with 1.0.4 and it didn't list it.


Top
   
PostPosted: Tue Nov 09, 2010 6:29 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9209
Location: Sol d
Samu wrote:
How do I check which r***** version I have? Is 1.05-RC1 compatible? I tried with 1.0.4 and it didn't list it.

1.0.x versions obviously aren't. Nightlies are.

_________________
Image
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML


Top
   
PostPosted: Tue Nov 09, 2010 6:37 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
Good heavens. Someone posted in this thread :shock:
Yes, I probably should made it clearer:
To use this AI you need a recent nightly (r20563 from memory) or 1.1.0 (when it comes out)

PS: There will be a new release soon. However the computer with it stored on is out of action til further notice :(

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
 Post subject: Re: AroAI - v1.1.1(r96)
PostPosted: Wed Dec 29, 2010 12:06 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
Finally, after 4 months, i have pushed another update!

Changelog:

1.1.1 (2010-12-29)
------------------------------------
- Fix: A temporary fix for an invalid engineID (r96)
- Add: GetEventName() so AI can print event names (r95)
- Add: Some debugs (r94)
- Codechange: some variables were global when they didn't have to be (r93)
- Codechange: Put lots of numbers into constants (r92)
- Change: AutoRenewMonths to -6 (r91)
- Codechange: A variable didn't have a very explanatory name (r90)
- Fix: A building of road failure didn't actually stop the building of roads (r89)
- Doc: Standardise comments (r88)
- Codechange: Standardise some debugs (r87)
- Clean-up: Delete unused variable (r86)
- Fix: BuildBusStop() was using wrong sqrt function (built-in instead of in code) (r85)
- Codechange: Merge BuildRoadDepot() and BuildBusStation() functions (r84)
- Codechange: Combine some unneeded event manager variables (r83)
- Change: Warning debugs were actually errors(ish) (r82)
- Codechange: Merge 2 if statements because they had the same output (r81)
- Fix: Out of money debug was appearing more than necessary (r80)
- Fix: Event debug was appearing when it shouldn't have (r79)
- Change: Increased manageOnly sleeping time (r78)
- Codechange: Make coding style more like OpenTTD (r77)
- Codechange: Make the company naming block a switch block (r76)
- Codechange: Streamline the build bus route code a bit (r75)
- Fix: Another possible lock when another AI built where AI was going to build (r74)

Also, I am looking for suggestions as to what to do with this AI, as all in the TODO list in main.nut can be done fairly quickly (i think)

The next release will have a new version numbering scheme, due to a proper repo at openttdcoop being set up, which i shall endeavour to stick to

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
 Post subject: Re: AroAI - v1.1.1(r96)
PostPosted: Tue Apr 05, 2011 4:17 pm 
Offline
Transport Coordinator
Transport Coordinator

Joined: Mon Jul 23, 2007 3:13 pm
Posts: 294
Location: Somewhere in this page
Apologies for allowing this topic to die - but here's a taster of what to expect in 1.2.111 (see point 1)

* new versioning system - that keeps breaking
* the ai is 'unsexist'.
* a rewritten readme.

Amongst other things...

* I'm experimenting with the _cost and _estimate parameters of A*.

Matthew:out

_________________
Yay! I'm back! Did you miss me?


...


I thought not.


Top
   
 Post subject: Re: AroAI - v1.2
PostPosted: Fri Apr 15, 2011 9:05 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2365
Location: Location, Location
A wild release appeared!

Code:
1.2 (2011-04-15)
------------------------------------
- Feature: New version system (r7-r13)
- Add: Don't reset the company information on load (r15)
- Add: Automatic versioning of readme.txt (r26)
- Change: Rewrite the readme (r24)
- Change: Add 96 to the version compared with the HG repo revision, so there are no incompatibilities caused by the lower version number (r19-r23)
- Change: Switch to openttdcoop hg repo (r-numerous)
- Change: Make the AI un-sexist (r18)
- Fix: A possible infinite loop if no path was found (r27)


Find it in the first post, on BaNaNaS or http://bundles.openttdcoop.org/ai-aroai/releases/LATEST
Have fun :D

_________________
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra


Top
   
 Post subject: Re: AroAI - v1.2
PostPosted: Fri Apr 15, 2011 6:08 pm 
Offline
Engineer
Engineer

Joined: Thu Feb 11, 2010 8:05 pm
Posts: 29
Good work with the new release! Will try it tomorrow.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 56 posts ]  Go to page Previous 1 2 3 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2019 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2019.
Hosted by Zernebok Hosting.