IRC logs for #openttd on OFTC at 2020-02-08
⏴ go to previous day
00:00:41 <DorpsGek_III> [OpenTTD/OpenTTD] frosch123 commented on pull request #7912: Feature: Disallow industry production changes from GS https://git.io/JvnBd
00:04:05 <_dp_> it there a good way to expand the entire hidden section in diff on github?
00:04:14 <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #7912: Feature: Disallow industry production changes from GS https://git.io/JvnBh
00:04:20 <_dp_> instead of miliking the damn arrows
00:05:49 <frosch123> at least there are two arrows now, i think there was a time where you could only expand in one direction
00:06:21 <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh updated pull request #7912: Feature: Disallow industry production changes from GS https://git.io/Jej1Z
00:06:38 <DorpsGek_III> [OpenTTD/OpenTTD] frosch123 commented on pull request #7912: Feature: Disallow industry production changes from GS https://git.io/JvnRv
00:07:37 <frosch123> nielsm: 80+x variables map to the original ttd data
00:07:43 <_dp_> yeah, but it would be much better if it didn't jump randomly after clicking them
00:07:56 <nielsm> frosch123: where is that documented? :)
00:09:03 <frosch123> no idea, i gave up after nrt
00:09:35 <frosch123> .unused1: resb 1 // 2dh:unused by TTD <- funnily 0xAD is free :p
00:10:16 <_dp_> I give up, you're changing it faster than I can expand the diff xD
00:11:07 <nielsm> is the "variable occupies slots corresponding to its size in bytes" thing also required for the 40+x ones?
00:11:12 <nielsm> or just a compatiblity-ish thing?
00:11:47 <nielsm> i.e. 0x46 is type Date i.e. int32, should the next then be 4A or is 47 fine?
00:12:34 <frosch123> all non-8x vars are 32bit
00:12:56 <frosch123> they are all procedure calls
00:13:07 <frosch123> or switch-entries or whatever
00:13:11 <frosch123> no pointers involved
00:14:01 <michi_cc> Vars 0-7F are named variables, 80+x is just a fancy name for "read memory".
00:15:07 <nielsm> and is the 60+x are the only ones to take a parameter/"array index" just a convention or is it enforced anywhere?
00:15:13 <nielsm> I couldn't find anywhere that enforces it at least
00:16:09 <frosch123> they use two bytes in the .grf
00:16:21 <frosch123> 60+x variable is followed by another byte for the parameter
00:19:23 <frosch123> 0x00-0x3F are global variables (not item/feature specific), 40-5F are item-specific, 60-7F have parameters, 80-FF are memory dumps
00:20:14 <frosch123> though sometimes ttdp implementation details put variables in an unexpected category :)
00:22:46 <frosch123> while ttdp may be dead, it still helps to give the variables some structure
00:25:09 <nielsm> grfv9 with 4cc variables please
00:26:03 <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh updated pull request #7912: Feature: Disallow industry production changes from GS https://git.io/Jej1Z
00:28:28 <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh commented on pull request #7912: Feature: Disallow industry production changes from GS https://git.io/JvnRW
00:32:45 <nielsm> right, birds are making annoyed noises at my keyboarding and mousing, from behind their cover
00:37:27 <DorpsGek_III> [OpenTTD/OpenTTD] ldpl commented on pull request #7912: Feature: Disallow industry production changes from GS https://git.io/JvnRz
00:37:58 *** Flygon_ has joined #openttd
00:38:24 <_dp_> though now that I think of it those may not be flags at all
00:39:22 *** WormnestAndroid has quit IRC
00:39:37 <_dp_> so I don't even need to wait for this PR first xD
00:39:49 *** WormnestAndroid has joined #openttd
00:42:00 <DorpsGek_III> [OpenTTD/OpenTTD] frosch123 commented on pull request #7912: Feature: Disallow industry production changes from GS https://git.io/JvnRg
00:44:58 <_dp_> also I just nodiced... town exclusive rights a bound to company id so do they get transferred if new company reuses id?
00:45:14 <_dp_> can't find anything resetting it
00:48:25 <DorpsGek_III> [OpenTTD/OpenTTD] LordAro approved pull request #7985: Fix #7976: Don't kick the client doing the rcon https://git.io/JvnRo
00:48:49 <frosch123> _dp_: that means it also gets lost if you buy a company?
00:49:44 <frosch123> _dp_: economy.cpp:377
00:52:22 <_dp_> frosch123, yeah, if you buy it gets transferred
00:52:45 <frosch123> it also resets two lines down
00:54:06 <_dp_> oh, that thing is called with invalid owner on deletion
00:54:11 <frosch123> bankcrupt and buyout is the same code
00:54:58 <_dp_> yeah, wasn't quite expecting that xD
00:59:38 <milek7> does it transfer vehicle exclusive rights too? ;p
01:04:44 <frosch123> yeah, doesn't look like it, and is also complicated. it would have to introduce tracktypes as well
01:05:15 <frosch123> but you can keep the engines you already have :)
01:06:02 <_dp_> hm, and if id is reused it gets engine but not railtype? xD
01:06:51 <_dp_> in mp if company is deleted new one can pick up that id again
01:07:25 <frosch123> ah, in that case it is probably reset
02:07:59 *** Wormnest has joined #openttd
07:57:06 *** Smedles has joined #openttd
08:04:35 *** andythenorth has joined #openttd
08:09:39 *** sla_ro|master has joined #openttd
08:26:50 *** Smedles has joined #openttd
08:35:40 *** el3ktr4 has joined #openttd
08:59:19 *** Progman has joined #openttd
09:03:18 <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh merged pull request #7985: Fix #7976: Don't kick the client doing the rcon https://git.io/JvnBt
09:13:53 <DorpsGek_III> [OpenTTD/OpenTTD] nielsmh updated pull request #7912: Feature: Disallow industry production changes from GS https://git.io/Jej1Z
09:21:00 <nielsm> hmm... I wonder if cargodist could allow creating a packet of cargo with a specific destination at any station, without that cargo having a "natural cause"
09:21:12 <nielsm> and even if cdist is turned off for that cargo class
09:22:50 <nielsm> or if cargo packets have room for an extra "this is a special GS-owned packet" flag that can put some of the usual rules out of effect (and also cause an event to fire when that cargo is delivered to its destination)
09:25:52 <andythenorth> so is there a sandbox mode GS in the works?
09:29:07 <nielsm> what would it be doing?
09:29:17 <nielsm> apart from eternal love
09:30:09 <nielsm> ooh, it has 531 downloads on bananas
09:39:12 <andythenorth> turning on magic bulldozer :P
10:08:04 <nielsm> ah yes, cargo packets have a SourceType which is a byte size enum
10:08:26 <nielsm> so a fourth source type (special scenario cargo) could be added
10:10:38 <nielsm> oh huh, cargo packets don't have a destination after all, only a next station (while stationary)
10:15:57 <andythenorth> there are no destinations
10:29:34 <andythenorth> at least, that's the case if I understood fonso correctly :)
10:31:25 *** el3ktr4 has joined #openttd
10:33:30 <andythenorth> afaiu, the flow is established at each station
10:33:40 <andythenorth> cargo packets have no destination, just a next hop
10:34:08 <andythenorth> incoming packets are assigned a next hop based on the established outbound flow
10:34:47 <andythenorth> the routes from each cargo source to n destinations are just a tree, with some kind of weighting at each node
10:35:16 * andythenorth last statement is blindingly obvious sorry :P
10:39:17 *** sla_ro|master has joined #openttd
10:43:05 <nielsm> okay it also looks like the station decides whether to show a destination/next hop for each cargo just in time based on the current distribution type setting
10:56:58 <andythenorth> each station node maintains a list of destinations
10:57:06 <andythenorth> and these are recalculated from time to time
10:57:21 * andythenorth hasn't read code, that's based on fonso explanation to me :P
10:57:53 <andythenorth> cargo is assigned as x / n where x is the amount waiting, and n is the list of destinations
10:58:01 <andythenorth> demand changes the weighting
10:58:17 <andythenorth> distribution accuracy is how fine grained the calculation is
10:59:41 <andythenorth> it's all really smart
10:59:50 <andythenorth> it just has some odd gameplay implications :P
11:00:48 <nielsm> meaning when the train stops at a station, cargo on the train evaluates whether it wants to unload now and be paid for, stay on for another hop, or unload and take a different vehicle
11:01:21 <nielsm> meaning passengers still don't know where they're going until they arrive
11:05:40 <andythenorth> as I understand it
11:06:05 <andythenorth> it's also why A-B-C-D lines can have very odd effects
11:06:37 <andythenorth> if there are trains running the route so it's A-B-C-D-C-B-A
11:06:39 <nielsm> is there anything that ensures that cargo attempts to get further away from the source every hop?
11:06:52 <andythenorth> it's not uncommon to find cargo travelling B-C-A via transfer
11:06:54 <nielsm> i.e. not run backwards/in loops
11:07:23 <andythenorth> I've seen cargo going 'wrong way' many times
11:07:54 <andythenorth> for freight 'no loading' at drop offs is essential for this reason
11:10:23 <nielsm> would be useful with cargo rules on stations instead of only orders, "this station is only allowed to accept deliveries of X, no transfers"
11:11:09 <michi_cc> It's cargodIst, not cargodEst, anything that makes it look like fixed destinations is just appearances because the GUI never shows individual cargo packets.
11:11:34 <nielsm> really just a "no transfers of cargo type X on this station"
11:13:51 <andythenorth> I believe that's all solved in JGR
11:13:59 <andythenorth> nearly everything is solved in JGR
11:24:16 <DorpsGek_III> [OpenTTD/OpenTTD] aruscher commented on issue #7772: Showing destination when stopped or waiting https://git.io/Je4C2
12:00:30 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern commented on pull request #7981: Close #7735: Implement protocol handling https://git.io/JvnKH
12:04:59 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern commented on pull request #7981: Close #7735: Implement protocol handling https://git.io/JvnKF
14:03:13 *** Wormnest has joined #openttd
14:26:35 *** gelignite has joined #openttd
14:50:25 *** andythenorth has joined #openttd
14:55:38 *** el3ktr4 has joined #openttd
15:56:39 <Eddi|zuHause> i'm having a feeling the airport in cities skylines does almost nothing
16:48:25 *** Wormnest has joined #openttd
17:32:44 *** y2kboy23 has joined #openttd
17:50:28 *** frosch123 has joined #openttd
18:04:45 *** ChanServ sets mode: +v tokai
18:13:56 * andythenorth just repainted 134 vehicles :P
18:56:06 <FLHerne> But are they pretty now?
19:17:43 <DorpsGek_III> [OpenTTD/OpenTTD] LordAro commented on pull request #7981: Feature #7735: Implement protocol handling https://git.io/Jvn98
19:27:15 <andythenorth> did we do vehicle variants yet?
19:45:49 <DorpsGek_III> - Update: Translations from eints (by translators)
19:46:26 <andythenorth> corrected some errors
19:47:49 *** WormnestAndroid has quit IRC
19:48:27 *** WormnestAndroid has joined #openttd
19:57:36 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern commented on pull request #7981: Feature #7735: Implement protocol handling https://git.io/JvnHh
20:28:16 <andythenorth> well that's no help :P
20:28:18 <andythenorth> we already fixed that
21:11:32 *** MSavoritias[m] has left #openttd
21:32:03 *** ToBeFree has joined #openttd
21:35:05 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern updated pull request #7981: Feature #7735: Implement protocol handling https://git.io/JvZQ0
21:40:04 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern updated pull request #7981: Feature #7735: Implement protocol handling https://git.io/JvZQ0
21:45:04 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern updated pull request #7981: Feature #7735: Implement protocol handling https://git.io/JvZQ0
21:47:50 <DorpsGek_III> [OpenTTD/OpenTTD] LordAro commented on pull request #7981: Feature #7735: Implement protocol handling https://git.io/Jvn5p
21:49:34 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern commented on pull request #7981: Feature #7735: Implement protocol handling https://git.io/Jvn5j
21:50:15 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern commented on pull request #7981: Feature #7735: Implement protocol handling https://git.io/Jvndv
21:51:59 <DorpsGek_III> [OpenTTD/OpenTTD] JMcKiern updated pull request #7981: Feature #7735: Implement protocol handling https://git.io/JvZQ0
22:07:10 <andythenorth> everyone is playing tank games?
22:08:51 <glx> I think we did in master andythenorth
22:09:14 <LordAro> anyone opposed to me making releases/1.10 ?
22:11:19 <LordAro> i can put together an RC1 changelog & release preparation, does someone else want to do all the master gubbins?
22:11:31 *** Smedles has joined #openttd
22:11:45 <glx> what's the link for stuff to do ?
22:13:57 <glx> ok I'll do the master stuff
22:28:11 *** Smedles_ has joined #openttd
22:39:28 <LordAro> there have been quite a lot of changes since beta2
22:55:46 <frosch123> i wonder whether somewhen someone will get annoyed about CheckAPIVersion :)
23:21:32 <DorpsGek_III> [OpenTTD/OpenTTD] frosch123 commented on pull request #7912: Feature: Disallow industry production changes from GS https://git.io/Jvnbe
23:32:32 <LordAro> i don't think i missed anything...
23:41:19 <LordAro> right, remember your *needs backport* labels, people
23:41:28 <LordAro> let's try to avoid another 1.9.3 :)
23:42:34 <glx> 1.9.3 was because a backport IIRC :)
23:44:23 <frosch123> we also need a bot to remind people to update ai/gs changelogs
23:45:02 <frosch123> the town-rating thing is missing
23:46:41 <DorpsGek_III> [OpenTTD/OpenTTD] frosch123 commented on pull request #7898: Feature: Script API to change town rating of companies https://git.io/Jvnb0
23:49:22 <andythenorth> LordAro: but he's right no?
23:49:31 <andythenorth> plural data 'become'
23:49:44 <andythenorth> oof nitpicking behaviour is awful :)
23:50:08 <LordAro> urgh, i think you're right
23:50:13 <LordAro> but it reads really weirdly
23:50:34 *** WormnestAndroid has quit IRC
23:50:41 <LordAro> can we rewrite it to not care about the pluralisation of data? :p
23:51:13 *** WormnestAndroid has joined #openttd
23:51:54 <andythenorth> or just not care
23:52:02 <andythenorth> quality matters, but eh
continue to next day ⏵