IRC logs for #openttd on OFTC at 2020-07-11
            
00:14:23 *** sla_ro|master has quit IRC
00:17:29 *** HerzogDeXtEr has quit IRC
00:41:32 *** Smedles has quit IRC
00:42:34 *** Smedles has joined #openttd
00:44:34 *** Smedles has quit IRC
00:44:43 *** Wolf01 has quit IRC
00:46:45 *** iSoSyS has joined #openttd
00:49:38 *** iSoSyS has quit IRC
00:58:03 *** Smedles has joined #openttd
01:44:19 *** Progman has quit IRC
02:01:24 *** gelignite has quit IRC
02:45:04 *** Wormnest has quit IRC
03:10:41 *** Wormnest has joined #openttd
04:03:12 *** Wormnest has quit IRC
04:16:23 *** keoz has quit IRC
04:34:20 *** Wormnest has joined #openttd
04:41:00 *** glx has quit IRC
04:57:25 *** debdog has joined #openttd
05:00:50 *** D-HUND has quit IRC
05:13:10 *** Flygon has joined #openttd
05:16:11 *** Wormnest has quit IRC
07:14:39 *** snail_UES_ has quit IRC
07:18:14 *** supermop_Home_ has quit IRC
08:09:56 *** debdog has quit IRC
08:24:56 *** cHawk_ has joined #openttd
08:30:59 *** cHawk- has quit IRC
08:57:03 *** nielsm has joined #openttd
08:57:32 *** cHawk_ has quit IRC
09:04:41 *** Progman has joined #openttd
09:08:19 *** HoppyHaus has quit IRC
09:15:57 *** Wolf01 has joined #openttd
09:16:29 *** andythenorth has joined #openttd
09:17:55 <andythenorth> yo
09:18:04 <Wolf01> o/
09:18:51 <andythenorth> should I get a reddit account? :P
09:18:53 <andythenorth> oof
09:19:18 <Wolf01> Nah, keep the social distance
09:25:17 *** iSoSyS has joined #openttd
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:07:25 *** iSoSyS has joined #openttd
10:09:20 *** keoz has joined #openttd
10:19:02 *** sla_ro|master has joined #openttd
10:27:12 *** gelignite has joined #openttd
10:34:28 *** andythenorth has quit IRC
10:56:14 *** HerzogDeXtEr has joined #openttd
11:12:57 *** andythenorth has joined #openttd
11:29:51 *** Borg has joined #openttd
11:30:03 *** sla_ro|master has quit IRC
13:27:00 *** gelignite has quit IRC
13:41:28 *** andythenorth has quit IRC
13:47:42 *** sla_ro|master has joined #openttd
14:14:18 *** glx has joined #openttd
14:14:18 *** ChanServ sets mode: +v glx
14:16:01 *** sla_ro|master has quit IRC
14:16:59 *** cHawk has joined #openttd
14:20:49 *** andythenorth has joined #openttd
14:28:39 *** cHawk- has joined #openttd
14:34:43 *** cHawk has quit IRC
16:09:02 *** tokai|noir has joined #openttd
16:09:02 *** ChanServ sets mode: +v tokai|noir
16:16:02 *** tokai has quit IRC
16:44:24 *** Wormnest has joined #openttd
17:34:42 *** sla_ro|master has joined #openttd
18:01:54 *** snail_UES_ has joined #openttd
18:16:54 *** iSoSyS has joined #openttd
19:28:36 *** Flygon has quit IRC
19:33:34 <andythenorth> hmm
19:47:08 <andythenorth> will I ever finish FIRS v4
19:47:09 <andythenorth> oof
20:21:36 *** iSoSyS has quit IRC
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:05 <andythenorth> meh
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:49:26 * andythenorth asks forums
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:51:46 <nielsm> and the cycle repeats
21:53:24 *** FLHerne has quit IRC
21:55:09 *** FLHerne has joined #openttd
22:02:54 <andythenorth> I never play with industry closure so eh
22:02:56 <andythenorth> maybe I should
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:16 <andythenorth> or town ID
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:12:51 <andythenorth> oof
22:13:09 <nielsm> town id + industry type? :)
22:13:14 <andythenorth> yes
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:26 <andythenorth> but then GS
22:17:30 <andythenorth> GS sucks imho
22:17:38 <Borg> well... I agree..
22:17:40 <andythenorth> but that's a broken record
22:17:41 <Borg> ints weird language
22:18:02 <Borg> I wonder why squirel script was used.. and not.. LUA?
22:18:04 <Borg> for example?
22:18:23 <Borg> but fsck it..
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:43 <Borg> leave it as default?
22:20:44 <andythenorth> designing stuff I have zero interest in
22:20:47 <Borg> and dont bother?
22:22:29 <andythenorth> maybe yes
22:23:33 <Borg> anyway.. nite
22:26:52 <andythenorth> :)
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:28 <LordAro> well, maybe
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:36:34 <LordAro> i quite agree
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:54 <Borg> ok...
22:37:59 <Borg> so for now.. I dont need them :>
22:40:14 *** Wormnest has quit IRC
22:48:47 *** WormnestAndroid has quit IRC
22:48:55 *** Borg has quit IRC
22:49:39 *** WormnestAndroid has joined #openttd
22:51:43 <glx> oh too late to point to https://wiki.openttd.org/AI:Basics
23:03:55 *** Wormnest has joined #openttd
23:04:34 *** sla_ro|master has quit IRC
23:16:37 *** andythenorth has quit IRC
23:19:48 *** iSoSyS has joined #openttd
23:20:42 *** iSoSyS has quit IRC
23:45:55 <_dp_> hm, that's an interesting desync... https://imgur.com/a/qfceQSR
23:48:15 <_dp_> or mb not exactly desync but smth weird is going on there for sure...
23:56:23 *** Wormnest has quit IRC