IRC logs for #openttd on OFTC at 2021-12-29
            
00:13:20 *** sla_ro|master has quit IRC ()
01:04:53 *** Flygon has joined #openttd
01:13:53 *** roadt__ has joined #openttd
01:20:37 *** roadt_ has quit IRC (Ping timeout: 480 seconds)
01:34:03 *** Flygon has quit IRC (Ping timeout: 480 seconds)
01:37:33 <supermop_Home> where do i set a custom title game?
02:24:23 *** Wormnest has quit IRC (Quit: Leaving)
02:27:56 *** tokai|noir has joined #openttd
02:27:56 *** ChanServ sets mode: +v tokai|noir
02:35:01 *** tokai has quit IRC (Ping timeout: 480 seconds)
02:40:41 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on discussion #8397: Daylength https://git.io/Jus1L
02:56:23 <DorpsGek> [OpenTTD/OpenTTD] James103 commented on discussion #8397: Daylength https://git.io/Jus1L
03:15:04 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on discussion #8397: Daylength https://git.io/Jus1L
03:19:43 <DorpsGek> [OpenTTD/OpenTTD] James103 commented on discussion #8397: Daylength https://git.io/Jus1L
03:53:52 *** D-HUND has joined #openttd
03:57:14 *** debdog has quit IRC (Ping timeout: 480 seconds)
04:12:24 *** glx has quit IRC ()
05:30:45 *** WormnestAndroid has quit IRC (Remote host closed the connection)
05:58:08 *** _aD has quit IRC (Quit: leaving)
06:02:04 *** Flygon has joined #openttd
07:05:46 *** D-HUND is now known as debdog
07:59:43 *** sla_ro|master has joined #openttd
08:16:49 <DorpsGek> [OpenTTD/OpenTTD] kaomoneus commented on discussion #8397: Daylength https://git.io/Jus1L
08:50:08 *** andythenorth has joined #openttd
08:55:38 *** Gustavo6046 has quit IRC ()
09:42:24 <DorpsGek> [OpenTTD/OpenTTD] danskidb commented on issue #9743: [Crash]: OpenTTD crashes on startup (MacBook Pro 2020, M1) https://git.io/JDCuI
10:11:24 <LordAro> supermop_Home: rename opntitle.dat and replace it with a savegame
10:45:51 *** snail_UES_ has quit IRC (Quit: snail_UES_)
11:43:23 <peter1138> Urgh, do I use multiple columns to store item attributes, or store attributes in a separate table...
11:44:21 <peter1138> Latter is no doubt more extensible, but also probably more of a pain to work with :/
11:49:41 <_dp_> store in json field :p
11:51:29 <peter1138> Yeah, I also want to be able to filter on attributes, and doing that with a separate table means I need to get a join involved, more hassle...
11:52:14 <peter1138> Database design brain says to use separate table, code-wise tells me to KISS.
12:38:42 *** jottyfan has joined #openttd
12:55:46 *** Kitrana has joined #openttd
12:58:55 <andythenorth> I designed a database once
12:59:00 <andythenorth> turned out I did it wrong
13:00:50 *** WormnestAndroid has joined #openttd
13:01:25 *** Kitrana1 has quit IRC (Ping timeout: 480 seconds)
13:12:04 <peter1138> Easy to do.
13:57:19 *** sla_ro|master has quit IRC ()
14:23:09 <DorpsGek> [OpenTTD/OpenTTD] Ufiby commented on discussion #8397: Daylength https://git.io/Jus1L
14:23:50 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
14:24:04 *** WormnestAndroid has joined #openttd
14:24:41 <peter1138> Oh dear, 12 attributes so far.
14:24:45 <supermop_Home> drawing a little busstop has now got me down a rabbit hole of trying to make my bus sprites look better
14:25:23 <supermop_Home> probably should stop before adding roof greeble
14:25:42 <peter1138> Bad database design decisions are being made :/
14:29:57 <peter1138> Adding 12 columns seems a bad idea.
14:30:13 <peter1138> Adding a bitfield column seems a bad idea.
14:30:42 <peter1138> Add a separate table seems a bad idea.
14:30:50 <peter1138> Sleeps seems a good idea.
14:30:57 <peter1138> Multiple.
14:37:21 *** nielsm has joined #openttd
14:50:33 <supermop_Home> hmm. the 'eyeshadow' the put around bus windows.. maybe i can use the crash recolor for that
14:58:55 <andythenorth> peter1138 can't you do some magic ORM thing?
14:59:03 <andythenorth> and let the magic sort it out?
15:19:47 *** glx has joined #openttd
15:19:47 *** ChanServ sets mode: +v glx
15:48:20 <peter1138> andythenorth, ORM doesn't define how its stored.
15:48:37 <andythenorth> BUT IT'S MAGIC!
15:49:13 <peter1138> Uh huh...
15:49:23 <peter1138> 12:59 < andythenorth> turned out I did it wrong
15:49:28 <peter1138> Sounds about right :-)
15:49:53 * andythenorth reads the sqlalchemy docs
15:50:14 <andythenorth> oh yeah it's not magic
15:50:21 <andythenorth> still have to declare tables and keys and crap
15:50:23 <andythenorth> how boring
15:50:52 <andythenorth> I did a mysql once
15:51:07 <andythenorth> the entire rest of my life has been objects
16:02:20 <_dp_> sqlalchemy can make db schema
16:02:32 <_dp_> but it's basically just a pythonized sql anyway
16:37:43 *** andythenorth has quit IRC (Quit: andythenorth)
16:58:53 *** Wormnest has joined #openttd
17:09:32 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
17:15:09 <TrueBrain> seems OpenTTD will enjoy a 20% cut in the AWS bill, simply because they made the first TB of bandwidth free .. lol
17:15:36 *** Gustavo6046 has joined #openttd
17:28:11 *** sla_ro|master has joined #openttd
17:30:29 *** andythenorth has joined #openttd
17:50:46 <_dp_> viewport seems to be doing some dangerous pointer manipulation with pointers to vector data for last_child and last_foundation_child
17:50:58 <_dp_> while changing those vectors
17:51:48 <_dp_> dunno if it can actually segfault atm in some scenario but this whole thing looks like a disaster waiting to happen
18:04:55 *** iSoSyS has joined #openttd
18:05:16 *** iSoSyS has quit IRC ()
18:06:35 *** Gustavo6046 has quit IRC ()
18:13:46 *** Wolf01 has joined #openttd
18:30:35 <LordAro> _dp_: there's a few of those lurking around from the c++ifications
18:48:58 <DorpsGek> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://git.io/Jy1oM
18:48:59 <DorpsGek> - Update: Translations from eints (by translators)
18:54:01 <supermop_Home> can i paint a bus with 5 different color stripes, and use recolor to change what colors they are?
18:56:04 <supermop_Home> so stripes are [-1-/-2-/-3-/-4-/-5-], and diesel bus gets [white/1cc/white/2cc/white] and trolleybus gets [1cc/2cc/2cc/2cc/1cc] etc
19:05:32 <Wolf01> https://www.youtube.com/watch?v=bJWBTltpNww could we have this in OpenTTD?
19:06:51 <TrueBrain> I dare you to make a PR for it :P
19:07:17 <Wolf01> No, I won't do it :)
19:09:44 <TrueBrain> tssk
19:11:42 <_dp_> it's already implemented :p https://i.imgur.com/Yt5YpRS.png
19:12:12 <Wolf01> And I did it...
19:15:10 <TrueBrain> just so boringly deterministic
19:16:11 *** snail_UES_ has joined #openttd
19:43:10 <supermop_Home> ok
19:43:37 <supermop_Home> so if i recolor a pink stripe to the 1cc blue, will it be blue or whatever the 1cc is?
19:44:02 *** esselfe has joined #openttd
19:58:15 <andythenorth> Wolf01 the D11 is pretty good
19:58:19 <andythenorth> building it here
19:59:37 *** gelignite has joined #openttd
20:29:48 <supermop_Home> ok
20:32:50 <FLHerne> Wolf01: some of them you can do now, by making bridges invisible with ctrl+x
20:33:20 <Wolf01> Yeah, the engine over the truck is more interesting btw
20:36:59 <FLHerne> oh, of course I missed dp doing it already
20:39:51 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:38:25 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:47:08 <supermop_Home> can i name a recolor sprite anything?
21:49:51 <supermop_Home> this says what a recolor sprite is but it doesn't say how i reference that from a switch, spritegroup or spriteset: https://newgrf-specs.tt-wiki.net/wiki/NML:Recolour_sprites
22:03:47 *** gelignite has quit IRC (Quit: Stay safe!)
22:04:10 *** jottyfan has quit IRC (Quit: jottyfan)
22:23:37 <andythenorth> yeah the docs could be more
22:24:30 <andythenorth> they're declared in blocks
22:25:43 * andythenorth looking in Iron Horse
22:26:19 <andythenorth> called from colour_mapping
22:26:31 <andythenorth> well, returned when colour_mapping is called
22:26:42 <andythenorth> supermop_Home ^
22:26:48 <supermop_Home> huh
22:27:07 <andythenorth> colour_mapping: my_recolour_sprite; <- most primitive use
22:27:34 <supermop_Home> do i have to do the 'reserve sprites' parameter thing?
22:28:19 <supermop_Home> and if i have a switch that picks either plain bus or color stripey bus - can i recolor only the stripey one?
22:28:21 <andythenorth> this suggests yes https://newgrf-specs.tt-wiki.net/wiki/NML:Builtin_functions
22:28:36 <andythenorth> you can recolour according to arbitrary rules
22:28:40 <andythenorth> is the switch random?
22:29:06 <supermop_Home> maybe, currently its based on built during preview
22:29:11 <andythenorth> ^^^ 'yes' to reserve sprites, sorry there were two questions above :P
22:29:30 <andythenorth> you run the same rules in colour_mapping as you would during graphics
22:29:42 <supermop_Home> ok
22:29:48 <andythenorth> you can also provide a recolour map when using the composed sprites
22:29:53 <supermop_Home> yeah
22:30:08 <andythenorth> I do both types in Horse, not sure why
22:30:08 <supermop_Home> i use that for my Subaru cargos currently
22:30:43 <supermop_Home> but can i recolor only one item in the stack?
22:42:55 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
22:47:31 <andythenorth> I don't know
22:47:48 <andythenorth> I thought the recolour mask could be returned differently each time
22:47:56 <andythenorth> I think I chain sprite stacks somewhere
22:48:22 <andythenorth> or at least, I have chained switches checking the current iteration multiple times
22:48:28 * andythenorth distracted by FIRS stuff
22:48:47 <andythenorth> this would be a *lot* of ingredients to deliver to a detergent factory :| https://wiop.unilever.co.uk/brands/persil/persil-biological-powder-detergent-15121-68303768-300003535199/
23:03:33 <andythenorth> supermop_Home can recolour per layer https://newgrf-specs.tt-wiki.net/wiki/NML:Vehicles#Composing_vehicles_from_multiple_sprites
23:06:59 <supermop_Home> hmm
23:07:03 <supermop_Home> "recolouring" can be:
23:07:03 <supermop_Home> PALETTE_USE_DEFAULT to use the default vehicle recolouring.
23:07:03 <supermop_Home> PALETTE_IDENTITY to use no recolouring
23:07:03 <supermop_Home> Any other default or custom recolouring sprite.
23:07:27 <supermop_Home> "any other custom recoloring sprite"?
23:08:17 <supermop_Home> normally in a stack i use: "| PALETTE_USE_DEFAULT, 0x100),"
23:08:48 <supermop_Home> instead of the palette name, can i just write the name of my recolor sprite?
23:16:38 <supermop_Home> trying this: https://pastebin.com/0Pgnw0JA
23:16:38 <andythenorth> yes, give or take an offset into the sprite block also
23:17:14 <supermop_Home> still don't really understand the parameter to reserve sprites
23:18:53 * andythenorth tries to understand Iron Horse :P
23:19:57 <andythenorth> once you have it working, it's obvious in hindsight :P
23:20:30 *** sla_ro|master has quit IRC ()
23:20:47 <andythenorth> not sure about the param[10] use in the paste
23:20:55 <supermop_Home> yeah
23:20:58 <andythenorth> haven't followed all of that yet
23:21:02 <supermop_Home> its there on the docs
23:21:13 <supermop_Home> but idk what it does?
23:21:13 <andythenorth> that might be legacy
23:21:21 <andythenorth> you can just name your own parameter
23:21:46 <andythenorth> this might some GRM stuff poking through, but I never understood that either
23:22:38 <andythenorth> not sure this will work STORE_TEMP((getbits(extra_callback_info1, 8, 8) < 1 ? CB_FLAG_MORE_SPRITES : 0) | switch_f1_recolor, 0x100)
23:23:15 <andythenorth> I don't know if that will resolve to the recolour sprite or not, going via the switch
23:23:21 <supermop_Home> ah hmm
23:23:55 <andythenorth> does it work?
23:26:56 <supermop_Home> not yet
23:27:10 <supermop_Home> nmlc isn't liking that param block thing
23:30:43 <supermop_Home> nmlc also doesn't expect the { in " recolour_sprite {"
23:32:15 *** jottyfan has joined #openttd
23:32:24 *** jottyfan has quit IRC ()
23:34:36 <supermop_Home> ugh
23:44:02 <supermop_Home> ok you cant write whatever instead of recolour_sprite
23:45:11 <andythenorth> no
23:45:17 <andythenorth> it has to be recolour_sprite
23:45:25 <andythenorth> then you offset to the one you want
23:45:39 <andythenorth> e.g. return custom_wagon_recolour_sprites + 16 * 28 + company_colour1
23:45:45 <andythenorth> is a complicated example
23:46:23 <andythenorth> also seems to lack brackets :P
23:46:26 <andythenorth> lol
23:48:36 <supermop_Home> oof
23:48:48 <andythenorth> I don't think you need to offset in your example
23:57:46 <supermop_Home> ok well kind of working now
23:58:13 <supermop_Home> i need to learn how to do this recolor stuff because i want to make a Honolulu house set
23:58:34 <supermop_Home> and many houses are basically just palette shifted
23:59:37 <supermop_Home> afaict i cant recolor something and still use the regular cc coloring