RoadPathfinder
Moderator: OpenTTD Developers
RoadPathfinder
I'm having problems with RoadPathfinder... it doesn't find paths that obviously exist:
Am I doing something wrong here?
Here's the pathfinding part of my AI: http://pastebin.ca/1462214
Am I doing something wrong here?
Here's the pathfinding part of my AI: http://pastebin.ca/1462214
Re: RoadPathfinder
Did you call AIRoad.SetCurrentRoadType before?
Re: RoadPathfinder
No. Doing so doesn't seem to make any difference thoughYexo wrote:Did you call AIRoad.SetCurrentRoadType before?
Re: RoadPathfinder
Can you upload your complete AI? Or in case you don't want to make it public yet, send it to me via pm?
Re: RoadPathfinder
Here: http://solidfiles.com/d/T1uyYexo wrote:Can you upload your complete AI? Or in case you don't want to make it public yet, send it to me via pm?
Re: RoadPathfinder
In all games I've tried running it, it build one route succesfully, then crashed. Do you still have that savegame were it failed to find a route?
Re: RoadPathfinder
http://solidfiles.com/d/TAyM
Seems to be working now... I think I was sending invalid tiles to the pathfinder.
Seems to be working now... I think I was sending invalid tiles to the pathfinder.
Re: RoadPathfinder
Nice to hear it works now. And I'm glad we can look forward to having another AI for OpenTTD Good luck with further coding
Ps. You can upload files to this forum, that prevents other from going to 3rdparty download sites to your savegame/ai/screenshot.
Ps. You can upload files to this forum, that prevents other from going to 3rdparty download sites to your savegame/ai/screenshot.
Who is online
Users browsing this forum: No registered users and 20 guests