IRC logs for #openttd on OFTC at 2020-07-20
            
00:03:57 *** nielsm has quit IRC
00:04:01 *** Lejving has quit IRC
00:12:12 *** HerzogDeXtEr1 has quit IRC
01:01:57 *** Wormnest has quit IRC
01:55:27 *** keoz has quit IRC
02:31:17 *** keoz has joined #openttd
03:28:47 *** Flygon has joined #openttd
04:56:45 *** Gustavo6046 has quit IRC
05:04:31 *** Gustavo6046 has joined #openttd
05:12:17 *** keoz has quit IRC
05:19:12 *** glx has quit IRC
06:24:29 *** keoz has joined #openttd
06:30:11 *** snail_UES_ has quit IRC
06:38:00 *** WormnestAndroid has quit IRC
06:39:50 *** WormnestAndroid has joined #openttd
06:39:52 *** WormnestAndroid has quit IRC
06:42:00 *** WormnestAndroid has joined #openttd
06:43:48 *** WormnestAndroid has joined #openttd
08:27:59 <_dp_> is it a know bug that things using nearby_tile_* stuff are not updated correctly? https://i.imgur.com/giSE9FF.png
08:28:08 <_dp_> I don't even see any attempts on handling that in the code
08:30:50 <LordAro> if it's not been reported, assume it's not known
08:32:46 *** WormnestAndroid has quit IRC
08:32:59 *** WormnestAndroid has joined #openttd
08:37:10 <_dp_> LordAro, I'm not sure there is even any point reporting it, it's quite tricky to handle correctly so if no one though if it when implementing the feature who's going to do that now?
08:37:46 <_dp_> you need to somehow know what objects use what tiles and make a graph of some sort
08:38:06 <_dp_> *thought of it
08:40:45 <_dp_> well, or update 15x15 area on every change...
08:55:12 *** Lejving has joined #openttd
08:58:03 <Eddi|zuHause> _dp_: how would you even detect that the value changed?
08:58:36 <Eddi|zuHause> _dp_: i'd file that under "newgrf bug" not under "code bug"
08:59:04 <Eddi|zuHause> _dp_: the newgrf could use animation state for that
08:59:54 <Eddi|zuHause> changing the animation state would trigger a proper redraw
09:04:58 <_dp_> Eddi|zuHause, well, grf is quite limited so technically there could be some sort of code analysis for it
09:05:31 <Eddi|zuHause> i don't think that's a good route to go
09:05:50 <_dp_> Eddi|zuHause, by "newgrf bug" you mean as a bug of a particular newgrf?
09:05:56 <Eddi|zuHause> yes
09:06:13 <_dp_> well, I'll be filing it to myself then xD
09:06:27 <Eddi|zuHause> like i said, go via animation state
09:06:33 <_dp_> I think it's a very good route but it's kinda late to go for it
09:07:00 <Eddi|zuHause> i.e. the graphical representation reads the animation state, instead of the nearby_whatever, and the animation callback instead reads nearby_whatever to set the state
09:07:20 *** iSoSyS has joined #openttd
09:07:54 <Eddi|zuHause> the graphical representation then changes properly in the tileloop
09:10:31 <_dp_> is animation stuff triggered without full animation checkbox?
09:13:21 <Eddi|zuHause> yes
09:13:28 <Eddi|zuHause> "full animation" is only palette stuff
09:14:04 <Eddi|zuHause> one of those hysterical misnomers
09:20:30 <_dp_> Eddi|zuHause, but won't using animation mean I'm redrawing every tile each animation frame?
09:21:03 <Eddi|zuHause> you don't have to change state every frame
09:21:25 <Eddi|zuHause> i'm pretty sure it redraws only if the state changes
09:22:15 <Eddi|zuHause> i've never worked with animation state myself
09:22:34 <_dp_> Eddi|zuHause, I'm looking here and it seems that redraw is unconditional https://github.com/OpenTTD/OpenTTD/blob/master/src/newgrf_animation_base.h#L63
09:22:58 <_dp_> well, I guess I could play around with animation_speed but that still means having a callback every frame
09:24:14 <_dp_> though I guess just a callback isn't that big of an issue
09:24:41 <_dp_> still a lot of stuff to do for something that isn't even animated in a first place :p
09:26:24 <Eddi|zuHause> reading https://newgrf-specs.tt-wiki.net/wiki/Callbacks i think you want the "animation control" callback, not the "next animation frame" callback
09:29:00 <Eddi|zuHause> and the "periodic tile loop" trigger
09:29:55 <Eddi|zuHause> in the "animation triggers" property
09:32:40 <_dp_> yeah, that may also work...
09:33:02 <_dp_> can I have more than 253 frames though?
09:52:38 <Eddi|zuHause> what do you need that many frames for?
09:54:33 <Eddi|zuHause> if you need more than that, you need persistent storage, i guess
09:58:47 *** gelignite has joined #openttd
10:00:55 <_dp_> Eddi|zuHause, same thing I posted yesterday: smooth transition between ground sprites https://i.imgur.com/O4gkC72.png
10:01:11 <_dp_> one tile has 256 states and is combined from 4 sprites
10:02:05 <Eddi|zuHause> i'm not seeing anything in that picture
10:02:39 <Eddi|zuHause> also, don't assume people have read everything written here
10:18:58 <_dp_> Eddi|zuHause, I want to smootheen edge between two ground colors, kind of like this https://i.imgur.com/MdNq23J.png
10:19:13 *** cHawk has quit IRC
10:19:16 <_dp_> yellow stuff is an object with nearby detection
10:20:22 <_dp_> though I kind of screwed up with non-rectangular shapes so no idea how many frames I actually need
10:23:26 <Eddi|zuHause> i guess you should request for GRFv9 to untagle the animation callbacks so you can use the full 8 bits for referencing frames, and have the special start/stop values be outside the 8 bit range
10:24:50 <Eddi|zuHause> dunno if there's enough off-map infrastructure for ebjects to have persistent storage
10:46:59 *** Samu has joined #openttd
11:22:25 *** cHawk has joined #openttd
13:41:42 *** gelignite has quit IRC
14:07:02 <supermop_Home_> good morning
14:26:00 *** glx has joined #openttd
14:26:00 *** ChanServ sets mode: +v glx
14:32:49 *** gelignite has joined #openttd
14:50:07 *** WormnestAndroid has quit IRC
14:53:06 *** WormnestAndroid has joined #openttd
14:54:04 *** WormnestAndroid has joined #openttd
15:00:05 *** WormnestAndroid has joined #openttd
15:00:24 <_dp_> I think I'll give up on composing ground from 4 sprites: too fiddly and impractical for graphics.
15:00:43 <_dp_> Also noticed I only have 16 states anyway so 300 sprites isn't an issue
15:00:51 <_dp_> https://i.imgur.com/0aCzL3Y.png
15:06:08 *** snail_UES_ has joined #openttd
15:33:52 *** nielsm has joined #openttd
16:11:13 *** tokai|noir has joined #openttd
16:11:13 *** ChanServ sets mode: +v tokai|noir
16:17:58 *** tokai has quit IRC
16:39:22 *** Smedles_ has quit IRC
16:54:03 *** Wormnest has joined #openttd
17:25:17 *** gelignite has quit IRC
18:05:03 *** cHawk has quit IRC
18:43:14 *** frosch123 has joined #openttd
18:53:10 *** Progman has joined #openttd
19:12:41 *** Wolf01 has joined #openttd
19:32:10 *** gelignite has joined #openttd
19:34:54 *** HerzogDeXtEr has joined #openttd
19:35:15 *** Flygon has quit IRC
20:25:36 *** b_jonas has joined #openttd
20:47:30 *** cHawk has joined #openttd
21:45:48 *** frosch123 has quit IRC
22:44:58 *** gelignite has quit IRC
22:58:58 *** nielsm has quit IRC
23:17:56 *** Samu has quit IRC
23:46:08 *** Wolf01 has quit IRC