Config
Log for #openttd on 30th July 2020:
Times are UTC Toggle Colours
00:03:33  *** Zuu has quit IRC
00:58:10  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz updated pull request #8279: Port GUI rendering improvements from JGRPP https://git.io/JJWrE
01:04:11  *** glx has quit IRC
01:22:34  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz updated pull request #8279: Port GUI rendering improvements from JGRPP https://git.io/JJWrE
01:35:14  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz updated pull request #8279: Port GUI rendering improvements from JGRPP https://git.io/JJWrE
02:20:52  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz updated pull request #8279: Port GUI rendering improvements from JGRPP https://git.io/JJWrE
02:33:56  *** debdog has joined #openttd
02:37:22  *** D-HUND has quit IRC
02:47:15  *** Wormnest has quit IRC
02:51:05  *** Laedek has joined #openttd
03:05:52  *** Flygon has joined #openttd
05:00:33  *** snail_UES_ has quit IRC
05:30:13  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz opened pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJgcH
05:40:36  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz updated pull request #8279: Port GUI rendering improvements from JGRPP https://git.io/JJWrE
06:04:07  *** sla_ro|master has joined #openttd
06:37:11  <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJgl3
06:45:33  *** WormnestAndroid has quit IRC
06:45:45  *** WormnestAndroid has joined #openttd
07:03:45  <DorpsGek_III> [OpenTTD/bananas-api] TrueBrain commented on issue #59: Directories in uploaded ZIP files stripped https://git.io/JJuy0
07:07:51  <TrueBrain> why can I never find where the ingame client downloads files :P
07:14:09  <TrueBrain> so the content-downloader extracts base music, where all other downloads remain in their tar ... well, that is fun :)
07:16:57  <TrueBrain> funny .. the OpenTTD client has a non-complient tar extractor :(
07:17:21  <TrueBrain> the likelihood that I wrote it is very high, so I guess I know who to punish tonight >:D
07:26:29  <DorpsGek_III> [OpenTTD/bananas-api] TrueBrain commented on issue #59: Directories in uploaded ZIP files stripped https://git.io/JJuy0
07:26:33  <TrueBrain> well, that was an interesting ride
07:27:35  *** cohnjalvin777 has joined #openttd
07:28:38  <TrueBrain> it does need validating that only base-music is affected by this .. my memory of OpenTTD internals is not that great :P
07:31:22  <DorpsGek_III> [OpenTTD/bananas-api] TrueBrain commented on issue #59: Directories in uploaded ZIP files stripped https://git.io/JJuy0
07:33:06  <TrueBrain> seems musa was also not doing this correctly
07:34:25  *** cohnjalvin777 has quit IRC
07:38:39  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJgRF
07:39:52  <DorpsGek_III> [OpenTTD/bananas-api] TrueBrain merged pull request #58: Add: link to API on SwaggerHub. https://git.io/JfZIB
07:43:44  *** nielsm has joined #openttd
07:44:48  <TrueBrain> morning nielsm ; regarding your lovely find about base music, am I right to assume you only diagnosed it by looking inside the OpenTTD client, but never really downloading the tarball and looking into it? (just to confirm my finding is correct :D Not meant as an attack of any kind, to be clear :P)
07:45:13  <DorpsGek_III> [OpenTTD/OpenTTD] Kuhnovic commented on pull request #8274: Feature: option to auto remove signals when in the way during rail co… https://git.io/JJg0j
07:51:47  *** nielsm has quit IRC
07:52:04  <TrueBrain> awh, I scared him off :(
07:54:58  <TrueBrain> well, I hope I didn't miss anything in my diagnosis .. as then this is an easy fix :D
08:23:28  *** iSoSyS has joined #openttd
08:25:54  *** b_jonas has quit IRC
08:48:48  *** iSoSyS has quit IRC
08:58:40  *** tokai|noir has joined #openttd
08:58:40  *** ChanServ sets mode: +v tokai|noir
09:05:32  *** tokai has quit IRC
09:07:24  *** andythenorth has joined #openttd
09:13:30  <dihedral> greetings
09:13:49  * dihedral hugs TrueBrain 
09:13:53  <dihedral> 'sup dogg?
09:14:15  <TrueBrain> since when did you move to the ghetto?
09:14:58  <dihedral> :-(
09:15:02  <TrueBrain> :D
09:15:05  <dihedral> I was just happy to "see" you
09:15:14  <TrueBrain> so I am my friend, so am I :)
09:15:17  <TrueBrain> happy to see me, that is :P
09:15:24  <TrueBrain> sorry, this was too easy :)
09:15:32  <dihedral> yup, that it was
09:15:37  * TrueBrain hugs dihedral  :)
09:15:39  <dihedral> too easy, and too expected
09:15:40  <dihedral> :-D
09:15:50  <TrueBrain> yeah, otherwise people get nervous :P
09:15:52  <dihedral> What's new with you?
09:16:22  <TrueBrain> nothing much tbh .. you?
09:17:33  <DorpsGek_III> [OpenTTD/OpenTTD] ldpl commented on pull request #8274: Feature: option to auto remove signals when in the way during rail co… https://git.io/JJgVt
09:18:30  <dihedral> doing well - enjoying live. Company is running well, sadly i am still a ppl student :-P
09:19:10  <dihedral> but flying with the instructure is still rather cool :-D
09:19:13  <TrueBrain> live .. yeah, life is very live, most of the time :P
09:19:41  <dihedral> oh, yeah... took me a second read to spot that one
09:19:45  <TrueBrain> :D
09:20:20  <TrueBrain> I am such a child ... :P
09:20:29  <TrueBrain> you would think with age that goes away ... nooopppeeee
09:21:02  <dihedral> never!
09:21:15  <TrueBrain> but yeah .. next few days should be good sunny days over here, and I have all the time in the world to enjoy that sun :D
09:21:40  <TrueBrain> and, I finally have time to work with AWS again for OpenTTD, which also makes me really happy :) Has been idling for too long now ..
09:21:41  <dihedral> vacation or no job? or are you still studying?
09:22:24  <TrueBrain> I am so happy I am done with studying .. well, for 5-ish years already, but ugh, still .. brrr, happy that is over :P
09:22:41  <dihedral> :-D
09:22:56  <TrueBrain> I rather learn on the job, tbfh :)
09:23:41  <dihedral> yeah - so you like aws?
09:23:59  <TrueBrain> does anyone really like AWS? But it is better than managing shit yourself :)
09:24:09  <TrueBrain> it is, however, expensive, as we found out :P
09:26:34  <dihedral> aws can be so expensive, that you could become my customer :-D
09:27:02  <dihedral> and we do shared managing - whatever you want to do yourself, you do yourself, everything else we can do for you :-)
09:27:30  <dihedral> we only do vmware vm's
09:27:36  <TrueBrain> haha, well, I can imagine a lot of people like that :D
09:27:43  <dihedral> :-D
09:28:02  <TrueBrain> what I like most about the OpenTTD setup, everything has failovers .. I can just pull down an ECS instance, and nothing really changes
09:28:07  <TrueBrain> at worst, someone's connection is broken
09:28:31  <TrueBrain> that does remind me, I do have to setup an offsite backup for the storage
09:28:38  <TrueBrain> the "just in case AWS really fucks up"
09:30:23  <_dp_> khm... about fallovers... can someone plz bring back coop devzone? xD
09:30:46  <TrueBrain> sadly, nothing I can do for you there
09:31:09  <TrueBrain> funny enough, the only infrastructure part that is closely related to OpenTTD, and not within my control :P I was happy someone else was doing it :D
09:33:32  <dihedral> :-D
09:33:45  <dihedral> we can also do offsite backups :D
09:34:05  <TrueBrain> pretty sure OpenTTD won't be able to pay you :P
09:37:08  <andythenorth> yo
09:37:19  <TrueBrain> shit, when did he arrive?! :P
09:37:21  <TrueBrain> hi andythenorth  :)
09:37:29  <dihedral> whoop whoop
09:37:47  * andythenorth had a holidays
09:37:54  <dihedral> I would feel bad if OpenTTD wanted to pay us :-D
09:37:55  <dihedral> hehe
09:39:46  <TrueBrain> the biggest issue we currently have, AWS is very expensive if you do 6TB per month via CloudFront ... :P
09:39:58  <andythenorth> that reminds me
09:40:15  <andythenorth> I need an alert on my AWS account for bill shock
09:40:17  <andythenorth> that isn't just email :P
09:40:28  <dihedral> :-D
09:40:30  <TrueBrain> dihedral: to answer that publicly, our current bill is ~500 euro a month. But we have ~5000 euro of credits from AWS, so we are good atm :)
09:40:42  <TrueBrain> andythenorth: how much is your bill? :P
09:40:48  <andythenorth> I am catching u
09:40:53  <dihedral> andythenorth, wait until the creditcard company calls you
09:40:53  <andythenorth> my bill is about 
09:41:00  <TrueBrain> of that ~500 euro is around ~450 euro in bandwidth, btw :P
09:41:06  <TrueBrain> andythenorth: that is not bad :)
09:41:10  <dihedral> fuck!!
09:41:12  <andythenorth> oh yeah, I should pay on my credit card, it has a limit
09:41:21  <andythenorth> currently it is on my bank card
09:41:48  <dihedral> andythenorth, the limit of your credit card does not mean that you would not owe what your card does not cover
09:41:50  <dihedral> :-P
09:42:01  <andythenorth> oof :)
09:42:22  <andythenorth> apparently AWS have automatic guards against DDOS bill shock
09:42:32  <andythenorth> I have a friend who got £50k bill due to DDOS
09:42:39  <andythenorth> (not from AWS)
09:42:39  <dihedral> :-D
09:43:12  <andythenorth> mostly I worry about this going viral TBH https://www.grf.farm/iron-horse/dev/html/train_whack.html
09:43:25  <andythenorth> top score is about 2m so far I think
09:43:29  <TrueBrain> he worries about it so much, he is broadcasting the URL AGAIN :P
09:44:25  <andythenorth> I didn't really look into all the charges, but since I have Cloudfront my s3 bill has disappeared
09:44:28  <andythenorth> so that's good eh
09:44:30  <TrueBrain> pff, I get cache misses, so clearly it is nto played enough atm :P
09:44:43  <andythenorth> we should replace front page of OpenTTD with it
09:44:44  <TrueBrain> that is a bit of the point of cloudfront :)
09:44:56  <andythenorth> super, I love this cloud shit
09:45:12  <andythenorth> AWS actually makes sense, it's like having an sftp server and Apache
09:45:18  <andythenorth> but it's all somebody else's problem
09:45:51  <TrueBrain> ^^ :)
09:46:01  <TrueBrain> no security updates to worry about :)
09:46:05  <andythenorth> it's like my internet hosting from 1997 that I understand, but better
09:46:34  <andythenorth> I should try some lambdas or something to fuck it up
09:47:01  <TrueBrain> lambda@edge is fun :)
09:47:13  <TrueBrain> well, cloudflare is doing a better job at that atm, but okay :)
09:47:42  <TrueBrain> awh, I get a 403 on /favicon.ico on your site andythenorth  :P
09:48:04  <andythenorth> how rude
09:48:16  <andythenorth> looks like I haven't set a favicon
09:49:10  <TrueBrain> andythenorth: you don't even do a callhome to keep a scoreboard? I am a bit dissapointed :(
09:49:24  <andythenorth> forks are possible
09:49:50  <andythenorth> game is here https://github.com/andythenorth/iron-horse/blob/master/src/docs_templates/train_whack.pt
09:58:41  <TrueBrain> tempting andythenorth  :P
09:58:57  <andythenorth> I kind of had my fun with it :)
09:59:12  <andythenorth> doing dumb stuff put some missing joy back
09:59:25  <TrueBrain> it mostly does :)
09:59:27  <andythenorth> if I do more...it just becomes work, a to-do list, bugs, etc
09:59:37  * andythenorth had misplaced the joy recently
09:59:53  <TrueBrain> glad you found back where you left it :)
10:00:36  <andythenorth> in the stupid cupboard :)
10:00:42  <andythenorth> where the stupid is kept
10:21:42  <andythenorth> hmm
10:21:54  <andythenorth> I need indexes into the DOS palette for company colours
10:22:11  <andythenorth> e.g. COLOUR_PALE_GREEN and friends
10:22:55  <andythenorth> I looked in openttd src for them, I was hoping it was just a range (offset..offset+8)
11:24:59  <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJg10
12:19:21  <andythenorth> oof 10MB of docs for browser upload to s3, this will be slow
12:21:24  <andythenorth> supermop_Home_ https://www.grf.farm/iron-horse/dev/html/fury.html https://www.grf.farm/iron-horse/dev/html/growler.html https://www.grf.farm/iron-horse/dev/html/slug.html https://www.grf.farm/iron-horse/dev/html/cheddar_valley.html
12:23:06  <andythenorth> https://www.grf.farm/iron-horse/dev/html/resilient.html
13:43:47  <supermop_Home_> HELLO
13:44:20  *** nielsm has joined #openttd
13:48:21  <_dp_> I just realized that for many features I wanted I ended up not using them when they finally make it into release
13:48:43  <_dp_> because by that time I either have a workaround or juts moved on and don't want to mess with ancient code
13:50:06  <_dp_> e.g instead of authority gs I use magic bulldozer
13:50:25  <supermop_Home_> andythenorth what company is the blue and grey cheddar valley
13:51:00  <_dp_> instead mono font for neat tables still using messy wall of text
13:51:29  <_dp_> for raw_strings if they ever are implemented I have train groups workaround
13:51:32  <andythenorth> https://www.collettsmodelshop.co.uk/wp-content/uploads/2015/12/4D-005-000-2.jpg
13:51:52  <andythenorth> _dp_ I find same :)
13:51:56  <andythenorth> I've stopped asking for features
13:52:06  <andythenorth> I'd sort of like to see the game stop for a bit :)
13:52:18  <andythenorth> supermop_Home_ ^^^
13:52:28  <supermop_Home_> do those run on the mainline?
13:52:37  <supermop_Home_> i thought they only owned like 08s
13:53:32  <supermop_Home_> also i like the executive 08s
13:53:38  <andythenorth> they pioneered an arrangement with private locos
13:54:55  <supermop_Home_> NSE 08 looks funny
13:59:54  <nielsm> TrueBrain: I did download the tar.gz of that music set with my browser and view it in WinRar but don't actually remember what I saw...
14:00:19  <nielsm> just checked again and yeah it does contain the directory, so I'm a bad reporter
14:01:35  <TrueBrain> nielsm: nah, you are not a bad reporter, I just wanted to make sure I am not overlooking something
14:01:39  <TrueBrain> cool, that means I know what to fix :D
14:03:19  <supermop_Home_> andythenorth are these trains on bananas?
14:04:08  <TrueBrain> owh, it was even Rb who made this function, pfew, I am not to blame, w00p! :D
14:04:40  <TrueBrain> nielsm: I do wonder if making a proper fix in OpenTTD is worth it, or that we should just fix BaNaNaS and leave this for the next time someone makes a new BaNaNaS version? :)
14:05:03  <nielsm> I think making ottd more resilient is worth it too
14:05:22  <TrueBrain> it is just a weird assumption that the first node in a tar is a directory-node
14:05:27  <nielsm> but def. need to fix so new uploads are also backwards compatible
14:05:32  <TrueBrain> yeah ..
14:05:40  <TrueBrain> luckily it is only base music that is an issue
14:06:13  <TrueBrain> and only a single upload
14:06:48  <TrueBrain> it is amazing how complex BaNaNaS, and its links with the OpenTTD client, has gotten :P
14:06:58  <TrueBrain> so many (undocumented) thingies :D
14:07:04  <TrueBrain> I should really write more of them down
14:10:00  <andythenorth> supermop_Home_ not on bananas yet no :)
14:10:18  * andythenorth BBL
14:10:20  *** andythenorth has quit IRC
14:16:11  <nielsm> good to know: https://devblogs.microsoft.com/oldnewthing/20200730-00/?p=104021
14:18:32  <TrueBrain> That is indeed good to know, and a fun bit of history :)
14:34:30  *** Progman has joined #openttd
15:18:51  *** glx has joined #openttd
15:18:52  *** ChanServ sets mode: +v glx
15:38:24  *** Wormnest has joined #openttd
15:38:26  *** gelignite has joined #openttd
15:38:38  <DorpsGek_III> [OpenTTD/OpenTTD] Galigator opened pull request #8286: Change: Service depot also reset breakdown chance. https://git.io/JJgj9
15:48:56  <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #8286: Change: Service depot also reset breakdown chance. https://git.io/JJ2e6
15:55:14  <DorpsGek_III> [OpenTTD/OpenTTD] Kuhnovic commented on pull request #8274: Feature: option to auto remove signals when in the way during rail co… https://git.io/JJ2eh
15:56:09  <DorpsGek_III> [OpenTTD/OpenTTD] James103 commented on pull request #8286: Change: Service depot also reset breakdown chance. https://git.io/JJ2vv
16:03:31  <DorpsGek_III> [OpenTTD/OpenTTD] ldpl commented on pull request #8286: Change: Service depot also reset breakdown chance. https://git.io/JJ2vS
16:20:51  *** andythenorth has joined #openttd
16:23:54  *** Samu has joined #openttd
16:24:26  <Samu> hi
16:27:45  *** Samu has quit IRC
16:28:38  *** Samu has joined #openttd
16:28:51  *** sla_ro|master has quit IRC
16:29:35  *** Samu has joined #openttd
16:31:02  *** Samu has quit IRC
16:31:16  *** Samu has joined #openttd
16:38:10  <andythenorth> anybody can figure out the DOS palette indexes for COLOUR_ORANGE?
16:38:50  <andythenorth> usually it's an uninterrupted sequence, e.g COLOUR_PALE_GREEN is 96..103
16:39:10  <andythenorth> but COLOUR_ORANGE seems to 62, 63 then 192..197
16:42:41  <_dp_> can't you just dump _colour_gradient ?
16:43:22  <andythenorth> not sure how :)
16:43:30  <andythenorth> I can't currently compile, but I could fix that
16:43:45  <andythenorth> it's probably faster to eyeball it tbh
16:44:02  <nielsm> extract recolour sprite 787 from the baseset
16:44:42  <nielsm> and look at the bytes from position 0xC6
16:45:45  <andythenorth> 2ccmap.nfo looks promising
16:45:52  <nielsm> https://github.com/OpenTTD/OpenGFX/blob/master/sprites/base/base-0775-recolor.pnml#L56
16:46:24  <_dp_> andythenorth, does that look right? https://pastebin.com/CDdUAcUH
16:47:58  <andythenorth> not sure, those have 9 entries, do they map the first colour entry over the remaining?
16:49:11  <andythenorth> hmm, maybe only the first one has 9 :)
16:49:48  <nielsm> each gradient is 8 values
16:50:50  <nielsm> but look at my opengfx source link, those are the actual values that get loaded from the baseset grf :)
16:51:52  <andythenorth> looks like green also uses non-linear sequence
16:52:12  <nielsm> https://github.com/OpenTTD/OpenTTD/blob/master/src/main_gui.cpp#L554-L559
16:52:16  <nielsm> by that loop
16:52:33  <nielsm> yes and red too
16:53:27  <_dp_> nielsm, mine is literally just a dump of _colour_gradient after that loop
16:53:33  *** HerzogDeXtEr has joined #openttd
16:54:38  <andythenorth> hmm
16:54:44  <andythenorth> oof :)
16:59:26  <andythenorth> nielsm the opengfx ones are the ones I need thanks :)
17:01:44  * andythenorth makes BAD FEATURES
17:01:56  <andythenorth> I should probably be finishing other useful work :P
17:01:59  <andythenorth> but that's like....work
17:02:51  *** jottyfan has joined #openttd
17:04:44  <_dp_> it's an interesting questions though why are mine different
17:04:57  <_dp_> openttd seems to load them all with offset 1
17:05:07  <_dp_> at last one is ignored
17:19:33  <_dp_> shifting them back just makes it weirder with opengfx and I don't have original graphics to test
17:22:27  *** Flygon has quit IRC
17:32:30  *** b_jonas has joined #openttd
17:44:55  *** Samu has quit IRC
17:46:57  <Eddi|zuHause> planetmaker: seen https://www.tt-forums.net/viewtopic.php?f=33&t=87383 ?
17:47:05  <Eddi|zuHause> or ^Spike^
17:48:46  <andythenorth> supermop_Home_ I am working on a better layout for the livery table https://grf.farm/iron-horse/dev/html/resilient.html
17:48:55  <andythenorth> it's a pretty niche foamer feature I think :)
17:49:03  <andythenorth> the rules are not always simple :P
17:57:13  <supermop_Home_> the table is easily parsed to me at least
18:06:16  <supermop_Home_> though you might be tickling the tigers tale
18:06:19  <supermop_Home_> tail
18:06:20  *** frosch123 has joined #openttd
18:06:45  <supermop_Home_> as soon i'll be clamoring for HST liveries
18:07:20  <supermop_Home_> and you'll need to figure out arcane rules to choose between executive and swallow
18:09:55  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2tv
18:12:41  <supermop_Home_> grey/light blue: prototype, light blue/ grey: ic125, red/white: executive, white/red: swallow, red/red: virgin 1, grey/red: virgin 2, red/grey: virgin 3, dkblue/red: gner,
18:14:23  <supermop_Home_> grey/white: nx
18:14:44  <supermop_Home_> none of the others matter
18:15:04  <supermop_Home_> tbh the virgin ones don't matter either
18:15:15  *** jottyfan has quit IRC
18:16:00  <supermop_Home_> unless you have the ablity to have jumbled rake of virgin mixed with grimy old executive coaches
18:16:50  <DorpsGek_III> [OpenTTD/OpenTTD] Galigator commented on pull request #8286: Change: Service depot also reset breakdown chance. https://git.io/JJ2t4
18:18:45  <DorpsGek_III> [OpenTTD/OpenTTD] LordAro commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2tV
18:18:57  <frosch123> _dp_: andythenorth: https://github.com/frosch123/TTDViewer/blob/master/src/recolor.xml <- that is supposed to answer all recolor questions you could ever have
18:19:11  <andythenorth> wow
18:19:19  <andythenorth> it really answers a lot of questions :o
18:20:07  <andythenorth> supermop_Home_ HST liveries might actually be possible.  Because they are articulated they don't support the depot-flip liveries (which are incompatible with this company colour magic).  So...
18:20:58  <_dp_> frosch123, ehm, that doesn't seem to answer my single question :p
18:22:00  <frosch123> recolor sprites have a leading zero
18:22:14  <frosch123> you can tell by them being 257 bytes long
18:22:59  <frosch123> it's also the reason why very simple grf decoders have issues with recolor sprites, because they think they are action0s
18:23:14  <_dp_> frosch123, well, I guess that explains the offset
18:23:21  <_dp_> frosch123, does openttd load company colors wrong then?
18:25:55  <_dp_> it does + 0xC6 so it gets non-recolored 0xc5 first
18:29:50  <frosch123> the same is in ottd 0.1
18:29:55  <frosch123> so maybe a CS bug
18:30:29  <LordArtoo> CS bugs are the best features
18:30:36  <LordArtoo> hmm
18:30:38  *** LordArtoo is now known as LordAro
18:30:46  <LordAro> better
18:31:29  <_dp_> what's CS?
18:31:44  <LordAro> Chris Sawyer
18:31:51  <_dp_> oh xD
18:38:01  *** Samu has joined #openttd
18:43:47  <frosch123> ofc it may also be an intentional adjustment of the overall gui brightness
18:44:02  <frosch123> assembly people love side effects
18:44:39  <andythenorth> hmm I need a DOS palette -> hex colour mapping
18:44:44  <andythenorth> I'm sure I have one already
18:45:22  *** Wolf01 has joined #openttd
18:45:34  <frosch123> check the cargo-color script
18:45:45  <frosch123> or was it an industry-color script?
18:46:22  <andythenorth> palette = utils.dos_palette_to_rgb()
18:46:35  <andythenorth> it's lolz
18:46:45  <andythenorth> I just open the palette image I have and sample the colour :)
18:47:04  <andythenorth> https://github.com/andythenorth/firs/blob/master/src/utils.py#L57
18:47:12  <andythenorth> sometimes doing it wrong is really quite effective
18:47:33  <frosch123> https://github.com/frosch123/TTDViewer/blob/master/src/TTDPalette.java#L28 <- you can also find it there ofc
18:47:39  <andythenorth> ha :)
18:47:56  <andythenorth> I could just dump the results of my script once to a constant
18:48:03  <andythenorth> and save wear and tear on my SSD
18:48:04  <supermop_Home_> i've often wondered about a way to render things in pallet like colors
18:48:39  <frosch123> do you mean RGBA_EATER?
18:48:43  <supermop_Home_> maybe
18:49:00  <supermop_Home_> but that is a way to downsample something after it has been rendered
18:49:01  <frosch123> that's V's python magic script to convert 32bpp into 8bpp
18:49:07  <frosch123> the results are quite good
18:49:34  <supermop_Home_> i'm thinking more a way for 32bpp sprites to keep a 'feel' of the 8bpp pallet
18:50:16  <supermop_Home_> like the actual shader would only shade CC blue to darker shades of the same hues
18:50:28  <_dp_> have anyone tried converting 8bpp into 32?
18:50:28  <frosch123> oh, if you want it to look like original graphics, just apply a noise filter
18:50:41  <frosch123> the original sprites are mostly random noise over the plain sprite
18:50:48  <supermop_Home_> but maybe allow intermediate shades within the original stack of 8
18:50:49  <_dp_> I heard upscaling scripts are quite good nowadays
18:51:07  <frosch123> _dp_: we were talking color space, not sprite size
18:51:14  <supermop_Home_> yeah
18:52:02  <_dp_> frosch123, well, yeah, I guess I'm just used to 32bpp also meaning extra zoom
18:52:02  <frosch123> supermop_Home_: i thought you wanted to more colors by adding 16 shades each for hues not present in the original palette
18:52:16  <supermop_Home_> i want a way where i can set a locomotive to be some plain color, say the rgb equivalent of the normal CC blue, and then render it
18:53:13  <supermop_Home_> but enforce that all of the shades on it are of the same hue as the set of CC blues, even if they are different shades
18:53:31  <nielsm> do that with a separate mask layer you can multiple-blend by the target colour
18:53:43  <nielsm> or something similar to that at least
18:54:02  <supermop_Home_> so that lighting an shadows won't make washed out or muddy colors like on most rendered sets, but keep the bright toylike colors of the pallet
18:54:10  <nielsm> straight multiply blend won't work since you need to be able to saturate towards white too
18:54:27  <frosch123> supermop_Home_: http://devs.openttd.org/~frosch/diffs/vehstack/vehstack_screenshot.png
18:54:30  <supermop_Home_> nielsm i also though about that, render everything in greyscale
18:54:33  <andythenorth> hmm not opening the palette image makes no difference to compile time :P  (vs returning a simple list of 256 2-tuples)
18:54:43  <supermop_Home_> and composite on palette colors in PS
18:54:43  <andythenorth> SSDs are fast eh
18:55:40  <supermop_Home_> frosch123 i did use stacks in my RVs to build them out of various bits that could change
18:56:33  <frosch123> yeah, but with stack you can also mix 32bpp and 8bpp sprites and alpha-blend them
18:56:54  <frosch123> so you can add the 8bpp hue with some alpha-mixing over the base 32bpp sprite
18:57:15  <nielsm> but that still only gives you 8 shades of cc
18:57:53  <frosch123> though the shades of each cc have very different hue, so to make it look good you need to use different cc shades for dark/light in the overlay
18:58:22  <supermop_Home_> hmm yeah
18:58:23  <frosch123> nielsm: you can alpha-blend them with greyscale
18:58:41  <frosch123> but you cannot make a continuous transition between to cc shades
18:58:50  <frosch123> since the steps are different for all cc
18:59:16  <supermop_Home_> if you only layered over the middle cc shade over grey areas, that might work but it would probably look weird
18:59:38  <frosch123> we tried that, it looks completely different :)
18:59:55  <supermop_Home_> also i would want this for more than just CC, also to render a concrete or brick building
18:59:56  <frosch123> colors like yellow/cream/gold looks weird
18:59:56  <DorpsGek_III> [OpenTTD/OpenTTD] LordAro opened pull request #8287: Backport things for 1.10.3 release https://git.io/JJ2mi
19:00:04  <LordAro> tada.
19:00:47  <frosch123> supermop_Home_: http://devs.openttd.org/~frosch/cc_gradientremap.png <- maybe it's that one
19:00:53  <LordAro> disappointingly, i discovered that there's a commit message in master with a ' ' at the beginning
19:01:27  <frosch123> http://devs.openttd.org/~frosch/cc_gradient40C0.png http://devs.openttd.org/~frosch/cc_gradient40C0ob.png <- no idea what the differences are
19:01:41  <frosch123> you would have to look up irc logs from 2015-05-24
19:01:55  <supermop_Home_> and have it look similar in color to a brick or concrete building from the base set
19:04:02  <DorpsGek_III> [OpenTTD/OpenTTD] LordAro updated pull request #8287: Backport things for 1.10.3 release https://git.io/JJ2mi
19:04:38  <LordAro> @logs
19:04:38  <DorpsGek> LordAro: https://webster.openttdcoop.org/index.php?channel=openttd
19:04:56  <andythenorth> oh ffs
19:05:05  <andythenorth> company colours are shown as gradients :D
19:05:08  <LordAro> hmm, doesn't go back that far
19:05:12  <andythenorth> fortunately css is modern :P
19:05:14  <LordAro> i probably have them somewhere...
19:05:39  <frosch123> http://devs.openttd.org/~frosch/companycolours.png <- 2015-05-11
19:06:37  <frosch123> LordAro: if you really want them, i have my own logs
19:06:44  <LordAro> nah
19:07:05  <LordAro> my own (relatively indexed) logs only go back to 2016/10, disappointingly
19:07:15  <LordAro> i could probably dig out older ones if i tried hard enough
19:07:17  <LordAro> but meh.
19:07:29  <frosch123> i have no idea what broke coop logs
19:07:54  <frosch123> but probably the same thing that broke the rest of coop :)
19:09:36  <supermop_Home_> frosch123 yeah any shading of a given palette color, whether by blending it with a greyscale, or shading it in a render, would not produce those weird hue profiles
19:10:22  <supermop_Home_> though maybe you could make a renderer that would try to do something weird like that
19:11:07  <andythenorth> frosch123 those charts :D
19:11:27  <frosch123> my theory about ottd screenshots: we used the greyscale value of the 32bpp sprite to interpolate the spline defined by the CC shades
19:11:30  <supermop_Home_> interesting how consistent in hue light blue is
19:11:43  <frosch123> the different versions are about mapping different grey ranges
19:11:47  <supermop_Home_> maybe that's why i think it always looks so good on most vehicles
19:11:57  <andythenorth> hmm css gradient can't reproduce the ottd gradient quickly
19:12:05  <andythenorth> I *could* just use bitmap images :P
19:12:20  <frosch123> so in 40C0 i think grey40 is mapped to the darkest shade, and then interpolated up to C0 for the lightest shade
19:12:55  *** jottyfan has joined #openttd
19:13:26  <_dp_> LordAro, do you seriously not going to include #8237 just because it's called a "feature"?
19:13:36  <_dp_> LordAro, you seem to have no issues with #8287 :p
19:13:53  <LordAro> #8287 is just mislabeled
19:14:00  <LordAro> #8237 is an actual change
19:14:05  <frosch123> supermop_Home_: grey and white are pretty consistent
19:14:05  <LordAro> and frosch123 had some issues with it
19:15:03  <supermop_Home_> frosch123 i should hope so!
19:15:20  <supermop_Home_> the blue curve on orange and yellow is nuts
19:15:28  <_dp_> LordAro, I can also say 8237 is mislabeled unless you think this is normal :p https://i.imgur.com/HwX33Zn.png
19:16:02  <LordAro> given that behaviour has been around forever, i'd say it is :p
19:16:04  <nielsm> it is normal! just not desirable
19:16:53  <_dp_> well, whatever, I'll just do another useless newgrf...
19:17:42  <nielsm> the "allow more than one of each industry type per town" setting could be changed to "maximum number of each industry type per town", with zero meaning unlimited
19:18:08  <LordAro> nielsm: definitely couldn't backport that :p
19:18:24  *** sla_ro|master has joined #openttd
19:18:25  <nielsm> that's a new feature yes
19:18:30  <LordAro> but that doesn't sound like a bad plan
19:18:51  <_dp_> nielsm, why tf do you think it's a good idea to tie industry density to town density?
19:19:35  <nielsm> the oil rig spam never happened in the original game because it always had the limit of one of each industry per town
19:19:51  <_dp_> also oil is broken because its generation only makes sense for island maps
19:20:34  <_dp_> nielsm, also because it was always an island so it has way more water on borders
19:20:56  <_dp_> the whole border thing only makes sense for islands
19:21:35  <nielsm> well it might also be weird for oil rigs to appear in small inland lakes
19:21:42  <nielsm> which is the main reason for that rule
19:22:15  <_dp_> well, they still appear in small inland lakes as long as they're near the border :P
19:22:55  <andythenorth> oof, nested tables
19:23:03  <LordAro> might be a bit much to try to pathfind to the world border on industry generation :p
19:23:09  <andythenorth> might be fine
19:23:27  <andythenorth> takes me a lot of 'newgame' to get no FIRS ports in tiny lakes
19:25:03  <_dp_> LordAro, I never said it should :p
19:25:18  <LordAro> that's the only way i can think of to avoid inland lakes
19:25:22  <_dp_> non-island maps are the same on border and in center, makes no sense to have different spawns
19:25:26  <LordAro> alternatively, maybe we don't care
19:26:45  <_dp_> I only care that there is no way to get rid of border thing
19:27:10  <_dp_> if they didn't spawn at all it would be fine
19:27:17  <_dp_> but it also limits refineries
19:27:39  <_dp_> makes no sense whatsoever from any perspective
19:27:58  <LordAro> https://en.wikipedia.org/wiki/Lake_Peigneur there are occasionally oil rigs in lakes, after all
19:29:53  <_dp_> LordAro, is that lake on the Earth border? :p
19:41:17  <_dp_> btw, did original game even allow to change any settings?
19:41:32  <_dp_> iirc it just had a number of predefined scenarios
19:41:46  <nielsm> yes there were a bunch of difficulty settings
19:41:53  <nielsm> that include some terrain options
19:42:24  <nielsm> https://0x0.st/ixp0.jpg
19:44:40  <frosch123> the best "difficulty setting" was "train reversing"
19:48:48  <supermop_Home_> hmm a lot of the CCs are not contiguous in the palette
19:49:25  <supermop_Home_> nielsm that picture is making the song play in my head
19:49:26  <_dp_> hm, what "economy" setting does there? is that smooth economy?
19:49:50  <nielsm> no
19:50:26  <nielsm> I think fluctuating economy means industries are more volatile and that recessions can occur
19:50:47  <nielsm> the alternative is "steady" iirc
19:51:31  <supermop_Home_> is there some doc that shows which palette colors belong to which cc?
19:51:37  <_dp_> yeah, "steady", but is there no such setting in openttd?
19:52:35  <andythenorth> supermop_Home_ there are many mapping the indexes
19:52:44  <nielsm> anyway unpatched ttd does not have smooth economy
19:52:51  <andythenorth> e.g. this gives hex indexes https://github.com/OpenTTD/OpenGFX/blob/master/sprites/base/base-0775-recolor.pnml#L56
19:53:18  <andythenorth> I generated a palette index a long time ago with PIL :) https://github.com/andythenorth/iron-horse/blob/master/palette_key.png
19:53:24  <andythenorth> but it's dec not hex indexes
19:54:07  <andythenorth> unrelated, I improved the Horse docs a bit more https://www.grf.farm/iron-horse/dev/html/slug.html
19:54:27  <andythenorth> the company colour gradients in the squares are not 100% accurate, but eh
19:55:07  <andythenorth> https://www.grf.farm/iron-horse/dev/html/cheddar_valley.html
19:55:24  <_dp_> nielsm, looks like it's recession switch now
19:56:00  <frosch123> yes, it's the "recession disaster"
19:56:08  <supermop_Home_> andy nice
19:56:36  <frosch123> funnily recession is the only real disaster, while the "disasters" are rather jokes
19:57:17  <nielsm> I'm still glad that the "industry closes for absolutely no reason other than that the player is servicing it" disaster from TTO was taken out in TTD
19:58:02  <frosch123> andythenorth: are you recoloring in html?
19:58:05  <supermop_Home_> how is livery 3 different from livery 1 here:
19:58:06  <supermop_Home_> https://www.grf.farm/iron-horse/dev/html/griffon.html
19:58:08  <frosch123> or did you upload so many sprites?
20:00:44  <nielsm> implemented a grf reader in javascript
20:06:06  <_dp_> that sounds like something I could do :p
20:07:14  *** Speeder has joined #openttd
20:10:12  <andythenorth> frosch123 no :P
20:10:28  <andythenorth> I didn't find a javascript library that can do bitmap wrangling :P
20:10:43  <andythenorth> if I converted the bitmaps to svg in python, I could do it in the html
20:10:59  <andythenorth> but I suspect pixels aren't an efficient use case for svg :)
20:11:13  <andythenorth> there's some raw encoding for images also?
20:11:48  <andythenorth> supermop_Home_ livery 3 is unfinished, nice QA catch :)
20:13:13  *** Speeder__ has quit IRC
20:17:17  *** Speeder has quit IRC
20:19:17  <_dp_> hm, is the source of manual industries available anywhere atm?
20:24:22  *** Speeder has joined #openttd
20:36:40  <b_jonas> "citizens celebrate" that I build a train, but the local authority doesn't seem to appreciate it as much
20:36:52  *** Speeder_ has joined #openttd
20:39:23  *** Speeder__ has joined #openttd
20:39:38  <_dp_> b_jonas, bomb the ungrateful assholes to stone age :p
20:44:17  *** Speeder has quit IRC
20:46:17  *** Speeder_ has quit IRC
20:57:13  <b_jonas> also... oops, after reworking my main steel hub, one of the mines now doesn't get engineering supplies. I have to fix this somehow
20:57:30  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2Gy
21:09:34  *** nielsm has quit IRC
21:11:32  *** Gustavo6046 has quit IRC
21:11:47  *** Gustavo6046 has joined #openttd
21:14:30  *** gelignite has quit IRC
21:19:08  <b_jonas> this steel mill produces so much steel that I still can't transport it. I built a third pair of tracks, but now the bottleback is the station at the metal workshop
21:22:41  *** Samu has quit IRC
21:23:52  *** sla_ro|master has quit IRC
21:35:03  *** andythenorth has quit IRC
21:43:58  <frosch123> _dp_: https://github.com/frosch123/ManualIndustries2
21:44:42  <frosch123> no idea whether it builds, or whether it tries to detect hg versions :)
21:45:42  <_dp_> ty
21:45:55  <_dp_> not going to build it anyway so whatever :P
21:48:16  *** HerzogDeXtEr has quit IRC
21:50:13  *** Wolf01 has quit IRC
21:52:09  *** frosch123 has quit IRC
21:52:27  *** jottyfan has quit IRC
22:12:14  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz updated pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJgcH
22:24:28  *** Progman has quit IRC
22:24:41  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2cR
22:26:01  <DorpsGek_III> [OpenTTD/OpenTTD] JGRennison commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2cz
22:26:37  <DorpsGek_III> [OpenTTD/OpenTTD] LordAro commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2ca
22:29:37  <DorpsGek_III> [OpenTTD/OpenTTD] LordAro commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2cw
22:35:51  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2cd
22:36:52  <DorpsGek_III> [OpenTTD/OpenTTD] LordAro commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2Ce
22:38:10  *** virtualrandomnumber has joined #openttd
22:39:57  *** virtualrandomnumber has quit IRC
22:54:00  <supermop_Home_> https://imgur.com/a/isoLIWO
22:54:14  <supermop_Home_> well now no one is here to see it
23:16:04  <Eddi|zuHause> what are we looking at?
23:25:20  <DorpsGek_III> [OpenTTD/OpenTTD] techgeeknz commented on pull request #8285: Rewrite `OverflowSafeInt` to avoid undefined behaviour https://git.io/JJ2W3

Powered by YARRSTE version: svn-trunk