IRC logs for #openttd on OFTC at 2020-11-11
⏴ go to previous day
02:05:43 *** snail_UES__ has joined #openttd
02:05:44 *** snail_UES__ is now known as snail_UES_
02:58:13 *** snail_UES_ is now known as Guest5505
02:58:14 *** snail_UES_ has joined #openttd
03:39:46 *** snail_UES_ is now known as Guest5509
03:39:47 *** snail_UES_ has joined #openttd
05:42:56 *** snail_UES_ is now known as Guest5515
05:42:58 *** snail_UES_ has joined #openttd
05:56:51 *** WormnestAndroid has quit IRC
06:01:49 *** WormnestAndroid has joined #openttd
08:09:39 *** sla_ro|master has joined #openttd
08:15:03 *** longtomjr has joined #openttd
08:58:14 *** HerzogDeXtEr has joined #openttd
09:09:57 *** andythenorth has joined #openttd
11:10:44 <TrueBrain> so where is this frosch123 dude? :D
11:12:14 <TrueBrain> that would be so confusing :P
11:12:50 <andythenorth> I could never imitate frosch successfully
11:22:39 <TrueBrain> well, he is going to read backlogs anyway:
11:22:56 <TrueBrain> frosch123: you can remove the ".keep" files. I solved it in a different way, which allows for "Special" pages in the future
11:23:01 <TrueBrain> I added [[Media]] support
11:23:05 <TrueBrain> regarding your export:
11:23:06 <TrueBrain> - Namespace ":category:user" is an unknown namespace (wikilink "[[:Category:user:extrazi/Callbacks/Pl|PL]]").
11:23:18 <TrueBrain> that seems to be fixable, and a boo-boo in the export
11:23:32 <TrueBrain> I fixed one page with a "Page Name" error (trailing whitespace)
11:24:04 <TrueBrain> otherwise I don't see any mistakes; I did not check out of the 14k dead links how many are correct :P I trust you did that, honestly :D
11:24:41 <TrueBrain> in other news, kamnet had a post-processing request (well, he didn't know we were doing this, but I made it in a post-processing request):
11:24:56 <TrueBrain> can you sed that pretty please? :)
11:25:32 <TrueBrain> and lastly, I changed the "push" method, it now pushes to GitHub on "Save Page". There were too many corner cases to track otherwise, and would require conflict resolvement ... which I really REALLY do not want to add :P So we will see how this behaves
11:27:51 <TrueBrain> I have nothing else to complain .. bah :P
11:31:23 <TrueBrain> wow, saving now takes a really long time ... I have no clue why ... time to investigate that ..
11:34:36 <TrueBrain> saving is done in a jiffy, but loading the page after the save is very slow :D Right .....
11:53:39 *** andythenorth has left #openttd
11:55:28 <TrueBrain> haha, it takes 4 seconds to push something to GitHub, as it turns out :) That explains a lot ... I can fix that :P (well, not the 4s, but that it doesn't block)
12:54:38 <TrueBrain> from a user perspectives, saves now takes ~20ms, and within ~50ms the page is on your screen again
14:04:50 <LordAro> `const char *xcmd = ""; char* command = malloc(strlen(xcmd) + 1); strcpy(command, xcmd);`
14:05:01 <LordAro> i swear this bit of the codebase would keep dailywtf busy for weeks
14:06:07 <TrueBrain> well, that is a new kind of special
14:06:25 <TrueBrain> I do love the complete use of unsafe functions like strlen and strcpy for the last few
14:06:58 <LordAro> well, they're not really unsafe if you're using a string from 1 line up
14:07:28 <TrueBrain> well, what you could do with these lines of code
14:07:36 <TrueBrain> is create a memset(0)
14:07:43 <TrueBrain> I mean, copying \0 around is fun and all
14:07:47 <TrueBrain> but you can make it more useful at least! :P
14:08:01 <LordAro> xcmd is only used here
14:08:11 <LordAro> command is used later in a mildly horrible realloc loop
14:08:12 <TrueBrain> I wonder about the history, in such cases
14:08:25 <TrueBrain> I mean .. it has to be that it was once other code
14:08:43 <TrueBrain> and that this is the end-result of refactoring
14:08:46 <TrueBrain> by shitty people, ofc :P
14:09:16 <TrueBrain> but yeah, we welcome your dailywtf here :)
14:18:33 *** frosch123 has joined #openttd
14:26:54 *** snail_UES_ has joined #openttd
15:02:43 <TrueBrain> morning frosch123 ; I left some stuff for you in the backlog :)
15:05:17 <frosch123> it's broken today, you'll have to repost :)
15:22:46 <frosch123> excellent first line :)
15:22:50 <TrueBrain> and that is my next project, make DorpsGek more awesome :)
15:22:56 <TrueBrain> where is DorpsGek .. hmm
15:22:58 <DorpsGek> TrueBrain: TrueBrain
15:23:17 <TrueBrain> userlist was a bit out of whack :)
15:23:40 <frosch123> i removed all [[Special:]] links :)
15:23:52 <TrueBrain> that is a good thing
15:23:57 <TrueBrain> people should not link there
15:24:12 <TrueBrain> but I want to add something that shows what pages are not translated into your language
15:24:18 <TrueBrain> so translators know where to look
15:24:26 <TrueBrain> we have all the information for that now :D
15:24:28 <frosch123> various people added scores to their user pages: my contributions, number of pages in my language, ...
15:25:05 <TrueBrain> yeah ... I am not much of such stats ... the idea of Open Source is to collaborate :P But okay, GitHub will supply that information honestly (the amount of contributions people have made, mostly)
15:25:29 <frosch123> the :category:user issue depend on whether we migrate those pages. if we do, that link will be translated to the new path. if we don't we would delete that whole template
15:26:21 <TrueBrain> ah; well, still no reply I gather? I would say, if it isn't much work, migrate it for now
15:26:23 <TrueBrain> deleting later is easy
15:33:06 <TrueBrain> I like how fast Save Page is now :D It is like .. really fast :P
15:36:06 <TrueBrain> you are too kind :)
15:37:14 <frosch123> i like pythagoras, he's no pita
15:42:01 <frosch123> we forgot to add "-data" to bananas stuff
15:42:28 <TrueBrain> well, we can also call it "wiki" and "wiki-staging" if youlike
15:42:41 <frosch123> no, i prefer the "-data"
15:43:02 <frosch123> it's also easier if we have to fork truewiki to add ottd's css and stuff
15:43:22 <TrueBrain> and that day will come :)
15:43:26 <TrueBrain> well, not forking possibly
15:44:07 <TrueBrain> I really don't want to mix staging with production data :P
15:44:12 <TrueBrain> that will only end up in tears :D
15:55:55 <TrueBrain> right, AWS infra is being prepared for "wiki-new" (linked to wiki-data repo)
15:58:04 <TrueBrain> pretty sure it will fail to start .. it needs a "File" folder in order to start :P Funny
15:59:13 <TrueBrain> right, fixed that .. you can remove that commit when-ever you import your export in it :P
16:00:15 <TrueBrain> well, we are days away, not weeks now
16:00:19 <TrueBrain> but also not hours away :P
16:02:19 <TrueBrain> okay, with this deployment, our memory reservation is 80% (and real usage is ~36%) .. that is the limit of what I can start on the current nodes :D
16:02:22 <TrueBrain> I need to increase memory :P
16:03:35 <TrueBrain> CPU usage is < 5% .. funny, how memory became the bottleneck in life :D
16:05:14 *** Wormnest has joined #openttd
16:18:07 <TrueBrain> we are going to need a linter to validate PRs .. I guess: run --validate on master and on PR, and compare results, or something
16:18:56 <LordAro> just fail all PRs until someone fixes all errors :p
16:19:12 <TrueBrain> euh ..... 14k errors
16:19:17 <TrueBrain> you want this to fail? :P
16:19:42 <TrueBrain> 2020-11-11 15:19:26 INFO Sentry initialized with release='1.0.0' and environment='production'
16:19:47 <TrueBrain> TrueWiki 1.0.0 is a fact
16:25:15 <TrueBrain> should we use "Librarian" here too, or do we have a better name for the "committer"? :D
16:35:13 *** supermop_Home_ has joined #openttd
16:37:16 <TrueBrain> for some reason the wiki has more activity (outside of me and frosch123 ) then it has seen in months ... not a good time people!! :P
16:44:17 <frosch123> screenshot of month is pretty predictable activity :p
16:45:08 <TrueBrain> there are some other changes in there too :D
16:47:24 <TrueBrain> I am trying to find in the mediawiki code where we added some text around the login .. I cannot find it :D
16:48:46 <TrueBrain> well, this is just magic
16:52:10 <TrueBrain> okay, I "disabled" logins :P
16:53:00 <TrueBrain> and enabled it again
16:53:04 <TrueBrain> just wanted to know what to do :)
16:53:11 <TrueBrain> so I can put it in read-only when-ever frosch123 :)
16:59:32 <TrueBrain> owh, screw this, I already put it in read-only. I am sure if you inspect the HTML you will find out how to still login frosch123 :P
17:00:25 <frosch123> i think there is some Special: admin page to kill all login cookies
17:03:05 <TrueBrain> I don't understand special pages, I had to admit :D
17:06:01 <TrueBrain> meh; as the sessions only survive till browser close, pretty sure this is "good enough" :P
17:06:41 <TrueBrain> right .. I think I prepared everything I could :) w00p \o/
17:06:44 <frosch123> do they? isn't there something like "remembe rfor 180 days"?
17:08:20 <TrueBrain> duckduck also isn't helping :(
17:11:46 <TrueBrain> you know, what-ever :P
17:11:57 <TrueBrain> this most likely helps, and if someone does sneak in changes, we just fix that after-the-fact :P
17:12:13 <TrueBrain> I say while someone made a change on the wiki
17:12:18 <TrueBrain> I don't understand Mediawiki, I really do not :(
17:12:54 *** tokai|noir has joined #openttd
17:12:54 *** ChanServ sets mode: +v tokai|noir
17:18:21 <TrueBrain> the "reset token" script mediawiki has, doesn't work, it seems :D
17:19:38 <frosch123> they changed the cookie name :p
17:21:02 <TrueBrain> owh, sessions are on disk ofc .. because, PHP
17:21:40 <TrueBrain> okay, now everyone is logged out :P
17:22:38 <TrueBrain> and I am sure you can figure out how to login again :D
17:22:43 <TrueBrain> it is not THAT difficult :P
17:23:16 <frosch123> i am sure my script won't even notice
17:23:41 <TrueBrain> I am sure of that too :P
17:23:49 <TrueBrain> anyway, no rush etc .. we can leave it in read-only for days
17:40:57 <frosch123> "You must have cookies enabled to log in to OpenTTD." <- i think nothing expresses the age of the ottd wiki more clearly
17:43:31 <longtomjr> what is that xkcd one, where it says it is best viewed in netscape navigator or something
17:43:49 <frosch123> searching for "truewiki" only gives weird results, but i like that "true metal" is in the list
17:44:09 <longtomjr> Yep, a lot of alt-facts websites
17:45:16 <frosch123> longtomjr: that is no xkcd comic. it is in the fineprint of every single page
17:45:47 <longtomjr> yep, I remembered that
17:45:58 <longtomjr> sorry, did not mean comic
17:46:13 <longtomjr> seems like my communication skills is going down the drain
17:46:24 <frosch123> pretty sure andy also enabled boat mode on his phone
17:47:20 <longtomjr> Were working with a friend to get the FRISS rails to be classified as broad, and we had some misscomunication around the dual voltage track situation, and now I need to fix the grf and update mid game, hoping that it does not go up in flames
17:50:34 <longtomjr> we now have dual voltage broad guage locos
18:02:24 <TrueBrain> frosch123: I considered registering a domain, just for some SEO, but meh :P
18:02:36 <TrueBrain> 2000 euro per year for truewiki.security might be a bit too much :P
18:10:20 <TrueBrain> awh, true.wiki is already taken :P
18:25:13 <TrueBrain> what I did realise, somewhat in time, that we have to disable DorpsGek integration on wiki-data before you push 100k commits to it :D
18:25:20 <TrueBrain> that would be HILARIOUS otherwise :D
18:26:15 <TrueBrain> as even if it doesn't announce it here, the webhook is called for every push on any repo on OpenTTD, no matter what :P
18:26:24 <TrueBrain> so yeah ... let's not :D Disabled now for wiki-data
18:26:41 <longtomjr> OFTC might have kicked DorpsGek
18:26:55 <TrueBrain> for sure, if the payload could process to start with
18:27:02 <TrueBrain> no clue what GitHub does with a 100k commit push :P
18:27:17 <TrueBrain> I somewhat don't fancy finding out :D
18:27:20 <TrueBrain> 1GB payload or something :P
18:27:22 <longtomjr> It has to batch them right?
18:27:35 <TrueBrain> I really have no clue what it does
18:42:18 <frosch123> you enabled dorpsgek for wiki change? :o
18:42:23 <frosch123> or only for prs/issues?
18:43:57 *** Progman has joined #openttd
18:46:49 <TrueBrain> It is always enabled for everything, it just doesn't announce it in this channel
18:47:08 <TrueBrain> But it receives the payload, then filters based on .dorpsgek.yml
18:47:39 <TrueBrain> That is why adding that file alone is sufficient to enable it :)
18:51:28 <TrueBrain> But we will re-enable it after migration, for PRs/issues at first .. for now it is disabled :)
18:51:43 <DorpsGek_III> - Update: Translations from eints (by translators)
19:12:14 *** gelignite has joined #openttd
19:15:51 *** otetede has joined #openttd
19:25:14 *** jottyfan has joined #openttd
19:26:28 *** andythenorth has joined #openttd
19:28:30 <Eddi|zuHause> oh, i found the function to reset the corrupted space chem levels. it's hidden in some context menu that nobody ever needs to use
20:08:12 <andythenorth> have you heard of it?
20:16:56 <LordAro> what does TTD stand for?
20:18:51 <FLHerne> Nothing, because that would be trademark infringement :p
20:19:36 <LordAro> not much irritates me more than "Open Transport Tycoon"
20:22:14 <Eddi|zuHause> i could imagine worse things to irritate me :p
20:43:00 <andythenorth> the game is good, the website is quite outdated
20:43:14 <andythenorth> and the wiki is very old
20:43:31 <andythenorth> also what are these 'newgrf' things?
20:47:18 <FLHerne> You can really tell that everything OTTD was invented by asm programmers and not marketing people
20:55:42 <LordAro> wonder how openrct2 is doing
21:13:57 <FLHerne> Does the address nml-team@openttdcoop.org still work?
21:14:07 <FLHerne> And if not, what else should we use?
21:20:57 <LordAro> github.com/openttd/nml/issues
21:22:28 <FLHerne> Currently setup.py has `author_email="nml-team@openttdcoop.org"`
21:22:49 <FLHerne> If someone active receives those emails, fine
21:22:56 <FLHerne> Otherwise we should probably just remove it
21:26:24 <frosch123> i was forwarded 5 spam mails from that address in the past years
21:26:32 <frosch123> replace it, so i get less spam :)
21:27:29 <frosch123> i have no idea how i got onto that mailing list btw :)
21:28:41 <frosch123> if you really need a mail, then info@ottd is the only one we have
21:31:58 <FLHerne> Does anyone send not-spam emails to it?
21:32:35 <FLHerne> OTOH, if you get the emails, we might as well keep it just in case :D
21:33:15 <FLHerne> You never know, someone might have an urgent NML problem and no web browser but an email client
22:03:29 <andythenorth> I have an urgent NML problem
22:04:24 <LordAro> andythenorth: fix it yourself
22:04:36 <andythenorth> I can't, I removed myself from the project :P
22:05:17 <andythenorth> can I email someone about it?
22:15:44 <FLHerne> You can, but apparently that someone is frosch, so he'll just tell you to sod off
22:45:26 <andythenorth> frosch is much more polite than that
22:45:45 <andythenorth> frosch waits for me to conclude my idea is terrible
22:46:04 <andythenorth> does anyone fancy trying to patch a 3rd comedy colour?
22:46:11 <andythenorth> and see what breaks?
22:46:14 <frosch123> but i am a haxx0r now. TrueBrain made me edit the source of a website inside by browser while viewing
22:47:07 <frosch123> andythenorth: combinatorial explosion will happen
22:47:10 <andythenorth> the 12 pinks in the DOS palette, are they legacy, or does OpenTTD actually use them internally?
22:47:28 <LordAro> frosch123: ooi, why does there need to be a combinatorial anything?
22:47:37 <andythenorth> no it will happen
22:47:45 <andythenorth> I already have combinatorial crap from 2CC
22:47:55 <andythenorth> 3 comedy colours cubes it
22:48:05 <andythenorth> on the other hand
22:48:11 <frosch123> LordAro: 1cc = 16 recolour sprites, 2cc = 256 recolour sprites, 3cc = 4096 recolour sprites
22:48:15 <andythenorth> 128 vehicle IDs is enough right?
22:48:27 <frosch123> and they must be in the <16k range
22:48:37 <frosch123> so 4cc is definitely impossible :)
22:48:59 <LordAro> why does it require extra combination though? my naive view of the world says that adding an extra 16 colours is just an extra... 16 sprites
22:49:06 <andythenorth> this is definitely an idea of the 'what can we break?' type
22:49:26 <frosch123> LordAro: then you need to extend the blitter to apply multiple recolourings to a sprite :)
22:49:50 <LordAro> well how hard can that be?
22:49:53 <frosch123> and you break andy's custom recolouring, because the callbacks have to return "something"
22:50:09 <andythenorth> lol, like we never break my newgrfs before :)
22:50:24 <andythenorth> frosch123 also do you remember patching hovercraft on land?
22:50:44 <frosch123> it crashed when a ship entered a rail station iiirc
22:50:57 <andythenorth> I thought it tried to drive through houses
22:51:03 <andythenorth> anyway, it crashed
22:53:07 <frosch123> andythenorth: use sprite stacks for the 3rd recolouring, and use "random_bits & 0xF" as the player selection
22:53:34 <frosch123> using sprite stacks you avoid the combinatorial explosion
22:54:02 <frosch123> using random_bit you reduce decision fatique of players
22:54:23 <andythenorth> my actual serious plan is a grf parameter 'automatic'
22:54:33 <andythenorth> then I just set some rules
22:54:51 <andythenorth> it will be weird, because it won't respect player cc for freight wagons
22:55:00 <andythenorth> but 'realistic' sets do that anyway
22:55:21 <andythenorth> I spent a day choosing different colour sets for my test game, decision fatigue is real
22:55:52 <andythenorth> so parameter will also offer 'cc' as an option
22:57:44 * andythenorth finds a new pony
23:57:14 *** snail_UES_ is now known as Guest5598
23:57:14 *** snail_UES_ has joined #openttd
continue to next day ⏵