Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Dec 10, 2018 9:55 am

All times are UTC




Post new topic  Reply to topic  [ 340 posts ]  Go to page Previous 111 12 13 14 1517 Next
Author Message
PostPosted: Sat Mar 19, 2011 12:52 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
planetmaker wrote:
Also the current bananas version still creates continuously errors (though not fatal, it's annoying as it spams the console, which is nothing I like when doing casual testing, of also other stuff concurrently)


Sorry - they're not errors, but ChooChoo makes heavy use of exceptions, which the Squirrel VM always outputs to the console, even if they are caught and handled by the AI.

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Mon Apr 04, 2011 8:40 am 
Offline
Transport Coordinator
Transport Coordinator

Joined: Wed Dec 29, 2010 7:36 pm
Posts: 336
I cannot use choochoo v361, there's no real errors here, just a play style

choochoo refuse to work because of construction.road_stop_on_town_road is off

well, as AI are nearly all bad guys when we speak about town and traffic, at least removing this option (i still allow them to build it on all route but not for town) this will lower chance of road stucks by a waiting bus/truck to load on a town road (because everyone use town roads). It happen too with too many vehicle waiting in front of a station, but with road_stop_on_town_road, it happen with just 1 vehicle waiting.
If i understood clear (didn't test choochoo because of the setting), choochoo isn't even really use it! It's just to extend its station coverage.

You wish keep that setting as-is or change your mind ?


Top
   
PostPosted: Tue Apr 05, 2011 3:15 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
krinn wrote:
You wish keep that setting as-is or change your mind ?

I'll think about it :)

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Fri Oct 07, 2011 11:43 am 
Offline
Tycoon
Tycoon

Joined: Wed Aug 26, 2009 6:33 am
Posts: 2493
Location: Poland
Without industries CHhooChoo crashes

_________________
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD


Top
   
PostPosted: Fri Oct 07, 2011 6:53 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
Oh, that's kinda bad. I'll see if I can fix that, thanks!

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Fri Oct 07, 2011 7:10 pm 
Offline
Tycoon
Tycoon

Joined: Wed Aug 26, 2009 6:33 am
Posts: 2493
Location: Poland
And it will loop over and over with more freight lines to do than industries.

_________________
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD


Top
   
PostPosted: Tue Oct 11, 2011 3:12 am 
Offline
Engineer
Engineer

Joined: Tue Oct 11, 2011 3:09 am
Posts: 2
There are two bugs:


Attachments:
choochoo_bug.JPG [218.73 KiB]
Downloaded 3 times
choochoo_bug2.JPG [173.64 KiB]
Downloaded 3 times
Top
   
PostPosted: Tue Oct 11, 2011 8:42 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Thu Jun 25, 2009 4:42 pm
Posts: 2364
Location: Location, Location
it helps if you actually read the error message.

You need to enable "Allow building drive-through road stations on town roads" setting in the advanced setting.

Also, try to use .png for screenshots, using OTTDs built in screenshot 'taker' (click far right menu button, and select desired screenshot option)

_________________
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 Oct 11, 2011 9:25 am 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
Thanks for the bug report, Curly, and thanks LordAro for already providing the answer for me :)

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Tue Dec 13, 2011 8:50 pm 
Offline
Engineer
Engineer

Joined: Mon Oct 12, 2009 9:50 am
Posts: 5
i got this bug right after the ai starts


Attachments:
bug.PNG
bug.PNG [ 26.68 KiB | Viewed 3910 times ]
Top
   
PostPosted: Tue Dec 13, 2011 9:15 pm 
Offline
Engineer
Engineer

Joined: Thu Dec 08, 2011 9:52 pm
Posts: 4
Location: South Yorkshire, UK
Endymion wrote:
i got this bug right after the ai starts


If i remember rightly i got that error like 7 years into the game (1978). Yes I start at 1971!

_________________
GT: ImPulSe iZ Tank
Open TTD Name: S4D Rampage
Company name: Rampage LLC

www.writing.com


Top
   
PostPosted: Tue Dec 13, 2011 10:20 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
Thanks, I'll have a look!

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Tue Jan 03, 2012 5:47 am 
Offline
Traffic Manager
Traffic Manager

Joined: Wed Oct 01, 2008 12:04 am
Posts: 144
Location: Sweden
Perhaps you are already aware of this but your AI can completely lock up OTTD on large maps with many industries.
The problem is of course the gigantic list of routes generated then sorted with a comparator function. (sort is a native call and can not be suspended)

Since you are only ever interested in the best 10 routes this is completely unnecessary and the following change will make OTTD run smooth as silk during the bootstrap phase even on a 2048x2048 map with industries set to "high":

Code:
   local routes = [];
   foreach (cargo, _ in cargoList) {
      Debug(AICargo.GetCargoLabel(cargo));
      local consumers = AIIndustryList_CargoAccepting(cargo);
      local producers = AIIndustryList_CargoProducing(cargo);
      producers.Valuate(AIIndustry.GetLastMonthProduction, cargo);
      producers.KeepAboveValue(0);
      
      foreach (producer, _ in producers) {
         foreach (consumer, _ in consumers) {
            local distance = AIMap.DistanceManhattan(AIIndustry.GetLocation(producer), AIIndustry.GetLocation(consumer));
            if (distance < MAX_CARGO_DISTANCE) {
               local route = CargoRoute(producer, consumer, cargo)
               if (route.payback > 0) {
                  //Debug(route)
                  routes.append(route)
                  routes.sort(CompareRouteValue)
                  routes = routes.slice(0, min(10, routes.len()))
               }
            }
         }
      }
   }


This is definitely one of my favorite AIs, keep up the good work!


Top
   
PostPosted: Thu Jan 05, 2012 3:12 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
That's a great idea! I'll put it on the to do list, but I must admit I haven't been getting around to AI development recently...

Aali wrote:
This is definitely one of my favorite AIs, keep up the good work!

Thanks :D

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Thu Jan 12, 2012 7:02 pm 
Offline
OpenTTD Developer
OpenTTD Developer

Joined: Wed Dec 20, 2006 1:31 pm
Posts: 978
Location: Aschaffenburg
my mailbox wrote:
Błąd

:)


