Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Sep 25, 2017 8:40 pm

All times are UTC




Post new topic  Reply to topic  [ 112 posts ]  Go to page Previous 1 2 3 4 5 6 Next
Author Message
PostPosted: Sat Jul 21, 2012 12:18 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Mon Sep 06, 2004 7:38 am
Posts: 269
Location: Vantaa, Finland
Cool that you're thinking about adding this in :D

I have a feeling one-way bits on every other grid would be best, as then it would be impossible for any vehicle to drive on the wrong side of the road, while keeping the ability to build intersections:
Attachment:
roads.png [74.35 KiB]
Downloaded 13 times

Also one-way bits at both ends of any bridge or tunnel so they can't be used to go the wrong way either.


Ownership of the roads isn't that big of a problem for me, as I start my games from 1885. So the WmDOT builds a few roads, goes bankrupt, and then starts up again ;) But obviously everyone doesn't play like I do.


My thoughts on the pathfinder (without almost any knowledge how difficult they would be to implement :P):
- Only allow a limited amount of turns for motorways, maybe max 2-4. This makes them both faster to travel on & look more... dominating I guess.
- Don't make them go directly from city to city, but rather start & end just outside of a city, with a road into the city:
Attachment:
Brown & Co., 1885-01-16.png [465.4 KiB]
Downloaded 13 times

These could then be expanded further to longer and longer distances.


Top
   
PostPosted: Tue Jan 01, 2013 3:21 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Tue Feb 01, 2011 12:41 pm
Posts: 226
Version 11 is released!

In what is likely to be the last release of 2012 :D WmDOT has been updated. There are three major updates:
  • Ship management - WmDOT will delete extra ships on a route. As another bonus, it will also name ships.
  • Grid Based Pathfinding - this is done using Dominion Land System which was added in the latest version of MetaLibrary. The grid is 8x8. While this sometimes results in some random stub roads, many parallel roads should less of an issue.
Attachment:
File comment: Multiple WmDOT's (v11) at full build-out.
WmDOT v11 on Grids.png
WmDOT v11 on Grids.png [ 11.79 KiB | Viewed 2884 times ]

  • Freeways! (or dual carriageways) - this builds on the grid pathfinding. If the pathfinder builds a straight path between grid points, it will attempt to twin it. If twinning is successful, the couplet is turned into one-way roads. Access is available every 8 squares or so.
Attachment:
File comment: WmDOT Twinned Freeways!
WmDOT Twinned Freeways.png
WmDOT Twinned Freeways.png [ 358.8 KiB | Viewed 2884 times ]

As always, please report bugs and other strange behaviour here.

Update: Version 11.1 has been uploaded to fix a typo.

As a side, it's amazingly gratifying to see the uptake WmDOT has seen. I have no way of knowing exactly how many people play it, but WmDOT (in all it's versions) has been downloaded over 100,000 times!! :shock:

_________________
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department


Top
   
PostPosted: Tue Jan 01, 2013 3:23 pm 
Offline
Director
Director
User avatar

Joined: Fri Dec 23, 2011 1:50 pm
Posts: 516
Location: Letchworth GC
Nice to see highways included! Well done!


Top
   
PostPosted: Mon Jan 07, 2013 10:22 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4532
Location: /home/sweden
Hello,

