IRC logs for #openttd on OFTC at 2018-12-17
            
00:17:11 *** Thedarkb1-T60 has joined #openttd
00:55:39 *** Wacko1976_ has quit IRC
00:56:29 *** jinks has joined #openttd
01:15:44 *** Thedarkb1-T60 has quit IRC
01:17:53 *** Thedarkb1-T60 has joined #openttd
01:22:30 *** APTX_ has joined #openttd
01:30:39 *** APTX_ has quit IRC
01:33:05 *** APTX_ has joined #openttd
01:39:40 *** APTX_ has quit IRC
01:39:41 *** APTX_ has joined #openttd
01:59:09 *** APTX_ has quit IRC
02:26:55 *** APTX_ has joined #openttd
02:35:59 *** APTX_ has quit IRC
03:09:23 *** APTX_ has joined #openttd
03:18:54 *** APTX_ has quit IRC
03:20:29 *** Thedarkb1-T60 has quit IRC
03:31:39 *** APTX_ has joined #openttd
03:43:39 *** APTX_ has quit IRC
03:47:44 *** APTX_ has joined #openttd
03:56:28 *** APTX_ has quit IRC
03:57:12 *** APTX_ has joined #openttd
04:00:52 *** APTX_ has quit IRC
04:01:47 *** APTX_ has joined #openttd
04:04:22 *** APTX| has joined #openttd
04:04:22 *** APTX_ has quit IRC
04:29:29 *** APTX_ has joined #openttd
04:29:54 *** APTX| has quit IRC
04:49:18 *** APTX_ has quit IRC
04:59:05 *** APTX_ has joined #openttd
05:07:56 *** APTX| has joined #openttd
05:08:34 *** APTX_ has quit IRC
05:19:19 *** APTX| has quit IRC
05:20:19 *** APTX_ has joined #openttd
05:23:26 *** glx has quit IRC
05:29:19 *** APTX_ has quit IRC
05:29:26 *** APTX_ has joined #openttd
05:37:18 *** APTX| has joined #openttd
05:37:20 *** APTX_ has quit IRC
05:39:23 *** APTX_ has joined #openttd
05:39:37 *** APTX| has quit IRC
05:47:49 *** APTX_ has quit IRC
05:49:16 *** HerzogDeXtEr has joined #openttd
05:55:44 *** HerzogDeXtEr1 has quit IRC
05:56:00 *** APTX_ has joined #openttd
06:03:56 *** APTX| has joined #openttd
06:04:34 *** APTX_ has quit IRC
06:14:40 *** APTX_ has joined #openttd
06:16:21 *** APTX| has quit IRC
06:21:09 *** HerzogDeXtEr has quit IRC
06:22:32 *** APTX| has joined #openttd
06:25:14 *** APTX_ has quit IRC
06:43:04 *** APTX| has quit IRC
07:01:59 *** Wacko1976 has joined #openttd
07:32:00 *** Wacko1976 has quit IRC
07:58:55 *** APTX_ has joined #openttd
08:16:54 *** APTX_ has quit IRC
08:18:50 *** Progman has joined #openttd
09:00:06 *** APTX_ has joined #openttd
09:09:39 *** APTX_ has quit IRC
09:44:08 <dihedral> morning
09:50:44 <planetmaker> moin
10:24:59 *** Fuco has joined #openttd
10:55:03 *** WWacko1976-work has joined #openttd
11:27:02 *** APTX_ has joined #openttd
11:38:04 *** APTX_ has quit IRC
11:40:32 *** APTX_ has joined #openttd
11:49:58 *** APTX_ has quit IRC
11:51:02 *** APTX_ has joined #openttd
11:59:09 *** APTX_ has quit IRC
12:02:37 *** APTX_ has joined #openttd
12:17:39 *** APTX_ has quit IRC
12:20:22 *** APTX_ has joined #openttd
12:57:24 *** APTX_ has quit IRC
13:32:13 *** APTX_ has joined #openttd
13:41:23 *** APTX| has joined #openttd
13:41:35 *** APTX_ has quit IRC
13:44:34 *** Wacko1976-work has joined #openttd
13:46:28 *** WWacko1976-work has quit IRC
13:54:24 *** APTX| has quit IRC
14:02:35 *** APTX_ has joined #openttd
14:02:59 *** Flygon has quit IRC
14:07:24 *** urdh has quit IRC
14:08:19 *** HerzogDeXtEr has joined #openttd
14:08:36 *** urdh has joined #openttd
14:13:59 *** Fuco has quit IRC
14:16:40 *** APTX_ has quit IRC
14:17:27 *** APTX_ has joined #openttd
14:51:20 *** chomwitt has joined #openttd
15:01:59 *** APTX_ has quit IRC
15:24:50 *** sla_ro|master has joined #openttd
15:35:32 *** Gustavo6056 has joined #openttd
15:40:14 *** Gustavo6046 has quit IRC
15:40:14 *** Gustavo6056 is now known as Gustavo6046
16:02:55 *** nielsm has joined #openttd
16:28:16 <nielsm> I thought about the azure CI in the shower this morning and realized, I think it's making a detached HEAD checkout which explains why the builds have no branch name detected
16:50:31 *** Gja has joined #openttd
16:52:32 *** Wormnest has joined #openttd
16:52:44 *** APTX_ has joined #openttd
17:00:55 *** APTX| has joined #openttd
17:01:22 *** APTX_ has quit IRC
17:03:41 *** lugo has joined #openttd
17:04:18 *** APTX| has quit IRC
17:04:38 *** APTX_ has joined #openttd
17:09:11 *** APTX_ has quit IRC
17:09:56 *** APTX_ has joined #openttd
17:16:47 *** Wacko1976-work has quit IRC
17:28:17 *** tokai|noir has joined #openttd
17:28:17 *** ChanServ sets mode: +v tokai|noir
17:35:09 *** tokai has quit IRC
17:39:36 *** APTX_ has quit IRC
17:40:09 *** APTX_ has joined #openttd
17:50:21 *** Samu has joined #openttd
17:50:24 <Samu> hi
17:55:55 <LordAro> nielsm: interesting
17:56:21 <LordAro> istr planetmaker doing some workaround with nml to do with that
17:56:48 <LordAro> though that doesn't really help when you're trying to build a specific branch
17:57:34 *** Thedarkb1-T60 has joined #openttd
18:01:58 <nielsm> they do provide a build variable specifying the target branch name, but it's as a refs/ path so needs some munging
18:02:18 <LordAro> that's disappointing
18:03:03 <LordAro> but i guess it only matters for "provided builds", which wouldn't be using the normal revision number anyway (tag, nightly, etc)
18:04:19 <planetmaker> hm?
18:04:27 <nielsm> https://0x0.st/skyu.png
18:05:06 <LordAro> nielsm: tags not mentioned...
18:05:27 <nielsm> will have to experiment for those
18:05:33 <LordAro> https://github.com/OpenTTD/nml/commit/de7bdc34a471654f080c032cef58f696e3dd834e this is what i was referring to
18:05:37 <planetmaker> I haven't actually managed that yet, @ LordAro
18:06:53 <planetmaker> though... there's some version detection in that repo, yes. But no builds yet
18:14:08 *** Thedarkb1-T60 has quit IRC
18:14:20 *** acklen has joined #openttd
18:20:07 *** Thedarkb1-T60 has joined #openttd
18:20:17 *** chomwitt has quit IRC
18:21:51 <Samu> where is server 7 ST2 ?
18:22:14 <ST2> died
18:22:16 <ST2> gimme a sec
18:22:50 <Samu> that server doesn't like to serv
18:22:52 <Samu> e
18:27:02 *** Eddi|zuHause2 has joined #openttd
18:32:39 *** Eddi|zuHause has quit IRC
18:39:00 *** glx has joined #openttd
18:39:00 *** ChanServ sets mode: +v glx
18:52:40 *** Thedarkb1-T60 has quit IRC
18:53:01 *** Thedarkb1-T60 has joined #openttd
18:55:27 <planetmaker> LordAro, nielsm but it was my impression, that you need to give the revision you want to build the the CI. So possibly give the branchname via the hook from the repo to the CI
18:58:17 <nielsm> the automatic github integration gets the revision to build
18:59:02 <nielsm> yeah, it doesn't check out the named revision but the hash
18:59:03 <nielsm> git checkout --progress --force 212d1f59cf4e154eb0a56ef79c2bfb53bdb807e5
19:00:23 <nielsm> so we'd have to consume $(Build.SourceBranch) somehow and stuff it into .ottdrev for the build
19:05:15 <planetmaker> dunno how that works with the envisioned system
19:06:23 <planetmaker> for DevZone it works like: the incoming hook analyses the incoming commits. And it knows their branch, and hash. And it tells Jenkins the hash to build. And also gives the branch and / or tag name. So nothing to analyse for the CI - it just gets the version info fed - if it doesn't get the whole repo
19:07:24 <nielsm> I already have a working proof of concept, the entire build works (on windows and linux), it's just that the generated binaries don't have the branch name in the revision string
19:09:29 <planetmaker> I haven't managed to find enough time for the github webhooks. Doesn't it know the branch(es) the changesets belong to?
19:09:36 <planetmaker> Then it could simply communicate them
19:09:41 <nielsm> yes it does
19:09:59 <nielsm> but azure pipelines' github integration does not use the branch name when checking out the sources
19:10:14 <nielsm> so the git checkout is left as a detached HEAD
19:10:24 <nielsm> meaning our method of detecting the current branch name fails
19:10:51 <planetmaker> yep
19:13:01 <nielsm> right now I'm still trying to figure out why the mac build fails so badly, pkg-config simply doesn't pick up on anything
19:13:43 <nielsm> actually, maybe the problem is that pkg-config itself is not found
19:13:45 <nielsm> ........
19:14:09 <nielsm> I think perhaps configure should complain if pkg-config does not exist
19:14:21 <nielsm> (or rather, can not run)
19:14:58 <planetmaker> it should tell so, I guess
19:15:23 <nielsm> config.log says:
19:15:26 <nielsm> executing pkg-config zlib --modversion
19:15:26 <nielsm> returned
19:15:26 <nielsm> exit code 127
19:15:42 <nielsm> and exit code 127 matches with "command not found"
19:20:36 *** frosch123 has joined #openttd
19:26:56 <nielsm> ahh
19:26:57 <nielsm> 2018-12-17T18:22:57.9268440Z checking zlib... found
19:26:57 <nielsm> 2018-12-17T18:22:57.9612610Z checking liblzma... found
19:26:57 <nielsm> 2018-12-17T18:22:57.9746510Z checking lzo2... found
19:29:00 <nielsm> to think it was something so stupid, pkg-config itself missing...
19:29:39 *** APTX_ has quit IRC
19:30:00 *** Wolf01 has joined #openttd
19:30:05 <Wolf01> o/
19:34:18 *** APTX_ has joined #openttd
19:34:30 <nielsm> one more time...
19:35:12 <nielsm> HOMEBREW_NO_AUTO_UPDATE=1 certainly shaves some time off
19:36:58 <nielsm> and the machines have two vcpus, make -j2 should also shave some time off
19:41:16 <LordAro> nielsm: hahaha
19:42:27 <nielsm> https://dev.azure.com/jiifurusu/OpenTTD%20test/_build/results?buildId=51
19:42:31 <nielsm> tadaa
19:42:49 *** Wormnest has quit IRC
19:42:55 *** andythenorth has joined #openttd
19:43:07 <nielsm> hi andythenorth
19:43:25 <andythenorth> hi
19:43:25 <nielsm> can you test this? https://dev.azure.com/jiifurusu/7cc55f9b-edc5-4fc9-9ab1-dd588b740de7/_apis/build/builds/51/artifacts?artifactName=macOS&fileId=1E35D9F99F3BAF8AC846AB6D4EF0AABF0BB9C5D2811289B0E2B2893B18DABC7802&fileName=OpenTTD-macOS.a6e4bf5de337cfcc126a317ef145dec43f3166fe.51.zip&api-version=5.0-preview.3
19:43:31 <nielsm> if the link works
19:44:17 <andythenorth> google chrome warns me it's malware :P
19:44:19 <andythenorth> thanks chrome
19:44:21 <andythenorth> not
19:44:47 <nielsm> yes, I've added code that will hypnotize you and force you to paint pixels
19:45:07 <andythenorth> nielsm: are you actually nielsm? :P
19:45:13 <andythenorth> and not a sock puppet?
19:47:27 <andythenorth> nielsm: runs, loads a savegame
19:47:31 <nielsm> awesome
19:47:45 <nielsm> what version name does the main menu show?
19:48:03 <andythenorth> 20181217
19:48:07 <andythenorth> and the rev
19:48:20 <nielsm> so no branch name, as I suspected
19:48:27 <nielsm> probably two dashes between date and rev
19:48:44 <andythenorth> yes
19:49:25 <andythenorth> hash is ga6e4bf5d
19:52:25 <planetmaker> <nielsm> yes, I've added code that will hypnotize you and force you to paint pixels <-- then 'malware' definitely is a matter of perspective :P
19:54:48 <nielsm> ah yeah, building is much faster with -j2, worth keeping
19:57:23 *** APTX_ has quit IRC
19:57:28 *** APTX_ has joined #openttd
20:02:38 *** gelignite has joined #openttd
20:04:11 *** APTX_ has quit IRC
20:05:03 *** APTX_ has joined #openttd
20:12:03 *** APTX| has joined #openttd
20:13:14 *** APTX_ has quit IRC
20:20:14 *** APTX| has quit IRC
20:31:39 <andythenorth> wow
20:31:49 <andythenorth> what goes on in the OpenTTD main menu screen?
20:32:05 <andythenorth> that test build just killed my battery in 30 minutes
20:32:12 <andythenorth> 75% CPU use
20:33:07 <andythenorth> I have two other openttd instances running, paused, at about 7%
20:34:08 <planetmaker> well... game running, one core not throttled?
20:34:36 *** Wolf01 has quit IRC
20:35:02 *** Wolf01 has joined #openttd
20:35:40 <andythenorth> if I unpause the running game in the other instances it's 50%-75%
20:35:57 <planetmaker> it depends on the actual save, ofc
20:36:19 * andythenorth remembers when ottd used to take 30% on a core 2 duo :P
20:36:31 <Wolf01> Mmmh, started netflix, starved the bandwidth
20:42:56 <planetmaker> 8461 planetm+ 20 0 2932192 113676 23752 S 16,6 1,4 0:12.29 openttd
20:42:56 <planetmaker> ... 16% for my titlegame
20:43:39 <planetmaker> model name : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
20:44:02 <planetmaker> but harder to empty my mains "battery" :P
20:52:14 <andythenorth> you have quite a lot more CPU there :P
20:54:49 *** Wacko1976 has joined #openttd
20:57:35 *** Gustavo6046 has quit IRC
20:58:05 *** Gustavo6046 has joined #openttd
21:00:10 *** Gustavo6046 has quit IRC
21:00:43 *** Gustavo6046 has joined #openttd
21:03:55 <planetmaker> old CPU... 5 years at least
21:06:35 <nielsm> ad it's still perfectly adequate for most desktop usage
21:06:45 <nielsm> maybe a little slow for the latest games
21:06:48 <planetmaker> yep. And also for the games I play
21:06:56 <planetmaker> I don't play the "latest" ego-shooters
21:06:58 *** Wormnest has joined #openttd
21:07:19 <planetmaker> but works also for stuff like stellaris or pillars of eternity
21:07:36 <planetmaker> and ofc OpenTTD :)
21:19:00 *** Thedarkb1-T60 has quit IRC
21:19:21 *** Thedarkb1-T60 has joined #openttd
21:29:00 <DorpsGek_II> [OpenTTD/OpenTTD] Wilma456 commented on issue #6943: Music doesn't works https://git.io/fpxWc
21:29:02 <DorpsGek_II> [OpenTTD/OpenTTD] Wilma456 closed issue #6943: Music doesn't works https://git.io/fxPfk
21:57:19 *** sla_ro|master has quit IRC
22:02:11 <frosch123> we should start a competition
22:02:40 <frosch123> find a reasonable case to use the spaceship operator in the desaster code
22:03:04 <planetmaker> spaceship operator?
22:03:12 <frosch123> <=>
22:03:27 <frosch123> returns lower/equal/larger instead of true or false
22:03:40 <frosch123> c++20
22:03:52 <planetmaker> 3-state logic?
22:04:44 <frosch123> it when comparing two values is more expensive than comparing the result of <=> with the constants
22:04:59 <frosch123> you can compare two string using <=> and then switch on the result
22:05:06 <LordAro> haha
22:05:07 <frosch123> like strcmp in C,
22:05:29 <planetmaker> inventing new disasters :)
22:06:47 <frosch123> btw, my ottd-playing coworker was quite upset about the usage of ottd in the msvc cppcon talk
22:07:05 <planetmaker> in your talk about that or which?
22:07:16 <planetmaker> and why be mad about it? :)
22:07:27 <frosch123> did you see the talk?
22:07:31 <planetmaker> nope
22:07:38 <planetmaker> got a link
22:07:39 <planetmaker> ?
22:07:52 <frosch123> basically msvc people wanted to showcase their new debugging features
22:08:02 <planetmaker> ah
22:08:08 <frosch123> but their 5-line testcases did not look fancy enough
22:08:32 <frosch123> so they took a random open source project (guess which) and pasted their 5 lines into some place where they looked nice
22:08:43 <planetmaker> hehe
22:08:58 <frosch123> my coworker meant that would make ottd look bad, as if it were our bugs
22:10:16 <frosch123> planetmaker: https://youtu.be/6NAAuxWNhk4?t=2148
22:10:25 <frosch123> don't bother to watch the complete talk
22:10:31 <frosch123> it's exceptionally boring
22:11:29 <planetmaker> ty
22:11:35 <frosch123> the entertaining part is how they faked their 5 line unit tests into a fancy demo
22:11:48 <frosch123> while none of the regular viewers notice :)
22:12:00 <LordAro> well, why would they?
22:12:56 <frosch123> planetmaker: actually, the most entertaining part is when they debug strgen :)
22:13:07 <planetmaker> :D that sounds fun
22:13:18 <planetmaker> *watches*
22:13:24 <frosch123> first time someone patches strgen :)
22:13:39 <planetmaker> did we incorporate the patches already, did they send PRs?
22:13:51 <LordAro> lol
22:13:57 <planetmaker> :P
22:14:20 <planetmaker> The debugging feature explained on ottd code looks good, though
22:14:51 <frosch123> should we link it from the "how to compile ottd on msvc" page?
22:15:07 <planetmaker> might not be a bad idea, tbh
22:15:15 <frosch123> i think it is :p
22:15:24 <planetmaker> :)
22:15:37 <frosch123> but you can link it to the next manager
22:24:55 <planetmaker> he is a bit... tiring to listen to after some time :P
22:25:04 <planetmaker> artificially cheerful :P
22:25:45 <frosch123> not sure whether c++ jokes are your thing, but there are some funny 5 minute talks
22:29:29 <planetmaker> sometimes :)
22:29:34 *** lugo has quit IRC
22:29:35 <planetmaker> not sure I'd get all of them
22:30:14 *** gelignite has quit IRC
22:31:19 *** lugo has joined #openttd
22:34:48 <frosch123> just be aware that ottd source is west const
22:46:49 *** lugo has quit IRC
22:54:36 *** Gja has quit IRC
22:54:37 *** frosch123 has quit IRC
22:55:07 *** Thedarkb1-T60 has quit IRC
22:55:24 *** Thedarkb1-T60 has joined #openttd
23:18:25 <andythenorth> dunno what to do
23:18:29 <andythenorth> about supplies cars
23:19:15 <andythenorth> they're kind of weird
23:19:43 <andythenorth> http://bundles.openttdcoop.org/iron-horse/push/LATEST/docs/html/trains.html#supplies_car_pony_gen_2A
23:20:38 <andythenorth> are they just for supplies or not?
23:20:53 * andythenorth mostly uses express cars for supplies, for speed
23:24:10 <planetmaker> well, then... is there a reason for special supplies cars then?
23:33:50 <andythenorth> interesting sprites
23:33:58 <andythenorth> but maybe they should carry wider range of cargos
23:34:12 <andythenorth> currently just ENSP, FMSP, vehicles
23:34:16 *** Eddi|zuHause2 is now known as Eddi|zuHause
23:37:44 *** Samu has quit IRC
23:39:38 *** Wolf01 has quit IRC
23:46:33 *** andythenorth has quit IRC
23:49:13 <planetmaker> mail maybe, too (thinking in terms of parcels, not letters)
23:49:38 <planetmaker> other piece goods...
23:50:19 *** Wacko1976 has quit IRC
23:52:19 *** nielsm has quit IRC