Config
Log for #openttd on 19th December 2023:
Times are UTC Toggle Colours
13:59:16  <_glx_> When GSCompanyMode::IsDeity, prospection will not fail due to the general chance that prospection may fail. However prospection can still fail if OpenTTD is unable to find a suitable location to place the industry.
14:06:08  <locosage> I mean funding not prospection
14:06:21  <locosage> and I see it still checking the same chance as random generation
14:06:24  <locosage> <https://github.com/OpenTTD/OpenTTD/blob/master/src/industry_cmd.cpp#L2031>
14:07:38  <_glx_> it's a callback, and often newgrf will allow the construction
14:08:17  <locosage> yeah, but if it allows it will generate randomly during the game
14:09:51  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler merged pull request #11604: Fix: Add missing includes to timers from script implementation files https://github.com/OpenTTD/OpenTTD/pull/11604
14:09:57  <locosage> and I don't want to set fund only because I want other industries to generate
14:21:29  <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #11605: Change: Make "middle" the default stopping location for trains in platforms https://github.com/OpenTTD/OpenTTD/pull/11605#pullrequestreview-1788975396
14:30:31  <peter1138> Ask andythenorth about how GS don't get to control industries :)
14:37:22  *** nielsm has joined #openttd
15:19:30  <xarick> https://cdn.discordapp.com/attachments/1008473233844097104/1186689273466990592/image.png?ex=65942982&is=6581b482&hm=6ba019381a9c30591199292caae1c17b7d2b27df90efe86ad97015422c207c28&
15:19:40  <xarick> sorry for big message
15:19:55  <LordAro> probably because map_size1 is not equal to map_size2
15:22:10  <peter1138> What is "GetTileIndex(-1, -1)" supposed to be?
15:22:15  <xarick> map_size1 is 16, which is the number I wanted to also get with map_size2. They should be equivalent, but I'm failing
15:22:41  <xarick> I am walking from a circle to another
15:22:56  <xarick> a ring
15:23:18  <peter1138> Hmm, it is apparently a valid thing. :o
15:24:03  <peter1138> I'm not sure why'd you'd not just to GetTileY(_tile_S_inner) - 1 though.
15:24:11  <peter1138> ...
15:24:14  <peter1138> why you'd not just do
15:27:32  <xarick> must be a parentesis issue, gonna try adding some
15:27:58  <peter1138> I like all the -1 +1 +1. Very useful.
15:28:21  <LordAro> classic flailing
15:28:25  <LordAro> we've all done it
15:28:33  <LordAro> don't normally present it to other people in that state though
15:29:18  <xarick> okay, it was parenths
15:29:21  <peter1138> :D
15:29:32  <xarick> local map_size2 = ((tile_Sx_inner - 1) - (tile_Nx_inner + 1) + 1) * ((tile_Sy_inner - 1) - (tile_Ny_inner + 1) + 1);
15:29:34  <xarick> now works
15:30:13  <LordAro> parenthesis issue / basic order of mathematical operations
15:30:17  <LordAro> tomato / tomato
15:30:33  <xarick> when I was a kid, I was a prodigy in math, how did I succumb so much with age
15:32:02  <peter1138> e.g. ((Sx-1)-(Nx+1)+1) == (Sx-Nx-1)
15:38:35  *** Wormnest has joined #openttd
15:40:45  <DorpsGek> [OpenTTD/OpenTTD] LordAro commented on issue #11318: [Bug]: use -D_FORTIFY_SOURCE=3 where supported https://github.com/OpenTTD/OpenTTD/issues/11318
15:41:32  <xarick> I'm going to have to do comparisons with virtual coordinates, so I thought I'd get all individual coordinates relate with each other somehow
15:41:57  <xarick> individual x and y for the inner and outer circles
15:42:04  <xarick> on the 4 corners
15:45:15  <xarick> "tile" are inside the map, "virtual" are maybe inside, but could also be outside
15:45:24  <peter1138> coordinates are coordinates...
15:46:59  <DorpsGek> [OpenTTD/OpenTTD] LordAro closed issue #11254: [Bug]: Train does not2023-12-19T22:30:01  <xarick> some magic calculation with _map_size allows me to get rid of them
22:58:42  *** Hanicef has quit IRC

Powered by YARRSTE version: svn-trunk