IRC logs for #openttd on OFTC at 2019-03-18
            
00:07:23 *** Wolf01 has quit IRC
00:16:16 <DorpsGek_II> [OpenTTD/OpenTTD] stormcone opened pull request #7384: Add: Display tooltips on industry chains window even when "Show toolt… https://git.io/fjvgY
00:31:35 *** Progman has quit IRC
00:55:12 *** supermop_Home has quit IRC
00:55:23 *** Supercheese has quit IRC
00:55:53 *** Supercheese has joined #openttd
01:17:27 *** Flygon has joined #openttd
01:53:59 <Samu> hmm my ai crashed
01:55:36 <Samu> for some reason, some orders became invalid
01:55:57 <Samu> service at depot turned invalid, how could that happen?
01:59:52 *** HerzogDeXtEr has quit IRC
02:02:03 <Samu> how do orders to depot turn invalid?
02:02:17 <Samu> must think
02:03:58 <peter1138> Depot removed.
02:09:43 <Samu> hmm, I schedule removals for later
02:17:01 *** Thedarkb-T60 has joined #openttd
02:19:29 <Samu> nah, it wasn't the removal, i actually have a depot here but no vehicle going to it
02:19:38 <Samu> how come
02:20:16 <Samu> I always have vehicles heading to depots in the orders
02:20:44 <Samu> somehow, the order did exist, but turned invalid... must understand why
02:21:05 <Samu> depot exists in the route, I see it
02:44:40 <peter1138> Yes, but.
02:48:15 <Samu> hmm i notice my code has some missing returns...
02:48:49 <Samu> but still doesnt explain these invalid depot orders
02:57:49 <Samu> I don't reuse depots, when I schedule a depot for later removal, and i build a new route, there is no way I would be removing the wrong depot
02:59:05 <Samu> first, it would still exist
02:59:19 <Samu> the new depot would go to a different tile
03:00:00 <Samu> if the depot is removed meanwhile, it is also cleared from the removal list
03:00:11 <Samu> nah, it's not the removing scheduler
03:00:19 <Samu> it's something else
03:22:20 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN opened pull request #7385: Fix: NewGRF feature cleanup. https://git.io/fjvas
03:26:19 <Samu> i dont know what happened :(
03:26:39 <Samu> too bad this is online, i can't restart game
03:26:54 <Samu> would like to replay the game
03:27:20 <Samu> i've hear of that elusive replay network game feature, but never tried
03:28:26 <Samu> "depot removed"
03:28:41 <Samu> somebody flooded them?
03:28:49 <Samu> makes no sense
03:35:48 <Samu> im gonna try avoid removing depots which have vehicles heading to them, but i still doubt it's the scheduler
04:11:45 *** debdog has joined #openttd
04:15:07 *** D-HUND has quit IRC
04:28:29 <Samu> cargodist is really weird at times
04:28:55 <Samu> it is able to make my buses have a -£11,000 profit last year
04:53:18 *** tokai|noir has joined #openttd
04:53:18 *** ChanServ sets mode: +v tokai|noir
05:00:18 *** tokai has quit IRC
05:25:44 *** Supercheese has quit IRC
05:26:05 *** Supercheese has joined #openttd
05:32:05 *** Samu has quit IRC
05:35:47 *** tot has quit IRC
06:20:02 *** Pikka has joined #openttd
06:32:47 *** glx has quit IRC
07:39:30 *** tot has joined #openttd
07:40:00 <tot> sorry I had to reload not sure if my msg got posted
07:40:14 <tot> I am trying to compile the game following these instructions; https://wiki.openttd.org/Compiling_on_Windows_using_Microsoft_Visual_C%2B%2B_2015
07:40:42 <tot> however on step 3 of the tortoisesvn i get an error
07:40:51 <tot> 'unable to connect to a repository at url'
07:41:05 <tot> svn://svn.openttd.org/trunk is what I am using as per the article
07:43:33 *** circ-user-3HYVs has joined #openttd
07:52:19 <peter1138> Yeah, we don't use SVN any more.
07:53:46 <tot> is there updated guide on how to compile with patches?
07:53:52 <peter1138> https://github.com/OpenTTD/OpenTTD/blob/master/README.md < Jump to section 7.0 Compiling.
07:54:59 <tot> I have never done this before, where do I apply the patches?
07:55:13 <tot> I asked a friend and he said it was with tortoisesvn but if that is obsolete?
08:01:45 <tot> I have VS2017 open and used the open>folder to load the 1.7 files i extracted from the zip provided by github
08:02:13 <tot> in the patch zip i downloaded off the forums there are several dozen .patch files inside a folder labled 'patches'
08:02:42 <tot> however opening this with the same method seems to overwrite my previously opened files
08:11:25 *** andythenorth has joined #openttd
08:13:40 <andythenorth> moin
08:16:30 <Pikka> boin
08:17:13 <andythenorth> pikka :o
08:17:20 <Pikka> yas
08:17:20 <andythenorth> did I broke it?
08:17:31 <Pikka> no but I just fixed it
08:17:43 <peter1138> andythenorth, do you thing with this page: https://wiki.openttd.org/Compiling_on_Windows_using_Microsoft_Visual_C%2B%2B_2015
08:18:22 <Pikka> When civi was looking for a depot to build goods trucks in, it didn't check who owned the depot, so a competitor's depot being nearby could prevent it building any vehicles. Oops.
08:18:49 <andythenorth> peter1138: the thing where I delete it? Or the 'outdated' thing?
08:19:49 <peter1138> I dunno.
08:19:54 <peter1138> All those "compiling on" pages are bullshit.
08:19:58 <peter1138> They all mention svn :p
08:20:14 <andythenorth> yeah
08:21:22 <andythenorth> https://wiki.openttd.org/Compiling_on_Windows_using_Microsoft_Visual_C%2B%2B_2008/2010
08:21:34 <andythenorth> peter1138: you suggested COMPILING.md
08:21:40 <andythenorth> probly in /docs
08:21:50 <andythenorth> still suggesting that?
08:21:53 <peter1138> probably not in /docs
08:22:00 <andythenorth> root?
08:22:20 <peter1138> /docs is not more for things like internals
08:22:36 <andythenorth> kinda depends if we want to web-publish anything with GH Pages
08:22:45 <andythenorth> I am disliking GH Pages quite a lot tbh
08:22:50 <andythenorth> it doesn't really work
08:23:07 <andythenorth> meanwhile, you have a catchments bug to remove :P https://github.com/OpenTTD/OpenTTD/blob/master/known-bugs.txt#L367
08:23:46 <peter1138> Due to performance decisions the catchment area for cargo accepted by a
08:23:47 <peter1138> lol
08:23:52 <andythenorth> much lol
08:29:51 <tot> sorry to ask again but can someone point me in the direction of an up to date guide on how to apply patches to the source
08:30:11 <tot> all i can find for .patch files makes reference to svn clients
08:30:23 <tot> is there a guide somewhere for using VS?
08:31:52 <andythenorth> afaik there is no up to date guide for that tot :)
08:32:13 <andythenorth> you are welcome to make one https://wiki.openttd.org/Main_Page
08:32:48 <tot> what are people using to apply patches then to create custom builds?
08:33:20 <tot> i'm not sure how i would write the guide when I am asking the questions, but i can give it a shot when I understand the process
08:34:49 * andythenorth looks for the link to old info
08:35:38 <andythenorth> https://www.tt-forums.net/viewtopic.php?f=33&t=21678&hilit=patches+apply
08:35:43 <andythenorth> outdated
08:36:50 <andythenorth> or https://wiki.openttd.org/Patches
08:36:59 <tot> yes I have read that but second post seemed to imply that it was for SVN still
08:37:15 <andythenorth> yes, that's a problem
08:37:30 <tot> "The hard way is to get the source code, apply the patch and compile the game yourself. This involves setting up a compile environment on your computer, which can take anywhere from a few hours to a few days, depending on your computer skill level. The easy way is hoping that someone else has done this compiling before, so that you can download a precompiled binary, similar to downloading the official version from the OpenTTD
08:37:41 <andythenorth> where are we starting from? Do you have git etc?
08:37:43 <tot> Seems to tell me to just ask people to compile it for me...
08:38:07 <tot> i have downloaded the 1.7.zip from github and installed VS2017
08:38:39 <tot> the 1.7.zip is extracted to its own folder and i have used the open>folder in VS2017 to load it
08:38:52 <andythenorth> ok, this might be the most relevant wiki page, it's outdated though https://wiki.openttd.org/Compiling_on_Windows_using_Microsoft_Visual_C%2B%2B_2015
08:39:12 <peter1138> In VS you need to open the project file within projects/
08:39:14 <andythenorth> tot: have you compiled anything before?
08:39:31 <peter1138> s/project file/solution file/
08:39:47 <tot> no but I asked my brother who does a lot and he said to apply patches @ the SVN level
08:39:58 <tot> so that is why I am confused how to do it if that step is now skipped
08:40:40 <andythenorth> so 1. SVN changed to git
08:40:49 <andythenorth> 2. the instructions for Windows are outdated
08:41:11 <andythenorth> 3. nobody working on the core game applies patches, so it's not something anybody really documents
08:41:17 <andythenorth> hope that helps :)
08:41:47 <andythenorth> what's the patch you're trying to apply?
08:41:54 <tot> im sure the people in here know how it is done though? I thought this was the dev chat
08:41:59 <tot> is there somewhere better for me to ask?
08:42:16 <tot> https://www.tt-forums.net/viewtopic.php?f=33&t=71970&sid=637cbee4e286da419236602225ca0ee0&start=280 & https://www.tt-forums.net/viewtopic.php?t=75295
08:43:43 <tot> peter1138, I see multiple .vcproj files inside /projects/ but it does not allow me to select them all
08:44:24 <andythenorth> asking here is good, it just might be that nobody knows the answer :)
08:44:38 <andythenorth> also the channel is more active in evening, European timezone
08:45:29 <tot> on the tt-forums there are pages and pages of .patch files in the development subforum
08:45:33 <andythenorth> yes
08:45:37 <tot> I would be amazed if the developers did not know how they worked
08:45:37 <andythenorth> you can also ask on the forum thread for each patch, sometimes that gets an answer, sometimes it doesn't
08:46:34 <andythenorth> what timezone are you. in?
08:46:42 <tot> I assumed the method would be similar if not identical for every patch so I did not think bumping old topics would be the best way to get the info
08:47:05 <tot> GMT-4
08:48:03 <andythenorth> ok so the channel is often active around 19.00 GMT
08:49:02 <tot> and who should i be looking for to answer
08:49:25 <andythenorth> unknown, you just have to hope
08:51:15 <tot> it is not known who the developers are?
08:58:13 *** tycoondemon has quit IRC
08:58:34 <peter1138> You need a tool to apply a patch.
08:58:39 <peter1138> TortoiseSVN was one such tool.
08:58:42 <peter1138> Other tools exist.
08:58:54 <tot> https://www.drupal.org/node/1399218
08:59:09 <tot> I found this guide to use git; which i heard mentioned earlier
08:59:22 <peter1138> git apply will maybe do it if the patch is correctly formatted.
08:59:43 <peter1138> However you will need to clone the repo with git to use that, rather than downloading the (rather ancient) 1.7 source code.
09:00:11 <peter1138> andythenorth, I've messed up with my docks :/
09:00:17 <tot> yes the format is listed in the article i believe
09:00:27 <tot> git clone --branch [version] http://git.drupal.org/project/[project_name].git
09:00:48 <tot> so for 1.7 it would be git clone --branch 1.7 https://github.com/OpenTTD/OpenTTD.git?
09:01:39 *** tycoondemon has joined #openttd
09:01:43 <tot> the only reason I was going to use 1.7 was because both the patch files I would like to try are from that era and I assumed would work best on a version that they were designed for rather than perhaps breaking in the new one
09:04:12 <andythenorth> peter1138: ?? o_O
09:04:26 <andythenorth> tot: that is a good assumption
09:05:03 <peter1138> I kinda ignored GetStationGfx and did it like newgrf_stations.
09:05:10 <peter1138> So I've got a hybrid mapping.
09:06:12 *** tycoondemon has quit IRC
09:06:46 <andythenorth> oops
09:09:25 <tot> what is wrong with my command to pull the 1.7 version using git?
09:10:58 <peter1138> What happened when you did it?
09:16:47 <tot> "Please make sure you have the correct access rights and the repository exists"
09:17:16 <tot> and 'branch 1.7 not found in upstream origin'
09:17:33 <peter1138> Ah
09:17:39 <peter1138> 1.7 isn't a branch, it's a tag.
09:18:10 <tot> i see on the left @ github it says Branch: release/1.7
09:18:27 <tot> how do I find the branch
09:18:35 <peter1138> Oops, you are right
09:18:41 <peter1138> However it is "release/1.7" not "1.7"
09:19:05 <tot> oh I see; thank you
09:19:05 <peter1138> 1.7.0 is a tag
09:19:27 <tot> also after installing Git I have two applications it seems
09:19:36 <tot> MINGW64 which is a console interface I am using
09:19:57 <tot> as well as an application with a UI that allowed me to open my extracted .zip folder from when I downloaded from github earlier
09:20:32 <tot> "However you will need to clone the repo with git to use that, rather than downloading the (rather ancient) 1.7 source code."
09:20:47 <tot> leads me to believe I should be using the console rather than the UI?
09:21:38 <peter1138> There are CLI tools and GUI tools to do this.
09:22:38 <tot> So I should not be using the MINGW64 console?
09:22:49 <peter1138> You should be using whatever you are comfortable with.
09:23:10 <andythenorth> personal preference
09:23:18 <tot> I am comfortable with neither so I ask what the community is more capable of helping me with
09:25:16 <andythenorth> console is more universal
09:26:20 <tot> ok well in the console I have cloned the 1.7 release
09:26:44 <tot> git clone --branch release/1.7 https://github.com/openttd/openttd.git
09:27:12 <tot> however i cant seem to 'checkout'
09:27:20 <tot> it asks for an issue number which returns errors
09:28:04 <tot> https://www.drupal.org/node/1399218
09:28:07 <tot> step 2 on this guide
09:28:26 <andythenorth> you can paste errors to here https://paste.openttdcoop.org
09:28:40 <andythenorth> or straight to this chat, if they're 1 line
09:29:07 <tot> fatal: not a git repository (or any of the parent directories: .git
09:29:23 <peter1138> You need to cd into the clone you just made.
09:29:28 <tot> i was assuming the issue number was for local storage
09:29:51 <peter1138> And the "issue number" bit you can ignore, that's just drupal's naming scheme for bug fixes
09:29:59 <tot> cd ~/path/to/[project-name]
09:30:16 <tot> is that what your referring to?
09:30:30 <peter1138> cd means change directory.
09:30:30 *** Supercheese has quit IRC
09:30:56 <tot> is that the correct command?
09:31:09 <peter1138> cloning the repo puts it in a subdirectory, you have to move into the subdirectory...
09:35:34 <tot> ok i figured that out
09:36:30 <tot> the command to apply patches seems to go file by file
09:36:44 <tot> but the patch I downloaded comes with dozens of .patch files
09:37:00 <tot> curl -O https://www.drupal.org/files/[patch-name].patch
09:37:00 <tot> git apply [patch-name].patch
09:38:25 <peter1138> Apply each in turn I guess.
09:38:33 <peter1138> We don't use patch files.
09:38:53 <peter1138> We use git branches, clones, pull-requests...
09:40:15 <tot> https://www.tt-forums.net/viewtopic.php?p=841457#p841457
09:40:27 <tot> arn't .diff and .patches the same?
09:47:57 *** tycoondemon has joined #openttd
09:50:04 <peter1138> Probably?
09:51:30 *** tycoondemon has quit IRC
09:52:20 *** tycoondemon has joined #openttd
09:55:36 <tot> Isn't that a post of you posting a .diff file?
09:55:47 <peter1138> And?
09:55:58 <tot> That is why I am asking if they are the same
09:56:09 <tot> because how ever you apply that file I can likely do with the .patches
09:56:28 <peter1138> That's a 10 year old post.
09:56:36 <peter1138> We still used svn.
09:59:12 <tot> Topics like this circa 1 year ago still regularly post .patch
09:59:13 <tot> https://www.tt-forums.net/viewtopic.php?f=33&t=82463
09:59:51 <andythenorth> yes
10:00:03 <peter1138> So what's the problem?
10:00:07 <andythenorth> people writing patches tend to not be involved with development :)
10:00:19 <andythenorth> so they don't do things how we do them
10:00:21 <peter1138> You said "git apply" above. Did you do that/
10:00:22 <peter1138> ?
10:00:56 <tot> i changed directory and extracted .patch files to the same directory
10:01:09 <tot> but trying to apply them gives me 'invalid url'
10:01:16 <tot> as I am trying to point to them locally
10:01:31 <andythenorth> oof is it a patch queue?
10:01:52 <peter1138> git apply filename.patch
10:02:07 <peter1138> And that gives "invalid url"?
10:02:07 <andythenorth> sometimes the forum has stacks of patches
10:02:13 <andythenorth> which have to be applied in precise order
10:02:36 <tot> git apply 000_Debug.patch
10:02:45 <tot> returns nothing; just moves on to the next line
10:03:15 <andythenorth> I don't know what's correct, but I never used git apply
10:03:17 <andythenorth> I just patch
10:03:40 <tot> patch command?
10:03:47 <peter1138> If it says nothing, it probably worked
10:04:05 <peter1138> "git diff" will show you the current changes
10:04:53 <tot> ok that returned something rather than nothing so I assume it worked
10:05:11 <tot> i see a 'git patch --batch' option
10:05:23 <andythenorth> first, did you make a compile, with no patches?
10:05:26 <tot> when I checked 'patch --help'
10:05:35 <andythenorth> I usually do a clean compile first, to be sure compile is working
10:06:41 <tot> ok i will try that if this fails
10:07:33 *** m3henry has joined #openttd
10:07:45 <andythenorth> peter1138: this reminds me exactly why I wanted the old docs about patching removed :)
10:08:05 <andythenorth> it's just the wrong way to do things
10:08:36 <andythenorth> soooooo much easier to just fetch someone's GH branch as a remote
10:12:32 <LordAro> andythenorth: doesn't fix the historical issues though, as evidenced by thr above
10:12:46 <LordAro> there are so many patches only available ...as patches
10:12:55 <andythenorth> I am composing in my head a development forum post
10:13:01 <andythenorth> that maybe could be stickied
10:13:26 <andythenorth> TL;DR 1. please use github for patches 2. if attempting to gravedig a patch, pls first move it to a GH fork
10:13:39 <andythenorth> framed as 'if you want to help' rather than 'you must'
10:14:05 <LordAro> that doesn't solve the issue though - how do you move the patch to a GH fork?
10:14:16 <andythenorth> well it's hard unless you know what you're doing
10:14:34 <andythenorth> or unless a core contributor does it for you
10:14:40 <andythenorth> or the patch author is still active
10:16:05 <LordAro> since when has that ever stopped anyone trying?
10:16:15 <LordAro> samu is the obvious example here
10:16:18 <LordAro> hell, so am i
10:17:39 <andythenorth> well if you add 'teaching people' to the list
10:17:51 <andythenorth> it's otherwise unsolvable, outside of the 4 options above
10:18:06 <andythenorth> so I wouldn't lose any sleep over that one
10:18:57 <andythenorth> "guide to gravedigging old patches for non-programmers" :P
10:19:50 <andythenorth> oops, forgot to eat breakfast
10:24:34 <andythenorth> BBLS
10:24:35 *** andythenorth has quit IRC
10:48:49 *** andythenorth has joined #openttd
10:58:25 *** tot has quit IRC
10:59:43 <peter1138> Well.
11:00:12 <peter1138> Wait for CMake branch to be merged before writing COMPILING.md :-)
11:01:00 * peter1138 ponders.
11:01:20 <peter1138> Yeah, I should ditch part of what I wrote.
11:01:45 <peter1138> I did actually make a NewGRF dock, with NML, and then loaded it into the game.
11:02:16 <peter1138> But then I realised it copied some stupidity from NewGRF (rail)stations.
11:05:01 *** circ-user-3HYVs has quit IRC
12:18:08 *** WWacko1976-work has joined #openttd
12:24:01 <planetmaker> o/
12:27:17 *** m3henry has quit IRC
12:32:01 <Pikka> o/
12:36:17 *** tokai|noir has quit IRC
12:38:00 <andythenorth> yo
12:44:38 <Pikka> yoyo
12:47:49 *** Thedarkb1-T60 has joined #openttd
12:49:17 *** Thedarkb-T60 has quit IRC
12:59:06 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN commented on pull request #7385: Fix: NewGRF feature cleanup. https://git.io/fjviK
13:20:07 <DorpsGek_II> [OpenTTD/OpenTTD] planetmaker commented on pull request #7385: Fix: NewGRF feature cleanup. https://git.io/fjvPf
13:24:14 <DorpsGek_II> [OpenTTD/OpenTTD] PeterN commented on pull request #7385: Fix: NewGRF feature cleanup. https://git.io/fjvPT
13:30:37 <planetmaker> peter1138, I wonder whether a notification about unsupported features inside the NewGRF should be communicated in any case to the player, though. Not sure
13:31:52 <Eddi|zuHause> there's 3 levels of communication, a debug message, an error in the GRF window, or a popup message
13:32:46 <planetmaker> yes... warnings and errors in the NewGRF window are (currently) generated by the NewGRF itself, though. That's the place I'd like to have it shown, though. As warning
13:33:26 <Eddi|zuHause> that's action B or so?
13:33:53 <Eddi|zuHause> i forgot most of that :)
13:34:02 <planetmaker> yes, I think so. I had to check the newgrf wiki, too :P
13:42:12 *** Thedarkb1-T60 has quit IRC
13:49:02 *** andythenorth has quit IRC
13:50:59 *** criador15 has joined #openttd
13:51:48 <criador15> it may be annoying but, GSTest to string its possible?
13:51:57 <criador15> and hello o/
13:52:12 *** tycoondemon has quit IRC
13:52:46 <planetmaker> Test? Text?
13:53:31 <planetmaker> and probably no. You need to use language files which contain the strings
13:53:31 *** criador15 has quit IRC
13:56:29 *** criador15 has joined #openttd
13:56:32 <criador15> ok, thanks
13:56:52 <criador15> and about the post, after i get the correct anwers i updated it
13:57:33 <criador15> so you and the future people only find the correct anwers(this is wrong? i need to leave the first question?)
13:58:45 <peter1138> Indeed, NewGRF can control its own errors (LOL) but currently from "our side" of the code it's Disable or nothing.
14:00:02 *** criador15 has quit IRC
14:27:37 <peter1138> Let's see if that image leaks.
14:27:57 <planetmaker> ?
14:38:15 *** tycoondemon has joined #openttd
14:43:12 *** Smedles has quit IRC
14:46:54 *** Flygon has quit IRC
14:51:04 *** m3henry has joined #openttd
14:51:59 <DorpsGek_II> [OpenTTD/OpenTTD] orudge commented on pull request #7379: Codechange: Use C++11 functions for threading https://git.io/fjv14
14:55:14 <Eddi|zuHause> peter1138: the most "LOL" part is that NewGRFs can force other NewGRFs to deactivate
14:55:36 <planetmaker> yes... though NML does not support that. By design :D
14:58:00 *** andythenorth has joined #openttd
15:21:52 <DorpsGek_II> [OpenTTD/OpenTTD] nikolas updated pull request #7086: Change #6173: Update SDL driver to use SDL 2.0 https://git.io/fhamZ
15:37:09 *** Wormnest has joined #openttd
16:02:50 *** sla_ro|master has joined #openttd
16:04:03 *** criador15 has joined #openttd
16:04:20 <criador15> hey o/
16:05:03 *** Smedles has joined #openttd
16:05:14 *** nielsm has joined #openttd
16:06:18 *** criador15 has quit IRC
16:11:36 *** Thedarkb-T60 has joined #openttd
16:18:01 *** Futurefail[m] has left #openttd
16:44:37 *** Smedles has quit IRC
16:45:55 *** Samu has joined #openttd
16:59:14 *** Pikka has quit IRC
17:02:08 *** Smedles has joined #openttd
17:10:16 *** Smedles has quit IRC
17:11:21 <Samu> hi
17:19:06 *** Alberth has joined #openttd
17:19:06 *** ChanServ sets mode: +o Alberth
17:19:13 <Alberth> o/
17:22:16 *** andythenorth has quit IRC
17:33:58 *** synchris has joined #openttd
17:44:22 *** Smedles has joined #openttd
17:48:45 *** andythenorth has joined #openttd
17:51:13 <andythenorth> yo
17:53:00 <Alberth> reformatting nml docs to rst looks like a useful path to at least know what it is supposed to contain.
17:55:03 <andythenorth> related, GitHub Pages are leaving me disappointed
17:55:14 <andythenorth> can't figure out why, but they're not doing what I hoped they would
17:55:58 <Alberth> :o
17:56:18 <Alberth> they don't wiki?
17:56:45 <andythenorth> they're a specific mechanic for publishing docs to a website
17:57:00 <andythenorth> optionally including a Jekyll compile, as we also use in OpenTTD website
17:57:17 <andythenorth> but they only publish from one of three options
17:57:19 <andythenorth> master
17:57:21 <andythenorth> master/docs
17:57:29 <andythenorth> or a weird orphaned gh-pages branch
17:58:12 <andythenorth> using master means the root of the repo is polluted with docs
17:58:29 <andythenorth> using docs means that README.md, CONTRIBUTING.md etc can't trivially be included in published docs
17:58:50 <andythenorth> and the gh-pages orphaned branch is just weird, and every contributor will complain about it forever
17:59:53 <andythenorth> as a test, I have made GH publish my fork of OpenTTD website https://andythenorth.github.io/website/
18:01:20 <Alberth> very plain
18:01:47 <DorpsGek_II> [OpenTTD/OpenTTD] thedarkb commented on issue #7008: The Debian and Ubuntu builds all depend on shockingly out of date libicu and libpng packages. https://git.io/fjvSA
18:02:02 <Alberth> maybe if you only edit from the web, gh pages would be fine?
18:02:17 <Alberth> of course that defeats the idea of publishing from source
18:02:22 <andythenorth> kinda yes
18:03:09 <andythenorth> it's quite frustrating, making off-the-shelf things perform
18:03:57 <Alberth> only if you have ideas of how it should behave :)
18:05:23 <andythenorth> I suspect that it can all be resolved with a more complex jekyll compile, with most stuff in master/docs
18:05:27 *** Smedles has quit IRC
18:05:46 <andythenorth> but then it will acquire a reputation of being a weird, broken Jekyll compile and no-one will want to touch it
18:05:48 <andythenorth> :P
18:06:00 <Alberth> why should it be in the gh site? openttd.org would be fine?
18:06:16 <andythenorth> reasons
18:06:25 <andythenorth> 1. GH can do this, why should we?
18:06:46 <andythenorth> 2. it means that forks also get accurate docs (but not branches on forks - which is bad)
18:06:52 *** Progman has joined #openttd
18:07:12 <andythenorth> if there's a PR for nml, or another tool, I'd like to be able to read finished html docs for the changed features
18:07:40 <Alberth> having sources in gh is one, publishing them in gh is another matter
18:07:59 <andythenorth> similar to, you can read docs for newgrfs
18:08:00 <andythenorth> http://bundles.openttdcoop.org/iron-horse/push/v6985-3135/docs/html/get_started.html
18:08:03 <andythenorth> http://bundles.openttdcoop.org/iron-horse/releases/2.0.0-alpha-7/docs/html/get_started.html
18:08:17 <andythenorth> docs are just widely available, for all published revisions
18:08:32 <andythenorth> and they're html, because it's the easiest format
18:08:38 <Alberth> oh, I agree docs should be in vcs next to the source of the tool
18:09:14 <andythenorth> the GH Pages thing is because *it* looks like GH Pages should be the correct tool for this
18:09:23 <andythenorth> I tried twice now, and TrueBrain has tried once now
18:09:58 <Alberth> I'd settle for source in vcs, in a format that is easily convertible to html-ish
18:10:12 <andythenorth> yeah, that's the GH Pages promise
18:10:31 <andythenorth> .md or similar -> Jekyll -> html pages on GH
18:10:41 <Alberth> provide a Makefile for converting, which generates a set of html pages
18:10:55 <andythenorth> Jekyll :)
18:10:57 <Alberth> where you put the result is another matter
18:11:18 *** criador15 has joined #openttd
18:11:21 <andythenorth> I wait to see if TB still thinks it can go onto OpenTTD webspace
18:11:22 <criador15> hello o/
18:11:28 <andythenorth> creds are a problem
18:11:37 <andythenorth> and allowing arbitrary people to publish is a problem
18:12:05 <criador15> there is a method which filter cargo types?(difers from allowed to supply city, and to supply industry?)
18:12:49 <criador15> because of this: GSCargoMonitor.GetIndustryDeliveryAmount i dont know if i can scan all cargo type, or if passenber will go wrong
18:13:05 <andythenorth> is there a magic word to make TB appear? :)
18:13:49 *** Smedles has joined #openttd
18:14:00 <Alberth> I think you tried that already by mentioning him
18:14:49 <andythenorth> that
18:14:58 <Alberth> criador if the industry accepts passengers, it should work
18:15:19 <Alberth> but most industries don't take passengers as input cargo
18:15:20 * andythenorth trying to define the general class of problem
18:15:39 <andythenorth> - we publish the OpenTTD website already, using Jekyll and CI/CD
18:15:40 <Alberth> "something that is not solved yet"
18:15:56 <Alberth> why?
18:16:00 *** criador15 has quit IRC
18:16:22 <Alberth> it changes every day or so?
18:16:24 <andythenorth> - we need to publish technical docs for OpenTTD / toolchains, ideally against multiple released versions, including PRs
18:16:43 <andythenorth> - we need ("I want") to publish newgrf docs, against multiple released versions
18:16:52 <Alberth> ah, ok publish as part of a release
18:16:52 <andythenorth> starts to look like a pattern
18:16:54 <andythenorth> yes
18:17:23 <andythenorth> it can't be 100% slaved to Jekyll, because I have a python compile, and we might also want to use sphinx etc
18:17:51 <andythenorth> - NoGo and NoAI are already published somehow
18:18:02 <andythenorth> - Doxygen for OpenTTD is published somehow
18:18:03 <Alberth> doxygen runs afaik
18:18:41 <Alberth> perhaps compile farm
18:18:55 <andythenorth> likely
18:19:09 <andythenorth> this starts to look like coop bundles again :P
18:19:29 <andythenorth> docs are trivial to build on CI, using whatever tool is most appropriate
18:19:44 <andythenorth> the common thread is publishing the compiled artefacts somewhere
18:19:49 <andythenorth> managing the auth creds to do that
18:19:49 <Alberth> yeah, imho the right spot for it, you're building binaries already
18:20:00 <andythenorth> and having a system for navigating the available versions
18:20:11 <Alberth> always useful
18:21:05 <andythenorth> bonus, if the publishing system can handle PRs, the CI will then just work with that
18:21:30 <Alberth> not sure it should tbh
18:21:31 <andythenorth> and the only problem there is urls / paths / filenames
18:21:40 <andythenorth> the rest just happens
18:21:54 <Alberth> fully auto magical :)
18:22:07 <andythenorth> Alberth: this comes right back round to git versions, because aside from action 14, the other place they're needed is bundle publishing :P
18:22:08 <andythenorth> http://bundles.openttdcoop.org/iron-horse/releases/2.0.0-alpha-7/docs/html/get_started.html
18:22:20 <andythenorth> wrong url, this one is better http://bundles.openttdcoop.org/iron-horse/push/
18:22:44 <Alberth> nice, return of the git versions :p
18:22:48 <Alberth> /me looks
18:22:55 * andythenorth doesn't know how bundles v6993-3137 maps to IH rev 3210
18:22:59 <andythenorth> but let's assume it's magic
18:23:16 <andythenorth> might be jenkins job number or something
18:23:32 <andythenorth> yeah https://jenkins.openttdcoop.org/job/iron-horse/
18:23:33 <Alberth> one is days since sometime
18:23:51 <andythenorth> @calc 6993/365.25
18:23:51 <DorpsGek> andythenorth: 19.1457905544
18:24:05 <andythenorth> year 2000? :P
18:24:06 <Alberth> so 2k
18:24:37 *** Smedles has quit IRC
18:24:52 <Alberth> the nice thing is that you don't have a 32 bit limit here
18:25:04 *** criador15 has joined #openttd
18:25:14 <andythenorth> no :)
18:25:15 <Alberth> so 20190318-182534 is feasible
18:25:29 <criador15> and the question i made was, its a alread done filter who filter this?
18:25:31 <criador15> <Alberth> but most industries don't take passengers as input cargo
18:25:44 <andythenorth> maybe we should teach action 14 to understand rev dates
18:25:46 <criador15> there is a IDLE for make GS?
18:25:47 <andythenorth> or hashes
18:26:25 <andythenorth> outside of interactive rebase, git rev dates are probably stable
18:26:31 <Alberth> criador: what filter? an industry has fixed input cargos
18:26:38 <andythenorth> and have the advantage of encoding which rev is 'newer'
18:26:43 <andythenorth> or even just newere
18:27:16 <Alberth> hashes have no inherent order, you can only use them to make things unique
18:27:20 <criador15> i am using GSCargoMonitor, and have to pass cargoType and the location of what i am monitoring
18:27:36 <Alberth> yes
18:28:02 <criador15> if i pass passenger to farm, it blows up, so there is something alread made?
18:28:04 <andythenorth> yeah hashes don't work for comparison, but rev dates should
18:28:11 <Alberth> andy: action 14 won't mind I think, it takes arbitrary data afaik
18:28:15 <peter1138> Hi
18:28:20 <criador15> hello o/
18:28:27 <Alberth> blows up?
18:28:41 <criador15> blows up <- unespected result
18:28:50 <Alberth> exploding farms in openttd sounds bad
18:29:12 <Alberth> tried sending a passenger to a farm as input cargo?
18:30:09 <Alberth> ie coal to the power plant, passenger to farm
18:30:13 *** criador15 has quit IRC
18:31:57 *** criador15 has joined #openttd
18:32:24 <criador15> i just want to monitor all cargo from a specific city, but city dont acept anything, excet pax and mail
18:33:28 <Alberth> so all other cargoes are just 0
18:33:49 *** criador15 has quit IRC
18:35:11 *** criador15 has joined #openttd
18:35:13 <Alberth> cargo from an industry in a city does not count as coming from the city ... city is only houses and streets
18:35:40 <criador15> yes, but the goal its not restrict
18:35:45 <criador15> wait
18:36:02 <peter1138> Hmm
18:36:05 <Alberth> /me waits
18:36:29 <peter1138> nml has 'template' but that only covers sprite coordinates, right?
18:37:05 <Alberth> I tried to instantiate a grfid yesterday but that failed
18:37:19 <criador15> GSTown::SetCargoGoal how this works?
18:37:20 <Alberth> so likely yes it's limited
18:37:25 <peter1138> :/
18:37:38 <peter1138> I want to make a load of tile layouts and a load of similar-switches
18:37:43 <peter1138> But it seems... nope/
18:37:44 <criador15> /Alberth enable
18:37:47 <andythenorth> yeah nope
18:37:47 <Alberth> even though the docs don't say it
18:38:26 <criador15> https://nogo.openttd.org/api/1.8.0/classGSTown.html#9c1bb45326c08171fe1fd7c8e2f70ec0 SetCargoGoal
18:38:39 *** HerzogDeXtEr has joined #openttd
18:38:39 <Alberth> want py-xpd peter? https://github.com/Alberth289346/py-xpd
18:38:42 <andythenorth> FIRS, one tilelayout, all industries :P https://github.com/andythenorth/firs/blob/master/src/templates/spritelayouts.pynml
18:39:20 <andythenorth> oof
18:39:25 <criador15> so much tasks on the chat
18:39:46 <Alberth> ha, try #python then :p
18:39:53 <criador15> #python
18:40:00 <criador15> try how?
18:40:08 <criador15> its not with me ....
18:40:15 <Alberth> the python channel, just like you're now in the openttd channel
18:40:38 <criador15> not know how to make it via browser chat
18:40:39 <peter1138> Alberth, needs a full-blown example :)
18:41:02 <peter1138> FIRS templatings are way too obtuse.
18:41:07 <Alberth> yep, it's very brief
18:41:20 *** glx has joined #openttd
18:41:20 *** ChanServ sets mode: +v glx
18:41:26 <criador15> do you all still play openttd?
18:41:33 <peter1138> Nope.
18:41:43 <peter1138> Developing it is playing it.
18:41:49 <Alberth> play openttd? nah, we prefer discussing and hacking it
18:41:50 <criador15> i know it
18:41:53 <andythenorth> I deliberately show the FIRS ones, they're hard to read
18:42:07 *** Smedles has joined #openttd
18:42:09 <peter1138> Hmm, right, I should remove the ground tile from the building tile, yes.
18:42:26 <Alberth> but criador, no idea what the town goal is, never used it
18:42:37 <criador15> thanks
18:42:45 <Alberth> likely you should examine a city builder script for answers
18:42:59 <criador15> if was what i alread see
18:43:12 *** m3henry has quit IRC
18:43:29 <criador15> you need a industry in the city area that acepts its cargo, so when you deliver, the city meets its condition to grow
18:44:05 * andythenorth tries to find a worse FIRS template
18:44:14 <andythenorth> but the one I posted already is the worst
18:44:17 <criador15> like, you deliver coal to the town, and the power plant receive it,(must be in the station area of effect) and then city start to grow
18:44:32 <criador15> andy will wait for that
18:44:35 <andythenorth> on the plus side, this used to be templated with CPP parametric macros
18:44:49 <Alberth> industries and cities are separate things
18:45:08 <criador15> now in these days
18:45:11 <criador15> not*
18:45:14 <Alberth> if you want to connect them, your script must do that
18:45:57 <peter1138> Hmm...
18:46:49 <peter1138> In gimp, is there some way to extract only differing pixels from 2 layers?
18:47:19 <andythenorth> not sure
18:47:22 *** criador15 has quit IRC
18:47:38 <andythenorth> even in Photoshop, I'd have to think hard to get that done
18:47:49 <nielsm> subtract the layers, select all zero pixels, and convert selection to a mask?
18:47:58 <andythenorth> be easier in pillow :P
18:49:20 <peter1138> "Substract" is not what I want, and that only works on RGB images (not indexed)
18:49:46 <Alberth> convert to rgb first :p
18:49:57 <peter1138> Doesn't help, subtract is not the right ope
18:49:58 <peter1138> *op
18:50:15 <andythenorth> how many images to do ?
18:50:21 *** criador15 has joined #openttd
18:50:24 <criador15> how i send a image to here?
18:50:26 <peter1138> I need a "difference" tool or something. Hmm.
18:50:32 <andythenorth> if it was once, I'd probably just put the layers on diff, and paint by hand over them
18:50:56 <peter1138> andythenorth, about 60.
18:50:56 <andythenorth> if it was repeatable, I'd probably teach pillow to do it
18:50:59 <andythenorth> oof
18:51:15 <Alberth> criador som image publishing website like imgur
18:51:36 <andythenorth> for pixels in A, B, if A != B, paint at pixel(X,y)
18:51:41 <criador15> you can send the link please?
18:51:50 <peter1138> imgur.com
18:52:03 <peter1138> gimp is scriptable, but...
18:52:09 <andythenorth> pillow can extract a sequence of pixels, which can be trivially compared in python if the images are identically sized
18:52:19 <peter1138> python-fu? hmm
18:52:23 <andythenorth> that sequence of pixels can be written to a new image
18:52:41 <andythenorth> I do this stuff a lot in newgrf
18:52:49 <andythenorth> but I can't give you a copy-paste line of code :(
18:52:50 <peter1138> Type help() for interactive help
18:52:52 <peter1138> >>> help()
18:52:58 <peter1138> ::: freezes :::
18:53:23 <Alberth> docs.python.org tutorial
18:53:45 *** Wolf01 has joined #openttd
18:53:52 <Alberth> aimed at programmers, so nicely dense
18:53:57 <peter1138> Hmm, gimp can even do this!
18:53:58 <Alberth> hai wolf
18:53:59 <andythenorth> peter1138: this has the smell of the old lady who swallowed a fly
18:54:01 <criador15> https://imgur.com/a/tm5kqsX
18:54:05 <Wolf01> o/
18:54:08 <andythenorth> is this needed for docks?
18:54:08 <peter1138> it does it when you save an animated gif, to optimize the layers.
18:54:11 <criador15> hey wolf
18:54:27 *** Smedles has quit IRC
18:54:29 * andythenorth biab, life admin
18:54:31 *** andythenorth has quit IRC
18:54:51 <criador15> looks the magic ^ !
18:55:03 <Wolf01> <andythenorth> peter1138: this has the smell of the old lady who swallowed a fly <- I wonder how he does know the smell...
18:56:58 <peter1138> Experience I think
18:57:49 <Alberth> rich imagination
18:58:21 *** circ-user-3HYVs has joined #openttd
18:59:24 <Alberth> criador: it may look like it, but that does not mean it is actually done in that way, lots of stuff is just make-belief it may be done in a completely different way than you think
18:59:54 <glx> nice I managed cmake to find my grfcodec, but it's probably a very old version
19:00:06 <Alberth> :)
19:01:29 <glx> Unknown NFO file version: 32. Skipping file.
19:01:29 <glx> GRFCodec trunk r846 - Copyright (C) 2000-2005 by Josef Drexler
19:01:46 <criador15> there is ony way to know
19:01:56 <criador15> lets go read the GS
19:03:10 <glx> hmm let's clone the github one
19:03:48 <peter1138> https://github.com/PeterN/grfcodec/commits/cmake ;)
19:07:10 <Alberth> 3.4.1 was r820, in august 2006
19:07:40 *** Smedles has joined #openttd
19:11:10 <LordAro> Alberth: yeah, but r841 could've been 10 years later :p
19:11:48 *** andythenorth has joined #openttd
19:12:58 *** gelignite has joined #openttd
19:14:06 <Alberth> r851 was 8 days later
19:15:09 <Alberth> it only contains r822 in-between for some reason
19:15:55 *** criador15 has quit IRC
19:16:11 <nielsm> remaining revisions are likely on another branch
19:17:03 <LordAro> Alberth: boring :p
19:17:11 <LordAro> in which case though, yes, impressively old
19:17:33 <Alberth> perhaps they used branches
19:19:59 <Alberth> from the dark ages where 32 bit RGB images was not a thing yet :p
19:31:33 <peter1138> So my twitch stream is currently me trying to mess with images :p
19:32:20 <andythenorth> very image
19:33:08 <andythenorth> you're cutting out exact overlay shapes?
19:33:36 <peter1138> Doesn't need to be exact but...
19:40:33 <glx> weird the command to generate version.h is not created
19:40:51 * glx is trying with VS and Ninja
19:45:13 <peter1138> andythenorth, did it :D
19:45:35 * andythenorth watches
19:45:49 <peter1138> Now I need the template system to make the rest :/
19:45:57 <peter1138> Oh, and random variation.
19:46:22 <glx> anyway seeing perl is used later, I should probably switch to mingw
19:46:38 <peter1138> glx, grfcodec cmake or openttd cmake?
19:46:44 <glx> grfcodec
19:46:59 <peter1138> Yeah, I was working on cmake-ify the scripts at some point
19:47:03 <peter1138> Just not got that far yet.
19:47:09 <peter1138> gtg
19:47:11 <peter1138> bbiab
19:48:58 <glx> ok same happen with mingw
19:49:17 <glx> but I see nothing wrong in cmakefiles.txt
19:50:39 <glx> ok found
19:50:58 <glx> a silly typo :)
19:51:47 <glx> and compilation fails
19:54:32 <glx> of course wrong compiler defines used is source
19:56:36 <glx> oh you don't check for boost yet
20:01:41 *** Smedles has quit IRC
20:07:24 *** frosch123 has joined #openttd
20:09:38 *** Supercheese has joined #openttd
20:25:05 <peter1138> nope
20:25:12 <peter1138> i did check for boost but it never worked
20:25:17 <peter1138> then i figured, just remove boost :P
20:26:48 <peter1138> Right, how do I use py... whatever it was?
20:27:37 <peter1138> p[y-xpd
20:27:39 <peter1138> -[
20:45:19 *** Smedles has joined #openttd
20:57:35 <DorpsGek_II> [OpenTTD/OpenTTD] TrueBrain merged pull request #7383: Codechange: fix Intel C++ Compiler linking issues. https://git.io/fjvuO
21:01:20 <Alberth> peter: there is just 1 main file that you provide as argument to the program
21:01:37 <Alberth> bin/py-xpd myfile
21:02:15 <DorpsGek_II> [OpenTTD/OpenTTD] stormcone commented on pull request #7086: Change #6173: Update SDL driver to use SDL 2.0 https://git.io/fjv7N
21:02:27 <Alberth> where definitions are read and stored, and expanded when you call them
21:07:20 <Alberth> hmm, why does it raise stop iteration exceptions?
21:13:38 *** nielsm has quit IRC
21:18:12 *** Smedles has quit IRC
21:19:52 <Alberth> right Python3.7 has changed behavior for stopiteration :(
21:23:52 <frosch123> pep 479?
21:25:03 <Alberth> yep
21:26:29 <frosch123> it's weird that python uses exceptions for control flow so often, when that is an anti-pattern in other languages
21:26:34 <Alberth> my usecase isn't in the proposal :p
21:26:50 *** Smedles has joined #openttd
21:27:40 <Alberth> they are completely hidden inside python primitives
21:28:28 <glx> ok and it now fails because mkdir() is deprecated
21:29:05 <glx> and the non cmake version doesn't detect mingw correctly
21:29:55 <glx> and will fail at the same place anyway
21:30:16 <glx> so for now grfcodec is unbuildable
21:30:45 <peter1138> with cmake? yeah
21:30:56 <peter1138> at least, mine was wip and unfinished :p
21:31:00 <glx> without it I can't build either
21:44:44 <DorpsGek_II> [OpenTTD/OpenTTD] stormcone opened issue #7386: Measurement tooltips do not always appear https://git.io/fjv5g
21:48:57 *** sla_ro|master has quit IRC
22:00:24 *** Alberth has left #openttd
22:00:31 *** synchris has quit IRC
22:06:15 *** andythenorth has quit IRC
22:09:17 *** gelignite has quit IRC
22:13:56 <glx> oh but it compiles with cmake if I fix all the compiler defines
22:14:59 *** andythenorth has joined #openttd
22:16:28 <glx> peter1138: you have a PR ;)
22:19:48 *** andythenorth has quit IRC
22:20:23 <peter1138> Ok
22:20:31 <peter1138> Hmm, how do I specify which random bits to use in a random_switch?
22:21:13 <peter1138> Oh. TILE.
22:21:15 <peter1138> Duh.
22:36:47 *** Smedles has quit IRC
22:38:46 <glx> ok grfcodec and nforenum seem to work, at least with openttd cmake it works
22:39:17 <glx> but I guess they won't run outside mingw because they are not static
22:41:43 *** andythenorth has joined #openttd
22:49:45 *** andythenorth has quit IRC
22:53:12 *** Smedles has joined #openttd
22:53:27 *** HerzogDeXtEr has quit IRC
22:54:44 *** HerzogDeXtEr has joined #openttd
23:14:58 *** Progman has quit IRC
23:33:52 *** frosch123 has quit IRC