Times are UTC Toggle Colours
00:23:55 *** Hyronymus has quit IRC 00:29:34 *** KenjiE20|LT has joined #openttdcoop.devzone 00:29:44 *** KenjiE20 has quit IRC 00:46:00 *** PeterT has quit IRC 02:44:20 *** KenjiE20|LT has quit IRC 06:14:30 *** Frankr has quit IRC 06:38:21 *** welshdragon has quit IRC 06:53:37 *** welshdragon has joined #openttdcoop.devzone 07:10:58 *** welshdragon is now known as Guest2486 07:11:00 *** welshdragon has joined #openttdcoop.devzone 07:12:19 *** welshdragon is now known as Guest2487 07:12:21 *** welshdragon has joined #openttdcoop.devzone 07:13:39 *** Guest2486 has quit IRC 07:19:07 *** Guest2487 has quit IRC 08:12:10 *** ODM has joined #openttdcoop.devzone 08:23:40 <Webster> Latest update from devactivity: FISH - Revision 232: Merge <http://dev.openttdcoop.org/projects/fish/repository/revisions/232> || FISH - Revision 231: Feature: default ships turned off <http://dev.openttdcoop.org/projects/fish/repository/revisions/231> 08:39:42 <Webster> Latest update from devactivity: FIRS Industry Replacement Set - Revision 529: Add: missing psd file for Dredging Site <http://dev.openttdcoop.org/projects/firs/repository/revisions/529> || FIRS Industry Replacement Set - Revision 528: Add: missing psd source for Fishing Harbour <http://dev.openttdcoop.org/projects/firs/repository/revisions/528> 08:41:55 *** welshdragon has quit IRC 09:10:34 *** welshdragon has joined #openttdcoop.devzone 09:34:33 *** Hyronymus has joined #openttdcoop.devzone 10:05:03 *** welshdragon has quit IRC 10:40:08 *** welshdragon has joined #openttdcoop.devzone 10:57:44 *** welshdragon is now known as Guest2503 10:57:46 *** welshdragon has joined #openttdcoop.devzone 11:02:11 *** Guest2503 has quit IRC 11:47:20 *** welshdragon has quit IRC 12:24:18 <Webster> Latest update from devactivity: FIRS Industry Replacement Set - Revision 531: Add: snow sprite pcx for Metal Foundry <http://dev.openttdcoop.org/projects/firs/repository/revisions/531> || FIRS Industry Replacement Set - Revision 530: Change: snow sprites added to source for Metal Foundry <http://dev.openttdcoop.org/projects/firs/repository/revisions/530> 12:35:20 *** KenjiE20 has joined #openttdcoop.devzone 12:40:12 *** PeterT has joined #openttdcoop.devzone 12:57:56 *** welshdragon has joined #openttdcoop.devzone 12:59:23 *** welshdragon has quit IRC 13:51:03 *** ODM has quit IRC 14:33:58 *** welshdragon has joined #openttdcoop.devzone 14:49:19 *** welshdragon has quit IRC 15:18:29 *** ODM has joined #openttdcoop.devzone 16:01:09 <Webster> Latest update from devactivity: FIRS Industry Replacement Set - Revision 535: Feature: snow sprites for Glass Works <http://dev.openttdcoop.org/projects/firs/repository/revisions/535> || FIRS Industry Replacement Set - Revision 534: Change: snow sprites in source file for Glass Works <http://dev.openttdcoop.org/projects/firs/repository/revisions/534> || FIRS Industry Replacement Set - Revision 533: Add: pcx file for snow Glass Works <http://dev.openttdcoop.org/projects/firs/repository/revisions/533> || FIRS Industry Replacement Set - Revision 532: Feature: snow sprites for Metal Foundry <http://dev.openttdcoop.org/projects/firs/repository/revisions/532> 16:17:10 <Webster> Latest update from devactivity: FIRS Industry Replacement Set - Bug #715 (New): Furniture Factory - large building sprite truncated <http://dev.openttdcoop.org/issues/715> 16:57:44 *** Frankr has joined #openttdcoop.devzone 17:17:20 *** welshdragon has joined #openttdcoop.devzone 17:34:31 *** Frankr has quit IRC 17:34:39 *** Frankr has joined #openttdcoop.devzone 17:49:50 *** Webster has joined #openttdcoop.devzone 21:47:33 *** PeterT has quit IRC 22:01:50 *** PeterT has joined #openttdcoop.devzone 22:10:14 *** Hyronymus has quit IRC 22:18:31 <planetmaker> hello 22:18:57 <andythenorth> spooky timing 22:19:45 <PeterT> why? 22:20:03 <andythenorth> I'm trying to make the pre-processor do something 22:20:15 <andythenorth> also, planetmaker....did you have a good weekend? 22:20:27 <planetmaker> yes, quite awesome :-) 22:20:41 <planetmaker> Have been visiting a friend whom I didn't see for... like 15 months or so 22:21:10 <andythenorth> nice 22:22:56 <planetmaker> andythenorth: what do you try to tell the pre-processor? 22:23:01 <planetmaker> and where? 22:23:10 <andythenorth> industry template production code 22:23:14 <planetmaker> Like... I might be awake for another 30 minutes and use it productively :-) 22:23:49 <andythenorth> I have a production boost cargo...it's cargo 01 or 02 (2nd or 3rd respectively) 22:24:15 <andythenorth> I have defined it as \b01 and used it to attach cargo subtexts ok 22:24:23 <andythenorth> however 22:24:58 <andythenorth> to check cargo waiting I need to use var 41 or 42 for those cargos 22:25:08 <andythenorth> I tried some dumb string concatenation, but that doesn't work 22:25:16 <andythenorth> I don't want duplicate defines 22:25:21 <andythenorth> seems like a simple problem? 22:25:58 <planetmaker> he... you got some sample code, even if not working? 22:26:09 *** ODM has quit IRC 22:26:51 <andythenorth> I'll paste 22:27:35 <andythenorth> http://paste.openttd.org/220976 22:27:42 <andythenorth> planetmaker: lines 10 and 182 in the paste work 22:28:27 <andythenorth> I haven't written the cargo check code yet, this is an adaptation of an existing working template 22:29:11 <andythenorth> however line 133 shows where I need to replace the '41' 22:29:37 <andythenorth> I think there's a vartaction 2 way to do it, but it seems unnecessary 22:31:35 <andythenorth> planetmaker: ^^ 22:33:51 <planetmaker> hm.... 22:34:59 <planetmaker> andythenorth: # 22:35:00 <planetmaker> # 22:35:02 <planetmaker> STR_INFO_LIMIT_800 80 THIS_PROD_BOOST_CARGO THIS_PROD_BOOST_CARGO 22:35:03 <planetmaker> ^^^ twice the same string concatenated? 22:35:20 <andythenorth> it's a varaction 2 range 22:35:42 <andythenorth> that bit works fine 22:36:01 <andythenorth> it's when I need to print 41 instead of \b01 that I'm stumped 22:36:15 <andythenorth> seems like an easy string concatenation... 22:36:32 <andythenorth> I don't mind also two defines if that's just faster to produce, but seems less robust... 22:36:35 <planetmaker> what's 41, again? 22:36:44 <andythenorth> industry variable for 2nd cargo 22:36:50 <andythenorth> (cargo waiting) 22:37:40 <planetmaker> k. Thx. So you want to print the cargo which is waiting under which condition? 22:39:47 <andythenorth> so in line 133 of the paste, it would print 41 there. It might be hard to see the case as the code isn't written yet... :) 22:40:55 <andythenorth> if THIS_PROD_BOOST_CARGO was defined as 2 or 02 or \b02 or whatever, it would print 42 22:42:49 <planetmaker> we cannot use additive constants - then it'd be easy. So... I guess using two is easier for now 22:43:04 <planetmaker> you find more and more good points for python2nfo ;-) 22:43:26 <andythenorth> python indeed 22:44:29 <andythenorth> industry[prod_boost_num + 40] or industry.getProperty(prod_boost_num + 40) or industry.getCargoWaiting(prod_boost_num) 22:44:31 <andythenorth> for example 22:45:10 <planetmaker> yes. somehow like that 22:45:52 <andythenorth> industry.cargo_waiting[prod_boost_num] 22:46:05 * planetmaker wonders whether I should use FIRS to start experimenting with python ;-) 22:46:13 <andythenorth> I'm sure there's a list comprehension to be included somewhere 22:46:33 <planetmaker> can you rephrase? 22:46:52 <andythenorth> I just like list comprehensions. they are beautiful and strange 22:47:21 <andythenorth> [i.waiting for i in industry.cargos][prod_boost_num] for example 22:47:57 <planetmaker> http://en.wikipedia.org/wiki/List_comprehension <-- ok, I was missing the definition / meaning of that word :-) 22:47:58 <Webster> Title: List comprehension - Wikipedia, the free encyclopedia (at en.wikipedia.org) 22:48:15 <planetmaker> but very helpful 22:49:39 <andythenorth> ok, so I'm going to use 2 defines for my problem 22:49:58 <andythenorth> btw, if you pull FIRS, you can see how I've handled tiles and layouts for different terrains :) 22:50:31 <planetmaker> :-) 22:50:37 * planetmaker goes pulling it 22:51:35 <planetmaker> btw, did you successfully compile a somewhat recent trunk / install lzo2 library? 22:52:04 <planetmaker> it needed some manual symlinks in my dir structure from /opt/local/... to /usr/local/... 22:52:18 <andythenorth> I don't seem to need it 22:52:23 <planetmaker> as the default macport path wasn't really found :S 22:53:23 <planetmaker> :-O r 535 already! 22:53:30 <planetmaker> you've been _really_ busy 22:53:53 <Rubidium> planetmaker: yes I did 22:53:56 <andythenorth> Irwe was busy drawing snow 22:54:03 <Rubidium> or do you mean applesoft stuff? 22:54:29 <planetmaker> Rubidium: yes I meant actually andythenorth :-) I don't suspect you to use macports ;-) 22:56:35 <planetmaker> For automatic detection on my system with the default installs it'd need to check for /opt/local and its sub folders, too 22:57:00 <planetmaker> (the usual sub folders like also found in /usr/local ) 22:57:37 <planetmaker> But I'm not entirely sure whether it's me having only setup wrongly some paths... 22:59:14 <planetmaker> andythenorth: I hope you made good commit messages :-) I'll try to follow your work by reading them :-) 23:00:19 <andythenorth> I think they're ok, it's pretty repetitive work. 23:00:27 <planetmaker> he, look like 23:00:40 <planetmaker> adding / changing all the snow stuff 23:00:42 <andythenorth> A few times I have bogus commits, due to hitting 'up' in the terminal, then enter and repeating my commit :o 23:00:55 <planetmaker> oh 23:03:21 <planetmaker> but it doesn't show at least on first sight ;-) 23:03:35 <planetmaker> what's the difference between the three sandpit_tiles_*.pnfo files? 23:04:04 <andythenorth> two variations 23:04:21 <andythenorth> ground tile type 23:04:36 <andythenorth> one will feature snow sprites 23:04:51 <andythenorth> which don't exist yet. The sandpit is a bit work-in-progress 23:04:52 <planetmaker> but... ground tile # is always the same, isn't it? 23:04:57 <andythenorth> no 23:05:10 <andythenorth> it's 3981 or 4550 (iirc) depending on terrain type 23:05:28 <planetmaker> right, forgot. 23:05:46 <andythenorth> there should also be a 'mixed' type, but the variable doesn't seem to support it 23:06:30 <planetmaker> but I still don't understand the distinction. A single action2 should take care of that, not three different files? 23:06:46 <andythenorth> ?? 23:06:48 <planetmaker> Or what is the idea? 23:07:33 <andythenorth> separating the code makes the main industry code easier to work with. It means I don't have to see *many* lines of tile code in the main code 23:08:07 <andythenorth> it's slightly different for the industries where there are snow sprites, it should make more sense 23:08:43 <andythenorth> the pcx file definitions are together with the tiles, and that is better 23:09:07 <andythenorth> hmm 23:09:12 <planetmaker> ah, I see it now. 23:09:20 <andythenorth> those even could be more efficient 23:09:33 <planetmaker> Basically it's just getting rid of zillion of action2 lines 23:09:38 <planetmaker> but it might be templated ;-) 23:09:42 <andythenorth> it could be templated 23:09:42 <planetmaker> THIS_GROUND_TILE 23:09:46 <planetmaker> :-D 23:09:48 <andythenorth> yes 23:09:50 <andythenorth> ideally 23:09:59 <andythenorth> not too hard 23:11:37 <planetmaker> indeed. 23:12:11 <andythenorth> the duplication of tiles between files is redundant 23:12:22 <andythenorth> even the pcx file paths might be template-able 23:12:33 <andythenorth> I've stuck to a convention 23:13:13 <planetmaker> :-) 23:14:11 <planetmaker> well... can it be re-used by other industries? 23:14:18 <planetmaker> If no: not sure whether it's worth it 23:15:14 <andythenorth> pcx is only worth it if it's trivial to substitute the file name as a define 23:15:34 <andythenorth> it reduces to 1 the number of places to go tweak offsets etc 23:15:48 <andythenorth> (for each industry) 23:16:35 <andythenorth> anyway, it's probably bed time for me 23:16:53 <planetmaker> yep. Btw, I'll add a global define: 23:16:56 <planetmaker> #define GROUNDSPRITE_NORMAL \d3981 23:16:58 <planetmaker> #define GROUNDSPRITE_SNOW \d4550 23:16:59 <planetmaker> #define GROUNDSPRITE_DESERT GROUNDSPRITE_SNOW 23:17:05 <planetmaker> better readable ;-) 23:17:19 <andythenorth> yes indeed 23:17:20 <andythenorth> thanks 23:17:55 <andythenorth> good night 23:20:34 <andythenorth> oh one last thing - I've solved the '41' or '42' define problem - the prod boost cargo can simply always be in slot 3 for these industries :) 23:24:55 <planetmaker> :-) 23:25:00 <planetmaker> good solution. And good night