Config
Log for #openttd on 19th October 2020:
Times are UTC Toggle Colours
00:02:00  *** Lejving has quit IRC
00:35:02  *** rptr_ has quit IRC
00:49:10  *** Progman has quit IRC
01:36:27  *** Flygon has joined #openttd
01:52:49  *** Wormnest has quit IRC
02:05:09  *** glx has quit IRC
02:18:27  *** D-HUND has joined #openttd
02:21:49  *** rptr_ has joined #openttd
02:21:50  *** debdog has quit IRC
03:09:52  *** tokai|noir has joined #openttd
03:09:52  *** ChanServ sets mode: +v tokai|noir
03:16:56  *** tokai has quit IRC
03:28:04  *** heffer_ has joined #openttd
03:29:04  *** heffer__ has joined #openttd
03:33:59  *** heffer has quit IRC
03:36:24  *** heffer_ has quit IRC
04:41:00  *** sla_ro|master has joined #openttd
05:03:14  *** rptr_ has quit IRC
05:15:19  *** snail_UES_ has quit IRC
05:33:20  *** azubieta has quit IRC
05:33:20  *** ist5shreawf[m] has quit IRC
05:33:20  *** labs[m] has quit IRC
05:33:20  *** olmvnec[m] has quit IRC
05:33:20  *** iarp[m] has quit IRC
05:33:20  *** ciet[m] has quit IRC
05:33:20  *** amal[m]1 has quit IRC
05:33:20  *** pina[m] has quit IRC
05:33:20  *** dave[m] has quit IRC
05:33:20  *** blathijs has quit IRC
05:33:20  *** Mek has quit IRC
05:33:20  *** orudge has quit IRC
05:33:20  *** leward[m] has quit IRC
05:33:20  *** natalie[m] has quit IRC
05:33:20  *** emeraldsnorlax[m] has quit IRC
05:33:20  *** osvaldo[m] has quit IRC
05:33:20  *** welterde has quit IRC
05:33:20  *** Cursarion has quit IRC
05:33:20  *** berndj has quit IRC
05:33:20  *** lastmikoi has quit IRC
05:33:20  *** jhq has quit IRC
05:33:20  *** argoneus has quit IRC
05:33:20  *** Hobbyboy|BNC has quit IRC
05:33:20  *** ^Spike^ has quit IRC
05:33:21  *** SmatZ has quit IRC
05:33:21  *** Hirundo has quit IRC
05:33:21  *** Hazzard has quit IRC
05:33:21  *** jeeg[m] has quit IRC
05:33:21  *** johanna[m] has quit IRC
05:33:21  *** karl[m] has quit IRC
05:33:21  *** freu[m] has quit IRC
05:33:21  *** Heiki[m] has quit IRC
05:33:21  *** dekeract[m] has quit IRC
05:33:21  *** phil[m] has quit IRC
05:33:21  *** natmac[m] has quit IRC
05:33:21  *** karoline[m] has quit IRC
05:33:21  *** christoph[m] has quit IRC
05:33:21  *** josef[m]1 has quit IRC
05:33:21  *** ad5twoknebor[m] has quit IRC
05:33:21  *** Westie has quit IRC
05:33:21  *** tyteen4a03 has quit IRC
05:33:21  *** Artea has quit IRC
05:33:21  *** urdh has quit IRC
05:33:21  *** Eddi|zuHause has quit IRC
05:33:21  *** Flygon has quit IRC
05:33:21  *** APTX_ has quit IRC
05:33:21  *** daspork_ has quit IRC
05:33:21  *** heffer__ has quit IRC
05:33:21  *** Extrems has quit IRC
05:33:21  *** Xunie has quit IRC
05:33:21  *** Speeder_ has quit IRC
05:33:21  *** cHawk has quit IRC
05:33:21  *** Smedles has quit IRC
05:33:21  *** yur3shmukcik[m] has quit IRC
05:33:21  *** bunburya_ has quit IRC
05:33:21  *** innocenat_ has quit IRC
05:33:21  *** hamstonkid[m] has quit IRC
05:33:21  *** murr4y has quit IRC
05:33:21  *** dvim has quit IRC
05:33:21  *** elliot[m] has quit IRC
05:33:21  *** ookfof[m] has quit IRC
05:33:21  *** fjodor[m] has quit IRC
05:33:21  *** glothit7ok[m] has quit IRC
05:33:21  *** pothyurf[m] has quit IRC
05:33:21  *** nolep[m] has quit IRC
05:33:21  *** ircer[m] has quit IRC
05:33:21  *** albert[m] has quit IRC
05:33:21  *** ST2 has quit IRC
05:33:21  *** y2kboy23 has quit IRC
05:33:21  *** supermop_Home_ has quit IRC
05:33:21  *** WormnestAndroid has quit IRC
05:33:21  *** cawal[m] has quit IRC
05:33:21  *** Gustavo6046 has quit IRC
05:33:21  *** Ttech has quit IRC
05:33:21  *** skrzyp has quit IRC
05:33:21  *** cyberjunkie[m] has quit IRC
05:33:21  *** colde has quit IRC
05:33:21  *** grossing has quit IRC
05:33:21  *** gretel[m] has quit IRC
05:33:21  *** reldred has quit IRC
05:33:21  *** robert[m] has quit IRC
05:33:21  *** patricia[m] has quit IRC
05:33:21  *** tokai|noir has quit IRC
05:33:21  *** k-man has quit IRC
05:33:21  *** Maarten has quit IRC
05:33:21  *** mindlesstux_ has quit IRC
05:33:21  *** greeter has quit IRC
05:33:21  *** Vadtec has quit IRC
05:33:21  *** jinks has quit IRC
05:33:22  *** philip[m] has quit IRC
05:33:22  *** dude[m]1 has quit IRC
05:33:22  *** menelaos[m] has quit IRC
05:33:22  *** mikegrb has quit IRC
05:33:22  *** dwfreed has quit IRC
05:33:22  *** sla_ro|master has quit IRC
05:33:22  *** D-HUND has quit IRC
05:33:22  *** m1cr0man has quit IRC
05:33:22  *** hylshols7qui[m] has quit IRC
05:33:22  *** julie[m] has quit IRC
05:33:22  *** dag[m] has quit IRC
05:33:22  *** patrick[m] has quit IRC
05:33:22  *** nartir[m] has quit IRC
05:33:22  *** tonyfinn[m] has quit IRC
05:33:22  *** denwa has quit IRC
05:33:22  *** moll has quit IRC
05:33:22  *** _dp_ has quit IRC
05:33:22  *** KenjiE20 has quit IRC
05:33:22  *** Markk has quit IRC
05:33:22  *** Sacro_ has quit IRC
05:33:22  *** SpComb has quit IRC
05:33:22  *** SpComb^ has quit IRC
05:33:22  *** guru3_ has quit IRC
05:33:22  *** tneo has quit IRC
05:33:22  *** planetmaker has quit IRC
05:33:22  *** Yexo has quit IRC
05:33:22  *** Terkhen has quit IRC
05:33:22  *** FLHerne has quit IRC
05:33:22  *** TrueBrain has quit IRC
05:33:22  *** Heiki has quit IRC
05:33:22  *** luaduck has quit IRC
05:33:22  *** LordAro has quit IRC
05:33:22  *** Timberwolf has quit IRC
05:33:22  *** ZirconiumX has quit IRC
05:35:46  *** heffer__ has joined #openttd
05:35:46  *** tokai|noir has joined #openttd
05:35:46  *** Flygon has joined #openttd
05:35:46  *** Extrems has joined #openttd
05:35:46  *** y2kboy23 has joined #openttd
05:35:46  *** urdh has joined #openttd
05:35:46  *** supermop_Home_ has joined #openttd
05:35:46  *** Xunie has joined #openttd
05:35:46  *** WormnestAndroid has joined #openttd
05:35:46  *** Eddi|zuHause has joined #openttd
05:35:46  *** Speeder_ has joined #openttd
05:35:46  *** cHawk has joined #openttd
05:35:46  *** cawal[m] has joined #openttd
05:35:46  *** k-man has joined #openttd
05:35:46  *** Smedles has joined #openttd
05:35:46  *** Maarten has joined #openttd
05:35:46  *** Gustavo6046 has joined #openttd
05:35:46  *** Ttech has joined #openttd
05:35:46  *** skrzyp has joined #openttd
05:35:46  *** APTX_ has joined #openttd
05:35:46  *** daspork_ has joined #openttd
05:35:46  *** yur3shmukcik[m] has joined #openttd
05:35:46  *** cyberjunkie[m] has joined #openttd
05:35:46  *** bunburya_ has joined #openttd
05:35:46  *** innocenat_ has joined #openttd
05:35:46  *** murr4y has joined #openttd
05:35:46  *** ST2 has joined #openttd
05:35:46  *** fjodor[m] has joined #openttd
05:35:46  *** nolep[m] has joined #openttd
05:35:46  *** hamstonkid[m] has joined #openttd
05:35:46  *** elliot[m] has joined #openttd
05:35:46  *** ircer[m] has joined #openttd
05:35:46  *** albert[m] has joined #openttd
05:35:46  *** pothyurf[m] has joined #openttd
05:35:47  *** ookfof[m] has joined #openttd
05:35:47  *** glothit7ok[m] has joined #openttd
05:35:47  *** dvim has joined #openttd
05:35:47  *** mindlesstux_ has joined #openttd
05:35:47  *** colde has joined #openttd
05:35:47  *** greeter has joined #openttd
05:35:47  *** grossing has joined #openttd
05:35:47  *** mikegrb has joined #openttd
05:35:47  *** Vadtec has joined #openttd
05:35:47  *** reldred has joined #openttd
05:35:47  *** jinks has joined #openttd
05:35:47  *** dwfreed has joined #openttd
05:35:47  *** gretel[m] has joined #openttd
05:35:47  *** charon.oftc.net sets mode: +v tokai|noir
05:35:47  *** robert[m] has joined #openttd
05:35:47  *** patricia[m] has joined #openttd
05:35:47  *** philip[m] has joined #openttd
05:35:47  *** menelaos[m] has joined #openttd
05:35:47  *** dude[m]1 has joined #openttd
05:35:48  *** sla_ro|master has joined #openttd
05:35:48  *** D-HUND has joined #openttd
05:35:48  *** m1cr0man has joined #openttd
05:35:48  *** hylshols7qui[m] has joined #openttd
05:35:48  *** julie[m] has joined #openttd
05:35:48  *** dag[m] has joined #openttd
05:35:48  *** patrick[m] has joined #openttd
05:35:48  *** nartir[m] has joined #openttd
05:35:48  *** tonyfinn[m] has joined #openttd
05:35:48  *** denwa has joined #openttd
05:35:48  *** moll has joined #openttd
05:35:48  *** KenjiE20 has joined #openttd
05:35:48  *** _dp_ has joined #openttd
05:35:48  *** Markk has joined #openttd
05:35:48  *** Sacro_ has joined #openttd
05:35:48  *** SpComb has joined #openttd
05:35:48  *** SpComb^ has joined #openttd
05:35:48  *** guru3_ has joined #openttd
05:35:48  *** tneo has joined #openttd
05:35:48  *** planetmaker has joined #openttd
05:35:48  *** Yexo has joined #openttd
05:35:48  *** Terkhen has joined #openttd
05:35:48  *** FLHerne has joined #openttd
05:35:48  *** TrueBrain has joined #openttd
05:35:48  *** Heiki has joined #openttd
05:35:48  *** luaduck has joined #openttd
05:35:48  *** LordAro has joined #openttd
05:35:49  *** ZirconiumX has joined #openttd
05:35:49  *** Timberwolf has joined #openttd
05:35:49  *** dacia.oftc.net sets mode: +oo planetmaker Terkhen
05:39:19  *** Xunie has quit IRC
05:39:25  *** ChanServ sets mode: +v DorpsGek
05:42:43  *** ChanServ sets mode: +v planetmaker
05:42:43  *** ChanServ sets mode: +v Terkhen
06:09:35  *** azubieta has joined #openttd
06:09:35  *** ist5shreawf[m] has joined #openttd
06:09:35  *** labs[m] has joined #openttd
06:09:35  *** olmvnec[m] has joined #openttd
06:09:35  *** iarp[m] has joined #openttd
06:09:35  *** ciet[m] has joined #openttd
06:09:35  *** amal[m]1 has joined #openttd
06:09:35  *** pina[m] has joined #openttd
06:09:35  *** dave[m] has joined #openttd
06:09:35  *** blathijs has joined #openttd
06:09:35  *** Mek has joined #openttd
06:09:35  *** orudge has joined #openttd
06:09:35  *** leward[m] has joined #openttd
06:09:35  *** natalie[m] has joined #openttd
06:09:35  *** emeraldsnorlax[m] has joined #openttd
06:09:35  *** osvaldo[m] has joined #openttd
06:09:35  *** welterde has joined #openttd
06:09:35  *** Cursarion has joined #openttd
06:09:35  *** berndj has joined #openttd
06:09:35  *** lastmikoi has joined #openttd
06:09:35  *** jhq has joined #openttd
06:09:35  *** argoneus has joined #openttd
06:09:35  *** Hobbyboy|BNC has joined #openttd
06:09:35  *** SmatZ has joined #openttd
06:09:35  *** ^Spike^ has joined #openttd
06:09:35  *** Hirundo has joined #openttd
06:09:35  *** Hazzard has joined #openttd
06:09:35  *** jeeg[m] has joined #openttd
06:09:35  *** johanna[m] has joined #openttd
06:09:35  *** karl[m] has joined #openttd
06:09:35  *** freu[m] has joined #openttd
06:09:35  *** Heiki[m] has joined #openttd
06:09:35  *** dekeract[m] has joined #openttd
06:09:35  *** phil[m] has joined #openttd
06:09:35  *** natmac[m] has joined #openttd
06:09:35  *** karoline[m] has joined #openttd
06:09:35  *** christoph[m] has joined #openttd
06:09:35  *** josef[m]1 has joined #openttd
06:09:35  *** ad5twoknebor[m] has joined #openttd
06:09:35  *** Westie has joined #openttd
06:09:35  *** Artea has joined #openttd
06:09:35  *** tyteen4a03 has joined #openttd
06:13:28  *** ChanServ sets mode: +o orudge
06:37:17  *** andythenorth has joined #openttd
06:47:21  *** longtomjr_ has joined #openttd
07:54:26  *** nielsm has joined #openttd
08:02:28  *** supermop_Home_ has quit IRC
08:07:49  *** andythenorth has quit IRC
08:25:19  *** andythenorth has joined #openttd
08:27:37  *** Progman has joined #openttd
08:42:23  *** namad7 has joined #openttd
08:50:44  *** namad7 has quit IRC
08:54:05  *** Xunie has joined #openttd
08:54:38  *** Xunie is now known as Guest3808
09:39:18  <andythenorth> yo
09:56:08  <LordAro> o/
11:28:13  *** tokai has joined #openttd
11:28:14  *** ChanServ sets mode: +v tokai
11:35:06  *** tokai|noir has quit IRC
11:55:33  *** snail_UES_ has joined #openttd
12:04:39  *** Lejving has joined #openttd
12:31:57  *** glx has joined #openttd
12:31:57  *** ChanServ sets mode: +v glx
13:12:44  *** supermop_Home_ has joined #openttd
13:58:12  *** Progman has quit IRC
14:01:00  <andythenorth> hmm
14:04:05  <andythenorth> station ratings
14:05:09  <andythenorth> FIRS used to adjust those
14:05:14  <andythenorth> then I removed it as out-of-scope
14:05:19  <andythenorth> but they are mad
14:05:22  <andythenorth> 10% for statue
14:05:47  <longtomjr_> should be at least 25% /s
14:06:05  <andythenorth> :P
14:06:11  * andythenorth biab
14:06:12  *** andythenorth has quit IRC
14:08:48  <Timberwolf> Heh. The "if my pile of coal isn't picked up by a brand new train capable of 100mph I'm not going to be happy" was always the one that got me.
14:09:22  <longtomjr_> Ratings makes more sense from a pax perspective
14:10:15  <longtomjr_> JGR added some features to his pack where waiting times were more tolerant the bigger the station is (and the station capacity goes up)
14:10:28  <longtomjr_> Another one that makes bulk cargo happier to stand around
14:14:20  <Timberwolf> Shame you can't get at the station variables from a custom rating callback, would allow for making some eyecandy tiles like parcels offices and waiting rooms actually useful.
14:14:53  <Timberwolf> Didn't the Sid Meier games have some element of building things like station hotels? (I only played RRT2, and that was a long time ago)
14:15:07  <longtomjr_> Ah, like tile with benches vs a tile without will have better station rating results or something?
14:15:20  <longtomjr_> and dedicated waiting room tiles
14:15:39  <Timberwolf> That sort of thing, yeah - I guess you'd also need to mess about with maintenance costs to balance them.
14:18:30  <longtomjr_> Is it currently possible to change the maintenance cost for different station tiles?
14:18:43  <Timberwolf> Don't think so. although I've not looked in depth,.
14:34:39  *** rptr_ has joined #openttd
14:52:39  *** andythenorth has joined #openttd
15:17:01  *** Wormnest has joined #openttd
15:23:50  *** frosch123 has joined #openttd
15:34:04  *** Flygon has quit IRC
16:06:46  *** gelignite has joined #openttd
16:40:59  *** tokai|noir has joined #openttd
16:40:59  *** ChanServ sets mode: +v tokai|noir
16:47:41  *** tokai has quit IRC
17:00:11  *** Wolf01 has joined #openttd
17:00:20  *** HerzogDeXtEr has joined #openttd
17:51:10  <frosch123> https://wiki.openttd.org/Template:Emoticon <- most important template
17:57:51  <LordAro> exceptionally
18:16:44  <TrueBrain> MONKEY!
18:16:47  <TrueBrain> I love monkey!
18:38:34  <frosch123> the M word! on our wiki...
18:40:20  <TrueBrain> r'(\d+)?.(\d+)?(e\d+)?|(\d+)e\d+'
18:41:29  *** longtomjr_ has quit IRC
18:42:41  <frosch123> looks like you are working on pyphp
18:42:57  <frosch123> is that the regex for empty() ?
18:43:12  <SpComb> Toyland!
18:43:55  <rptr_> pyphp? o_o
18:48:16  <TrueBrain> frosch123: haha :)
18:48:24  <TrueBrain> well, there is a bug in that regex:
18:48:24  <TrueBrain> r'[+-]?\d*[.]\d*(e[+-]\d+)?|\d+e[+-]?\d+'
18:48:25  *** Progman has joined #openttd
18:48:29  <TrueBrain> and it just picks up floats :)
18:49:16  <frosch123> i would have added [Ee] for the case-sensitivity
18:50:18  <frosch123> ah, you are one of the [.] people
18:50:25  <TrueBrain> I am normally not
18:50:31  <TrueBrain> but I googled what a "float regex" is
18:50:37  <TrueBrain> and they suggested (strongly) to use [.] over .
18:50:49  <TrueBrain> so .. I was like .. yeah, that works too :P
18:50:53  <frosch123> yes :p but there is \.
18:51:11  <TrueBrain> I never knew [.] also worked :)
18:51:15  <TrueBrain> I mostly do [.] :P
18:51:26  <TrueBrain> hmm .. think my client ate a \
18:51:27  <TrueBrain> what-ever :P
18:51:37  <TrueBrain> I have been trying to write \ .
18:51:40  <TrueBrain> as a FYI :)
18:51:43  <TrueBrain> (in both cases :P)
18:51:58  <TrueBrain> I was not confusing [.] for . (without slash :P)
18:52:03  <TrueBrain> there is a real difference there :D
18:57:19  <frosch123> i think i had to use [.] on solaris, since \. did not work
18:58:22  <TrueBrain> Warning:	Interpreted as (ceil 1)/3, not ceil(1/3), as you might expect
18:58:28  <TrueBrain> I love if the specs already say: WHAT THE FUCK
18:58:34  <TrueBrain> "ceil" is an unary operator
18:59:05  <frosch123> haha :)
19:00:28  <frosch123> https://en.wikipedia.org/wiki/Structured_text <- some iec norm describes that language. it assignes the same operator priority to + - * /
19:01:09  <frosch123> most interpreters are not standard-compliant on that detail
19:03:35  <frosch123> https://wiki.openttd.org/?title=Template:Navtabs&action=edit <- TrueBrain: can you parse that?
19:03:41  <frosch123> i can't :p
19:04:27  <TrueBrain> I love the Navtabs vs Navtab
19:04:35  <TrueBrain> but it at least linted through my renderer, I remember
19:04:48  <TrueBrain> so there is nothing syntax-wise wrong with it, I think
19:04:50  <TrueBrain> why?
19:06:16  <frosch123> it's the only one with templates inside #functions
19:07:07  <TrueBrain> the renderer first resolves all templates, before it starts to do logic
19:07:16  <TrueBrain> which works surprisingly well :P
19:10:18  <TrueBrain> hmm .. docs say "1/2 round 0" should be 1
19:10:30  <TrueBrain> Python says round(0.5, 0) is 0
19:10:31  <TrueBrain> :(
19:10:50  <TrueBrain> 0.5<anything> is 1
19:11:09  <TrueBrain> in Python2 it was 1, 0.5
19:11:10  <TrueBrain> lol
19:11:40  <TrueBrain> Python 3's way (called "round half to even" or "banker's rounding") is considered the standard rounding method these days, though some language implementations aren't on the bus yet.
19:11:43  <TrueBrain> I love stack overflow
19:12:16  <TrueBrain> should I "fix" that or just accept it ...
19:12:24  <TrueBrain> unlikely anyone ever runs into this, I guess
19:12:49  <TrueBrain> it also has "-0" .. I also not going to do that :P
19:13:34  <frosch123> never heard of banker's rounding... but i guess it's fair
19:15:55  <TrueBrain> it was also new to me :)
19:15:59  *** rptr_ has quit IRC
19:15:59  <TrueBrain> TIL!
19:19:13  <TrueBrain> https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr <- on the right, that table .. "binary operator e" .. any idea what they mean?
19:22:05  <frosch123> https://meta.wikimedia.org/wiki/Help:Calculation
19:22:20  <frosch123> it's the same as in the float
19:23:13  <frosch123> but you can use it as operator :p 1e1e1 = 100
19:23:25  <frosch123> but you can use it as operator :p 1e(5-3) = 100
19:23:37  <andythenorth> hmm
19:23:52  * andythenorth considers splitting ferrous and non-ferrous scrap
19:24:04  <TrueBrain> ...... owh boy
19:24:09  <frosch123> TrueBrain: i am blacklisting several french templates, which i'll just trash. maybe you should apply similar rules to certain expresions :)
19:24:23  <TrueBrain> I was considering just not implementing 'e' as operator
19:24:27  <TrueBrain> would anyone hate me for that?
19:24:47  <TrueBrain> just not implement, see how long it takes for anyone to notice :D
19:24:58  <frosch123> pretty sure anyone who understands what "e" is, would not use it that way :p
19:27:37  <frosch123> andythenorth: non-ferrious scrap can be either "valuables" or "toxic trash"
19:27:46  <TrueBrain> https://meta.wikimedia.org/wiki/Help:Calculation <- it is documented.. I just failed to find that page :P
19:27:53  <andythenorth> ha
19:27:59  <andythenorth> 'alleged recyclables'
19:28:01  <frosch123> TrueBrain: he, i linked that :p
19:28:07  <TrueBrain> sorry
19:28:18  <TrueBrain> totally missed that
19:28:20  <frosch123> did you think i knew that :p
19:28:57  <TrueBrain> yes .....
19:29:07  <frosch123> i don't mind that you missed it. but it's hillarious that you think i would knew that :)
19:29:10  <TrueBrain> okay, I am not going to track the type (int vs float)
19:29:22  <TrueBrain> I just let Python convert it when-ever, and make "1.0" -> "1" in the result
19:29:47  <TrueBrain> well, I don't know everything (SHOCKER), and I always hope others complement me where I do not :P
19:30:17  <TrueBrain> hihi, I made spaces optional: "truncabs-2.2" is valid
19:30:21  <TrueBrain> it isn't in mediawiki
19:30:32  <TrueBrain> let me fix it so I don't do anything this silly :P
19:30:47  <andythenorth> oof I need some cargo to dump into a bulk terminal industry
19:30:51  <andythenorth> from a mine or something
19:31:03  <frosch123> marble
19:31:07  <andythenorth> it's just a production booster
19:31:07  <andythenorth> ooh
19:31:10  <andythenorth> marble is lolz
19:31:12  <andythenorth> or granite
19:31:28  <andythenorth> sodium sulfate is the logical choice, I already have the mine
19:31:31  <andythenorth> but it's boring
19:31:46  <andythenorth> I wanted to use non-ferrous scrap, but graphviz makes an ugly chart
19:32:02  <andythenorth> the design of FIRS is mostly dictated by graphviz dot algorithm
19:34:01  <andythenorth> feldspar?
19:34:03  <andythenorth> what even is?
19:35:35  <frosch123> it's the left-over material from mining
19:36:18  <frosch123> so, not exactly stuff you would export
19:38:03  <TrueBrain> argh, I want Python 3.9 .. I need dict | dict :P
19:38:10  <andythenorth> so modern
19:38:10  <frosch123> ok, people use it as filler material in all kinds of stuff
19:38:23  <andythenorth> frosch123 mostly exported from Italy IRL or something
19:38:50  <frosch123>  andythenorth: but it's a german-derived term...
19:39:00  <andythenorth> I should include it
19:39:09  <andythenorth> then do a feldspar feldbahn
19:40:07  <TrueBrain> 200 lines of code to implement the calculator of mediawiki .. surprisingly more than I expected .. even more as most is just boilerplate shit bla
19:40:27  <TrueBrain> but yacc is nice :)
19:46:02  <andythenorth> hmm
19:46:36  <TrueBrain> -<span style="width:22.388059701493%;height:2px;background:#7fff00;float:left">
19:46:37  <TrueBrain> +<span style="width:22.388059701492537%;height:2px;background:#7fff00;float:left">
19:46:40  <TrueBrain> okay, that is funny :)
19:47:31  <LordAro> ha
19:49:30  <TrueBrain> one of the more difficult things to do, is when to insert a <br>
19:49:35  <TrueBrain> but I have been wondering if we should insert them at all
19:49:45  <TrueBrain> it is rarely an improvement for the layout
19:49:53  <glx> so much precision in the width calculation
19:49:54  <andythenorth> is it html5?
19:50:02  <TrueBrain> it is
19:50:04  <andythenorth> <br> has been given semantics in html5
19:50:09  <andythenorth> I can no longer abuse it :(
19:50:20  <andythenorth> I used to use it endlessly for vertical spacing
19:50:21  <TrueBrain> I ..... have no clue how to process this piece of information
19:50:44  <andythenorth> using lolz
19:51:20  <TrueBrain> the thing with "\n\n\n\n" adding <br>s in the end result, it only makes it look good for certain browser widths
19:51:30  <TrueBrain> hmm
19:51:36  <TrueBrain> my client eats <br > ..
19:52:01  <TrueBrain> owh, it doesn't, it just shows me like it does
19:52:02  <TrueBrain> what-ever :P
19:52:21  <TrueBrain> I only see the <br> stuff being used when people want that something starts below an image that is floating or what-ever
19:52:33  <TrueBrain> it is a bad habit ... so lets see what happens if we do not generate it :D
19:53:33  <TrueBrain> seemly my {{#expr: }} support seems to work ... not sure how to express how shocked I am :P
19:54:10  <TrueBrain> -<span style="color:red">
19:54:11  <TrueBrain> +<span style="color:green">
19:54:18  <TrueBrain> I guess not all calculations go as expected :)
20:07:31  <TrueBrain> okay, some form of lists in tables still fails; but that is not for today :D
20:08:51  *** rptr_ has joined #openttd
20:09:26  <TrueBrain> that moment you parse some crappy input better than mediawiki :D \o/ :D
20:11:31  <frosch123> apply at wikimedia: for only 10% of their yearly donations, you port their site to python
20:11:49  <TrueBrain> :D That would be a very good deal :P
20:11:57  <TrueBrain> and I would reduce their hardware requirement with ... a HUGE factor
20:14:03  <TrueBrain> about 2/3rd of the pages are now (near) identical .. with (near) I mean, minus the bugs and other odd things I simply do not agree with :)
20:14:21  <TrueBrain> and most part seems to be the same bug .. something with tables and lists :)
20:15:48  <TrueBrain> I cannot believe how easy it was to build my own "parser" for their math stuff :D
20:16:08  <TrueBrain> does mean the whole library is now 1200 LOC
20:18:19  <TrueBrain> <div style="float:&#123;&#123;&#123;float}}}">
20:18:25  <TrueBrain> guess the idea was to do {{{float}}}
20:21:00  <TrueBrain> btw frosch123 , I have been thinking about the editing part .. I am very tempted to make 2 containers: one that is used for viewing, stateless, and gets updated by a GitHub Actions like with BaNaNaS
20:21:12  <TrueBrain> the other container for editing, stateful, like bananas-api
20:21:29  <TrueBrain> after editing, like 5 minutes later, it pushes everything to GitHub
20:21:40  <TrueBrain> means when you are editing, you have live view of everything, but everything is a bit slower
20:21:51  <TrueBrain> and after ~5 minutes, your changes appear live for the rest of the world to see
20:22:08  <TrueBrain> means I can scale the "view" part easier
20:22:18  <TrueBrain> as the "edit" part cannot scale
20:22:32  <TrueBrain> also means the view will be like wiki.openttd.org, and the edit like ... preview.wiki.openttd.org ? :)
20:23:45  <frosch123> sounds like people would link to preview.wiki.openttd.org
20:23:53  <TrueBrain> we have done all this before, so it is mostly a copy/paste from bananas :)
20:24:08  <TrueBrain> hmm, fair point .. so it will be api.wiki.openttd.org
20:24:26  <TrueBrain> and the HTML pages can be on wiki.openttd.org, but it doesn't track anything static
20:24:30  <TrueBrain> static = stateful
20:24:40  <TrueBrain> so the POST are done to api.wiki.openttd.org, basically
20:25:11  <frosch123> anyway, preview is good. i liked the gollum way where you can switch tabs, and some js sends the edit content to the server for rendering
20:25:24  <TrueBrain> yeah, that for sure!
20:25:32  <TrueBrain> it will have a bit of Javascript :D
20:25:50  <TrueBrain> my only "issue" is that between Save and publishing there is a bit of time
20:25:57  <TrueBrain> will have to see how to deal with that in a proper way
20:26:10  <TrueBrain> but I like being able to scale the wiki in a proper way :D Would make a lot of things easier :D
20:26:49  <frosch123> i wonder whether we can store in a cookie which pages the user just edited, and fetch those from the edit server, and the rest from static
20:27:09  <TrueBrain> or if you are logged in, that it loads it from the edit server
20:27:28  <frosch123> something like that, yes
20:27:51  <TrueBrain> on the other hand, we can add to the edit server a big banner: THIS IS THE PREVIEW VERSION, CLICK HERE FOR THE LIVE VERSION
20:27:57  <TrueBrain> that might ... avoid people linking there
20:28:20  <TrueBrain> but I agree humans are likely to not act that way :D
20:28:23  <frosch123> i think js can write whatever it likes into the urlbar
20:28:40  <frosch123> so we can show the real url while editing
20:29:03  <TrueBrain> well, something to fiddle with at least :)
20:29:08  <TrueBrain> but first I am going to build the view part
20:29:11  <TrueBrain> after that, the edit part :)
20:30:40  <TrueBrain> still running, but:
20:30:40  <TrueBrain> OKAY: 1202
20:30:40  <TrueBrain> DIFF: 790
20:30:45  <TrueBrain> are the stats so far :)
20:31:23  *** sla_ro|master has quit IRC
20:34:38  <TrueBrain> can't believe how many edge-cases I found for wikitextparser library to improve :D I wonder what other users have been parsing ..
20:34:41  <TrueBrain> clearly not user-content :D
20:43:45  *** nielsm has quit IRC
20:48:10  *** gelignite has quit IRC
20:57:01  *** Wolf01 has quit IRC
21:02:21  <TrueBrain> we really do have too many wiki pages ..
21:02:26  <TrueBrain> 4k and counting ...
21:04:04  <frosch123> it's less than 800 english pages after migration, when excluding "archive"
21:04:31  <frosch123> and 230 of that are vehicle/industry/cargo pages of the baseset
21:05:05  <TrueBrain> nice :D
21:05:39  <frosch123> but yes, the wiki becomes a lot easier to grasp after the reductions
21:05:55  <frosch123> there are some similar pages, that could be merged, and were just "lost" before
21:05:55  <TrueBrain> I am now checking files outside of latin-1 :P
21:07:31  <TrueBrain> how do I stream a tablet to my PC (the screen) ?
21:09:21  <TrueBrain> turns out that without WiFi the "Connect" app doesn't work :P
21:09:30  <TrueBrain> and .. my PC doesn't have WiFi .. I mean ... why would it
21:13:39  *** iSoSyS has joined #openttd
21:15:11  *** iSoSyS has quit IRC
21:15:22  <TrueBrain> okay, it now started to run Templates stand-alone .. that didn't really go well :P
21:20:07  <TrueBrain> well, more tomorrow!
21:26:12  *** frosch123 has quit IRC
21:49:08  *** andythenorth has quit IRC
21:54:53  *** HerzogDeXtEr has quit IRC
22:27:26  *** tokai has joined #openttd
22:27:26  *** ChanServ sets mode: +v tokai
22:34:24  *** tokai|noir has quit IRC
22:46:19  *** rptr_ has quit IRC
23:04:43  *** Progman has quit IRC
23:17:53  *** snail_UES_ has quit IRC
23:43:39  <Eddi|zuHause> i think forum caught a case of spambot

Powered by YARRSTE version: svn-trunk