IRC logs for #openttd on OFTC at 2019-11-26
⏴ go to previous day
00:00:40 <stormcone> but i have some progress with the colour remap
00:25:32 <glx> so yeah a fixed color is easy to do
00:27:07 <glx> of course colour remap seems more usable
00:40:17 <stormcone> but actually i would like to know where the replacement happens from the drawString colour argument to the string's colour code
00:42:33 <stormcone> i better like your method because that uses the drawString colour argument, which is already there :)
00:42:57 <glx> the color change happens in FontState::SetColour() called for GetLayouter()
00:46:18 <stormcone> i mean where the 'colour argument' of the drawString is replaced by the color code of the string
00:47:44 <glx> in GetLayouter(), (gfx_layout.cpp:625) } else if (c >= SCC_BLUE && c <= SCC_BLACK) {
00:48:04 <glx> SCC_* are control codes in strings
00:48:41 <glx> and if it's a color code then SetColour() is called
00:49:55 <glx> in color from draw string is used to initialise FontState
00:50:56 <glx> in Layouter::Layouter() (same file, line 667)
00:52:04 <stormcone> hmm, so the fixed_color check also could be on gfx_layout.cpp:625
00:53:23 <glx> but doing it in SetColour() takes care of push/pop too
00:55:15 <stormcone> and its not a good idea to change the orders of TextColor's enum elements :)
00:56:09 <glx> unless you also change SCC_ colors order too
00:56:25 <glx> but that's probably not a good idea
00:57:37 <stormcone> tricky solution that math there :)
00:58:41 <glx> but once in SetColour() you can do whatever you want, even pick a color from the palette
00:59:26 <stormcone> so could you please make a PR with your code? :)
00:59:56 <glx> hmm looking in the code I can see my changes won't work for TC_BLUE
01:00:20 <stormcone> yes, that the same as TC_FROMSTRING :(
01:00:43 <glx> but that can change I think
01:18:40 <stormcone> it's quite late, so thank you for your help and for everyone else
01:27:44 *** Thedarkb-X40 has joined #openttd
01:31:17 <DorpsGek_III> [OpenTTD/OpenTTD] glx22 opened pull request #7845: Add: a TextColour flag to ignore colour changes from strings https://git.io/JePiz
06:08:56 *** snail_UES_ has joined #openttd
06:35:26 *** Wormnest has joined #openttd
08:27:19 *** andythenorth has joined #openttd
09:25:20 *** Smedles_ has joined #openttd
09:30:36 *** WormnestAndroid has quit IRC
09:30:58 *** WormnestAndroid has joined #openttd
09:31:09 *** Wormnest has joined #openttd
09:38:59 *** WormnestAndroid has quit IRC
09:40:23 *** WormnestAndroid has joined #openttd
09:48:43 *** Wormnest has joined #openttd
09:56:02 *** Smedles has joined #openttd
10:40:13 *** tokai|noir has joined #openttd
10:40:13 *** ChanServ sets mode: +v tokai|noir
10:55:52 <Jack_> I'm trying to compile OpenTTD for a handheld console, just to see how far I can get. I aimed to correct toolchain and I'm able to configure the project from github but I get an error on make
10:56:15 <Jack_> ./strgen: 1: ./strgen: Syntax error "(" unexpected
10:56:25 <Jack_> related to table/strings.h
10:57:00 <Jack_> I guess strgen is a internal binary uset to generate strings but not knowing the project structure is quite hard to guess what's going on
10:57:57 <Eddi|zuHause> strgen is the internal tool for managing the translations
10:58:58 <Eddi|zuHause> i've never actually looked at its internals though, but it should be a standard C(++) program
10:59:40 <Jack_> so I guess it's generating a table/strings.h file
11:00:10 <Jack_> and it's complaining that this another file has an invalid syntax
11:02:39 <Eddi|zuHause> well, technically it does 2 things: it reads lang/english.txt (our "master" language), and from the entries there it generates an enum for use inside the program, and for each translation in lang/*.txt it generates a *.lng file which gets used to display the actual strings later
11:45:32 <peter1138> Is it lunch time yet?
11:45:47 <peter1138> Or maybe time for a biscuit to tide me over?
11:46:34 <FLHerne> Reheated-yesterday's-dinner time for me
11:49:09 <peter1138> Mine... wouldn't be suitable for reheating. Also I ate it all.
11:49:10 *** andythenorth has joined #openttd
11:49:56 <andythenorth> don't eat lunch yet
11:50:12 <peter1138> Watching the conversation, eh? How rude.
11:50:41 <peter1138> Hmm, so many of my instagram photos look the same. I should eat something different :p
11:56:59 <Arveen> it's lunch time, hooray for me
11:59:59 <andythenorth> I wasn't in logs
12:03:57 <peter1138> Well, if you look at the logs now...
12:09:32 <andythenorth> I CALL A CONSPIRACY
12:09:46 <andythenorth> there is zero track record of lunch ever being discussed here at this time
12:09:59 <andythenorth> probably George Soros?
12:15:56 <andythenorth> newgrf docks then?
12:16:14 <andythenorth> I have built lots of connected docks, but they all look the same
12:17:08 <peter1138> I should reinstate my web server so I can look at the pictures again.
12:20:08 <FLHerne> I have those stupid humps all over the place
12:21:06 <andythenorth> FLHerne: unrelated obscure question, did you have 2 different company colours when you played Iron Horse?
12:21:33 <FLHerne> In the same company? Don't think so
12:22:25 <andythenorth> I usually set white as 2CC, but I forgot in my current game
12:22:30 <andythenorth> all the steam engines look the same :P
12:22:46 <FLHerne> (normally I use UKRS2's magic realistic recolouring, so setting CCs nicely didn't really occur to me)
12:22:50 <andythenorth> 'something must be done'
12:22:57 <FLHerne> Actually, might have been red/white
12:23:12 <FLHerne> I usually do that because Bob's trams look really good in it
12:23:49 <andythenorth> it's definitely a thing :P
12:23:52 <FLHerne> The pax ones aren't too bad
12:24:26 <andythenorth> the blue freight ones though
12:24:33 <andythenorth> it's really hard to see any difference
12:24:39 <FLHerne> It's the freight ones that look like indistinguishable barrels with bits glued on
12:25:39 <FLHerne> What I said before though: the worst thing about Horse steam locos ingame is the connecting rods
12:26:05 <FLHerne> Nothing spoils the illusion more than seeing them slide along the track without the wheels turning :P
12:29:10 <andythenorth> hmm no, animating will kill file size and compile time :P
12:30:02 <FLHerne> It's not dead already?
12:30:11 <andythenorth> it's on life support
12:30:16 <andythenorth> prognosis is not good
12:30:16 <FLHerne> But yeah, lower contrast might be the sane option
12:30:22 <andythenorth> effect vehicles!
12:31:12 <andythenorth> would animation need to react to vehicle speed?
12:31:25 <andythenorth> hmm FISH just uses the water cycle and palette animation :P
12:31:33 <andythenorth> maybe I could cycle two palettes :P
12:39:34 <FLHerne> I keep getting the impression that NML was written by low-level C programmers
12:40:20 <FLHerne> The classes are all just places to put more functions, there's very little real abstraction
12:40:57 <andythenorth> planetmaker knows more than me
13:31:01 <andythenorth> but is it lunch now?
13:44:22 <FLHerne> If skipping an actionA with an action7, should num-sprites be 1, or include the number of realsprites?
13:50:48 <planetmaker> I've had very little hands in *designing* NML internals
13:52:20 <planetmaker> as to skipping... what does newgrf docs for action7 say? :D
13:52:45 <planetmaker> newgrf docs for newgrf docks... are they a thing? :D
13:56:48 <FLHerne> planetmaker: If it says anything about that case I'm missing it
13:59:47 <FLHerne> There's no information against action5/A in the table except "yes"
14:00:08 <planetmaker> it says 'sprites'. Real sprites are sprites
14:00:49 *** Wormnest has joined #openttd
14:29:21 <peter1138> I had something other than salad for lunch today! (It was a bread roll, with, er... salady-type stuff in it...)
14:46:53 *** snail_UES_ has joined #openttd
14:53:28 <andythenorth> I have not lunched
14:53:40 <andythenorth> I have cleaned up 50% of the wet leaves in my back yard
14:53:44 <andythenorth> and fed child #1
14:53:57 <andythenorth> and washed out the food waste bin
14:54:06 <andythenorth> and loaded the dishwasher
14:54:11 <andythenorth> but lunch I failed :|
14:54:37 <andythenorth> ham sandwich? Not very meat-free though
14:59:02 <andythenorth> the ham is 18 days over the best-before date
15:44:33 <peter1138> Hi-vis tape... bright colour or... stealthy black?
15:44:42 <peter1138> 18 day old ham. Probably not.
15:44:50 <peter1138> 18 day old cheese, sure.
15:45:03 <peter1138> If your ham has turned to cheese though, probably other issues...
15:53:11 <planetmaker> more an issue, if it runs on its own. Or grew a fur to stay warm in the fridge ;)
16:01:38 *** supermop_work_ has joined #openttd
16:03:59 <andythenorth> had some sort of goo leaking out of it, but it was honey-roast so probably fine?
16:21:16 <andythenorth> it was tasty also
16:35:39 *** sla_ro|master has joined #openttd
16:38:32 *** frosch123 has joined #openttd
16:45:51 *** andythenorth has joined #openttd
16:46:17 <peter1138> I had some biltong that went mouldy :(
16:46:22 <peter1138> I'm not eating that.
16:46:31 <andythenorth> when heavily preserved things go wrong
17:20:24 <FLHerne> I know my father would have just scraped the mould off and eaten it :-/
17:21:22 * FLHerne is willing to shave the mouldy bits off hard cheese, but that's the limit
17:25:16 <planetmaker> also of cambrais or roquefort? ;)
17:26:54 * planetmaker downloads necessary newgrfs
17:27:44 <planetmaker> wrong channel. But yes, mostly nuts grfs
17:27:53 <planetmaker> sure they're cheesy
18:03:32 *** supermop_work_ has quit IRC
18:09:05 <peter1138> FLHerne, for cheese, yes. Not ham :-)
18:09:36 <peter1138> planetmaker, now I want some roquefort :/
18:10:08 *** supermop_work_ has joined #openttd
18:10:14 <andythenorth> 'improved' mode then?
18:44:50 *** supermop_work_ has quit IRC
18:45:56 *** supermop_work_ has joined #openttd
19:03:56 *** Progman has joined #openttd
19:13:53 *** arikover has joined #openttd
19:16:10 *** supermop_work_ has quit IRC
19:16:46 *** supermop_work_ has joined #openttd
19:29:14 * peter1138 makes a shopping list.
19:29:51 *** gelignite has joined #openttd
19:32:34 <Wolf01> andythenorth: lego is lego is lego is lego
19:33:22 <Wolf01> And bricklink is lego too, now
19:51:51 <peter1138> I... think I already have some manchego.
19:57:55 <peter1138> Ah, no, it's gruyere.
20:03:06 *** HerzogDeXtEr has joined #openttd
20:04:48 <andythenorth> ouch is it lunchtime?
20:04:51 <andythenorth> I may have errored
20:54:21 <andythenorth> there is a random angle
20:54:49 <andythenorth> which is circular economy
20:55:03 <andythenorth> I have pretty much stopped buying lego
20:55:30 <andythenorth> and when I do buy it, I'm buying for the building experience not the parts
20:55:30 <Wolf01> So you'll sell lego to give again a cut to TLG?
20:55:41 <andythenorth> they are under a lot of pressure about plastic
20:55:51 <andythenorth> and they are under pressure from the clones
20:56:10 <andythenorth> positioning lego as a circular thing is one strategy
20:56:22 <andythenorth> I doubt that's why they've done it
20:56:31 <andythenorth> I suspect they're just going to kill it by accident
20:57:14 <Wolf01> They will kill it as soon as they start to enforce their rules
21:01:35 <andythenorth> before bricklink there was brickbay
21:01:44 <andythenorth> when it was on rec.toys.lego on usenet
21:01:54 <andythenorth> and they used to literally announce when they were going to TrU
21:02:00 <andythenorth> and which sets they'd buy
21:02:08 <andythenorth> stuff comes, stuff goes
21:02:23 <andythenorth> I just like watching the changes
21:02:39 <andythenorth> what shall I have for lunch / dinner /s
21:05:26 <andythenorth> I am having marmite on toast
21:05:41 <andythenorth> my blitz WR today is 50%
21:05:45 <andythenorth> so its just a coin flip
21:05:52 <andythenorth> I must have neutral RNG
21:06:24 <andythenorth> Eddi|zuHause: hi
21:13:09 <peter1138> Yay, I managed to not over-cook my tuna steak.
21:14:26 <andythenorth> did you overcook the cheese?
21:15:36 <peter1138> Perhaps. It was mozzarella, mixed in with stuff, so...
21:24:21 * andythenorth thinks Big Clive should do cooking
21:30:08 <peter1138> He doesn't strike me as the sort of person to do so...
21:31:16 <andythenorth> maybe I should leave him a comment
21:31:23 <andythenorth> not sure I ever commented on YT before
21:35:09 <LordAro> easier than the morning
21:35:27 <peter1138> Hmm, why has it put it WAAAY down the list below earlier rides...
21:36:45 <peter1138> Q2 RTX update, indeed. I already finished it though :/
21:41:21 <andythenorth> hmm, so all the PRs are merged? :)
21:42:00 <andythenorth> stop merging things :)
21:42:27 * andythenorth back to washing up
21:43:55 <andythenorth> it's fine, JGR knows the game :)
21:45:06 <LordAro> andythenorth: we dropped support for clang3.8, it's fine :p
21:45:28 <andythenorth> everything is fine :)
21:45:37 <LordAro> though based on the output, they might be using gcc 4.9, which i'm pretty sure is even older
21:46:58 <andythenorth> so if we augmented (or even maybe replaced?) default industries by shipping a grf with the game
21:47:11 <andythenorth> how would that interact with when player loads a grf?
21:47:44 <andythenorth> this is all just silly dreaming but eh
21:49:07 <andythenorth> for sake of designing it, let's say openttd.grf grows replacement industries
21:49:15 <andythenorth> with options for original / improved gameplay
21:49:22 <andythenorth> then player loads FIRS
21:50:41 * andythenorth not even sure what the question is
22:07:58 *** m1cr0man has joined #openttd
22:12:21 *** HerzogDeXtEr1 has joined #openttd
22:48:49 *** andythenorth has left #openttd
continue to next day ⏵