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