IRC logs for #openttd on OFTC at 2021-11-15
            
00:04:20 *** tokai has joined #openttd
00:04:20 *** ChanServ sets mode: +v tokai
00:11:10 *** tokai|noir has quit IRC (Ping timeout: 480 seconds)
00:54:49 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on issue #9698: [Bug]: Some news display settings no longer work https://git.io/J1TtN
00:57:27 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #9698: [Bug]: Some news display settings no longer work https://git.io/J1TtN
01:53:28 <DorpsGek> [OpenTTD/team] gsihaj5 opened issue #266: [id_ID] Translator access request https://git.io/J1THX
02:07:57 *** Wuzzy has quit IRC (Quit: Wuzzy)
02:46:24 *** glx has quit IRC ()
03:07:44 *** D-HUND has joined #openttd
03:08:12 *** Flygon has joined #openttd
03:11:04 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:42:21 *** Wormnest has quit IRC (Quit: Leaving)
04:30:20 <DorpsGek> [OpenTTD/OpenTTD] Rau117 commented on pull request #9653: Feature: add setting to hide news about competitors vehicle crash https://git.io/J1knD
04:40:46 *** _aD has quit IRC (Quit: leaving)
04:56:54 <DorpsGek> [OpenTTD/OpenTTD] Rau117 commented on pull request #9002: Change cargo age to have more effect on cargo payment. https://git.io/J1k8N
06:42:10 <LordAro> can i block rau?
06:42:14 <LordAro> please?
07:03:35 <TrueBrain> He likes to stab; how constructive
07:03:54 <TrueBrain> Know that banning only moves the conversation, it doesn't actually solve anything
07:04:15 <TrueBrain> Well, makes you feel a bit better ofc :D
07:16:28 <TrueBrain> lets try this first
07:16:30 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #9653: Feature: add setting to hide news about competitors vehicle crash https://git.io/J1kAL
07:17:56 <DorpsGek> [OpenTTD/OpenTTD] TrueBrain commented on pull request #9002: Change cargo age to have more effect on cargo payment. https://git.io/J1kAV
07:18:25 <TrueBrain> if he replies in any non-constructive way, you can use the ban power LordAro :P
07:32:09 <LordAro> you have more patience than i do
07:36:45 <TrueBrain> no, not really .. but I haven't been involved with him yet :P
07:37:12 <TrueBrain> but he is now mr stabbystab
07:54:54 *** sla_ro|master has joined #openttd
08:01:20 *** WormnestAndroid has quit IRC (Remote host closed the connection)
09:19:42 <DorpsGek> [OpenTTD/OpenTTD] Rau117 commented on pull request #9002: Change cargo age to have more effect on cargo payment. https://git.io/J1IFv
09:29:41 <DorpsGek> [OpenTTD/OpenTTD] LordAro opened pull request #9699: Fix #9680: Recalculating TTD aircraft positions before map array updates causes crashes https://git.io/J1LfC
09:32:13 <TrueBrain> seems he got the message ;)
09:35:05 <LordAro> for that one...
09:40:19 <TrueBrain> baby steps :) As long as people show learning .. :)
10:15:14 *** felix has quit IRC ()
10:26:41 *** felix has joined #openttd
11:00:53 <peter1138> Hmm, maybe I should update my Debian server/containers. Still on 10.
11:19:16 <peter1138> lastlog peter1138
11:19:23 <peter1138> Yay, missing / :D
11:29:11 *** argoneus3 has joined #openttd
11:30:46 *** argoneus has quit IRC (Ping timeout: 480 seconds)
11:30:46 *** argoneus3 is now known as argoneus
11:51:31 *** WormnestAndroid has joined #openttd
12:09:43 *** jottyfan has joined #openttd
12:12:49 *** gelignite has joined #openttd
13:17:28 *** glx has joined #openttd
13:17:28 *** ChanServ sets mode: +v glx
13:21:49 <DorpsGek> [OpenTTD/team] glx22 commented on issue #266: [id_ID] Translator access request https://git.io/J1THX
13:23:11 <DorpsGek> [OpenTTD/OpenTTD] glx22 approved pull request #9699: Fix #9680: Recalculating TTD aircraft positions before map array updates causes crashes https://git.io/J1mcU
13:39:46 <DorpsGek> [OpenTTD/OpenTTD] LordAro merged pull request #9699: Fix #9680: Recalculating TTD aircraft positions before map array updates causes crashes https://git.io/J1LfC
13:39:49 <DorpsGek> [OpenTTD/OpenTTD] LordAro closed issue #9680: [Crash]: Loading TTD save causes a crash https://git.io/JX2EV
13:47:02 *** gelignite has quit IRC (Quit: Stay safe!)
13:53:30 *** jottyfan has quit IRC (Quit: jottyfan)
14:04:58 *** WormnestAndroid has quit IRC (Read error: Connection reset by peer)
14:06:21 *** WormnestAndroid has joined #openttd
14:58:59 *** virtualrandomnumber has joined #openttd
15:00:08 *** virtualrandomnumber has quit IRC ()
15:31:03 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #9002: Change cargo age to have more effect on cargo payment. https://git.io/J1YlR
15:42:10 *** D-HUND is now known as debdog
15:47:20 *** gelignite has joined #openttd
16:33:15 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
17:08:16 *** Wormnest has joined #openttd
17:48:50 *** frosch123 has joined #openttd
17:56:19 <TrueBrain> right .. so what are we doing tonight brain? SPRITE ENCODING!
18:09:59 *** HerzogDeXtEr has joined #openttd
18:11:16 <frosch123> i guess the world is safe then
18:11:20 <frosch123> for today
18:11:49 <TrueBrain> yeah ... having issues finding where to start :D
18:12:19 <frosch123> get the pixel data as byte stream
18:12:34 <TrueBrain> "The result is a 64 bit encoded PNG URL which yousave on any server " <- euh ... someone didn't know what base64 meant
18:12:36 <TrueBrain> not 64bit :P
18:14:58 <LordAro> heh
18:46:25 <TrueBrain> Copilot is fucking scary
18:46:34 <TrueBrain> it just wrote the "replace blue pixel with transparent pixel" for me
18:46:44 <TrueBrain> and I mean that pretty much like how you read it
18:46:59 <TrueBrain> I started with "if (data[i] == 0" and it finished with "if (data[i] == 0 && data[i + 1] == 0 && data[i + 2] == 255) {"
18:47:03 <TrueBrain> like what the actual fuck
18:47:23 <TrueBrain> and on the next line it set the alpha to the correct value
18:47:48 <michi_cc> Please ask Copilot about Skynet (or maybe not :)
18:47:53 <glx> it reads your mind
18:49:02 *** _aD has joined #openttd
18:49:03 <TrueBrain> I don't even understand why it was like: ah, you want to make blue transparent
18:49:06 <TrueBrain> it is not like that happens a lot :P
18:50:47 <TrueBrain> https://cdn.discordapp.com/attachments/337701432230805505/909877812226310144/unknown.png <- transparent!
19:09:53 *** andythenorth has joined #openttd
19:10:00 <andythenorth> yo
19:37:21 <TrueBrain> https://cdn.discordapp.com/attachments/337701432230805505/909889120489312336/unknown.png <- I hate offsets
19:37:23 <TrueBrain> already :P
19:39:36 <TrueBrain> how does relx/rely work ..
19:39:37 <TrueBrain> hmm
19:40:08 <frosch123> you move the sprite by them?
19:40:25 <TrueBrain> but not in the way I expect, clearly
19:40:26 <frosch123> usually i do the sign by trial/error :p
19:40:30 <TrueBrain> The x position of the upper-left corner of the sprite, relative to the "center" (usually negative)
19:40:33 <TrueBrain> that sentence is hard to parse :P
19:42:02 <frosch123> ok, so you start with the reference point (back corner of bounding box or something), and add xrel/yel
19:42:11 <frosch123> the result is the topleft for the sprite to drawe
19:42:41 <frosch123> your image looks like you try to draw a whole industry layout
19:43:43 <TrueBrain> https://cdn.discordapp.com/attachments/273533192601075712/909891414291279952/unknown.png
19:43:51 <TrueBrain> shows better that I am doing something wrong :P
19:44:02 <frosch123> don't try to draw the default industries
19:44:25 <frosch123> they don't use the simplified <0,0,0>, <16,16,Z> bounding boes
19:44:32 <TrueBrain> hmm
19:44:35 <TrueBrain> explains :P
19:45:21 <andythenorth> just -31 and -64 for everything :P
19:46:03 <TrueBrain> meh, this would have been easier to test :P
19:50:20 *** anonymouse has joined #openttd
19:50:23 <frosch123> oil wells seem to use normal bounding boxes
19:50:35 <TrueBrain> I do not have them loaded :P
19:50:51 <TrueBrain> is it easy to compensate for the weird bounding boxes?
19:50:56 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on issue #9698: [Bug]: Some news display settings no longer work https://git.io/J1TtN
19:50:57 <TrueBrain> as in, just a value I can add/remove per sprite?
19:51:43 <frosch123> https://github.com/OpenTTD/OpenTTD/blob/master/src/table/industry_land.h#L51
19:51:54 <frosch123> 3rd column is the sprite
19:52:15 <frosch123> 5th-7th column are the bounding box position
19:53:21 <frosch123> screenx = 2*(worldy-worldx), screeny = worldx+worldy-worldz
19:53:49 <andythenorth> I used regular-ish sprite grids https://github.com/andythenorth/firs/blob/master/src/graphics/industries/chemical_plant_1.png
19:54:04 <andythenorth> iirc opengfx placement is more hit and miss
19:54:30 <frosch123> yes, it's easier to use firs sprites :)
19:54:44 <frosch123> default industries make such a mess with bounding boxes
19:55:12 <andythenorth> optimising for a bad starting scenario is not fun :)
19:55:24 <TrueBrain> I just want something that works so I can test other parts :P
19:55:31 <TrueBrain> this forces me to begin somewhere I really do not want to :D :D
19:55:32 <frosch123> then use firs sprites
19:55:39 <frosch123> ignore default sprites, burn them!
19:55:56 <TrueBrain> that is what I say ....
19:56:06 <TrueBrain> using any other sprite except default, means I need to write realsprites first :P
19:56:20 <frosch123> then oil wells :p
19:56:23 <TrueBrain> otherwise I cannot test it works in-game :)
19:56:30 <TrueBrain> that is worth giving a shot
19:56:36 <TrueBrain> just so I know this part is correct :)
19:56:39 <andythenorth> yair
19:56:45 <andythenorth> chicken, egg
19:56:55 *** anonymouse has quit IRC (Quit: Page closed)
19:56:58 <andythenorth> only in this case, ugly egg first
19:57:39 <frosch123> use those lines from industry_land.h, where PAL_NONE is followed by two 0
20:03:33 <TrueBrain> funny, by making it isometric, I completely made clicking tiles impossible :P
20:03:34 <TrueBrain> haha
20:05:39 <TrueBrain> guess setting the layout should not be the same as a pre-render :D
20:15:28 <glx> #9698 is really weird, and AFAICT it works for me
20:15:53 <TrueBrain> ugh, initially I did want to support original industries, but ... yeah, okay, fuck this shit :P
20:16:56 <frosch123> glx: the settings apply when the news happen. i have the suspicion that zorg has a backlog of 100 news and expects the filter to apply when they are shown
20:17:36 <LordAro> the filter *could* apply when they are shown
20:17:39 <LordAro> it would be a lot less confusing
20:23:31 <TrueBrain> hmm .. is there a simple way to inspect a GRF if a realsprite is encoded correctly that isn't used?
20:23:43 <TrueBrain> if possible something in-game?
20:23:54 <TrueBrain> or a really simple way to make it visible in-game?
20:24:11 <dP> replace gui sprite?
20:24:14 <frosch123> the sprite aligner can show any sprite
20:24:54 <frosch123> you can enter a spritenumber
20:25:02 <frosch123> just needs some trial/error to find which
20:25:06 <TrueBrain> frosch123: so if I just add one as realsprite, it will show up there?
20:25:12 <TrueBrain> yeah, that isn't a real issue I guess
20:25:14 <TrueBrain> andythenorth: https://github.com/andythenorth/firs <- no license?
20:25:37 <andythenorth> https://github.com/andythenorth/firs/blob/master/src/docs_templates/license.pt
20:25:47 <andythenorth> we had a long discussion about it here one day recently
20:25:48 <frosch123> yes, realsprites are allocated consecutively per grf
20:25:53 <andythenorth> someone won, somehow
20:25:59 <TrueBrain> andythenorth: please make it somewhere findable :P
20:26:02 <frosch123> so if truegrf is the only grf, it will be the last valid sprite
20:26:08 <TrueBrain> I did not expect "templates" to contain the license :P
20:26:17 <TrueBrain> frosch123: cool, tnx :)
20:26:34 <glx> lol so many sprites duplicated in CHIPS
20:26:38 <andythenorth> yeah looks like FIRS is wrong
20:26:40 <andythenorth> https://github.com/andythenorth/iron-horse/
20:26:43 <andythenorth> license in root
20:26:53 <TrueBrain> much better :D
20:27:03 <frosch123> TrueBrain: you will need an action1 in front of it though
20:27:38 <frosch123> though i guess then you could also use an actiona and just replace the grass sprite or something
20:27:52 <TrueBrain> I was hoping to avoid that for now :P But okay .. lets first try to make a valid GRF :D
20:28:24 <frosch123> if you can download your grf, you can also decode it with grfcodec
20:28:42 <TrueBrain> I didn't make that possible yet .. not sure how yet :D
20:28:53 <TrueBrain> guess I can print the base64 encoded string for now
20:29:05 <TrueBrain> I am a big boy, I can deal with that :P
20:30:45 <glx> https://github.com/andythenorth/chips/blob/master/src/graphics/cranes.png <-- second row is loaded via GRM, first row is loaded via action1 for every empty tile definition
20:35:06 * andythenorth simplifies life for future TrueBrain https://github.com/andythenorth/firs
20:36:17 <TrueBrain> <3
20:36:21 <andythenorth> pleasure :P
20:37:58 <glx> https://github.com/andythenorth/chips/blob/master/src/graphics/structures.png <-- this is worse, second line is loaded 2 times in the same GRM block
20:38:53 <andythenorth> is that in here? https://github.com/andythenorth/chips/blob/master/src/grm_sprites.pnfo
20:39:01 * andythenorth wants to learn how CHIPS works
20:39:15 <glx> https://github.com/andythenorth/chips/blob/master/src/grm_sprites.pnfo#L29 and https://github.com/andythenorth/chips/blob/master/src/grm_sprites.pnfo#L49
20:39:27 <andythenorth> yair
20:39:32 <andythenorth> wonder what that's for
20:39:46 <glx> some magic :)
20:41:33 <glx> not really needed as station sprite layout can use more than one action1 anyway
20:42:09 <glx> I'm trying to convert magic stations
20:48:52 <andythenorth> I'm not sure the GRM will survive :)
20:49:01 <andythenorth> I suspect it's not needed
20:49:28 <glx> yeah for me it's useless
20:51:36 <DorpsGek> [OpenTTD/OpenTTD] LC-Zorg commented on discussion #9687: Suggestion: Change behaviour of the «expand signal menu» btn https://git.io/JXig1
20:54:56 <andythenorth> oof popcorn in advance?
20:54:59 * andythenorth does not click that one
20:55:18 <LordAro> it's not ...terrible
20:55:39 <LordAro> i don't recall removing no plane crashes settings though
20:56:12 <frosch123> there was a bug fix
20:56:40 <frosch123> there is a cheat "large aircrafts do not crash on small airports" and a setting "aircraft crash occasionally"
20:57:03 <TrueBrain> https://cdn.discordapp.com/attachments/337701432230805505/909909798303199252/unknown.png <- okay, indeed easier without silly bounding boxes :P
20:57:11 <frosch123> in the old days disabling random crashes also disabled the large-aircraft-on-small-airport crash
20:57:21 <LordAro> ah yes
20:57:27 <frosch123> 2 years ago or so it was changed, so only the cheat does that
20:57:43 <frosch123> any pro players are very concerned about using "cheats" :p
20:58:03 <andythenorth> ha ha TrueBrain :)
20:58:11 <andythenorth> my work here is done
20:58:13 * andythenorth can now resign :)
20:58:25 <andythenorth> pls include library of FIRS sprites for copy-paste
20:59:39 <TrueBrain> I have a long way to go ;)
21:00:23 <frosch123> andythenorth: i guess tb will activate a copilot that draws sprites automatically
21:01:00 <andythenorth> even better
21:01:18 <andythenorth> making a framework for players to make industries and stuff was actually a secret goal
21:01:27 <andythenorth> I just never wanted to do it in pure python for end users
21:02:16 <glx> chips in pure nfo was not better ;)
21:03:24 <glx> https://github.com/andythenorth/chips/blob/master/src/templates/simple_empty_tile_1_cargo.tnfo#L15 <-- this is so confusing
21:05:37 <glx> comment says "no cargo" while this action is used only for cargo
21:10:20 <glx> oh I see why, it's some copy paste from https://github.com/andythenorth/chips/blob/master/src/templates/simple_empty_tile_1.tnfo#L257
21:13:29 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:20:40 <andythenorth> yeah it's definition of 'cargo cult' I think
21:20:56 <andythenorth> copy, change, hope
21:21:39 <glx> and the random action 2 for "purchase" is weird
21:22:29 <glx> oh it's also used for default
21:27:22 *** iSoSyS has joined #openttd
21:28:10 <TrueBrain> ghehe, I am writing a NewGRF with invalid tile-ids
21:28:13 <TrueBrain> and I get a part of the coal mine instead
21:28:16 <TrueBrain> animated even
21:28:21 *** iSoSyS has quit IRC ()
21:29:47 <TrueBrain> not sure that is me doing something wrong, or fallback
21:29:52 <TrueBrain> but what-ever .. tiny steps :P
21:29:59 <TrueBrain> enough for one day :)
21:30:13 <glx> coal mine part is probably fallback
21:46:49 *** virtualrandomnumber has joined #openttd
21:47:06 *** virtualrandomnumber has quit IRC ()
22:37:11 *** andythenorth has quit IRC (Quit: andythenorth)
22:40:16 *** sla_ro|master has quit IRC ()
22:47:20 *** gelignite has quit IRC (Quit: Stay safe!)
22:50:30 *** frosch123 has quit IRC (Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn)
23:56:28 *** Etua has joined #openttd
23:57:38 *** Etua has quit IRC ()