IRC logs for #openttd on OFTC at 2020-07-11
⏴ go to previous day
00:42:34 *** Smedles has joined #openttd
00:58:03 *** Smedles has joined #openttd
03:10:41 *** Wormnest has joined #openttd
04:34:20 *** Wormnest has joined #openttd
07:18:14 *** supermop_Home_ has quit IRC
09:04:41 *** Progman has joined #openttd
09:16:29 *** andythenorth has joined #openttd
09:18:51 <andythenorth> should I get a reddit account? :P
09:19:18 <Wolf01> Nah, keep the social distance
09:40:38 <DorpsGek_III> [OpenTTD/OpenTTD] andythenorth commented on pull request #8268: Change: Sort cargo payment rates legend in order of (initial) cost instead of alphabetically https://git.io/JJYRB
09:53:56 <DorpsGek_III> [OpenTTD/OpenTTD] ldpl commented on pull request #8268: Change: Sort cargo payment rates legend in order of (initial) cost instead of alphabetically https://git.io/JJYRS
09:58:44 <DorpsGek_III> [OpenTTD/OpenTTD] James103 commented on pull request #8268: Change: Sort cargo payment rates legend in order of (initial) cost instead of alphabetically https://git.io/JJYR5
10:19:02 *** sla_ro|master has joined #openttd
10:27:12 *** gelignite has joined #openttd
10:56:14 *** HerzogDeXtEr has joined #openttd
11:12:57 *** andythenorth has joined #openttd
13:47:42 *** sla_ro|master has joined #openttd
14:20:49 *** andythenorth has joined #openttd
16:09:02 *** tokai|noir has joined #openttd
16:09:02 *** ChanServ sets mode: +v tokai|noir
16:44:24 *** Wormnest has joined #openttd
17:34:42 *** sla_ro|master has joined #openttd
18:01:54 *** snail_UES_ has joined #openttd
19:47:08 <andythenorth> will I ever finish FIRS v4
21:31:22 <andythenorth> can I take the industry xy value (80+ var 00) as a literal to make a UID?
21:32:12 <andythenorth> it's a word, I'm assuming it's conventionally split into 2 bytes to read xy?
21:32:19 <andythenorth> but I could just read it as a word
21:32:41 <andythenorth> I want a globally unique offset to prevent more than one industry closing in a month
21:34:04 <andythenorth> no this approach is flawed, industries may have different build dates :x
21:34:32 <andythenorth> also on large maps, lots of industries probably should close in the same month
21:36:59 <andythenorth> I guess only GS can really close industry in any useful way
21:37:56 <Eddi|zuHause> why would that even be a goal to aim for?
21:40:49 <andythenorth> having GS close industry?
21:42:23 <Eddi|zuHause> no, "only one industry closes at a time"
21:46:52 <andythenorth> last time I tested FIRS closure code, it produced waves of closures
21:47:14 <andythenorth> I never use the setting, but now I have to update it for 16-cargo industry as it checks delivered cargo
21:47:22 <andythenorth> which means I'll have to test it...
21:47:58 <andythenorth> wonder what would happen if I just deleted the setting?
21:51:07 <nielsm> yeah I see the issue, industries from the start of the game all have the same age
21:51:17 <nielsm> so their chance to close occurs simultaneously
21:51:30 <nielsm> and then you suddenly have lots of room on the map for new industries
21:51:42 <nielsm> so lots spawn simultaneously
21:55:09 *** FLHerne has joined #openttd
22:02:54 <andythenorth> I never play with industry closure so eh
22:03:21 <andythenorth> a long time ago frosch told me to abandon trying to do it in newgrf
22:11:10 <nielsm> to even things out the best you can do is probably store a random value in permanent storage register on build and then let the production change cb depend on the last activity year adjusted by the random value
22:12:10 <andythenorth> yes, that's why I was looking for a unique ID
22:12:14 <andythenorth> I could just use random bits
22:12:29 <nielsm> town id should be fine I think?
22:12:46 <andythenorth> I wondered if that causes a town to lose all industries simultaneously
22:12:49 <andythenorth> quite realistic :P
22:13:09 <nielsm> town id + industry type? :)
22:13:24 <andythenorth> so 3 coal mines might all close at once
22:13:33 <andythenorth> quite similar to my childhood :P
22:14:28 <Borg> andythenorth: I fixed it.. by having GS..
22:14:47 <Borg> I start a map.. without industries at all... and GS preseeds map...
22:14:53 <Borg> but I guess its only good for random maps...
22:15:07 <Borg> I guess industry closure should be randomized a bit? like...
22:15:27 <Borg> if there is 5 years no supply.. it chance of closure should start to increase.. and reach 50% after a year?
22:15:38 <Borg> or 60% ? :) for nice numbers..
22:16:55 * andythenorth wonders what the upper range of town IDs is
22:17:00 <andythenorth> maybe they need normalised
22:17:03 <Borg> also.. there should be code.. to limit industry closures... to 1 per 2.5 days?
22:17:22 <andythenorth> that's just not possible in newgrf, which is why GS is required
22:17:40 <andythenorth> but that's a broken record
22:18:02 <Borg> I wonder why squirel script was used.. and not.. LUA?
22:18:31 <Borg> dull talk.. we have it.. and we have to deal w/ it
22:18:47 <Borg> I still for example.. have totaly no clue.. how to use events in GS
22:19:14 <Borg> having basic C++ knowledge.. im really lost in GS
22:20:00 <andythenorth> players also want notification that industries are going to close
22:20:07 <andythenorth> but I don't want to waste industry window space on that
22:20:23 <andythenorth> closure, I never use it, wtf, how am I supposed to design the behaviour?
22:20:32 * andythenorth would accept a PR
22:20:44 <andythenorth> designing stuff I have zero interest in
22:33:20 <LordAro> Borg: OTTD's scripting interface predates lua
22:33:37 <LordAro> at least, lua having any sort of popularity
22:34:02 <Borg> LordAro: second is.. have more sense.. LUA first appear in 1993
22:34:04 *** smoke_fumus has joined #openttd
22:34:36 <LordAro> you'd have to ask TB, he picked it :p
22:34:40 <LordAro> we can't change it now
22:34:54 <LordAro> we can't even upgrade to squirrel 3 as it breaks existing code
22:36:19 <Borg> thats why we need moar good examples.. on WIKI..
22:37:02 <LordAro> at the very least, GS events is basically the same as AI event handling
22:37:08 <LordAro> which iirc does have a wiki page
22:37:26 <Borg> one question.. does event function is called on event? or I need to poll event manually?
22:37:47 <LordAro> you do need to poll events, yes
22:37:59 <Borg> so for now.. I dont need them :>
22:48:47 *** WormnestAndroid has quit IRC
22:49:39 *** WormnestAndroid has joined #openttd
23:03:55 *** Wormnest has joined #openttd
23:48:15 <_dp_> or mb not exactly desync but smth weird is going on there for sure...
continue to next day ⏵