IRC logs for #openttd on OFTC at 2022-06-28
            
00:35:10 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
01:09:09 *** Wormnest has joined #openttd
01:28:50 *** Wormnest has quit IRC (Quit: Leaving)
02:06:19 *** wallabra has joined #openttd
02:26:25 *** D-HUND has joined #openttd
02:29:46 *** debdog has quit IRC (Ping timeout: 480 seconds)
02:46:35 *** glx has quit IRC ()
03:22:35 *** andythenorth has joined #openttd
03:30:40 *** andythenorth has quit IRC (Ping timeout: 480 seconds)
04:23:59 *** andythenorth has joined #openttd
04:32:00 *** andythenorth has quit IRC (Ping timeout: 480 seconds)
05:25:23 <DorpsGek> [OpenTTD/OpenGFX] thesamesam commented on pull request #80: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenGFX/pull/80#issuecomment-1168238694
05:26:23 <DorpsGek> [OpenTTD/OpenGFX] thesamesam updated pull request #80: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenGFX/pull/80
05:26:49 <DorpsGek> [OpenTTD/OpenSFX] thesamesam updated pull request #49: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenSFX/pull/49
05:27:05 <DorpsGek> [OpenTTD/OpenSFX] thesamesam commented on pull request #49: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenSFX/pull/49#issuecomment-1168239798
05:41:41 *** andythenorth has joined #openttd
05:49:45 *** andythenorth has quit IRC (Ping timeout: 480 seconds)
06:04:37 *** andythenorth has joined #openttd
06:06:11 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
06:06:20 *** Smedles has joined #openttd
06:44:47 *** Flygon has joined #openttd
06:47:05 *** sla_ro|master has joined #openttd
08:26:15 *** Xaroth has quit IRC (Read error: Connection reset by peer)
08:47:28 *** Samu has joined #openttd
09:02:19 <DorpsGek> [OpenTTD/OpenSFX] orudge approved pull request #49: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenSFX/pull/49#pullrequestreview-1021377784
09:02:29 <DorpsGek> [OpenTTD/OpenSFX] orudge merged pull request #49: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenSFX/pull/49
09:03:52 <DorpsGek> [OpenTTD/OpenGFX] orudge approved pull request #80: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenGFX/pull/80#pullrequestreview-1021379994
09:07:49 <DorpsGek> [OpenTTD/OpenSFX] thesamesam commented on pull request #49: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenSFX/pull/49#issuecomment-1168447031
09:08:47 <DorpsGek> [OpenTTD/OpenGFX] orudge merged pull request #80: Makefile: drop usage of 'which' https://github.com/OpenTTD/OpenGFX/pull/80
10:25:04 *** andythenorth has quit IRC (Quit: andythenorth)
10:28:11 *** andythenorth has joined #openttd
11:08:05 <Samu> the logic for deciding best station orientation is very exquisite
11:19:35 *** Etua has joined #openttd
11:19:45 *** Etua has quit IRC ()
11:40:07 <peter1138> The original cheating AI could just demolish a town with no ill-effect for that reason.
11:58:00 <DorpsGek> [OpenTTD/OpenTTD] Eddi-z commented on pull request #9931: Feature: Multi-track level crossings https://github.com/OpenTTD/OpenTTD/pull/9931#issuecomment-1168627996
12:19:54 <DorpsGek> [OpenTTD/OpenTTD] JGRennison commented on pull request #9931: Feature: Multi-track level crossings https://github.com/OpenTTD/OpenTTD/pull/9931#issuecomment-1168649313
12:36:09 <Samu> how do i ... ask this question. I want to get the perpendicular line to another line, in a (x, y) manner
12:38:15 <Samu> i have the coordinates of town A and B, i want to get a line perpendicular to the line that goes from A to B
12:38:28 <Samu> starting at point A, and point B
12:38:52 <Samu> i want my stations to be build only between that are
12:38:53 <Samu> a
12:41:57 <Samu> goal is to have only half of area around the town where to work where to place my stations
12:42:04 <Samu> damn my english
12:42:40 <LordAro> you can search for this stuff in Portuguese too ;)
12:44:28 <Samu> with airports it's just so simple
12:44:51 <Samu> it wouldn't really matter in wich side of the town the airport would be placed
12:45:07 <Samu> but with train stations, it matters more
12:47:05 <Samu> i think i did something similar with the canal pathfinder, let me take a look
13:01:06 *** glx has joined #openttd
13:01:06 *** ChanServ sets mode: +v glx
13:13:12 <Samu> okay, it's nearly this... https://i.imgur.com/i6eif7P.png
13:13:42 <Samu> now i only want the "x"'s between the towns
13:14:13 <Samu> wanna exclude the the "x"'s on the outer sides
13:15:23 *** WormnestAndroid has quit IRC (Remote host closed the connection)
13:15:46 <glx> using min/max of towns' x and y should be enough
13:24:03 <Samu> https://www.wikihow.com/Find-the-Equation-of-a-Perpendicular-Line trying to decipher this
13:26:40 <peter1138> Define line.
13:47:37 *** nielsm has joined #openttd
13:48:10 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler commented on pull request #9931: Feature: Multi-track level crossings https://github.com/OpenTTD/OpenTTD/pull/9931#issuecomment-1168750572
13:50:44 <DorpsGek> [OpenTTD/OpenTTD] Eddi-z commented on pull request #9931: Feature: Multi-track level crossings https://github.com/OpenTTD/OpenTTD/pull/9931#issuecomment-1168754206
13:55:25 <DorpsGek> [OpenTTD/OpenTTD] Eddi-z commented on pull request #9931: Feature: Multi-track level crossings https://github.com/OpenTTD/OpenTTD/pull/9931#issuecomment-1168759902
13:59:52 *** WormnestAndroid has joined #openttd
15:25:30 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
15:27:04 <Samu> it's almost this what I want, but i'm not quite there
15:27:18 <Samu> https://i.imgur.com/7hdHfCs.png
15:52:11 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on issue #9932: [Bug]: Changing the resolution in the game doesn't work properly, causing, among other things, problems in Windows https://github.com/OpenTTD/OpenTTD/issues/9932
15:53:53 <DorpsGek> [OpenTTD/OpenTTD] nielsmh closed issue #9936: [Crash]: openTTD crashes at startup https://github.com/OpenTTD/OpenTTD/issues/9936
15:53:56 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on issue #9936: [Crash]: openTTD crashes at startup https://github.com/OpenTTD/OpenTTD/issues/9936
16:17:05 *** HerzogDeXtEr has joined #openttd
16:23:51 *** virtualrandomnumber has joined #openttd
16:24:54 *** virtualrandomnumber has quit IRC ()
16:30:18 <Samu> well well, this will suffice, and it's easier to compute https://i.imgur.com/ADEwTLT.png
16:36:38 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:36:46 *** Smedles has joined #openttd
16:45:30 *** D-HUND is now known as debdog
16:59:07 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:59:12 *** Smedles has joined #openttd
17:04:18 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
17:18:22 <DorpsGek> [OpenTTD/OpenTTD] trey92r commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
17:26:07 <DorpsGek> [OpenTTD/OpenTTD] glx22 commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
17:27:20 <Samu> almost there! i got that small corner issue now, how to make it part of the tiles to test? https://i.imgur.com/e98MmCk.png
17:30:07 *** frosch123 has joined #openttd
17:39:35 <andythenorth> quak :o
17:40:20 <frosch123> moo
17:43:17 *** gelignite has joined #openttd
17:43:29 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
17:45:29 <DorpsGek> [OpenTTD/OpenTTD] nielsmh commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
17:45:42 *** supermop_work has joined #openttd
17:49:33 <DorpsGek> [OpenTTD/OpenTTD] JGRennison commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
17:51:22 <supermop_work> yo
17:58:17 <Samu> I finally did it! Dang it, took the whole day https://i.imgur.com/QWpPAlp.png
17:58:22 <Samu> that's what I wanted!
18:17:41 *** Wormnest has joined #openttd
18:23:27 <andythenorth> hi supermop_work
18:23:47 <supermop_work> how's it going andy
18:24:15 <andythenorth> making Mooses
18:25:49 <supermop_work> moose cargo sprites?
18:40:04 *** emorrp1 has joined #openttd
18:46:20 <DorpsGek> [OpenTTD/OpenTTD] trey92r commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
18:48:48 <andythenorth> Moose is NARS Horse Revival 7
18:48:50 <andythenorth> also Ibex
18:49:10 <andythenorth> which is Euro Olive Sausage Lederhosen Horse
18:49:30 <andythenorth> Horsé
18:49:39 <andythenorth> or Horsê
18:52:50 <frosch123> "acsess denied"
18:54:34 <DorpsGek> [OpenTTD/OpenTTD] DorpsGek pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/f72b9fa7675d7b7d3eefa07e89a1338c544fd045
18:54:35 <DorpsGek> - Update: Translations from eints (by translators)
19:03:45 <andythenorth> how shall I balance Euro Pony?
19:03:59 <andythenorth> Swiss engines are inconveniently high HP in RL
19:04:30 <andythenorth> frosch said 'make them slower' last time this was discussed in any depth
19:04:59 <frosch123> "if you search long enough, everything has been said by someone somewhen"
19:05:39 <nielsm> isn't that usually the tradeoff of gearing? you can have higher power or higher speed or a tradeoff
19:05:51 <frosch123> i could attribute that quote to a professor from my university, but going by it, someone else must have said it already before
19:06:10 <andythenorth> :)
19:06:11 <nielsm> and if you want both you need a stronger engine that uses more energy and is more expensive to build and maintain
19:06:58 <frosch123> just make red engines cheaper than yellow ones
19:07:05 <andythenorth> can we have less steep slopes in the game?
19:07:12 <andythenorth> usually it's cliffs that get asked for
19:07:23 <andythenorth> but actually half-gradient-slopes might be better :P
19:07:30 <andythenorth> trains don't go up cliffs usually
19:07:36 <frosch123> ottd defines "slope steepness" as the "number of slopes along the train"
19:07:50 <frosch123> so the longer the train, the more possible slopws
19:08:28 <frosch123> trains don't go up hills with 10 consecutive slope
19:08:38 <frosch123> 3 is already a lot
19:10:43 <frosch123> andythenorth: you could also limit train length :p
19:10:46 <Samu> why is IsBuildableRectangle such a pain to use
19:11:16 <Samu> i have top tile and bottom tile, i wanna do a IsBuildableRectangle with these
19:11:18 <frosch123> strong engine may be strong because it only allows 5 tile-length trains
19:11:19 <andythenorth> I could just make the Swiss trains high HP and that's fine :P
19:11:35 <Samu> but no, I got to compute a width and a height
19:11:55 <frosch123> did you know that ottd allows sorting the purchase list by "power / running_cost"?
19:12:13 <frosch123> i assume it's for figuring out, whether to attach a single strong engine, or multiple weak ones
19:12:49 <frosch123> but i doubt it's used by as many people as the author assumed
19:13:01 <frosch123> do you ever resort the puchase list?
19:14:00 <andythenorth> I never resort the purchase list
19:14:17 <andythenorth> I wouldn't be able to find anything :P
19:31:01 <glx> clearly we need gdb for #9935, it's very weird
19:31:14 *** tokai|noir has joined #openttd
19:31:14 *** ChanServ sets mode: +v tokai|noir
19:34:51 <DorpsGek> [OpenTTD/OpenTTD] JGRennison commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
19:35:15 *** Xaroth has joined #openttd
19:38:16 *** tokai has quit IRC (Ping timeout: 480 seconds)
19:56:04 <nielsm> I don't understand why GCC and/or clang require -msse4.1 to use intrinsics, I thought part of the point of intrinsics was to be able to use specific CPU features without having them enabled in general for the compiler
19:57:17 <dwfreed> I think the value of intrinsics is more towards not having to write inline ASM
19:59:04 <dwfreed> as the compiler would handle getting data into and out of the right registers, ensuring it's properly aligned, and whatever register preservation and/or restoration is required upon entering/leaving the function
20:00:11 <frosch123> nielsm: technically ViewportSortParentSpritesSSE41Checker should not be inside the file, which is compiled with -msse4.1
20:00:27 <frosch123> though i can't imagine gcc using sse instructions in such function :)
20:00:42 <nielsm> yeah it would be odd if it did
20:00:49 <glx> crash log shows the crash is not in this function anyway
20:01:05 <frosch123> https://godbolt.org/z/dxc3Tv9qz <- also, what is "__cpu_model"? and why is it indexed with "rip"...
20:01:08 <nielsm> but JGR is probably right that it's ODR that's the culprit
20:01:29 <nielsm> so linking order and phase of the moon
20:01:51 <dwfreed> too bad you need VC++ support
20:02:05 <nielsm> actually... what if this block is moved to the end of the file... https://github.com/OpenTTD/OpenTTD/blob/ffd3c11ba7d3abd3dc3e387df24c157f281c8d15/src/CMakeLists.txt#L28-L31
20:02:18 <nielsm> so the sse4 file is presumably linked last instead of first
20:03:09 <glx> not sure it changes a lot
20:03:49 <frosch123> oh dear, so we may end up with a std::map using sse in other files
20:04:18 <frosch123> can we restrict visibility of symbols?
20:04:48 <frosch123> oh, that doesn't help, since it is part of the interface
20:05:23 <frosch123> ah, different idea, it's likely possible to enable sse only in parts of the file using pragma magic
20:07:13 <dwfreed> could see if vc++ ignores __attribute__((target("sse4.1")))
20:08:33 <glx> worst case we can use #ifdef for gcc/clang
20:08:38 <dwfreed> this is how you would do function multiversioning if all compilers you use support it, and in gcc and clang, it results in sse4.1 being enabled for the function
20:08:49 <dwfreed> true
20:09:30 <glx> and even a macro in stdafx.h
20:09:34 <nielsm> and I'm pretty sure microsoft C++ doesn't require the compiler to be in SSE-enabled mode to use intrinsics
20:09:35 <frosch123> ok, clang says: you cannot enable sse on per-function basis
20:09:44 <frosch123> also, sse4.cpp includes <map>, but does not use it?
20:10:23 <frosch123> it looks like ParentSpriteToSortVector only gets a vector of POD stuff
20:10:42 <frosch123> which could be a std:span, and then we get a C interface, without any templates
20:10:53 <frosch123> however, stdafx.h is still a problem
20:14:32 <nielsm> let's switch to C++20 and change everything up to use modules!
20:15:05 <frosch123> how does that help here?
20:15:28 <nielsm> dunno, it sounds like it could separate things a bit
20:15:51 <frosch123> it does not change template instantiation
20:19:17 <Eddi|zuHause> when do we use blockchain?
20:19:58 <DorpsGek> [OpenTTD/OpenTTD] frosch123 commented on issue #9935: [Bug]: SSE4.1 is mandatory when SSE optimizations are enabled https://github.com/OpenTTD/OpenTTD/issues/9935
20:20:05 <Eddi|zuHause> zero-trust-multiplayer :)
20:20:39 <frosch123> i used blockchain to filter bad job offers
20:20:59 <frosch123> probably the best application of blockchain
20:24:05 <milek7_> doesn't -fvisibility only matter for resulting executable, not individual object files?
20:27:10 <nielsm> it would suck having to make a dynamic library of the thing, or rewrite it in pure assembly
20:42:39 <frosch123> my research was wrong
20:42:44 <frosch123> i edited my comment
20:42:56 <frosch123> it's possible to enable sse4.1 on a per-function basis
20:54:20 *** sla_ro|master2 has joined #openttd
20:57:59 <nielsm> https://godbolt.org/z/z66obnv89 yeah MSVC shouldn't require any specific flags
20:59:01 *** sla_ro|master has quit IRC (Ping timeout: 480 seconds)
20:59:19 <nielsm> (code is meaningless, just some randomly picked functions that fit the criteria of SSE4.1 and not entirely trivial)
21:13:01 *** nielsm has quit IRC (Ping timeout: 480 seconds)
21:29:52 *** andythenorth has quit IRC (Quit: andythenorth)
21:42:34 *** sla_ro|master2 has quit IRC ()
21:48:21 *** lobster has joined #openttd
21:55:21 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:59:36 *** frosch123 has quit IRC (Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn)
22:03:46 *** Samu has quit IRC (Quit: Leaving)
22:17:46 *** sla_ro|master has joined #openttd
22:26:18 *** sla_ro|master has quit IRC ()
22:27:48 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened issue #9937: [Bug]: Removing station part such that sign tile changes can cause industries_near cache to become incorrect https://github.com/OpenTTD/OpenTTD/issues/9937
23:27:31 *** gelignite has quit IRC (Quit: Stay safe!)
23:50:46 <DorpsGek> [OpenTTD/OpenTTD] JGRennison opened pull request #9938: Fix #9937: Station industries_near incorrect after removing part moved sign https://github.com/OpenTTD/OpenTTD/pull/9938