IRC logs for #openttd on OFTC at 2018-08-31
            
00:29:21 *** frosch123 has quit IRC
00:31:08 *** Laedek_ has joined #openttd
00:37:08 *** Laedek has quit IRC
01:00:56 *** Thedarkb-X40 has quit IRC
01:23:18 *** GroovyNoodle has quit IRC
01:27:14 *** snail_UES_ has joined #openttd
02:04:17 *** Supercheese has quit IRC
02:32:19 *** Supercheese has joined #openttd
02:41:28 *** wodencafe has quit IRC
03:11:33 *** rocky113844 has quit IRC
03:27:56 *** WWacko1976-work has joined #openttd
03:57:42 *** Flygon has joined #openttd
04:04:52 *** glx has quit IRC
04:07:50 *** Samu has quit IRC
04:28:07 *** Supercheese has quit IRC
04:28:29 *** Supercheese has joined #openttd
04:50:15 *** Supercheese has quit IRC
04:50:37 *** Supercheese has joined #openttd
05:17:41 *** chomwitt has quit IRC
05:32:19 *** KouDy has quit IRC
05:44:12 *** haudrauf has quit IRC
05:47:25 *** haudrauf has joined #openttd
05:50:14 *** Extrems has quit IRC
05:54:40 *** rocky113844 has joined #openttd
05:54:57 *** Extrems has joined #openttd
06:14:18 *** rocky1138 has joined #openttd
06:57:23 *** greeter has quit IRC
07:04:15 *** sim-al2 is now known as Guest2123
07:04:15 *** sim-al2 has joined #openttd
07:10:24 *** Guest2123 has quit IRC
07:14:58 *** Mahjong1 has joined #openttd
07:19:55 *** Mahjong has quit IRC
07:20:48 *** greeter has joined #openttd
07:33:41 *** snail_UES_ has quit IRC
07:37:47 *** snail_UES_ has joined #openttd
08:01:51 *** rocky113844 has quit IRC
08:31:26 *** snail_UES_ has quit IRC
08:40:52 *** sla_ro|master has joined #openttd
08:52:41 *** KouDy has joined #openttd
09:20:24 *** Supercheese has quit IRC
09:20:45 *** Supercheese has joined #openttd
09:33:34 *** nielsm has joined #openttd
09:41:36 *** nielsm has quit IRC
09:44:00 *** nielsm has joined #openttd
09:46:56 <nielsm> back from vacation
10:06:02 *** Supercheese has quit IRC
10:27:26 *** sla_ro|master has quit IRC
11:25:36 *** Wolf01 has joined #openttd
11:26:12 <Wolf01> o/
11:37:47 *** Samu has joined #openttd
11:43:02 <Wolf01> https://img-9gag-fun.9cache.com/photo/aW1rXKq_460s.jpg /me looking at steam library: nothing to play
11:51:38 <peter1138> IKR
11:57:50 <Sacro> Play some TTDPatch
11:57:54 <Sacro> It's the best
12:11:53 <Wolf01> I have Simutrans on steam :P
12:16:05 *** Wacko1976 has joined #openttd
12:16:05 <Wolf01> Time to see if I can reduce road traffic some more... already low traffic on a 120k inhabitants city :P
12:17:37 <Sacro> cities skylines?
12:17:41 <Wolf01> Yup
12:17:49 <Sacro> I have too many mods to get that big a city easily
12:18:14 <Wolf01> I only use road anarchy, traffic manager and move it!
12:24:05 <peter1138> I have it but have never played it.
12:24:14 <peter1138> Stupid Steam sales :/
12:24:23 <Wolf01> :D
12:28:42 <Wolf01> I have a weird crossing, 3 lanes highway coming in, 2 lanes coming out (one way) and a right bidirectional road, right lane forced to go right, central lane and left lane should go straight, only central lane used, wtf?
12:32:19 <Wolf01> https://imgur.com/a/ArGBxs1
12:40:44 <Wolf01> Ok, I think I should disallow to switch lanes on the part under the chirper, that's where things are strange
12:44:27 <Samu> why isn't the pathfinder failing?
12:46:12 <Sacro> Wolf01: oh man, I have realistic building capacitices, some mods for public transport, better daylenth with realistiic traffic patterns
12:46:21 <Wolf01> :o
12:46:23 <Samu> https://imgur.com/eIAvv8x
12:46:28 <Samu> look
12:46:45 <Samu> the pathfinder should be trying to connect from the station tile to the center of town and fail
12:46:49 <Samu> but it didn't fail, why!
12:49:42 <Samu> the pathfinder code is a library, i don't feel like editing it :(
12:53:48 <Samu> sec
12:54:04 <Samu> import("pathfinder.road", "RoadPathFinder", 3);
12:54:25 <Samu> there's a new version, what happens if I change to version 4?
12:54:32 <Samu> 4.1
12:55:40 <peter1138> Try it
12:56:57 *** wodencafe has joined #openttd
12:57:14 <Samu> ok ok
12:57:31 *** wodencafe has quit IRC
12:57:40 *** wodencafe has joined #openttd
13:10:08 <Samu> nop, does the same thing
13:17:56 <Samu> i must be failing somewhere :(
13:18:17 <Samu> or the pathfinder is? unlikely
13:21:05 *** cboyd_ has joined #openttd
13:25:13 *** wodencafe has quit IRC
13:33:14 <Samu> the bug is not on the pathfinder
13:33:36 <Samu> apparently path == false isn't happening
13:33:39 <Samu> why
13:33:56 <Samu> but the pathfinder returns no tiles at all
13:35:23 <Samu> * @return A route if one was found, or false if the amount of iterations was * reached, or null if no path was found.
13:35:32 <Samu> i see
13:35:54 <Samu> LuDiAI isn't dealing with null at all
13:36:03 *** KouDy has quit IRC
13:37:18 <Samu> if (path == false || path == null) {
13:37:20 <Samu> retrying
13:43:18 <Samu> problem solved!
13:43:21 <Samu> that was it
13:47:02 *** roidal has joined #openttd
14:34:21 <Wolf01> https://steamcommunity.com/sharedfiles/filedetails/?id=657851085&searchtext=road HA!
14:44:06 <peter1138> Maybe I should play it.
14:44:17 <peter1138> Samu, yeah, generally null is not false.
14:44:24 <peter1138> 12:17 < Samu> i must be failing somewhere :(
14:44:34 <peter1138> At least that was correct.
14:45:35 <Samu> that wasn't my code
14:45:47 <Samu> it was how LuDiAI had it
14:57:45 *** snail_UES_ has joined #openttd
15:15:17 *** KouDy has joined #openttd
15:19:36 *** KouDy has quit IRC
15:24:43 *** snail_UES_ has quit IRC
15:27:14 *** sim-al2 has quit IRC
15:38:16 *** KouDy has joined #openttd
15:46:42 *** Gja has joined #openttd
16:08:51 *** sla_ro|master has joined #openttd
16:11:58 *** Gja has quit IRC
16:30:16 *** frosch123 has joined #openttd
16:34:49 *** KouDy has quit IRC
16:56:23 *** Maraxus has joined #openttd
17:00:08 *** chomwitt has joined #openttd
17:00:23 *** Maraxus has quit IRC
17:12:05 *** chomwitt has quit IRC
17:34:16 *** WWacko1976-work has quit IRC
17:42:58 <Samu> arff, the more I fix issues, the more I get
17:43:30 *** gelignite has joined #openttd
17:57:31 *** Progman has joined #openttd
18:00:45 *** Stimrol has quit IRC
18:14:08 *** HerzogDeXtEr has joined #openttd
18:16:02 <acklen> stepping on a bug just means you have to clean your shoe
18:23:30 *** Wacko1976 has quit IRC
18:23:31 <Samu> I just realized something
18:23:48 <Samu> LuDiAI could make a great cargodistAI
18:24:02 <Samu> it joins airports with bus stations
18:24:09 <Samu> and vice-versa
18:24:21 <Samu> and it connects almost everytown
18:24:49 <Samu> almost everything is linked one way or another
18:25:20 <Samu> gotta take a look how it behaves with cargodist, brb
18:36:20 *** Kid_ has joined #openttd
18:39:00 *** Kid_ has quit IRC
18:47:59 *** Supercheese has joined #openttd
18:56:17 *** KouDy has joined #openttd
19:00:04 *** Gja has joined #openttd
19:05:41 *** Flygon has quit IRC
19:26:21 <Wolf01> https://www.youtube.com/watch?v=jDDDglIKrM4 oh wait, it's not a steamer
19:42:29 *** Wormnest has joined #openttd
19:43:44 *** gelignite has quit IRC
19:49:41 *** KouDy has quit IRC
19:59:26 *** glx has joined #openttd
19:59:26 *** ChanServ sets mode: +v glx
20:06:50 *** tokai has joined #openttd
20:06:50 *** ChanServ sets mode: +v tokai
20:10:38 *** Happpy has joined #openttd
20:10:51 *** Happpy has left #openttd
20:13:46 *** tokai|noir has quit IRC
20:18:32 <Samu> AIStation::GetCargoWaitingVia gonna try use this function for the first time :p
20:18:40 <TrueBrain> SpComb: well, it took 6 weeks, and me asking for a status update twice, for GCP to get back to me. It was a very clear no, in regards to them sponsoring OpenTTD on GCP .. it went as far as that I got told: "we are a paid service, of course you have to pay us" .. it was a bit weird conversation .. the first call suggested the sky, the second call said, paraphrasing, that there was never any chance .. weird. But so sadly, GCP is a no :( Means I have
20:18:41 <TrueBrain> to setup k8s myself ..... UGH :P Your tooling is still Ubuntu only, I guess? :P
20:25:41 <SpComb> TrueBrain: pity, but I suppose they do need to make money eventually
20:25:59 <TrueBrain> yeah ... they could have told me 6 weeks ago :P
20:26:27 <TrueBrain> at least they responded .. AWS never did :P
20:26:30 <SpComb> and yes, I haven't really heard of any widespread interest or plans for Debian support
20:26:57 <TrueBrain> too bad; still cant believe people use Ubuntu for production-work .. still feels weird :P (I have the same issue at work :D)
20:28:13 <TrueBrain> (which possibly makes me the weird one :D)
20:29:54 <TrueBrain> now the main question is, what is best for OpenTTD to do ..
20:41:00 <TrueBrain> anyone experience with DigitalOcean btw? Always a name that flows by, but I never looked into it :D
20:41:22 *** Wacko1976 has joined #openttd
20:41:39 <SpComb> DO is very simple and clean, you get a basic VPS that works without the complexities of AWS
20:41:56 <SpComb> they've expended their services recently to block storage, LBs and DNS as well... no experiences with those
20:42:03 <SpComb> their prices are competive, although not as cheap as hetzner
20:42:11 <SpComb> their ansible/terraform support is decent
20:42:21 <TrueBrain> OpenTTD mostly needs something like k8s, and a CDN
20:43:54 <Samu> if AICargo.GetCargoDistributionType(cargo_id) == AICargo.DT_MANUAL, then all waiting cargo will have STATION_INVALID as next hop.
20:44:00 <Samu> bah, that would only complicate things
20:44:20 <TrueBrain> tnx SpComb; guess I can always drop them an email :)
20:44:24 <Samu> https://noai.openttd.org/api/trunk/classAIStation.html#26afd9c612e1e1b1bb33c5896fa76feb
20:44:30 <Samu> talking about that Note
20:44:46 <Samu> it would be nice if it could return 0
20:45:17 <Samu> that way I can sum "via anystation" with "via the station I want"
20:48:48 <Samu> local cargo_waiting_via_other_station = AICargo.GetCargoDistributionType(this.cargoId) == AICargo.DT_MANUAL ? 0 : AIStation.GetCargoWaitingVia(i, other_station, this.cargoId);
20:48:52 <Samu> should do
20:50:57 <Samu> local cargo_waiting_via_any_station = AIStation.GetCargoWaitingVia(i, AIStation.STATION_INVALID, this.cargoId);
20:51:27 <Samu> if (cargo_waiting_via_other_station + cargo_waiting_via_any_station < engine_capacity) continue;
20:55:22 *** sla_ro|master has quit IRC
20:58:45 *** Wacko1976_ has joined #openttd
21:00:37 <Samu> GetCargoDistributionType does not exist
21:00:47 <Samu> it's GetDistributionType
21:00:54 *** sla_ro|master has joined #openttd
21:01:07 <Samu> https://noai.openttd.org/api/trunk/classAICargo.html#d8077e1e1ccea2b0a04d403cd8fa536f
21:01:13 <Samu> who can fix documentation?
21:01:41 *** Wacko1976 has quit IRC
21:05:40 <Samu> https://github.com/OpenTTD/OpenTTD/blob/master/src/script/api/script_station.hpp#L111 here
21:08:53 <TrueBrain> so I guess the answer is: you can!
21:09:24 <Samu> I can't, i dont have account there
21:09:26 <glx> the doc is in the source, just submit a PR
21:09:50 <TrueBrain> if only there was a button to create an account .......
21:10:40 <Samu> I rather not, I'm unfamiliar with that kind of websites
21:10:44 <Samu> worksites
21:11:02 <TrueBrain> so you rather make others do the work; seems unfair :)
21:11:39 <Samu> yes, please
21:18:16 *** KouDy has joined #openttd
21:20:29 <TrueBrain> you say please to 'unfair'. Seems unreasonable
21:25:52 <Samu> there's also STATION_INVALID missing in the enum
21:26:15 *** sla_ro|master has quit IRC
21:45:39 <Samu> just made LuDiAI cargodist aware
21:45:48 <Samu> let's see how does it improve
21:50:59 *** KouDy has quit IRC
21:58:30 <Samu> honestly expected better, but it's not mass selling vehicles anymore, that's a good sign
21:59:29 *** KouDy has joined #openttd
22:00:10 <Samu> well it's mass selling old aged vehicles, so that's ok
22:00:19 <Samu> it's not due to bad profits
22:02:51 <Samu> many greenish links, few red links
22:03:01 *** nielsm has quit IRC
22:03:31 <Samu> I can say the AI is doing good with cargodist
22:03:39 <Samu> really cool
22:08:40 *** KouDy has quit IRC
22:12:10 *** Wacko1976_ has quit IRC
22:33:01 *** sim-al2 has joined #openttd
22:43:08 *** roidal has quit IRC
22:57:30 *** andythenorth has joined #openttd
22:57:39 <andythenorth> 3 mins
22:58:48 <Wolf01> o/
23:00:36 <andythenorth> TrueBrain: I think we’re hosting on DO in Canada, but I can’t give any useful info :p
23:01:24 <andythenorth> but if you find a decent cloud host with territorial locations in all commonwealth countries & USA & EU, let me know :p
23:02:24 <andythenorth> territorial integrity smacks me a lot, the New Zealand hosting market is not good
23:09:33 *** KouDy has joined #openttd
23:12:13 <andythenorth> also it’s time for bed
23:12:16 *** andythenorth has quit IRC
23:16:31 *** KouDy has quit IRC
23:25:25 <Samu> how do AIs upgrade bridges?
23:25:48 <Samu> they have to demolish it?
23:25:59 <Samu> and rebuild the upgraded version?
23:44:48 <glx> same as human players
23:47:32 <Samu> i guess they can't
23:47:53 <Samu> https://noai.openttd.org/api/trunk/classAIBridge.html
23:49:01 <Samu> AIRoad.BuildRoad(path.GetTile(), par.GetTile()
23:49:06 <Samu> hmm this is
23:49:24 <Samu> returning ERR_ALREADY_BUILT
23:49:29 <Samu> on a bridge tile :(
23:50:34 <Samu> ah, i see
23:50:36 <Samu> why
23:50:57 <Samu> it auto-completes the road
23:51:12 <Samu> that's handy for human players, not quite for the AI
23:53:07 <Samu> how do I make the AI build a road towards a bridge tile without connecting to the bridge?
23:53:28 <Samu> say, tile 1 > 2 > 3
23:53:32 <Samu> 3 is bridge ramp
23:53:43 <Samu> it builds from 1 to 2
23:53:51 <Samu> but it automatically connects 2 to 3
23:54:00 <Samu> i don't want it to auto connect 2 to 3, what can I do?
23:54:36 <Samu> otherwise, I have no means to detect a bridge :(
23:54:50 <Samu> inside the pathfinder array, that is