IRC logs for #openttd on OFTC at 2020-10-23
⏴ go to previous day
03:26:44 <Eddi|zuHause> what's "a rainy country"? guyana? brazil? india?
05:50:29 *** snail_UES_ has joined #openttd
05:52:20 *** snail_UES_ has joined #openttd
05:53:26 *** snail_UES_ has joined #openttd
05:54:12 *** snail_UES_ has joined #openttd
05:54:48 *** snail_UES_ has joined #openttd
05:55:25 *** snail_UES_ has joined #openttd
05:56:31 *** snail_UES_ has joined #openttd
05:57:22 *** snail_UES_ has joined #openttd
06:03:08 *** snail_UES_ has joined #openttd
06:28:44 *** snail_UES_ has joined #openttd
07:05:10 *** snail_UES_ has joined #openttd
08:04:42 *** sla_ro|master has joined #openttd
08:10:59 *** andythenorth has joined #openttd
08:59:13 *** longtomjr_ has joined #openttd
09:06:23 *** andythenorth has joined #openttd
09:31:05 *** andythenorth has joined #openttd
09:59:06 *** Smedles has joined #openttd
10:20:08 *** Progman has joined #openttd
10:20:16 *** supermop_Home_ has quit IRC
11:02:51 *** jottyfan has joined #openttd
11:08:39 *** arikover has joined #openttd
11:12:20 *** jottyfan has joined #openttd
11:14:26 *** jottyfan has joined #openttd
11:15:47 *** jottyfan has joined #openttd
11:15:56 *** jottyfan has joined #openttd
11:18:06 *** jottyfan has joined #openttd
11:40:15 *** andythenorth has joined #openttd
11:47:43 <andythenorth> some TrueBrain dude has posted in the forums
11:48:48 <TrueBrain> well, it wasn't Hitler either
11:49:09 <LordAro> /kick TrueBrain IMPOSTER
11:49:17 <TrueBrain> whoop, whoop, whoop, slow-whoop, ALARMA
11:50:02 <LordAro> TrueBrain: did you fix the wiki page? :p
11:50:50 <LordAro> the one suggested in the thread you replied to :p
11:51:13 <TrueBrain> what is there to fix?
11:51:30 <TrueBrain> I found it an odd suggestion
11:51:33 <TrueBrain> so I just left it there
11:51:38 * andythenorth is having the day off
11:51:46 <TrueBrain> enjoy andythenorth :)
11:51:50 * LordAro is just not doing any work today
11:51:56 <TrueBrain> (as that should include no OpenTTD, no tanks, no Horse :P)
11:52:01 * longtomjr_ is fighting with terraform
11:52:07 <TrueBrain> me neither! Mostly as I don't have a job :P
11:52:58 <longtomjr_> run failed, whoop whoop
11:52:58 <TrueBrain> I did make my render twice as fast; it also fails on most pages now :P
11:53:27 <LordAro> in actuality, i'm writing emails ("we know it sucks, the lawyers made us do it this way") and preparing for a meeting
11:53:53 <LordAro> TrueBrain: replacing the code with `exit(0);` does make things faster in my experience
11:53:53 <longtomjr_> The quickest way to render is to not render - Confucius
11:54:07 <TrueBrain> LordAro: well, 300 pages do work fine, so I did not do that :D
11:54:32 <TrueBrain> just 5000 more are failing :P Mostly because whole snippets are not rendered :D
11:55:36 <TrueBrain> did you know you cannot <nowiki> the <onlyinclude> tag, but you can with any other?
11:56:04 <TrueBrain> did you know only <nowiki> and <onlyinclude> work inside a <pre> tag?
11:56:16 <TrueBrain> wikitext is fun as fuck, as you can see the PHP order of execution behind it :P
11:56:51 <longtomjr_> me and your definition of fun might differ
11:57:09 <TrueBrain> well, welcome to #openttd I would say :P
11:57:14 <TrueBrain> that happens .. A LOT :P
11:59:38 <longtomjr_> well, I am fighting with k8s, terraform, prometheus and some other stuff, and secretly enjoying it, so not like I should judge
11:59:42 <LordAro> andythenorth: nono, that's dangerously close to the game
11:59:45 <LordAro> we don't talk about the game here
11:59:51 <andythenorth> did I just lose?
12:01:01 <LordAro> i get to deal with ansible, home-grown-CI-server-written-in-python-and-php and dev stuff in basically every language you can think of
12:01:15 <longtomjr_> do you enjoy it though?
12:01:32 <longtomjr_> or has arson become an option?
12:02:02 <longtomjr_> Also, sounds really interesting
12:02:27 <LordAro> oh, several of these bits are getting deleted with extreme prejudice at some future point
12:03:10 <LordAro> C/C++/Ada/Java/Python/Perl/Bash/Make/several-in-house-languages makes for a fun combination
12:03:58 <longtomjr_> Ah, that sounds like fun mix.
12:04:19 <TrueBrain> I had a colleague that could write Perl faster than most of us could any other language .. it was scary ..
12:04:35 <TrueBrain> also difficult to convert his PoC to real code :P
12:06:58 <TrueBrain> ah, found the bug ... I forgot to check if a tag existed before regexing it
12:07:05 <TrueBrain> turns out that left an empty body instead :D
12:10:18 <TrueBrain> we have 1 (!) page that uses "templatedata" .. mostly as that extension is not enabled, I guess :P
12:10:50 <LordAro> it's a very helpful plugin if you have visualeditor :p
12:11:21 <TrueBrain> it sounds nice indeed; it does how-ever require all templates to use it
12:12:24 <LordAro> just the ones that people actually use :p
12:12:35 <TrueBrain> in general that is a bit my issue with the current state of our wiki .. it is a random mess of random people having the best intentions ..
12:12:49 <TrueBrain> so many things are partial, or just not there
12:13:10 <TrueBrain> well, if we get this into GitHub, we can at least "sed" a lot of problems away
12:13:23 <TrueBrain> and adding templatedata sounds like a solid idea tbh
12:18:19 <TrueBrain> I want Python 3.9 "match" operator ..
12:18:22 <TrueBrain> maybe I should just install 3.9
12:21:19 <andythenorth> but not the salt mountain
12:39:41 <arikover> "but not the salt mountain": I seem to recall seeing this from the ICE... Is it possible that Berlin-Frankfurt trains go there? Or did I imagine that?
12:41:44 *** ChanServ sets mode: +v tokai
12:42:03 <arikover> andythenorth: After playing train whack, I discovered the Iron Horse alternative liveries (finally!). Nice! Do they work with a var43 (Player Info) call?
13:41:54 <andythenorth> arikover yes var 43
13:44:16 *** arikover has joined #openttd
13:48:54 <FLHerne> TrueBrain: Which thing? PEP-622/634 (the overengineered pattern-matching statement) isn't in 3.9
13:49:56 <TrueBrain> I have too many "if / elif / elif" statements atm :P
13:50:02 <TrueBrain> which means I will dictify it
13:50:06 <TrueBrain> but that is not adding to readability :)
13:50:20 <FLHerne> I don't think it's been accepted for 3.10 yet
13:50:32 <TrueBrain> ... they should hurry
13:50:34 <FLHerne> Seems likely to be though
13:50:38 <TrueBrain> one of the more lovely things about Rust
13:50:47 <TrueBrain> takes a bit getting used to
13:50:52 <TrueBrain> but boy, it makes things so much smaller and neater
14:00:33 <FLHerne> When I read the original draft, I thought "ugh this is horribly overcomplicated"
14:00:55 <FLHerne> It seems to have lost some fluff in the revisions
14:01:19 <TrueBrain> which is pretty common
14:01:21 <TrueBrain> shoot for the starts :)
14:04:20 *** arikover has joined #openttd
14:10:59 <TrueBrain> 10% of the rendering time is only to add <pre>s at the right place ... lol? :)
14:11:00 *** Speeder has joined #openttd
14:14:21 <longtomjr_> Are you rendering every page on visit?
14:14:43 <TrueBrain> I am currently only rendering; the word "visit" has no meaning in this context :)
14:15:55 <longtomjr_> Ah, is the render time a concern?
14:16:26 <TrueBrain> it is more about the absurdity
14:17:08 <longtomjr_> Ah yep. How does mediawiki do it?
14:17:20 <longtomjr_> or do we not want to know
14:17:24 <TrueBrain> not sure .. the place <pre> is done in their pipeline appears weird
14:17:30 <TrueBrain> but I tried reading that code ..
14:17:39 <TrueBrain> so .. yeah, I didn't read it :P
14:17:56 <longtomjr_> goodness, that seems like a lot for just rendering pre
14:18:08 <TrueBrain> no, their renderer is 10k LoC :)
14:18:12 <TrueBrain> pre is somewhere in there
14:45:38 <TrueBrain> people ... have been translating the "sandbox" page .. which is just a dump of people trying out stuff .. lol?
14:47:50 <TrueBrain> pretty sure frosch has that in his trashcan already :)
15:12:52 *** WormnestAndroid has quit IRC
15:13:04 *** WormnestAndroid has joined #openttd
15:29:52 <TrueBrain> funny, I now do not do <pre> stuff for any templates you include, and nothing changed :)
15:29:55 <TrueBrain> that is a huge speed boost :P
15:31:13 <LordAro> will that break some obscure template though? :p
15:32:56 <TrueBrain> in 5000+ pages, nothing
15:33:05 <TrueBrain> it also doesn't make sense tbh
15:33:11 <TrueBrain> the whole <pre> stuff doesn't make sense :D
15:33:35 <TrueBrain> very tempted to, once this hits GitHub, to just replace them all with proper <pre> blocks and make that the rule :)
15:35:47 <TrueBrain> the only diff I now have, is that links are no longer clickable in pre-blocks
15:35:54 <TrueBrain> in generated-pre-block, I have to say
15:57:16 *** andythenorth has joined #openttd
16:34:08 <andythenorth> ok let's stop reading the comments
17:06:17 *** nielsm is now known as Guest4132
17:28:55 *** snail_UES_ is now known as Guest4135
17:28:57 *** snail_UES_ has joined #openttd
17:38:56 *** Wormnest has joined #openttd
17:43:57 *** andythenorth has joined #openttd
17:45:16 *** Speeder_ has joined #openttd
18:23:43 *** frosch123 has joined #openttd
18:33:42 *** gelignite has joined #openttd
18:49:37 *** andythenorth has joined #openttd
19:10:05 *** andythenorth has joined #openttd
19:42:30 <rptr_> how do i get an openttd wiki account?
19:44:53 <LordAro> (it's being reorganised and rewritten)
20:52:26 <andythenorth> is it beer time?
21:52:01 <TrueBrain> frosch123: did we ever add anything to BaNaNaS so you can hide stuff from the webpage? For the in-game client you can set an unrealistic max version of course .. but did we do anything for the site? Can't remember :D
21:52:44 <frosch123> yes, we added 3 options for that
21:52:53 <frosch123> but none is available via gui, only via PR
21:53:22 <frosch123> there is "archived" which hides it, and there is "replaced-by" which hides it and links to the replacement
21:53:39 <TrueBrain> ah, not via the GUI, that confused me :D
21:53:54 <TrueBrain> I like how you say 3, and then give 2 :P
21:54:12 <frosch123> well, you already gave one
21:55:36 <frosch123> ah, the third one is setting availability to savegames-only for all versions
22:24:32 <andythenorth> is there a very fast way to get a count of adjacent sea tiles?
22:24:45 <andythenorth> without pathfinding, but rather walking the map array somehow?
22:25:23 * andythenorth wants to stop sea industries building in small lakes, but doesn't need a water route to map edge
22:29:11 <andythenorth> hmm wouldn't work, might be just a small amount of open sea along one edge, industries wouldn't build in that case
22:37:15 <rptr_> andythenorth, how do you code firs anyway? is it a game script?
continue to next day ⏵