Attachments:
ottd.JPG [271.32 KiB]
Downloaded 3 times

_________________
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Top
   
PostPosted: Sun Jan 15, 2012 2:44 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
LOL, just the other day I was telling Maninthebox that ChooChoo managed to go without a real crash for so long :P
Added to The List (TM) :)

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Tue Feb 14, 2012 1:37 am 
Offline
Engineer
Engineer

Joined: Tue Feb 14, 2012 1:29 am
Posts: 114
nice AI, though howd u get that kind of graphics?


Top
   
PostPosted: Wed Feb 15, 2012 12:38 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon May 21, 2007 11:47 am
Posts: 6559
Location: The Netherlands
sss wrote:
that kind of graphics?

What kind?

_________________
FooBar's Tram Tracks | TransRapid Track Set | Metro Track Set | OpenGFX base graphics set | FIRS Industry Replacement Set
Dutch Tram Set | Dutch Trainset 2 | Dutch Road Furniture


Top
   
PostPosted: Mon Feb 20, 2012 6:36 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Sun Jul 13, 2008 12:57 am
Posts: 313
sss wrote:
nice AI, though howd u get that kind of graphics?


Thanks! But as FooBar said... what kind of graphics? :)

_________________
Building Powargrid: a turn based strategy game


Top
   
PostPosted: Mon Feb 20, 2012 11:11 pm 
Offline
Engineer
Engineer

Joined: Mon Feb 20, 2012 9:00 pm
Posts: 2
I've got an issue with ChooChoo on OpenTTD 1.2 beta 4.

I guess it's a Squirrel parser update in the 1.2 version of OpenTTD that broke the comparator function by not returning a 0 on similar values. The Squirrel engine returned an "Inconsistent compare function" error without this modification.

I have modified the CompareRouteValue function to make it look like this:
Code:
function CompareRouteValue(a, b) {
   if (a.payback==b.payback) return 0;
   return a.payback > b.payback ? 1 : -1;
}


It now works for me on the latest version. Hope it helps...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 340 posts ]  Go to page Previous 111 12 13 14 1517 Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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-2018 phpBB Limited

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