![]() ![]() ![]() If I get a chance I'll have a look at the code tomorrow, maybe I can see something, but not very likely - yapf code makes my head spin. Anyway I think something like this is causing it to ignore a valid path of lower cost. Eg, something like, 'check tiles up to 28 tiles from the center of the station', when it should be checking maybe 32 tiles away, or something like that. Since it is not choosing a valid path with a lower cost, and this problem corrects if the station is made 2 platforms smaller, I suspect that maybe there is some code somewhere that causes it to not check for a path to the platform which it should be going to. I had to delete a piece of track to force it to chose the lower cost (correct) path, and print the cost for that path. I'm pretty certain this value is the cost for the path which yapf works out is best after being called at the branch. The path cost towards the top platform, where it should go is reported to be 2297, compared to the cost of the path it actually takes, 3497 (shown in screen shot I attached earlier). Looking at the yapf debug output you get running 'defeloper = 5','debug_level yapf=5' shows it takes the higher cost path instead of the lower cost one it should take. This script's is a bastardized config file r15471 made when I deleted the existing one, which I'm assuming sets everything to default values when it's run in console, as they are the values written to the config when it's created from scratch.Ģ. When I set them back to defaults (save attached), by executing 'defalut_settings.txt' (also attached) the problem still occurs. I don't think the settings are the cause for couple of reasons:ġ. It started in 1920, and under the very experienced stewardship of Sir Wal E. Loading it in unmodified r15471 produces the same behaviour. This save game demonstrates the many facets of the Canadian Trains Set it is a fully developed game with almost all of the Canadian engines and wagons in use. ![]() There were other places where trains didn't seem to taking the lowest cost route too, which I thought might perhaps be related to whether there were trains on the platforms, so I went back to a save with no trains, and looked with just one then found this.Īlso I was using copy and paste when I built this. After doing this, I still got the same behavior. I've got no idea why it works ok here.Īlso, I changed some of the pathfinder settings earlier in the save with the problem, but I don't think this is the cause cuz I ran a script to set everything to default made from a config file created after renaming my old one. I tried to reproduce this in a new game, but couldn't 'Big Station pathfinder bug - not reproduced.sav'. It seems to be related to the station size because reducing the size of the station by 2 platforms corrects it 'Big station pathfinder bug - station smaller, ok.sav'. I'm pretty sure that the top station has a lower path cost from looking at the yapf debug. which behave similar to OpenTTD/Factorio signaling (which is based on how. Platforms and non-track tiles are included that display the amount of cargo waiting at the station.In the attached save 'Big station pathfinder bug w problem.sav' there is 1 train running which should go to the top platform of the station, but instead it choses to go to one further away (pls see attached screenie). Signal are setup such that the train leaving station 2 will wait at the same. ![]() Features include animation of the various cranes etc. It includes support for the standard TTD industries plus many of the additional industry GRFs. Industrial Stations Renewal is a set of stations with facilities suitable for freight cargo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |