Config
Log for #openttd on 13th September 2020:
Times are UTC Toggle Colours
00:05:00  *** Lejving_ has quit IRC
00:17:18  *** Progman has quit IRC
00:31:29  *** tokai has joined #openttd
00:31:29  *** ChanServ sets mode: +v tokai
00:33:04  *** snail_UES_ has joined #openttd
00:41:09  *** snail_UES_ has quit IRC
00:46:34  *** snail_UES_ has joined #openttd
01:07:47  *** Gustavo6046 has joined #openttd
01:49:33  *** Flygon has joined #openttd
02:08:27  *** D-HUND has joined #openttd
02:11:47  *** debdog has quit IRC
03:15:46  *** snail_UES_ has quit IRC
03:17:58  *** supermop_Home_ has quit IRC
03:31:59  *** Gustavo6046 has quit IRC
03:35:06  *** Gustavo6046 has joined #openttd
04:19:07  *** nielsm has quit IRC
04:48:53  *** Gustavo6046 is now known as Guest761
04:48:55  *** Gustavo6046 has joined #openttd
04:49:56  *** Gustavo6046 has joined #openttd
04:51:33  *** Guest761 has quit IRC
06:48:49  *** andythenorth has joined #openttd
07:08:27  *** nielsm has joined #openttd
07:18:29  *** nielsm has quit IRC
07:22:53  <andythenorth> yo
07:36:45  *** Smedles_ has quit IRC
07:38:19  *** Smedles has joined #openttd
07:45:26  *** sla_ro|master has joined #openttd
07:52:59  *** Smedles_ has joined #openttd
07:55:03  *** Smedles has quit IRC
08:00:12  *** Smedles_ has quit IRC
08:01:38  *** Smedles has joined #openttd
08:08:05  *** Smedles has quit IRC
08:09:23  *** Smedles has joined #openttd
08:16:10  *** Lejving has joined #openttd
08:17:42  <andythenorth> is this in Factorio? https://www.youtube.com/watch?v=hctG2dQzHwg
08:20:26  *** WormnestAndroid has quit IRC
08:20:38  *** WormnestAndroid has joined #openttd
08:38:09  *** Smedles has quit IRC
08:39:37  *** Smedles has joined #openttd
08:43:25  *** Progman has joined #openttd
08:54:19  <DorpsGek_III> [OpenTTD/nml] andythenorth updated pull request #159: Doc: Changelog for 0.5.3 https://git.io/JJIqn
08:54:30  <andythenorth> unexpected
08:57:29  <andythenorth> also lolz
08:57:58  <andythenorth> "fixing" the openttd build has left my newgrf dev environment trashed
08:57:59  <andythenorth> oops
08:59:03  *** Smedles has quit IRC
09:00:21  *** Smedles has joined #openttd
09:17:59  <andythenorth> that'll teach me to delete the ports tree
09:18:05  <andythenorth> even when it's a recommended 'fix'
09:21:44  <FLHerne> andythenorth: What change did you push there?
09:22:52  <andythenorth> I don't know, I'm reading the diff
09:22:57  <andythenorth> I merged upstream and forced push
09:23:17  <andythenorth> I haven't touched any nml for a couple of months, my motivation vanished
09:24:56  <andythenorth> comparing https://github.com/OpenTTD/nml/commit/4cf4e0f39fa68064f5276e8a9150d2c27baa56ff and https://github.com/OpenTTD/nml/commit/23b25eafd0897630e128f132d00389d27e85782c
09:25:51  <andythenorth> I don't see any changes
09:26:08  <FLHerne> Ok, that was what I thought ;-)
09:27:04  <FLHerne> I was a bit puzzled that you'd pushed a new version that looked the same as I remembered
09:27:29  <andythenorth> is there a way someone else can fork that PR?
09:27:41  <andythenorth> I'm really done with nml at the moment, but I don't want to childishly delete it
09:28:04  <andythenorth> all I wanted to do was fix a few pixels in Horse, and I've spent an hour rebuilding my homebrew and python environments
09:28:30  <andythenorth> motivation has returned to 0
09:37:28  *** andythenorth has quit IRC
09:54:57  <TrueBrain> hmm .. seems the new master-server is slowly increasing in memory .. that is not good :D
09:55:07  <TrueBrain> something is not free'd :)
09:55:27  <TrueBrain> https://pasteboard.co/JqSaF0A.png
09:55:33  *** Wolf01 has joined #openttd
09:56:24  <SpComb> it's AWS, you can just provision more *g*
09:57:02  <TrueBrain> yeah, the lazy-man solution ... OR! And I know this is totally out of this world .. you can fix the memory leak :P
09:57:03  <TrueBrain> :D
09:57:05  <SpComb> I'd like to see a Java autoscaler. If the JVM OOMs, it gets reprovisioned with a larger heap
09:57:14  <SpComb> it would be useful at work
09:57:49  <TrueBrain> or .. not use Java :P :D
09:58:23  <TrueBrain> I am curious where the memory increase of the master-server comes from .. I do not make objects or anything per connection
09:59:02  <TrueBrain> ah, no, I know .. and it is okay even
09:59:41  <TrueBrain> well, sorta .. the master-server is behind a proxy with proxy-protocol enabled, and the proxy-protocol is only sent in the first package of the stream
09:59:58  <TrueBrain> so it keeps a mapping of the proxy source-port to the real source-ip/port
10:00:02  <TrueBrain> but this mapping never expires
10:00:26  <TrueBrain> at a certain point nginx will recycle ports, and that is when the memory increase stops
10:00:31  <TrueBrain> not ideal, but meh
10:11:30  *** frosch123 has joined #openttd
10:48:40  <TrueBrain> frosch123: gollum is a bit weird .. you cannot even start it in some development mode where it shows backtraces?
11:00:35  *** nielsm has joined #openttd
11:05:51  <TrueBrain> frosch123: okay, this needs more time to investigate what is going on .. does it even use wikicloth? Can't find a reference to it via GitHub :P
11:11:50  <TrueBrain> ah, finally found the reference
11:11:50  <TrueBrain> lol
11:13:53  <frosch123> TrueBrain: yeah, the missing backtraces were exactly my problem
11:14:27  <frosch123> the dependency is gollum -> github-markup -> wikicloth
11:14:37  <frosch123> wikicloth docs say they support templates
11:15:00  <frosch123> github writes about their own gollum-based wikis that they disabled templates
11:15:22  <frosch123> if "disable templates" means "make them break everything"... maybe it's in github-markup
11:59:48  *** jottyfan has joined #openttd
13:10:48  *** tokai|noir has joined #openttd
13:10:48  *** ChanServ sets mode: +v tokai|noir
13:14:19  *** virtualrandomnumber has joined #openttd
13:14:24  *** virtualrandomnumber has quit IRC
13:17:33  *** tokai has quit IRC
13:29:29  <michi_cc> Eddi|zuHause: Hmm, you're listening to video game music in your spare time?
13:29:56  <Eddi|zuHause> yes
13:30:58  <michi_cc> That was a very Eddi comment on twitch :P
13:31:08  <Eddi|zuHause> :p
14:12:24  *** supermop_Home_ has joined #openttd
14:37:45  *** virtualrandomnumber has joined #openttd
15:01:39  *** sla_ro|master has quit IRC
15:09:20  *** virtualrandomnumber has quit IRC
15:16:41  *** jottyfan has quit IRC
15:31:06  <Eddi|zuHause> so... https://www.twitch.tv/eddijk
15:33:34  <Eddi|zuHause> anyone remember what i was trying to do? :p
15:34:58  *** Wormnest has joined #openttd
16:10:26  *** tokai has joined #openttd
16:10:26  *** ChanServ sets mode: +v tokai
16:11:52  <supermop_Home_> Eddi|zuHause build a train?
16:17:13  *** tokai|noir has quit IRC
16:22:28  *** gelignite has joined #openttd
16:28:41  *** Flygon has quit IRC
16:38:22  *** snail_UES_ has joined #openttd
16:44:25  <DorpsGek_III> [OpenTTD/OpenTTD] KyleMoran138 commented on issue #8303: Passwords not autosaving https://git.io/JUYLu
17:11:52  <TrueBrain> frosch123: found what caused the render issue, but it doesn't make templates work :)
17:12:10  <TrueBrain> wikicloth-0.8.3/lib/wikicloth/wiki_buffer/var.rb line 83
17:12:13  <TrueBrain> disable it, and it works ;)
17:13:53  *** gelignite has quit IRC
17:23:39  <frosch123> how did you find that?
17:24:42  <TrueBrain> grepped for "Failed to render", added a "raise" below that line in gollum-lib, and saw the backtrace :P
17:26:47  <TrueBrain> ret = @options[:link_handler].include_resource(key,key_options).to_s returns empty
17:26:48  <TrueBrain> not sure why ..
17:28:30  <TrueBrain> the wikicloth function is defined to return nil
17:28:40  <frosch123> oi, i just discovered that all my "puts" that did not print anything before... actually print when i stop the container
17:28:47  <frosch123> so there is some flush missing somewhere
17:28:55  <TrueBrain> ghehe .. I just installed the gems on my machine
17:29:02  <TrueBrain> then puts work fine
17:29:41  <frosch123> so, we need to implement include_resource
17:29:54  <TrueBrain> no, "template"
17:30:13  <TrueBrain> wikicloth-0.8.3/lib/wikicloth/wiki_link_handler.rb line 171
17:30:19  <TrueBrain> I am guessing it should be overwritten
17:30:20  <TrueBrain> it is not
17:33:05  <TrueBrain> not sure it is easy to implement that ..
17:34:08  <TrueBrain> as it would require knowledge of more than just the markup ..
17:35:05  <TrueBrain> https://github.com/nricciar/wikicloth#advanced-usage
17:35:18  <TrueBrain> you need to make a class based on WikiCloth::Parser to overwrite the template function
17:35:32  <frosch123> ok, if i insert 'ret = "start {{{1}}} end"', it does the parameter stuff correctly
17:35:54  <TrueBrain> gems/github-markup-3.0.4/lib/github/markups.rb line 56, is where WikiCloth is called ..
17:36:04  <TrueBrain> that doesn't have knowledge of any other template
17:37:17  <TrueBrain> bypassing gollum at that point and just reading the file from disk seems the most sensible :P
17:37:24  <frosch123> it has the "filename"
17:37:33  <TrueBrain> but that is one HUGE hack at that point :)
17:38:10  <TrueBrain> filename is empty it seems
17:38:25  <frosch123> well, if this just was the last step, and we knew that everything else would work :p
17:39:00  <TrueBrain> what else is not working?
17:39:00  <frosch123> but we are still evaluating how much of the template magic with (#if and stuff) even works
17:39:51  <frosch123> TrueBrain: https://wiki.openttd.org/?title=Template:VersionBox&action=edit <- do you see all those {{#ifexpr}}
17:39:56  <frosch123> they are non standard
17:40:01  <frosch123> a lot of templates use them
17:40:08  <frosch123> and i kind of doubt they work out of the box
17:40:36  <TrueBrain> sometimes I wonder if it isn't easier to start over :P
17:41:48  <TrueBrain> as it seems some people really went overboard here :P
17:42:03  <frosch123> well, #ifexpr is actually not used in many places, but i have no idea what other stuff there is
17:42:44  <TrueBrain> ifexpr is supported by wikicloth btw
17:43:41  <TrueBrain> and I think we need to accept we can't get this 100% correct; there is just too much shit on top of shit over the years of different people doing what they think is best
17:43:51  <TrueBrain> we can only expect and assume some loss of some pages
17:43:53  <TrueBrain> not sure that is bad
17:44:42  <frosch123> sure, all the Talk: pages will be lost... "no loss" :)
17:45:35  <frosch123> a more harsh approach would be: we port the manual only, and put everything else into an readonly archive
17:45:51  <frosch123> kind of head-butting with the weirdos who currently translate newgrfspecs into polish on the ottd wiki
17:47:41  <frosch123> lol... i guess they were done with newgrfspecs. they are now translating m4nfo
17:50:18  <TrueBrain> implementing Templates will be challenging .. the template also has to be parsed ofc
17:50:27  <TrueBrain> no clue how that works exactly, but WikiCloth doesn't do that it seems
17:50:58  <frosch123> you mean for recursive templates?
17:51:05  <frosch123> because a simple template worked
17:51:23  <TrueBrain> yeah, as the URL you gave already has recursion
17:51:34  <TrueBrain> well, it depends on what Gollum adds to the file parsing, I guess
17:51:35  <frosch123> i put 'ret = "start {{{1}}} end"' into the source and the parameter worked
17:51:58  <TrueBrain> Gollum has a whole chain of filters
17:52:07  <TrueBrain> but I guess it is fine if it does this on the combined result
17:52:11  <TrueBrain> okay, that should be fine
17:52:18  <TrueBrain> the current workdir is set by Gollum
17:52:31  <TrueBrain> but I do not know who handles the extension stuff
17:52:41  <frosch123> we only have mediawiki
17:52:44  <TrueBrain> true
17:52:55  <frosch123> transcluding non-mediawiki into mediawiki would be insane :)
17:53:02  <TrueBrain> so I would think it is as simple as opening the file, reading it, and returning it from template()
17:53:16  <TrueBrain> the main worry would be how to do namespacing, I guess
17:53:25  <TrueBrain> as {{Foo}} is {{Template:Foo}}, but just as shorthand
17:53:31  <TrueBrain> and you have {:Foo} to include the main page
17:53:32  <TrueBrain> etc
17:53:46  <frosch123> if template:foo works, that is fine
17:54:02  <frosch123> we need to convert a lot of links anyway
17:54:19  <frosch123> so replacing {{foo}} with {{template:foo}} in the wikiconversion is just one task of many
17:56:09  <TrueBrain> does Gollum ever uses folders?
17:56:14  <TrueBrain> or is everything flat-file in a single folder?
17:56:25  <frosch123> you can name pages "foo/bar"
17:56:29  <frosch123> and it will create folders
17:56:33  *** gelignite has joined #openttd
17:56:35  <frosch123> "uploads/" is a special folder
17:57:07  <frosch123> i did not try "foo/../../../etc/passwd" :)
18:00:18  <TrueBrain> so something like: return IO.read(template + ".mediawiki") in def template(template) should work, I guess :P
18:00:51  <frosch123> i guess it is fine to continue the experiments
18:01:11  <TrueBrain> what other option do we have?
18:01:27  <frosch123> convince therudge to run a third wiki :)
18:01:40  <frosch123> ask the polish guys whether they want to run their own wiki?
18:01:44  <TrueBrain> is he maintaining the current ones? :P
18:01:52  <frosch123> no idea
18:03:15  <frosch123> but since ottdwiki is even used for forum events, instead of the forum's own wiki....
18:03:40  <frosch123> maybe ottdwiki is a general purpose pastebin :)
18:05:34  <TrueBrain> funny, {{Template:XXX}} is not going through the "template" function
18:05:45  <TrueBrain> so who is handling that ...
18:14:41  <TrueBrain> okay, the current working directory is not set correctly :P
18:14:43  <TrueBrain> it is always /
18:14:44  <TrueBrain> :D
18:17:54  <TrueBrain> that is most likely a setting
18:18:05  <TrueBrain> otherwise indeed the template stuff works .. if you do not use {{Template:
18:18:06  <TrueBrain> :)
18:20:20  <TrueBrain> ah, {{Template: is seen as a function, one it doesn't know
18:27:30  <TrueBrain> Pathname.new(@markup.wiki.path).join(@markup.dir) <- if @markup.dir is /, the result becomes /
18:27:34  <TrueBrain> not what I expect ..
18:28:15  <TrueBrain> ah .. the / is absolute ..
18:28:16  <TrueBrain> hmm
18:28:53  <TrueBrain> I think that is a bug in gollum ..
18:28:58  <TrueBrain> as it always start with a /
18:30:35  <frosch123> starting with / is correct, if its a url relative to the host
18:31:09  <TrueBrain> the dir should always start with a /
18:31:15  <TrueBrain> but the join is senseless after that
18:31:20  <TrueBrain> @markup.wiki.path is never used
18:31:26  <TrueBrain> as it does an absolute change of path :)
18:31:30  <TrueBrain> https://gist.github.com/TrueBrain/95d9ccdf5ab8c05cdc4c4391927fa49e
18:31:41  <TrueBrain> with those changes, {{Foo}} works if the template is named {{Foo}}
18:32:16  <TrueBrain> no, new version
18:32:24  <TrueBrain> {{Foo}} works if the template is named Template:Foo
18:32:27  <TrueBrain> that makes more sense
18:32:33  <TrueBrain> you cannot include {{:Test1}} etc
18:34:02  <TrueBrain> I understand the need for templates on wikis .. not sure why gollum / github-markup doesn't implement this
18:40:15  <frosch123> we already learned that gh wiki does not even support uploading images
18:41:10  <frosch123> iirc gollum has its own method to define global macros
18:41:25  <frosch123> but most markup formats don't do templates
19:07:57  *** welterde has quit IRC
19:52:47  *** sla_ro|master has joined #openttd
19:55:04  *** frosch123 has quit IRC
19:56:13  *** snail_UES_ has quit IRC
20:07:33  *** gelignite has quit IRC
20:51:20  *** snail_UES_ has joined #openttd
21:13:38  *** supermop_Home_ has quit IRC
21:24:52  *** supermop_Home has joined #openttd
21:25:02  <supermop_Home> something looks weird about that junction eddir
21:25:04  <supermop_Home> eddi
21:36:25  *** Wormnest has quit IRC
21:47:58  *** WormnestAndroid has quit IRC
21:48:39  *** WormnestAndroid has joined #openttd
21:53:26  <Eddi|zuHause> which junction?
21:53:38  <Eddi|zuHause> this was half an hour ago :)
21:59:21  *** Wolf01 has quit IRC
22:00:29  *** welterde has joined #openttd
22:09:48  *** nielsm has quit IRC
22:16:37  *** sla_ro|master has quit IRC
22:17:02  <Eddi|zuHause> so... next time i probably need to look into whether i can convert some of the steam engine models from the previous game, because these stock ones get a bit... monotonous
22:18:50  <supermop_Home> i feel like id just want to wait until there are emus
22:21:14  *** WormnestAndroid has quit IRC
22:21:32  *** WormnestAndroid has joined #openttd
22:29:44  *** Lejving has quit IRC
22:30:17  <Eddi|zuHause> well, you could start in other dates :)
22:31:39  *** Lejving has joined #openttd
22:34:57  <Eddi|zuHause> "this mod converter only runs on windows"
23:12:28  *** Progman has quit IRC
23:19:49  *** smoke_fumus has joined #openttd
23:46:49  *** smoke_fumus has quit IRC

Powered by YARRSTE version: svn-trunk