I let wmDOT run in fast forward in the background with lots of money to see what it could accomplish. However, at some point the script crashed. (I don't know when that happened, only that the script ran for maybe 10 or 20 years from 1950 to 1960-1970-ish. From that to 2050 it have been running without supervision.)

Aditionally, I've highlighted in the first screenshot a situation where the AI seem to have failed. I beleive there was an industry there before which was the reason it was not able to go straight. However, if you look at the lower left of the circle, the slope of the hill seem to have prevented the script from connecting the two sides of the highway. So the highway was left a bit unconnected. Maybe that is a consequence of the grid system that is hard to do anything about?

Attachment:
Glyttudde Transport, 26th Jan 2052.png [122.31 KiB]
Downloaded 11 times


Earlier part of the error:
Attachment:
Glyttudde Transport, 26th Jan 2052#1.png [51.91 KiB]
Downloaded 12 times

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


Top
   
PostPosted: Tue Jan 08, 2013 1:12 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Tue Feb 01, 2011 12:41 pm
Posts: 226
Thanks for the report Zuu.

Yes, the two unconnected sides of the highway are due to the slope and trying to connect only at grid points. WmDOT is smart enough not to turn the two roads into one way if they can't be connected, but maybe I should move that check up and not built the second road if the two sides can't be connected... I'll give it some thought. If you see any other funny road connections and have a suggestion on how it should look, let me know.

The crash is actually a result of a bug in the ship pathfinder, which will take longer to root out. My guess is that it eventually timed out (it had been running for ~50 years) but it still didn't have a working path and so broke the AI. Fixing the ship pathfinder is high on my list of things to do, but surprisingly complicated.

And thanks again for your SuperLib!

_________________
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department


Top
   
PostPosted: Sun Apr 07, 2013 7:36 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Tue Apr 17, 2007 2:28 pm
Posts: 236
Error. It was trying to do something with Docks, but failed.


Attachments:
Unnamed, 1982-04-30.png [26.06 KiB]
Downloaded 12 times
wmdot v12 error.sav [404 KiB]
Downloaded 46 times
Top
   
PostPosted: Mon Apr 15, 2013 1:08 pm 
Offline
Engineer
Engineer

Joined: Thu Mar 28, 2013 1:30 pm
Posts: 38
WinDOT v12 crash. Has been running 1925 - 1947 just fine (went bankrupt once). Have no idea what it was trying to do.


Attachments:
WinDot v12 crash.PNG
WinDot v12 crash.PNG [ 17.98 KiB | Viewed 2551 times ]
Helemaal te gek BV.sav [1.83 MiB]
Downloaded 41 times
Top
   
PostPosted: Mon Jun 10, 2013 8:54 pm 
Offline
Engineer
Engineer

Joined: Wed Jan 19, 2005 10:34 am
Posts: 52
Location: Germany
Hi,

your AI runs first good and make good progress in conecting towns ... but then it crashes again and again with the same error ...
Picture from error and save game added...
I play HardGame version (actual) and many NewGFXs ...

Regards
R-TEAM


Attachments:
WmDOT.png [522.2 KiB]
Downloaded 8 times
No-Way Trans&Co AG, 16. Jul 1943.sav [1.17 MiB]
Downloaded 44 times
Top
   
PostPosted: Mon Nov 04, 2013 5:50 pm 
Offline
Engineer
Engineer

Joined: Sun Nov 03, 2013 9:29 am
Posts: 4
Good Day,

I recently started playing OTTD again, and on some suggestions got hold of GRF's and AI etc...

I am currently having a problem with wmDOT though :/

I have attached the crash report to this post. Any help would be great :mrgreen:


Attachments:
error.png [1.11 MiB]
Downloaded 7 times
Top
   
PostPosted: Mon Nov 04, 2013 8:01 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Mon Jun 09, 2003 6:21 pm
Posts: 4532
Location: /home/sweden
Did you download WmDOT via in-game content download?

If yes: then the BaNaNaS entry is missing correct dependency declaration. You can obtain version 2 of Queue.FibonacciHeap here: Queue.FibonacciHeap-2.tar.gz and manually put it in [OpenTTD]/ai/library/ (where [OpenTTD] is Documents\OpenTTD on windows or ~/.openttd in Linux)
If no: then download WmDOT with the in-game downloader so that you get all depnedency automatically. (or follow the "if yes" path above to obtain it manually)

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


Top
   
PostPosted: Tue Nov 05, 2013 5:17 pm 
Offline
Engineer
Engineer

Joined: Sun Nov 03, 2013 9:29 am
Posts: 4
Ok, got that error out of the way, now I have a new one :(


Attachments:
error.png [439.47 KiB]
Downloaded 8 times
Top
   
PostPosted: Tue Nov 05, 2013 5:20 pm 
Offline
OpenTTD Developer
OpenTTD Developer
User avatar

Joined: Wed Nov 07, 2007 10:44 pm
Posts: 9019
Location: Sol d
OmagaIII wrote:
Ok, got that error out of the way, now I have a new one :(


That will be very hard to follow-up for the author. If you look closely at your screenshot, you'll notice that the first line(s) of the error output are all truncated. But they contain the crucial information as to where the error occured. It will be much helpful, if you could produce (next time) more screenshots by scrolling the output so that the complete error output is visible.

_________________
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: Mon Nov 11, 2013 11:06 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Tue Feb 01, 2011 12:41 pm
Posts: 226
Thank you for your quick response, Zuu and Planetmaker.

OmagaIII: What Planetmaker says is true: without all of the error output, it is hard for me to know exactly what went wrong. I can guess that what's happened is that WmDOT tried to water path, timed out, and crashed, however. I have a few ideas on what to do about this, but have struggled to fix this. Do you have a copy of this game that you could upload to the Forums here so I can see the map and confirm my suspicions?

_________________
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department


Top
   
PostPosted: Thu Feb 20, 2014 8:27 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5857
Location: Eastern KY
Any idea why WmDOT would build dual carriageways like this?


Attachments:
wmdot.png
wmdot.png [ 38.91 KiB | Viewed 1913 times ]

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?
Top
   
PostPosted: Thu Feb 20, 2014 4:04 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Tue Feb 01, 2011 12:41 pm
Posts: 226
kamnet wrote:
Any idea why WmDOT would build dual carriageways like this?
The way WmDOT builds freeways (or dual carriageways, if you prefer) is it connects dots on an 8x8 grid. This reduces the clutter that long running WmDOT's were causing in earlier versions, but occasionally leaves odd stub ends like the one above. Depending on the town locations on the map, WmDOT might later extend the Freeway past this stub end.

_________________
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department


Top
   
PostPosted: Fri Feb 21, 2014 5:40 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5857
Location: Eastern KY
Sorry if I wasn't more clear, look at how the one-way roads are laid out.

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?


Top
   
PostPosted: Fri Feb 21, 2014 6:02 am 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Tue Feb 01, 2011 12:41 pm
Posts: 226
kamnet wrote:
look at how the one-way roads are laid out.
Well, if I guess wrong, tell me what you think is strange about it, and I'll try again.

The fact that there is a non-one way tile at the end of some (but not all) of the freeway links is due to the way that the AI can make one way roads: it must draw the 'one-way-ness' from one tile to an adjacent tile. (Unlike a human player that can draw one-way-ness on only one tile at a time if he wishes.) If both tiles can become one-way, then it works. If one tile can't become one-way, the process fails for both tiles. As well, the process doesn't 'make' a tile one-way, it just flips whether it is or not. WmDOT 'draws' one-way-ness down the full length of the freeway, one tile pair at a time, and you can see the result. This works well enough, in my opinion, to provide one-way-ness without having to explicitly deal with every crossroad and T-ing possibility, while preventing vehicles from going down the 'wrong side' of the freeway.

As for the fact that right/left orientation isn't maintained, it's because of the numbered tile grid: the one way road going 'up' the grid (i.e. the tile reference is getting smaller) is always the 'upper' row of the two freeway links.

_________________
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department


Top
   
PostPosted: Sun Feb 23, 2014 12:18 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 166
What I think Kemnet refers to is the fact that some parts of the dual carriageway are left-hand-side, and other parts are right-hand-side. That falls odd for me too. I have seen it a few times but always dismissed it as different AIs.

_________________
Skippern
OpenTTD Mac user


Top
   
PostPosted: Tue Feb 25, 2014 9:08 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Mon Sep 28, 2009 5:15 pm
Posts: 5857
Location: Eastern KY
skippern wrote:
What I think Kemnet refers to is the fact that some parts of the dual carriageway are left-hand-side, and other parts are right-hand-side. That falls odd for me too. I have seen it a few times but always dismissed it as different AIs.


Bingo, this be the one. I would think that maintaining one-way direction would be dependent on whether the player has set driving to the left- or right-side. You don't normally come to an intersection on a highway where the flow of traffic cris-crosses.

(Well, I take that back. You do find it on the diverging diamond interchange, but since OpenTTD cannot implement such designs, this is indeed bizarre to me.)

_________________
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Image

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | RoadTypes?


Top
   
PostPosted: Mon Mar 10, 2014 11:06 pm 
Offline
Traffic Manager
Traffic Manager
User avatar

Joined: Tue Feb 01, 2011 12:41 pm
Posts: 226
Version 13 of WmDOT is released! This fixes two bugs that were reported:
  • the ship pathfinder will no longer crash WmDOT if it times out
  • WmDOT will no longer crash by trying to buy a non-existent company
This release also aims to speed up the Ship Pathfinder.

@kamnet: diverging diamonds are all sorts of fun. Have you ever seen a Continuous Flow Intersection?

_________________
Alberta Town Names - 1500+ real names from 'Acme' to 'Zama City'
MinchinWeb's Random Town Name Generator - providing 2 million plus names...
WmDOT v13 - An AI that doubles as your highway department


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

All times are UTC


Who is online

Users browsing this forum: Google Adsense [Bot] 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-2017 phpBB Limited

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