IRC logs for #openttd on OFTC at 2015-07-04
⏴ go to previous day
00:02:10 *** Phoenix_the_II has joined #openttd
00:17:49 *** Supercheese has joined #openttd
00:32:22 <Supercheese> airport tiles can access the variables of the parent airport in switch blocks, right?
00:32:45 <Supercheese> switch (FEAT_AIRPORTTILES, PARENT, ...
01:01:59 <Supercheese> aargh, I cannot remember which airport set had the skidmarks on the runways
01:23:54 *** zeknurn has joined #openttd
02:58:06 *** Biolunar has joined #openttd
03:54:07 *** Flygon_ has joined #openttd
04:26:49 *** Biolunar_ has joined #openttd
06:31:48 *** Alberth has joined #openttd
06:31:48 *** ChanServ sets mode: +o Alberth
06:56:18 *** Eddi|zuHause has joined #openttd
08:04:46 <Supercheese> "Parent scopt for this feature not available" blaah
08:05:12 <Supercheese> FEAT_AIRPORTTILES > PARENT > Airport
08:10:03 <Supercheese> soo do the specs lie? or does NML's parser lie?
08:10:11 <Supercheese> they cannot both be correct
08:15:20 *** sla_ro|master has joined #openttd
08:21:06 <Supercheese> specs may be lying then
08:21:44 <Supercheese> says feature 11 has Airport as related
08:21:59 <Supercheese> which would be 0D it seems
08:22:18 <Supercheese> but NML itself does not think there is a related object either
08:22:43 <Alberth> above you speak of tiles
08:23:02 <Alberth> X and X_tiles are different things
08:23:19 <Alberth> industries have a similar confusion
08:23:27 <Supercheese> I was hoping feature 11 had feature 0D as related object
08:23:33 <Supercheese> but that may not be the case
08:23:41 <Alberth> yeah, would make sense, imho
08:24:10 <Alberth> newgrfspecs say 'no', and they are defining :)
08:24:51 <Alberth> yeah I wonder how you can find who added it
08:25:23 <Supercheese> the history is truncated
08:27:25 <Alberth> foobar seems to have added it from an ancient nml version, perhaps by reverse engineering from the nml source
08:44:34 * Supercheese wonders what it would take to add support for it
08:52:13 <Alberth> make a newgrf extension proposal, get agreement from everybody, find a dev to add openttd support, find a dev to add nml support
08:52:54 <Supercheese> I was thinking more mundane things, like which function(s) to add to the header file
08:53:13 <Supercheese> to add to which header file*
08:53:21 <Alberth> make an example implementation can be helpful too
08:54:09 <Alberth> src/newgrf_airport_tiles or so
08:54:38 <Alberth> src/newgrf too, probably
08:55:06 <Alberth> but even an example implementation needs a definition in newgrf spec
08:55:20 <Alberth> or you don't know what to build
08:55:45 <Alberth> and for showcase, you might have to do some nfo coding, or extend nml
08:55:55 <Supercheese> well, essentially I'd like to add feature 0D as a related parent scope for feature 11 as mentioned earlier
08:56:18 <Supercheese> so I'll work on doing that
08:56:50 <Alberth> it's quite natural, and thus has been considered before by someones, and has been rejected
08:57:10 <Alberth> the reason behind that would be interesting
08:58:18 <Alberth> but for your newgrf to be of use to anyone else, you need that feature parent relation in main stream openttd
09:51:41 *** roidal_ has joined #openttd
09:56:52 *** Progman has joined #openttd
10:13:24 *** Hiddenfunstuff has joined #openttd
10:22:37 *** Celestar has joined #openttd
10:47:07 *** jottyfan has joined #openttd
10:59:45 *** Pensacola has joined #openttd
11:34:57 *** supermop_ has joined #openttd
12:01:31 *** supermop has joined #openttd
12:49:52 *** HerzogDeXtEr has joined #openttd
13:33:27 *** Supercheese has joined #openttd
13:44:27 *** andythenorth has joined #openttd
13:47:10 <Alberth> just sleep at some tiles in the shadow
13:48:40 *** sla_ro|laptop has joined #openttd
13:49:24 * Wolf01 is preparing the lego sets for the next saturday
13:52:25 <Alberth> measuring how much space is left available :)
13:55:03 <andythenorth> it has been work-in-progress for about 7 years :P
13:55:53 <Wolf01> have you considered to purchase the Sbrick to get rid of the iR receivers?
13:55:55 <Alberth> double mars lander :)
13:59:19 <andythenorth> Wolf01: wondering about Sbrick
13:59:23 <andythenorth> dunno how much power it delivers
13:59:42 <andythenorth> to get decent performance, I need 1 battery box per 4 motors
13:59:55 <andythenorth> to get really good performance, 1 battery box per 2 motors :P
14:01:32 <andythenorth> Sbrick says 3A per channel
14:01:38 <andythenorth> not sure how that correlates to performance
14:02:17 <Alberth> doesn't a motor speficy amps ?
14:03:52 <andythenorth> to be strict, it’s not the battery boxes that are the limit in the current model
14:04:03 <andythenorth> it’s the PF receivers, which have current limiters
14:04:44 <andythenorth> but still, 2 battery boxes is better than 1
14:16:15 *** PhoenixII has joined #openttd
14:16:43 *** Phoenix_the_II has quit IRC
14:21:50 *** Pikkaphone has joined #openttd
14:27:36 <andythenorth> hi hi Pikkaphone bob
14:27:55 <andythenorth> have you done roadtypes yet?
14:31:05 <andythenorth> no, me neither :P
14:49:54 *** Celestar has joined #openttd
15:12:16 *** Celestar has joined #openttd
16:11:51 *** Celestar has joined #openttd
16:36:35 *** HerzogDeXtEr1 has joined #openttd
16:41:12 *** smoke_fumus has joined #openttd
16:41:18 *** Celestar has joined #openttd
17:33:45 *** Celestar has joined #openttd
17:39:03 *** andythenorth has joined #openttd
17:48:02 *** Celestar has joined #openttd
17:59:05 *** andythenorth has joined #openttd
18:03:21 *** sla_ro|master has joined #openttd
18:21:50 *** Celestar has joined #openttd
18:36:35 *** Myhorta has joined #openttd
19:17:44 *** lobster has joined #openttd
19:19:36 *** Progman has joined #openttd
20:01:19 *** andythenorth has joined #openttd
20:10:58 *** sla_ro|master has joined #openttd
20:14:14 *** sla_ro|master has joined #openttd
20:35:12 *** andythenorth has joined #openttd
20:50:58 *** sla_ro|master has joined #openttd
21:00:57 <rav> I like the visual feedback when dragging autorails. When dragging autoroad, the only feedback is the highlighted squares -- it doesn't indicate which part of the road (N/E/S/W) I build by clicking in a particular spot. As a seasoned C++ developer I would like to try and implement this -- has anyone worked on a similar feature?
21:01:36 *** jottyfan has joined #openttd
21:01:48 <rav> I must say it was relatively easy for me to find the git repository and build and run it -- the codebase is complex but I'm slowly getting the hang it
21:09:45 <Alberth> there may be sprites available
21:10:30 <Alberth> maybe the forum has a topic about it
21:21:54 *** tokai|noir has joined #openttd
21:21:54 *** ChanServ sets mode: +v tokai|noir
22:09:51 <Supercheese> Hmm, maybe accessing PARENT scope in airport tiles isn't required for what I want to do...
22:11:55 *** sla_ro|master has joined #openttd
22:24:00 <Eddi|zuHause> rav: that's a feature that comes up every now and then. it SHOULD be quite easy to do, but nobody ever followed through on it
22:25:25 <rav> Eddi|zuHause: let's see how far I get tonight. so far I have the highlight changing between x-rail and y-rail depending whether the cursor is in the nw/ne/sw/se corner of the tile
23:37:42 <Supercheese> if there are 32 bits of random data available, then running a hasbit check on any given bit should return true 1/32 of the time, right?
23:38:03 <Supercheese> each bit is randomly created equal?
23:46:28 <Eddi|zuHause> no. each bit returns true 1/2 of the time
23:47:56 <Eddi|zuHause> and ALL bits return true 1/4294967296 of the time
23:56:28 <Supercheese> so... checking hasbit(1) && hasbit(2) would be true 1/4 of the time?
23:57:06 <Supercheese> maybe I should just modulo
23:57:26 <Supercheese> clamp to a sensible range
23:57:59 <Supercheese> extra_callback_info1 % 4 == 1
23:58:14 <Supercheese> now that should be true 25% of the time
continue to next day ⏵