IRC logs for #openttd on OFTC at 2018-03-20
            
00:00:48 <glx> would be easier with a helpful error message ;)
00:01:44 <supermop> so it will compile, but now i dont get the 2nd sprite stacked in game
00:02:07 <supermop> and the first sprite is recolored orange instead of 1cc
00:02:24 <Wolf01> 'night
00:02:26 *** Wolf01 has quit IRC
00:35:52 <supermop> yeah, seems like ill need to test for that incrementing number somehow, but that just gets me back to the same error
00:39:48 <Eddi|zuHause> <supermop> love these helpful error messages: [...] <-- i think there's a flag that lets nmlc pass the actual internal error/backtrace instead of catching it and rethrowing this message
00:40:28 *** Wormnest has quit IRC
00:42:27 <Eddi|zuHause> ah, it's "-s"
00:44:07 <supermop> https://paste.openttdcoop.org/prmgeljkd
00:44:24 <supermop> tbh that doesn't mean much more to me but i guess it's a start
00:45:09 <supermop> and nothing here: https://newgrf-specs.tt-wiki.net/wiki/NML:Vehicles#Composing_vehicles_from_multiple_sprites
00:45:32 <Eddi|zuHause> next step would be to throw that into a pdb.pm()
00:45:59 <supermop> really lays out how to structure the switch in such a way that each iteration gets its own recolor
00:46:29 <Eddi|zuHause> haven't really looked at that yet
00:48:19 <supermop> now i dont even really understand how the stuff that i had working before worked
00:48:44 *** Wacko1976 has joined #openttd
00:49:03 <supermop> brb
00:49:09 *** Biolunar has quit IRC
00:55:01 *** HerzogDeXtEr has quit IRC
00:57:32 <Eddi|zuHause> supermop: what i would do in the situation with the assert, is run "python -i /path/to/nmlc args", and after the assert, run "import pdb" and "pdb.pm()"
00:57:44 <Eddi|zuHause> then you can look around the state of the program at the time the assert was thrown
00:58:02 <Eddi|zuHause> like trying to find out what value it wanted to write, and where it came from
01:03:30 <Eddi|zuHause> (note that "python" should be "python3" probably, and if on windows, nmlc is wrapped in some .exe file, that won't really work)
01:12:26 *** Eddi|zuHause has quit IRC
01:12:40 *** Eddi|zuHause has joined #openttd
01:38:49 *** FLHerne has quit IRC
02:06:05 *** snail_UES_ has joined #openttd
02:18:59 *** Thedarkb has quit IRC
02:19:44 *** iSoSyS has joined #openttd
02:24:09 *** supermop has quit IRC
02:28:26 *** supermop has joined #openttd
02:29:25 *** Flygon has joined #openttd
02:47:56 *** Laedek has quit IRC
02:53:36 <LANJesus> aww snap. progress! https://i.imgur.com/oXtcK2p.png
02:54:32 <LANJesus> emoji just to make sure encodings aren't getting hosed. woop woop.
02:57:01 *** kais58 has quit IRC
03:01:23 *** kais58 has joined #openttd
03:39:08 *** snail_UES_ is now known as Guest1033
03:39:08 *** snail_UES_ has joined #openttd
03:40:03 *** Guest1033 has quit IRC
04:01:50 *** ToffeeYogurtPots_ has quit IRC
04:02:20 *** ToffeeYogurtPots_ has joined #openttd
04:30:18 *** snail_UES_ has quit IRC
04:59:43 *** glx has quit IRC
05:20:41 *** Cubey has quit IRC
05:30:27 *** sla_ro|master has joined #openttd
05:31:50 *** snail_UES_ has joined #openttd
05:43:55 *** supermop has quit IRC
05:49:15 *** Pikka has joined #openttd
05:53:53 *** sla_ro|master has quit IRC
06:14:13 *** Laedek has joined #openttd
06:32:27 *** snail_UES_ has quit IRC
06:59:53 *** Wacko1976 has quit IRC
07:10:50 *** keoz has joined #openttd
07:45:53 *** cHawk has quit IRC
08:13:45 *** keoz has quit IRC
08:44:20 *** cHawk has joined #openttd
08:51:33 <dihedral> greetings
08:52:09 <dihedral> LANJesus, looks interesting :-)
08:52:15 * dihedral likes
08:57:34 <dihedral> what is that written in
09:30:11 *** supermop has joined #openttd
09:38:13 *** supermop has quit IRC
09:51:46 *** WWacko1976-work has joined #openttd
10:07:52 *** Biolunar has joined #openttd
11:14:16 *** TheMask96 has quit IRC
11:18:48 *** TheMask96 has joined #openttd
11:54:11 *** WWacko1976-work has quit IRC
12:07:32 *** Lejving has quit IRC
12:07:53 *** Lejving has joined #openttd
12:08:23 *** WWacko1976-work has joined #openttd
12:32:12 *** luaduck has quit IRC
12:35:05 *** sla_ro|master has joined #openttd
13:05:27 *** FLHerne has joined #openttd
13:21:10 *** supermop has joined #openttd
13:25:13 *** luaduck has joined #openttd
13:49:05 *** snail_UES_ has joined #openttd
14:05:08 *** supermop has quit IRC
14:05:20 *** snail_UES_ has quit IRC
14:17:22 *** ToffeeYogurtPots_ has quit IRC
14:17:44 *** ToffeeYogurtPots_ has joined #openttd
14:34:22 *** circ-user-RdMZI has joined #openttd
14:34:36 *** circ-user-RdMZI is now known as supermop_work
14:37:22 <supermop_work> yo
14:42:56 *** supermop_work_ has joined #openttd
14:43:05 *** supermop_work has quit IRC
14:56:16 *** deep has joined #openttd
15:07:36 *** deep has quit IRC
15:09:57 <LANJesus> dihedral: .NET core 2.0 (C#)
15:11:10 <LANJesus> runs the same in linux as windows without any changes. only supporting little-endian for now.
15:20:04 *** Eddi|zuHause2 has joined #openttd
15:20:04 *** Eddi|zuHause has quit IRC
15:57:42 *** nielsm has joined #openttd
16:07:58 *** Flygon has quit IRC
16:09:48 *** Eddi|zuHause2 is now known as Eddi|zuHause
16:21:00 *** RafiX has joined #openttd
16:24:09 <nielsm> well, almost works: http://0x0.st/sB-K.png
16:24:15 <nielsm> just need to work on the layout a bit more
16:28:30 *** tokai|noir has quit IRC
16:32:25 <supermop_work_> neat
16:34:06 <LordAro> nice
16:36:10 <nielsm> http://0x0.st/sB-Z.png this should be fine I think? or try to make it drop leftwards instead of spilling over the side of the window?
16:37:14 <LordAro> any existing menus you can check for consistency?
16:37:37 <nielsm> I don't think there is precedent for title bar dropdowns like that
16:45:35 <peter1138> Cue bug reports that you can't change graphics or sound mid-game.
16:46:46 <nielsm> can't change to toyland halfway through my 150 year game
16:47:03 <Eddi|zuHause> the build rail/whatever toolbar could use such a menu for chosing the railtype
16:47:10 <Eddi|zuHause> /whatevertype
16:50:56 <peter1138> Heh, I meant base :p
16:51:11 <peter1138> I wonder if I lost my multistop docks patch.
16:51:17 <peter1138> I probably uploaded it somewhere.
16:55:48 <nielsm> huh it almost sounds like one of my birds is trying to teach himself to whistle "easy driver"
16:55:51 <nielsm> at least for a while it did
16:58:05 <nielsm> hmm, if the user switches from the empty music set to one with songs, should it start playback, or wait until the user clicks play?
17:01:39 <nielsm> nah it's too complicated to handle I think not doing that
17:03:18 <nielsm> (can't tell if it's not playing because user clicked Stop, or because user switched to an empty set, after the user has switched to the empty set)
17:10:35 *** Stimrol has joined #openttd
17:18:36 *** WWacko1976-work has quit IRC
17:19:38 *** supermop_work_ has quit IRC
17:23:19 *** Cubey has joined #openttd
17:25:13 *** Wormnest has joined #openttd
17:32:28 *** Cubey has quit IRC
17:48:35 *** Pikka has quit IRC
17:50:46 *** Cubey has joined #openttd
18:00:48 *** Thedarkb has joined #openttd
18:03:44 *** TheMask96 has quit IRC
18:07:54 *** TheMask96 has joined #openttd
18:11:14 *** Gja has joined #openttd
18:30:26 *** HerzogDeXtEr has joined #openttd
18:39:48 *** supermop_work has joined #openttd
18:41:04 <supermop_work> yo
18:44:59 <peter1138> Hmm, using Windows 10, what's the nicest way to run a Linux VM, with graphical GUI?
18:46:22 <nielsm> VMWare or (on pro edition) HyperV should both be good
18:46:42 <nielsm> I think VMWare Workstation gives you better graphics performance options
18:49:12 <nielsm> or, use the WSL option on pro and run X11 programs either through a win32 X server (Xming or mobaXterm I think are options), or run a VNC/X server in the "linux" environment and connect to that with a VNC client
18:49:33 <peter1138> Heh, no I want a 'native' environment.
18:51:46 *** Thedarkb has quit IRC
18:53:27 *** Thedarkb has joined #openttd
18:58:34 *** gelignite has joined #openttd
19:01:56 *** glx has joined #openttd
19:01:56 *** ChanServ sets mode: +v glx
19:07:00 *** RafiX has quit IRC
19:19:02 *** Wolf01 has joined #openttd
19:19:53 <Wolf01> o/
19:20:09 <supermop_work> yo
19:20:47 *** frosch123 has joined #openttd
19:20:52 <Wolf01> Quak
19:21:02 <supermop_work> hi frosch
19:22:19 <nielsm> hmm looking at this: https://bugs.openttd.org/task/3997
19:22:37 <frosch123> moi
19:22:47 <nielsm> it's an annoying idea because when do you cycle, how, and should there be options to exclude music sets from it, etc
19:23:58 *** Progman has joined #openttd
19:25:49 *** FLHerne has quit IRC
19:55:55 *** andythenorth has joined #openttd
20:00:35 <andythenorth> hi
20:00:37 <supermop_work> hi
20:01:39 <LordAro> nielsm: osht, it me
20:05:21 <andythenorth> supermop_work: you're not working right? :P
20:05:34 <supermop_work> i am at work
20:05:49 <supermop_work> are you asking if i am being productive?
20:05:51 <andythenorth> one doesn't entail the other :P
20:06:11 <andythenorth> I am considering adding cargo-specific liveries to covered hoppers
20:06:39 <andythenorth> http://bundles.openttdcoop.org/iron-horse/push/LATEST/docs/html/static/img/covered_hopper_car_pony_gen_4B.png
20:06:46 *** peter1138 has quit IRC
20:06:52 <andythenorth> I could do the whole body, or the CC stripe
20:08:53 <supermop_work> do they auto-refit?
20:09:12 <andythenorth> yes
20:09:32 <andythenorth> I don't mind the livery changing on refit
20:09:37 <andythenorth> tankers already do that
20:14:45 <supermop_work> it looks weird to me, but if there is precedent, then it makes sense to extend it
20:15:05 <nielsm> actually thinking more about rotating music sets automatically, it would probably require major reworking of the entire music cycle/playlist code
20:15:10 <supermop_work> although i might learn towards class specific liveries
20:15:40 <supermop_work> like one for all edible type stuff, one for all powdered chemical stuff
20:15:56 <nielsm> and also dumb issues like, which set do you use for main menu theme?
20:16:45 <supermop_work> any idea what i did wrong here: https://www.tt-forums.net/viewtopic.php?p=1204082#p1204082
20:17:06 <andythenorth> supermop_work: for tankers it's a handful of interesting colours for known cargos, all else is CC
20:17:52 <andythenorth> the idea is to be able to identify trains quickly when the wagon doesn't have visible cargo
20:18:13 <andythenorth> I am short of ideas for colours though
20:18:14 <supermop_work> i get the idea and find it compelling
20:18:20 <andythenorth> cement could be grey
20:18:22 <Wolf01> https://1drv.ms/f/s!AgUFeOGLNNfViPM8z-uLTMU_4hhrlQ <- album of the last lego weekend (sorry for shitty photos, I'm really bad at photography)
20:18:31 <andythenorth> quicklime could e white, but conflates with food
20:18:35 <andythenorth> rubber is dark red
20:18:46 <Wolf01> andythenorth: there's a folder with tanks and ships
20:18:47 <supermop_work> its hard to represent all in just a few pix
20:18:52 <andythenorth> salt could be white, but conflates
20:19:01 <andythenorth> soda ash...also white :P
20:19:08 <andythenorth> clay...also white :P
20:19:17 <supermop_work> railfreight icons are good but too small
20:19:25 <andythenorth> yeah
20:19:48 <andythenorth> and very different blocky liveries are technically possible
20:19:52 <andythenorth> but won't look good
20:21:06 <andythenorth> green for grain? o_O https://farkham4mm.files.wordpress.com/2012/09/tulis-paa-grainflow-paas-pic.jpg
20:21:58 <supermop_work> well railfreight used only like 3-4 colors but in different arrangements
20:22:21 <supermop_work> you could use combinations of 1cc, 2cc, white, stripes
20:22:45 <supermop_work> plus a stripe in a 'cargo' color
20:23:32 <supermop_work> and some stripes horizontal, others vertical
20:23:41 <supermop_work> or a 'dipped' end
20:23:51 <nielsm> Wolf01: mind if I share that lego album with a friend?
20:23:59 <supermop_work> where just one end is colored
20:24:27 <supermop_work> thereby same color could be a few different colors by arangement
20:25:48 <andythenorth> that's a lot of lego Wolf01
20:28:52 <Wolf01> Share share
20:29:04 <Wolf01> I'm still loading pictures, 1.7GB S_S
20:29:51 <nielsm> cool :)
20:30:10 <supermop_work> frosch123: how do i specify a different recolor for each sprite layer
20:30:30 <supermop_work> sorry to bug you
20:31:11 <frosch123> you put it into the STORE_TEMP
20:35:27 <supermop_work> when i did this: switch(FEAT_ROADVEHS, SELF, switch_pickup, [ STORE_TEMP(CB_FLAG_MORE_SPRITES | PALETTE_USE_DEFAULT, 0x100), STORE_TEMP( PALETTE_CC_BROWN, 0x100), getbits(extra_callback_info1, 8, 8) ]) { 0: spriteset_truck; 1: spritegroup_box; }
20:35:39 <supermop_work> it only uses the last one
20:37:51 <frosch123> replace the PALETTE_USE_DEFAULT with the brown one
20:39:05 *** cHawk has quit IRC
20:39:58 <frosch123> switch(FEAT_ROADVEHS, SELF, switch_pickup, [ STORE_TEMP(CB_FLAG_MORE_SPRITES | PALETTE_CC_BROWN, 0x100), getbits(extra_callback_info1, 8, 8) ]) { 0: spriteset_truck; 1: spritegroup_box; }
20:40:32 *** sla_ro|master2 has joined #openttd
20:41:11 *** Thedarkb has quit IRC
20:45:44 *** sla_ro|master has quit IRC
20:49:55 <andythenorth> hmm
20:50:01 <andythenorth> I don't recolour boxcars per cargo
20:50:05 <andythenorth> maybe I should
21:10:38 *** cHawk has joined #openttd
21:10:47 <supermop_work> frosch123: the way i wrote it, spriteset_truck gets drawn brown and spritegroup_box doesn't get drawn at all
21:11:38 <supermop_work> i want spriteset_truck to be 1st cc, and the box to be brown
21:16:32 <frosch123> https://paste.openttdcoop.org/pgtcthqyg <- sounds like that then
21:18:08 <supermop_work> huh
21:18:15 <supermop_work> no idea i could do that
21:18:46 <supermop_work> the stack can be multiple switches?
21:18:55 *** Wacko1976 has joined #openttd
21:19:28 <frosch123> the stack is just one switch of many
21:19:58 <frosch123> there is no difference between checking for a stack layer and checking for a cargotype
21:26:11 *** peter1138 has joined #openttd
21:26:24 *** Supercheese has joined #openttd
21:31:26 *** Gja has quit IRC
21:31:41 <supermop_work> can i do this: https://paste.openttdcoop.org/pbcmrbmm2
21:32:42 <frosch123> you need CB_FLAG_MORE_SPRITES for all but the last one
21:32:52 <supermop_work> ok
21:33:14 <frosch123> anyway, no idea why you would recolor statically
21:33:50 <supermop_work> well i want the PALETTE_CC_BROWN etc to be reference to a switch
21:34:38 <supermop_work> for two cases: 1) a cargo that recolors as it ages
21:35:37 <supermop_work> and 2) cargo that gets a random color on load (like cars that might be assorted colors)
21:39:03 <frosch123> https://paste.openttdcoop.org/pjyzssm5y <- another example
21:39:26 <frosch123> the stack does not need to be the last switch in the chain
21:40:49 *** sla_ro|master2 has quit IRC
21:52:27 <andythenorth> red for gunpowder? o_O http://jandjmodels.co.uk/wp-content/uploads/2017/02/HK-4F-013-015-1200x800.jpg
21:56:38 <Eddi|zuHause> does gunpowder have the "hazardous" cargo class or something?
21:56:59 <andythenorth> maybe
21:57:19 <andythenorth> apparently not
21:57:27 <andythenorth> CC_EXPRESS, CC_PIECE_GOODS
22:08:49 *** Stimrol has quit IRC
22:16:08 *** frosch123 has quit IRC
22:19:28 <Supercheese> GUNPO WDER
22:33:10 <nielsm> hmm, there isn't any existing system for getting temporary files in the game, is there?
22:34:15 <nielsm> the idea being to offer a way to write decoded dos music to a standard midi file, so music drivers that require using their own midi loader can also play from that as source
22:43:52 *** Thedarkb has joined #openttd
23:01:58 *** gelignite has quit IRC
23:05:38 <andythenorth> such bed
23:05:38 *** andythenorth has left #openttd
23:14:08 <Supercheese> very sleep
23:36:10 *** nielsm has quit IRC
23:46:20 *** Thedarkb has quit IRC
23:51:15 *** FLHerne has joined #openttd
23:55:45 *** Progman has quit IRC