IRC logs for #openttd on OFTC at 2022-05-22
            
00:40:27 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
00:40:31 *** Smedles has joined #openttd
01:44:07 *** uhren has joined #openttd
01:44:56 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
01:46:22 *** uhren has quit IRC ()
01:59:46 *** Tirili has quit IRC (Quit: Leaving)
02:40:55 *** D-HUND has joined #openttd
02:44:18 *** debdog has quit IRC (Ping timeout: 480 seconds)
02:47:22 *** Wormnest has quit IRC (Quit: Leaving)
03:09:42 *** D-HUND is now known as debdog
03:09:44 *** glx has quit IRC ()
03:38:51 *** WormnestAndroid has joined #openttd
06:00:34 *** Flygon has joined #openttd
06:16:28 *** andythenorth has joined #openttd
06:37:22 *** nielsm has joined #openttd
07:12:28 *** sla_ro|master has joined #openttd
07:16:04 * andythenorth has had an idea
07:17:39 <nielsm> I also had an idea
07:20:24 <nielsm> what if cargo packets instead of having a station for "next hop" had a cargo flow graph edge as next hop, and that edge was actually part of a tree ending in a specific destination. then the cargo would have a full route it wants to take and it would be real cargo destinations
07:20:44 <nielsm> I'm sure it has some pretty terrible implications in storage space needed
07:24:51 <andythenorth> but the full graph doesn't need to be in each cargo packet?
07:25:15 <andythenorth> hmm, still need to know which tree it's in
07:25:17 <nielsm> no, you'd just need to store a pointer into it (node or edge id or similar)
07:25:37 <andythenorth> oh if every edge is unique
07:25:51 <nielsm> of course then you'd need to reference count the nodes/edges and keep them around when the reachability changes, and other horribly complicated things
07:25:52 <andythenorth> it could have uuid, even if there are n other edges for the same pair
07:25:57 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
07:26:00 * andythenorth catching up
07:26:01 *** Smedles has joined #openttd
07:26:38 <andythenorth> did anybody say 'log(n)' yet?
07:38:30 <LordAro> log(n)
07:39:51 <andythenorth> WP
07:40:23 <andythenorth> so if grf could define arbitrary 'livery' values
07:40:41 <andythenorth> which are some identifier, and a name string
07:40:55 <andythenorth> instead of putting them on the vehicle UI, which is crap and where this idea always goes to die
07:41:10 <andythenorth> we could extend the company colour / group colour UIs
07:41:48 <andythenorth> so that for any of the current places you can set company colours
07:42:06 <andythenorth> you get a 3rd UI element, that lets you put 'liveries' in preferred order (or None)
07:42:16 <andythenorth> then it's up to the grf author what to do with that information
07:43:43 <andythenorth> the livery order is available to grf as extra callback info
07:46:48 *** Wolf01 has joined #openttd
07:48:34 <andythenorth> far as I can tell, the main use of liveries is setting fleets of trains to e.g. 'Intercity' or 'Royal mail' or 'DB Regio' or whatever
07:49:03 <andythenorth> the people who really want to set one engine to a specific colour it had briefly in August 1975 can use the existing silly callback :P
07:53:02 <peter1138> Whoop, the blue outlines are back...
07:54:46 <andythenorth> press tab a lot
08:00:16 <peter1138> Christ, the outline is on buttons outside the webpage too...
08:03:38 <Wolf01> Did you enable some accessibility tool of the OS by mistake?
08:06:12 * andythenorth starts firefox
08:09:58 <peter1138> Changed
08:09:59 <peter1138> "Firefox has a new focus indicator for links which replaces the old dotted outline with a solid blue outline."
08:10:14 <peter1138> New in Firefox 100, so I'm sure it's that.
08:12:04 <andythenorth> mine has solid blue
08:12:17 <andythenorth> anything tab-focussed gets it, unless the site has explicitly restyled it
08:13:06 <peter1138> I get it when using the mouse, but maybe I pressed something else. Hmm.
08:13:45 <peter1138> The outline outside the page is only there when tabbing out, now with the mouse, though.
08:19:00 *** snail_UES_ has joined #openttd
08:30:13 *** snail_UES_ has quit IRC (Quit: snail_UES_)
08:36:22 <TrueBrain> so .. where was I with TrueGRF ...
08:37:17 <andythenorth> UI stuff? :P
08:41:35 <TrueBrain> ah, yes, I had most of the cargoes ported to the new UI
08:41:43 <TrueBrain> now I had to figure out how to push updates to GitHub, I guess
09:04:19 <peter1138> Ah, okay, I need to disable hardware GPU acceleration in VS Code to workaround its broken rendering...
09:05:30 <andythenorth> which XKCD shall I link for you? :P
09:05:32 <andythenorth> sharks?
09:06:53 <andythenorth> this one doesn't get used as much https://xkcd.com/1739/
09:07:35 <TrueBrain> owh, right, I was at the point I had to think about when to actually commit to GitHub
09:08:01 <TrueBrain> when you hit a Save button? When you click on Testing? When you leave the cargo/industry? When you leave the input field?
09:09:07 <Eddi|zuHause> when you made up your mind.
09:10:42 <andythenorth> are commits expensive?
09:10:49 <TrueBrain> not really
09:10:55 <TrueBrain> just the history gets muddy real quick
09:11:38 <Eddi|zuHause> the "expensive" part is trying to browse through old commits while trying to figure out why you made a particular change
09:13:18 <Eddi|zuHause> in the worst case, the history decays into a glorified undo button
09:15:27 <andythenorth> do a daily branch, then squash it :P
09:15:40 <TrueBrain> that is not a terrible idea ..
09:16:06 <TrueBrain> commit often in a branch, and if you hit "save" or "publish" or what-ever, push it to main
09:16:10 <TrueBrain> as a single commit or what-ever
09:21:56 <andythenorth> why does trolling sometimes produce workable ideas?
09:22:14 <TrueBrain> I can push 5000 updates per hour to GitHub, so there is some limit
09:22:23 <andythenorth> my entire working history is basically forms of trolling :P
09:22:24 <TrueBrain> so I guess when leaving the item it commits .. that sounds sensible enough
09:23:08 <andythenorth> @calc (60*24) / 500
09:23:08 <DorpsGek> andythenorth: 2.88
09:23:26 <andythenorth> just commit every 3 minutes :P
09:23:38 <TrueBrain> how on earth did that math work out?
09:23:48 <TrueBrain> 24 .. 500 .. those numbers make zero sense :P
09:26:13 <andythenorth> oops :)
09:26:15 <andythenorth> missed a 0
09:26:20 <Eddi|zuHause> andythenorth: because sometimes "trolling" and "thinking outside the box" is virtually indistinguishable
09:26:22 <andythenorth> and a 24
09:26:51 <andythenorth> maybe it's time to get my eyes checked again
09:26:55 <andythenorth> or my brain
09:29:31 <TrueBrain> But yeah, I can commit every second if I would like to .. I do not :p
09:31:05 <Eddi|zuHause> can you make local "cache" commits, and push them to the server sporadically?
09:34:34 <andythenorth> so arbitrary custom livery definitions on groups then?
09:34:55 <TrueBrain> Eddi|zuHause: issue is that when someone closes the browser, that allwould be lost
09:35:02 <TrueBrain> so I have to be a bit more deterministic with when I push
09:35:10 <TrueBrain> but when leaving an item would work fine
09:35:59 <Eddi|zuHause> so, all these minor automatic commits would be local, and the server sync would be on pressing a "save" button, pherhaps with an "autosave" every X minutes
09:37:04 <TrueBrain> that would result in loss of data for how most people deal with websites :)
09:37:23 <andythenorth> so liveries was maybe grf feature 14 in this older spec https://gist.github.com/andythenorth/636908e3498197124782c6daf40de6ae
09:37:28 <andythenorth> but that was specific to vehicles
09:37:36 <andythenorth> making liveries per vehicle is silly
09:37:40 <Eddi|zuHause> TrueBrain: you mean close the browser tab?
09:37:48 <TrueBrain> hit reload, etc etc
09:38:26 <Eddi|zuHause> not sure how that would discard the local cache, tbh.
09:38:30 <TrueBrain> now how to actually make a commit via the browser .. that is the next trick :D
09:39:12 <TrueBrain> I think I first need to push a tree, and after that commit that tree, or something ..
09:40:32 *** HerzogDeXtEr has joined #openttd
09:44:42 <TrueBrain> okay, I either have to do everything myself, which requires 4 API calls, or I can do things file-by-file and let GitHub handle it .. which requires 1 API call per file
09:44:44 <TrueBrain> that is a nice balance
09:47:01 <TrueBrain> what is nice about committing in a branch, that I can make a Publish button, which also sends the new update to BaNaNaS, I guess ..
09:47:06 <TrueBrain> so you get a lot of small updates
09:47:17 <TrueBrain> not sure if BaNaNaS actually likes that, on second thought :P
09:47:28 <TrueBrain> or users, for that matter
09:48:27 <andythenorth> I wonder if Iron Horse is huge file because it has 53117 action 1s
09:48:31 <TrueBrain> guess it needs 3 branches .. "dev", "testing", "main" ... you commit in dev, when saving it is moved as a single commit to testing, when releasing it is all moved to main ..
09:50:38 <TrueBrain> guess I can skip "testing", and just use GitHub releases to bundle commits
09:50:40 <TrueBrain> makes more sense
09:52:54 <TrueBrain> moving from dev to main can be done via Pull Requests .. that seems to be the easiest way
09:53:29 <TrueBrain> (also to ensure no data is accidentally lost :P)
09:53:48 * andythenorth might have to optimise Iron Horse use of action 1, now we have more spritelayers
09:54:49 <andythenorth> I can save 10% of filesize (4MB) just by modifying how 18 wagons work
09:54:55 *** snail_UES_ has joined #openttd
09:55:05 <TrueBrain> lol
09:55:48 <andythenorth> @calc 18 / 811
09:55:48 <DorpsGek> andythenorth: 0.02219482120838471
09:56:10 <andythenorth> 2% of wagons use 10% of grf size
09:56:28 <TrueBrain> I dare say ... you overdid it a bit :P
09:56:56 <andythenorth> 'just another nested template loop'
09:57:04 <andythenorth> if you have a loop of 40 items
09:57:06 <andythenorth> then loop that
09:57:09 <andythenorth> the loop it again
09:57:34 <andythenorth> eh, why not another loop?
09:57:38 <andythenorth> you know what's nice? Loops
10:01:25 *** snail_UES_ has quit IRC (Quit: snail_UES_)
10:42:48 *** gelignite has joined #openttd
11:45:59 *** andythenorth has quit IRC (Quit: andythenorth)
11:59:32 *** sla_ro|master has quit IRC ()
12:09:28 <TrueBrain> ugh, seems you cannot rename files with GitHub API .. that is said :P
12:09:29 <TrueBrain> sad
12:21:42 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
12:21:59 <TrueBrain> means I do need to do the 4 API calls for renames .. owh well, that can be done at a later moment
12:22:36 *** WormnestAndroid has joined #openttd
13:28:07 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
13:29:00 *** WormnestAndroid has joined #openttd
14:44:25 *** Wormnest has joined #openttd
15:01:50 *** sla_ro|master has joined #openttd
15:44:39 *** glx has joined #openttd
15:44:39 *** ChanServ sets mode: +v glx
16:32:45 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:32:49 *** Smedles has joined #openttd
16:52:47 *** tokai|noir has joined #openttd
16:52:47 *** ChanServ sets mode: +v tokai|noir
16:59:33 *** tokai has quit IRC (Ping timeout: 480 seconds)
17:10:54 *** Westie has quit IRC (Read error: Connection reset by peer)
17:11:41 *** Westie has joined #openttd
17:23:54 *** Westie has quit IRC (Ping timeout: 480 seconds)
17:25:00 *** Westie has joined #openttd
17:27:20 *** lobstarooo has joined #openttd
17:31:38 *** lobster has quit IRC (Read error: Connection reset by peer)
17:31:41 *** lobstarooo is now known as lobster
17:52:21 *** lobstarooo has joined #openttd
17:55:28 *** avdg has quit IRC (Ping timeout: 480 seconds)
17:55:28 *** Yexo has quit IRC (Ping timeout: 480 seconds)
17:55:40 *** Yexo has joined #openttd
17:56:23 *** Ammler has quit IRC (Remote host closed the connection)
17:56:40 *** Ammler has joined #openttd
17:56:46 *** orudge has quit IRC (Remote host closed the connection)
17:56:48 *** orudge has joined #openttd
17:57:38 *** lobster has quit IRC (Ping timeout: 480 seconds)
17:57:41 *** lobstarooo is now known as lobster
17:58:43 *** SmatZ has quit IRC (Ping timeout: 480 seconds)
17:59:39 *** XeryusTC has quit IRC (Remote host closed the connection)
18:00:13 *** Terkhen has quit IRC (Ping timeout: 480 seconds)
18:00:53 *** Webster has quit IRC (Ping timeout: 480 seconds)
18:01:10 *** avdg has joined #openttd
18:01:40 *** SmatZ has joined #openttd
18:02:10 *** XeryusTC has joined #openttd
18:03:40 *** Terkhen has joined #openttd
18:03:40 *** ChanServ sets mode: +o Terkhen
18:27:27 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
18:48:58 <DorpsGek> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/8d8f45f0dd064267192dd29b68187e3ab07a675e
18:48:59 <DorpsGek> - Update: Translations from eints (by translators)
19:15:14 *** Westie has quit IRC (Read error: Connection reset by peer)
19:32:33 *** andythenorth has joined #openttd
19:34:05 *** andythenorth has quit IRC ()
19:37:36 *** andythenorth has joined #openttd
19:49:24 <andythenorth> lo
20:04:30 <peter1138> rehi
20:25:28 <andythenorth> rode a bike for a bit
20:25:30 <andythenorth> outdoors
20:25:32 <andythenorth> quite nice
20:39:22 *** gelignite has quit IRC (Quit: Stay safe!)
21:27:24 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:36:03 <peter1138> I will soon.
21:36:06 <peter1138> Had a week off...
21:40:23 *** andythenorth has quit IRC (Quit: andythenorth)
21:42:14 *** sla_ro|master has quit IRC ()
22:07:42 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:13:34 <FLHerne> I saw trains today
22:13:39 <FLHerne> even went on one
22:15:07 *** snail_UES_ has joined #openttd
22:15:22 <FLHerne> andythenorth[m]: does Horse have a chibi crucible wagon? https://www.flherne.uk/files/IMG_20220522_143513.jpg
22:23:12 *** snail_UES_ has quit IRC (Quit: snail_UES_)
22:26:11 *** ChanServ sets mode: +v Terkhen
22:26:11 *** ChanServ sets mode: +v Rubidium
23:14:36 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)