IRC logs for #openttd on OFTC at 2022-05-19
⏴ go to previous day
01:37:16 *** Eddi|zuHause has quit IRC (Remote host closed the connection)
01:44:03 *** Eddi|zuHause has joined #openttd
02:17:09 *** Wormnest has quit IRC (Quit: Leaving)
02:47:50 *** debdog has quit IRC (Ping timeout: 480 seconds)
06:18:33 *** andythenorth has joined #openttd
06:21:11 *** sla_ro|master has joined #openttd
06:24:29 *** andythenorth has quit IRC (Quit: andythenorth)
06:26:12 *** andythenorth has joined #openttd
07:43:36 *** OsteHovel has quit IRC (Read error: Connection reset by peer)
08:00:13 *** Smedles has joined #openttd
08:30:41 *** D-HUND is now known as debdog
08:41:39 *** andythenorth_ has joined #openttd
08:46:25 *** andythenorth has quit IRC (Ping timeout: 480 seconds)
10:09:44 *** snail_UES_ has joined #openttd
10:15:23 *** andythenorth_ has quit IRC (Quit: andythenorth_)
10:34:06 *** sla_ro|master has quit IRC ()
10:52:39 *** Etua has quit IRC (Quit: Etua)
11:59:08 *** snail_UES_ has quit IRC (Quit: snail_UES_)
12:42:15 *** virtualrandomnumber has joined #openttd
12:48:40 *** virtualrandomnumber has quit IRC (Quit: virtualrandomnumber)
13:50:30 <_dp_> why is sound import mentioned as a part of action 11 in spec when it's basically a separate action FE ?
14:00:28 *** sla_ro|master has joined #openttd
14:01:41 <_dp_> though I guess it only works after action 11...
14:49:51 *** Wormnest has joined #openttd
15:18:46 <peter1138> Are you going to argue that actual sounds are Action FF?
15:27:18 *** gelignite has joined #openttd
15:33:02 <_dp_> well, at least in modern grfs actual sounds go into real sprites section
15:40:19 <_dp_> though I guess inlining would make them action FF indeed
15:41:11 <_dp_> except it's not a top-level action parser, but a dedicated one for action 11
15:47:12 *** snail_UES_ has joined #openttd
16:26:46 *** HerzogDeXtEr has joined #openttd
16:30:45 *** Smedles has joined #openttd
16:52:48 *** ChanServ sets mode: +v tokai
16:59:38 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
17:00:33 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
17:08:43 *** andythenorth has joined #openttd
17:25:48 *** HerzogDeXtEr has quit IRC (Ping timeout: 480 seconds)
17:27:28 *** snail_UES_ has quit IRC (Quit: snail_UES_)
17:27:36 <andythenorth> is it time for the beer?
17:37:11 *** frosch123 has joined #openttd
17:38:26 <frosch123> it's wet, windy and lightningy outside
17:39:19 <andythenorth> the UK has designed to provide mild sunshine
17:39:36 <andythenorth> designed / decided /s
17:48:44 <frosch123> it's weird that large cities have different names in different languages :)
17:51:28 <glx> might be a french thing :)
17:52:50 <nielsm> København/Copenhagen/Kopenhagen
17:53:18 <frosch123> oh, the latter part means haven?
17:55:04 <frosch123> f and g are next to each other on a keyboard
17:55:13 <frosch123> that's probably where the mispelling comes from
17:56:56 <andythenorth> hmm @property decorator only works for classes?
17:57:05 <andythenorth> I've tried it on a function in module root, doesn't work
17:57:53 <nielsm> in python? that should work on any callable definition
17:58:07 <nielsm> well, functions and classes
17:58:46 <glx> IIRC nml use them in non class functions
17:59:17 <andythenorth> I've got it in a module root, and it's returning a property object, rather than the expected value the function should yield
18:00:54 <andythenorth> so the decorator works
18:01:05 <_dp_> getters/setters only work in objects
18:01:16 <_dp_> @property just makes an object with __get__ and __set__
18:01:46 <andythenorth> ok so method it is then
18:03:18 <frosch123> _dp_: btw. when you get to it: a recolour sprite is not an action0 :p
18:04:18 <_dp_> frosch123, I think I already got past that :p
18:05:59 <_dp_> File "bin/grftopy", line 175, in decode_action0 KeyError: 162
18:07:39 <frosch123> if you care about mb, he used to write recolour sprites as "action1" :p
18:08:14 <frosch123> i have no idea why CS prefixed recolor sprites with an unused byte
18:09:02 <peter1138> I once used that to extend recolours to 32bpp.
18:13:56 <peter1138> That patch predates all the SSE-related blitters, let alone OpenGL.
18:14:18 <peter1138> But I still have it, just in case :D
18:19:40 <_dp_> frosch123, hm, so how do I tell them apart? by length?
18:20:17 <supermop_work> copenhagen means the same in all those languages though
18:20:26 *** HerzogDeXtEr has joined #openttd
18:20:54 <frosch123> _dp_: you have to consider action1/5/A and the following sprites as one thing
18:21:07 <frosch123> action1/5/A tell you how many recolor/realsprite follow
18:21:14 <frosch123> there is no other reliable method to thell them apart
18:21:47 <frosch123> it's kind of the same for sounds
18:22:56 <frosch123> if you also want to support basesets, they have no action1/5/A, all pseudo sprites are recolor sprites
18:27:28 <_dp_> I just added a TODO comment xD
18:27:43 <_dp_> got sounds to deal with right now
18:37:20 <andythenorth> so seems I can subclass `list` and extend it with methods
18:37:30 * andythenorth has an adventure into things that could go wrong
18:41:35 <andythenorth> if class Foo(list)
18:42:07 <andythenorth> wonder how I set the actual value of the list
18:42:20 <andythenorth> not via append etc, that's too easy :P
18:42:54 <_dp_> super().__setitem__ most likely
18:44:12 <frosch123> inheritance considered harmful? use composition instead :p
18:51:43 <andythenorth> ha I've found __call__
18:51:55 <andythenorth> so I can have a class instance that is also callable
18:51:59 <andythenorth> 'what could go wrong'
18:53:38 <_dp_> wait till you find metaclasses :p
18:57:47 <andythenorth> did we ever find a better design for the train livery callback?
19:01:00 <andythenorth> did you implement some new UI in the client? :P
19:04:05 <andythenorth> almost every train grf seems to implementing it
19:04:28 <andythenorth> I'd really like to find something better :)
19:04:37 <andythenorth> but so far I failed :)
20:17:53 *** gelignite has quit IRC (Quit: Stay safe!)
20:29:56 *** nielsm has quit IRC (Ping timeout: 480 seconds)
20:31:28 *** esselfe has quit IRC (Quit: rebooting)
20:36:26 *** esselfe has joined #openttd
20:47:43 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
20:49:11 *** WormnestAndroid has joined #openttd
21:22:52 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
21:34:03 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
21:35:43 *** WormnestAndroid has joined #openttd
21:45:23 *** WormnestAndroid has quit IRC (Ping timeout: 480 seconds)
21:46:27 *** WormnestAndroid has joined #openttd
21:56:23 *** sla_ro|master has quit IRC ()
22:04:22 *** andythenorth has quit IRC (Quit: andythenorth)
22:14:20 *** frosch123 has quit IRC (Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn)
22:27:43 *** snail_UES_ has joined #openttd
22:59:59 *** snail_UES_ has quit IRC (Quit: snail_UES_)
23:21:22 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
continue to next day ⏵