IRC logs for #openttd on OFTC at 2018-02-05
            
00:02:43 <Wolf01> 'night
00:02:45 *** Wolf01 has quit IRC
00:04:00 *** andythenorth has quit IRC
00:14:02 *** Snail has quit IRC
00:15:07 *** supermop has quit IRC
00:24:51 *** Wormnest has quit IRC
00:37:54 <Samu> @calc 80-16
00:37:54 <DorpsGek> Samu: 64
00:38:09 <Samu> @calc 64/16
00:38:09 <DorpsGek> Samu: 4
00:51:27 *** som89 has quit IRC
00:52:22 *** som89 has joined #openttd
01:01:09 *** Samu has quit IRC
01:01:37 *** supermop has joined #openttd
01:03:41 *** vak has joined #openttd
01:03:50 *** john-aj has quit IRC
01:03:55 *** vak has quit IRC
01:32:24 *** Gja has quit IRC
01:33:27 *** Flygon has joined #openttd
01:37:34 *** chomwitt has quit IRC
02:36:34 *** som89 has quit IRC
02:38:32 *** Snail has joined #openttd
03:07:25 *** Snail has quit IRC
03:12:18 *** Compu has quit IRC
03:13:46 *** RD1N6Yjimmy has joined #openttd
03:14:05 <RD1N6Yjimmy> ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ IRC.SUPERNETS.ORG #SUPERBOWL SUPERBOWL PARTY FAGS!! ycrwsu: efess urdh rellig ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
03:14:05 <RD1N6Yjimmy> ▄▄▄▄▄▄▄▄▄▄▄▄▄ IRC.SUPERNETS.ORG #SUPERBOWL SUPERBOWL PARTY FAGS!! zgzrwprh: dihedral tneo urdh ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
03:14:06 <RD1N6Yjimmy> ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ IRC.SUPERNETS.ORG #SUPERBOWL SUPERBOWL PARTY FAGS!! edkxerpll: SpComb Mavy michi_cc ▄▄▄▄▄▄▄▄▄▄▄▄▄▄
03:14:13 <RD1N6Yjimmy> ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ IRC.SUPERNETS.ORG #SUPERBOWL SUPERBOWL PARTY FAGS!! stdtboxrn: kais58 bwn glx ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
03:14:13 <RD1N6Yjimmy> ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ IRC.SUPERNETS.ORG #SUPERBOWL SUPERBOWL PARTY FAGS!! hzlzvvbcv: TinoDidriksen funnel urdh ▄▄▄▄▄▄▄▄▄▄▄▄▄▄
03:14:14 <RD1N6Yjimmy> ▄▄▄▄▄▄▄▄▄▄▄▄▄ IRC.SUPERNETS.ORG #SUPERBOWL SUPERBOWL PARTY FAGS!! edrdie: cute[m] plp Flygon ▄▄▄▄▄▄▄▄▄▄▄
03:14:15 *** DorpsGek sets mode: +b *!~amskxxrn@108-224-73-27.lightspeed.tukrga.sbcglobal.net
03:14:16 *** RD1N6Yjimmy was kicked by DorpsGek (glx)
03:24:22 *** supermop has quit IRC
04:15:58 *** supermop has joined #openttd
04:37:16 *** supermop has quit IRC
04:47:10 *** cHawk has joined #openttd
04:57:06 *** DDR has joined #openttd
05:05:35 *** DDR has quit IRC
05:07:00 *** DDR has joined #openttd
05:25:32 *** sla_ro|master has joined #openttd
05:30:49 *** glx has quit IRC
05:41:18 *** sla_ro|master has quit IRC
06:05:31 *** Cubey has quit IRC
07:26:32 *** Extrems has quit IRC
07:27:06 *** Extrems has joined #openttd
08:00:32 *** john-aj has joined #openttd
08:28:27 *** DDR has quit IRC
09:33:52 *** john-aj has quit IRC
09:46:12 *** stefino has joined #openttd
09:58:51 *** ZexaronS has quit IRC
10:30:38 *** som89 has joined #openttd
10:33:50 *** som89 has quit IRC
10:42:18 *** PressureLine has joined #openttd
10:43:43 <PressureLine> daylength binary for trunk?
10:47:15 *** vasatko has joined #openttd
10:47:30 *** stefino has joined #openttd
10:48:59 *** stefino has quit IRC
11:03:34 *** PressureLine has quit IRC
11:08:14 *** tokai|noir has joined #openttd
11:08:14 *** ChanServ sets mode: +v tokai|noir
11:15:14 *** tokai has quit IRC
11:37:25 *** Biolunar has joined #openttd
11:37:58 <Eddi|zuHause> was that a question?
11:38:49 <SpComb> it had a question mark at the end
11:39:05 <__ln__> but no verb
12:44:15 <vasatko> Hi, is tehre someone who can help me with instalation Cygwin on Windows? I try it from this tutorial: http://dev.openttdcoop.org/projects/yeti/wiki/Cygwin but i end on 'setting up python', where pip install Pillow (or images) ends with exception.
12:44:52 <Eddi|zuHause> what kind of exception?
12:45:14 <vasatko> The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source.
12:46:43 <Eddi|zuHause> "Under Libs section - libjpeg-devel, libjpeg8, zlib, zlib-devel, zlib0" <-- you possibly skipped this step?
12:47:27 <vasatko> no 100% i install it! But can i check it somewhere (or add it now)?
12:48:10 <Eddi|zuHause> are you running the pip command from within cygwin?
12:48:47 <vasatko> yes
12:51:11 <vasatko> in etc/setup i see libjpeg8.lst.gz but i cant find any file with name 'libjpeg8' in cygwin (sub)folder
12:54:16 *** andythenorth has joined #openttd
12:54:39 <andythenorth> I assume orudge knows that the SSL has expired on forums? :)
12:54:53 <LordAro> again?
12:55:00 <andythenorth> HSTS is preventing me from adding any exceptions
12:55:02 <LordAro> didn't it do that a month ago?
12:55:15 <andythenorth> is it on a rolling re-cert?
12:55:45 <andythenorth> maybe the Let's Encrypt isn't automated correctly?
12:55:50 <andythenorth> or it's not handling LE failures
12:56:08 <LordAro> could well be
12:56:26 <LordAro> took me several "months" to get it working when i first used it
12:57:16 <__ln__> Let's Encrypt is sometimes painful to automate correctly.
12:59:04 <andythenorth> coop has invalid cert too
12:59:27 <andythenorth> specifically binaries.openttdcoop.org
13:02:59 *** Biolunar has quit IRC
13:11:22 *** efess has quit IRC
13:11:52 *** efess has joined #openttd
13:12:35 <orudge> andythenorth: bah
13:12:41 <orudge> It's meant to restart the web server
13:12:42 <orudge> it's evidently not...
13:14:40 *** Samu has joined #openttd
13:14:52 <orudge> Should now be fixed!
13:15:00 <orudge> and it should actually restart nginx next time...
13:15:55 <LordAro> \o/
13:16:51 <andythenorth> yay
13:17:10 <Samu> hi
13:17:39 <Samu> https://webster.openttdcoop.org/index.php?channel=openttd this site is not safe
13:18:21 <Samu> DLG_FLAGS_SEC_CERT_DATE_INVALID
13:20:40 <LordAro> orudge: you missed one
13:20:54 <LordAro> unless that's ^Spike^ or someone
13:23:27 <orudge> LordAro: sorry? I've fixed tt-forums
13:24:54 <LordAro> ottdc
13:25:07 <LordAro> but i guess you don't manage that one
13:30:05 *** Snail has joined #openttd
13:41:45 <Samu> is there a decent citybuilder GS on bananas that does not crash?
14:05:30 <LordAro> lol
14:05:43 <LordAro> you say that as if any of them are supposed to crash
14:06:03 <Samu> tried the one named CityBuilder
14:06:10 <Samu> crashed next month
14:10:45 <orudge> LordAro: no, sorry, that's not me
14:30:34 <Samu> ST2:
14:30:45 <ST2> sec
14:30:55 <Samu> bah i dunno how to innitialize pvt
14:34:48 *** ZexaronS has joined #openttd
15:16:07 *** ToffeeYogurtPots has quit IRC
15:34:24 *** chomwitt has joined #openttd
15:56:18 *** Snail has quit IRC
16:05:47 <Samu> can GSs stop cities from evolving with roads, but not towns? (citybuilder related question)
16:06:20 <Samu> i wanted to let claimed towns to grow with roads
16:06:29 <Samu> but not any other
16:16:53 *** andythenorth has quit IRC
16:19:59 *** Gja has joined #openttd
16:27:04 *** Flygon has quit IRC
16:28:05 *** Compu has joined #openttd
16:47:46 *** andythenorth has joined #openttd
16:56:00 *** nielsm has joined #openttd
17:12:22 *** Alberth has joined #openttd
17:12:22 *** ChanServ sets mode: +o Alberth
17:16:51 *** Snail has joined #openttd
17:17:08 <Samu> Snail, do u make SnakeAI? hmm guess not
17:17:27 <Snail> never heard of it
17:19:35 <Samu> I'm looking for someone to make a Company Value GS for me, lol
17:19:46 <Samu> to download from Bananas
17:21:09 *** andythenorth has left #openttd
17:23:07 <LordAro> Samu: make it yourself
17:23:25 <Samu> yeah, :(
17:24:31 <Samu> well all I wanted was something like "pause game when a company reaches a value of £xxx"
17:32:58 <Samu> teach me
17:36:42 <LordAro> plenty of squirrel tutorials around
17:36:47 <LordAro> stuff on the wiki as well
17:36:59 <LordAro> forums was where i started
17:38:02 <ST2> I started exploring couple existent GS's and reading the API (to know what each function do)
17:38:18 <ST2> not that I got anywhere, most it's by trial and error xD
17:39:41 <ST2> https://www.tt-forums.net/viewtopic.php?f=65&t=62163 -- maybe a good place to start :)
17:40:19 <Samu> squirrel?
17:40:37 <ST2> they love nuts :P
17:41:31 <Samu> ok, i downloaded minimal gs gonna read some stuff there
17:41:52 <Samu> and i hate reading
17:45:53 *** chomwitt has quit IRC
17:46:22 *** ToBeFree has joined #openttd
17:50:27 <Samu> function GetAPIVersion() { return "1.2"; } wha?
17:50:51 *** john-aj has joined #openttd
17:52:47 <Samu> SELF_VERSION <- 1;
17:52:53 <Samu> what the heck is <- ?
17:53:57 <Samu> the code looks different than coding in visual studio :(
17:56:53 <LordAro> funny that
17:57:01 <LordAro> almost as if it's a different language
17:57:17 <LordAro> although "<-" is pretty weird, i'll grant you
17:57:22 <nielsm> "put 1 into SELF_VERSION"
17:58:40 <nielsm> it's not unusual to see arrow-like symbols used in academics when presenting algorithms, in fact it's strange that assignment using an arrow-like symbol is so rare in programming languages
18:00:24 *** TheMask96 has quit IRC
18:00:40 <Alberth> math doesn't have the notion of assigmments, so it needs a special symbol to denote it, or you must resort to a functional language
18:01:08 <Samu> i think i'm gonna follow this first https://wiki.openttd.org/AI:Introduction
18:01:17 <Samu> minimalGS seems confusing
18:01:19 <Alberth> sounds like a plan
18:01:49 <Alberth> a bit much boilerplate mostly, as the real functionality is almost zero
18:01:57 *** Cubey has joined #openttd
18:02:22 <Samu> i wanted to make a GS though, hope it's similar
18:02:44 <Alberth> it is
18:03:24 <Alberth> in both cases you have to wait for events and catch+process them
18:03:45 <Alberth> set of calls to do something is a bit different
18:03:59 <Alberth> as GS has different / bigger powers
18:05:53 *** TheMask96 has joined #openttd
18:08:33 <Samu> squirrel is a language?
18:13:07 *** iSoSyS has joined #openttd
18:13:53 <LordAro> yes
18:16:35 <Alberth> http://squirrel-lang.org/doc/squirrel2.html
18:20:41 <Samu> because one place was not enough https://imgur.com/4rvzpb7
18:24:13 <LordAro> of course not :p
18:25:25 *** john-aj has quit IRC
18:34:18 *** HerzogDeXtEr has joined #openttd
18:37:04 *** sla_ro|master has joined #openttd
18:38:48 *** Thedarkb has joined #openttd
18:40:06 <Samu> is this true? 1.3 is max version?
18:40:08 <Samu> https://noai.openttd.org/docs/trunk/classAIInfo.html#c74d9e82c323a0bdcb212d6779a59668
18:45:11 <LordAro> no, but i'm pretty sure there have been no changes since then
18:45:28 <LordAro> see the changelog doc page, whereever that it
18:57:15 *** Biolunar has joined #openttd
18:59:01 <Alberth> https://noai.openttd.org/api/
19:02:34 *** Wormnest has joined #openttd
19:03:50 <Samu> this script took too long to save? really?
19:03:52 <Samu> function MyNewAI::Save() { //This function is outside the class declaration and requires the name of the class so squirrel can assign it to the right place. }
19:04:01 <Samu> https://wiki.openttd.org/AI:AIMain
19:04:08 <Samu> followed these instructions :(
19:04:48 *** glx has joined #openttd
19:04:48 *** ChanServ sets mode: +v glx
19:04:58 *** Wolf01 has joined #openttd
19:05:48 <Wolf01> o/
19:05:57 <Alberth> o/
19:06:30 <Alberth> Samu: the } in the comment?
19:08:49 <Samu> no
19:09:35 <Samu> https://paste.openttdcoop.org/pijrjcpdk
19:09:36 <ST2> if after //
19:10:01 <ST2> if/when
19:10:31 <Wolf01> Oh fuck, certificate again
19:12:38 <LordAro> Samu: looks alright... did you reload the ai?
19:12:42 <Samu> https://imgur.com/aFDdOfX
19:12:47 <Samu> yeah
19:13:20 *** andythenorth has joined #openttd
19:13:58 <Wolf01> o/
19:16:10 <Alberth> hola andy
19:17:39 <Samu> what is wrong?
19:17:46 <Samu> is it supposed to take too long to save?
19:19:35 <LordAro> it's not
19:20:10 <LordAro> Samu: put an Info statement inside the Save function, see if it gets output?
19:20:21 <Wolf01> To memory, which source file was the land info tool?
19:21:19 <Alberth> find a string in it, then find the string name :)
19:21:29 <Wolf01> Eh
19:21:37 <Samu> AILog.Info("//This function is outside the class declaration and requires the name of the class so squirrel can assign it to the right place.")
19:21:39 <Samu> is this ok?
19:21:56 <LordAro> what do you think?
19:22:09 <Samu> i think so
19:22:46 <Samu> https://imgur.com/SOJEedj
19:22:48 <Samu> yeah it's there
19:23:21 <LordAro> that is weird then
19:24:45 <Samu> RIP GS development
19:24:57 <Wolf01> Ok, found it, the usual misc_gui.. when you can't find something it's there
19:25:11 <andythenorth> hi
19:25:14 <Alberth> :)
19:25:24 <LordAro> Samu: maybe some AI setting you've changed?
19:26:21 <LordAro> Samu: also, it's irrelevant until you actually need to start saving something
19:28:15 *** john-aj has joined #openttd
19:28:37 <Alberth> try returning some data
19:29:56 <Alberth> if you don't do that, I can't access the paste
19:30:01 <Samu> how do i do that?
19:30:13 <Alberth> return {};
19:30:34 *** Stimrol has joined #openttd
19:30:35 *** Smedles has quit IRC
19:30:37 <Samu> ok retrying
19:30:51 *** Smedles has joined #openttd
19:30:56 <Alberth> or some other value, the MainAI function doesm't, it seems
19:31:08 <Samu> nice it works now
19:31:42 <Samu> yeah, it was the return thing
19:33:26 *** ToffeeYogurtPots has joined #openttd
19:34:03 <Wolf01> Heh... getting roadtypes from a tile without road... like it should work as expected
19:35:15 <Wolf01> Nice to know that MayHaveRoad(tile) works on a railway bridge
19:35:24 <LordAro> Samu: huh
19:36:32 <Wolf01> NP, that's intended, it's a bridge so it may have road... there's a missing check somewhere else
19:37:19 <LordAro> Alberth: Samu: i have fixed the wiki :)
19:37:37 <Alberth> thanks!
19:37:54 * LordAro looks again at Special:Version
19:37:57 * LordAro becomes sad
19:42:41 <Alberth> reading the wiki too careful is depressing :p
19:44:10 <LordAro> it's sooo old
19:44:16 <LordAro> i want to fix it
19:45:11 <Samu> naming your company? bah i am trying to make a GS :(
19:45:20 <Samu> how do i transform this into a gs
19:45:33 <LordAro> Samu: for once don't jump ahead 3 steps
19:46:04 <Samu> i jumped one step
19:46:15 <Samu> fine, i'll put a name in the company
19:47:07 *** iSoSyS has quit IRC
19:47:24 *** john-aj has quit IRC
19:49:06 <LordAro> Samu: also, be aware there's no real "how-to" guide for GS
19:49:16 <LordAro> you'll have to work out how to do quite a lot of it yourself
19:53:56 <Wolf01> andythenorth: I need NRT landscape internals, do you have some?
19:54:01 <Samu> the index 'some_integer' does not exist :(
19:54:50 <Samu> https://wiki.openttd.org/AI:Basics
19:54:56 <Samu> i fail at basics it seems
19:55:15 <andythenorth> Wolf01: not iirc
19:55:22 <andythenorth> do we need to make docs also?
19:55:24 <andythenorth> probly
19:55:25 <Wolf01> Yes
19:55:36 <Wolf01> I think bridges have strange m4
19:55:39 <andythenorth> https://github.com/andythenorth/NotRoadTypes/wiki
19:55:42 <andythenorth> is all I have
19:55:52 <andythenorth> we need to edit the landscape grid then
19:55:56 <Wolf01> Yes, it's the same that I have
19:57:04 <andythenorth> k brb
20:00:27 <Samu> int some_integer = 2;
20:00:33 <Samu> why doesn't it work
20:01:07 <ST2> use: local some_integer = 2;
20:01:19 <Samu> local is for ints?
20:01:25 <Samu> confused
20:01:37 <nielsm> local is used for local variables
20:01:38 <LordAro> Samu: local is for anything
20:01:55 <nielsm> in squirrel, variables don't have types, values have types, and variables hold values
20:02:04 <nielsm> any variable can hold any type of data
20:02:06 <LordAro> squirrel is dynamically typed, so variables aren't "tied" to a particular type
20:03:03 *** frosch123 has joined #openttd
20:03:35 <LordAro> quak
20:03:40 <Wolf01> Quak
20:03:55 <Wolf01> frosch123: bridges are burning
20:03:55 <frosch123> hola
20:04:12 <frosch123> raze them?
20:04:31 <Wolf01> Yes, I was planning to remove tunnel/bridges from the game
20:06:44 <Wolf01> I can't understand what rails are trying to put in m4 to make the RoadTypes funcitons to believe there's a road/tram on rail bridges
20:07:00 <Wolf01> MakeBridgeHead puts 0 in M4
20:08:14 <frosch123> since when do we have level crossings on bridges?
20:08:29 <Wolf01> That's a good question
20:09:01 <Samu> i need to crash a vehicle
20:09:21 <Samu> because the guide says so
20:09:28 <Wolf01> We need also updated docs, I can't find anything related to NRT landscape internals on the links I saved
20:14:04 <Wolf01> Ok, I think I fixed it: m4 should be initialized to INVALID_ROADTYPES not 0... 0 is ROAD
20:14:25 <Wolf01> We have broken maps
20:14:43 <Wolf01> Time to savegame bump XD
20:15:04 *** john-aj has joined #openttd
20:16:08 <andythenorth> :)
20:24:08 *** Progman has joined #openttd
20:24:43 <Wolf01> Pushed a fix
20:34:54 *** FLHerne has quit IRC
20:45:50 *** Alberth has left #openttd
20:49:03 *** sim-al2 is now known as Guest3488
20:49:05 *** sim-al2 has joined #openttd
20:53:06 *** gelignite has joined #openttd
20:53:10 <andythenorth> thanks
20:53:27 *** Guest3488 has quit IRC
20:55:26 <Wolf01> Samu: now you should be happy: no more roads on rail bridges
21:06:14 <Samu> :)
21:11:45 <Wolf01> Also we should thank you as we don't have anymore rail crossings on bridges XD
21:15:07 *** sim-al2 has quit IRC
21:15:27 <andythenorth> loss of a feature IMHO
21:15:34 <andythenorth> crossings on bridge is nice
21:16:56 <Wolf01> Yup adds realism, who don't builds a bridge to level cross a rail bridge?
21:18:02 <Wolf01> BTW, I'm totally sure it was possible to run road vehicles on rail bridges
21:22:35 <andythenorth> feature
21:22:47 <andythenorth> child #1 keeps asking when we will put trains in roads
21:23:01 <andythenorth> child #1 is actually pretty close to typical forum user I think
21:23:11 <andythenorth> also he is sitting analysing the behaviour of all AIs
21:23:20 <Wolf01> Answer: when we'll decide to add more bytes to the map array
21:23:59 <Wolf01> Also needs revising the state machine
21:25:21 <Wolf01> I have a pony too, and you will hate me for it...
21:25:53 <Wolf01> One way tram tracks, only draws the tram track on one side
21:26:27 <Wolf01> But it should be independent from the road's one way, so another bit
21:26:41 <Wolf01> *2 bits
21:31:53 <andythenorth> one way tram tracks? o_O
21:32:03 <Wolf01> Yes
21:32:11 <andythenorth> intended use? o_O
21:32:41 <Wolf01> Make trams only go in one direction
21:33:30 <andythenorth> I'm neutral on that as a feature
21:33:36 <andythenorth> it probably has a use somewhere
21:33:38 <Wolf01> It could work best if tram and roads will be set in opposite one way directions
21:34:12 <andythenorth> so road has one way arrow, tram has just one track?
21:34:16 <Wolf01> Yes
21:34:18 <andythenorth> has to be drive-side aware
21:48:41 <Samu> AILog.Info("We have a crashed vehicle (" + v + ") (" + c + ") (" + r + ")");
21:48:53 <Samu> We have a crashed vehicle (10) (34942) (1)
21:48:58 <Samu> not what I expected
21:49:11 <Samu> local v = ec.GetVehicleID(); local c = ec.GetCrashSite(); local r = ec.GetCrashReason();
21:50:28 <Samu> numbers!
21:50:42 <Samu> the reason was because 1
21:50:45 <Samu> :(
21:52:48 <Samu> enum CrashReason { CRASH_TRAIN, CRASH_RV_LEVEL_CROSSING, CRASH_RV_UFO, CRASH_PLANE_LANDING, CRASH_AIRCRAFT_NO_AIRPORT, CRASH_FLOODED }
21:53:12 <Samu> why does it write 1 and not CRASH_RV_LEVEL_CROSSING?
21:53:29 <LordAro> because enums are numbers
21:53:32 <LordAro> just hidden
21:53:47 <Wolf01> Mark enum as flag
21:53:48 <LordAro> they (almost always) start at 0
21:53:54 <Wolf01> Or it works only on c#
21:53:59 <LordAro> Wolf01: lol
21:58:03 <supermop_work_> andythenorth: I want it for better looking end of line loops
21:59:37 <supermop_work_> can live without it, but if wolf promulgates the pony I will second the motion
22:01:18 <Wolf01> We vote, I won't decide for all
22:01:51 <Wolf01> Also I should check the feasibility
22:06:22 *** Progman has quit IRC
22:08:29 *** Progman has joined #openttd
22:12:31 <supermop_work_> not sure if voting makes sense
22:13:09 <supermop_work_> seems committee decision by wolf andy (and frosch?) would be the way to go
22:13:49 <supermop_work_> i haven't been writing code or spec so would be odd for me to vote
22:16:31 *** HerzogDeXtEr has quit IRC
22:19:11 *** sim-al2 has joined #openttd
22:22:12 <Samu> I'm bored https://paste.openttdcoop.org/ppl8yzr9f
22:22:25 <Samu> is there a better way to code those events? :p
22:23:39 <LordAro> unfortunately, no
22:24:05 <Samu> gotta log them all!
22:26:25 <LordAro> you can of course just have a default: case just to throw away all the ones you don't care about
22:26:39 <LordAro> (or copy someone's existing one)
22:26:45 <Samu> I care about everyone
22:26:50 <LordAro> :p
22:30:24 *** sla_ro|master has quit IRC
22:33:23 *** frosch123 has quit IRC
22:35:51 <Samu> AIEventEnginePreview is interesting, let's seee
22:36:02 *** Progman has quit IRC
22:36:10 <Wolf01> 'night
22:36:12 *** Wolf01 has quit IRC
22:37:48 <supermop_work_> andythenorth: why is it so hard for some people to separate HAUL type from NRT?
22:37:57 <andythenorth> NFI
22:38:15 *** Progman has joined #openttd
22:41:08 *** Progman has joined #openttd
22:41:15 <andythenorth> supermop_work_: specifically? o_O
22:42:15 <supermop_work_> i feel like its a long running PR campaign in the thread to reassure people that no one is taking their HAUL away
22:42:59 *** FLHerne has joined #openttd
22:43:06 <andythenorth> or there HEQS
22:43:13 <andythenorth> their / there /s
22:43:29 <andythenorth> it's non-paying-customer-support :)
22:43:33 <andythenorth> I'm used to it, ish
22:43:37 <supermop_work_> im just surprised that people already so strongly equate NRT with air-gapped haul networks
22:43:59 <supermop_work_> no offense, but currently there are like only 3 haul trucks out in the wild
22:44:39 <supermop_work_> update HEQS so they only run on type HEQS, which is not compatible with HAUL nor ROAD
22:45:13 <supermop_work_> i just don't understand how people latched onto the concept so much already when it seems like the user base is still very low
22:46:46 *** ToffeeYogurtPots has quit IRC
22:47:28 *** ToffeeYogurtPots has joined #openttd
22:47:36 <Samu> damn the way things are translated into text...
22:47:59 <andythenorth> NRT Road Hog is not even on Bananas :P
22:48:14 <Samu> https://imgur.com/kUXWjer
22:48:27 <Samu> numbers!!! and a true
22:48:56 <supermop_work_> andythenorth: exactly -
22:48:56 <Samu> oh, i'm surprised it wrote the name of the aircraft
22:48:57 *** Progman has quit IRC
22:49:13 <LordAro> the vast majority of cases beyond debugging purposes never require a string version
22:49:28 <supermop_work_> i think maybe the strong reactions are partly due to the unfamiliarity with it
22:50:18 <Samu> i can't get the mail capacity of the aircraft, apparently
22:50:48 <Samu> GetCargoType()
22:50:50 <Samu> 0
22:50:55 <Samu> 0 means passengers ya?
22:51:28 <LordAro> possible, what's the enum say?
22:51:46 <Samu> what enum?
22:52:15 <Samu> https://noai.openttd.org/docs/1.7.2/classAIEventEnginePreview.html
22:52:18 <Samu> no enums
22:52:38 <supermop_work_> this is kind of why i am reluctant to add HAUL support, because then i feel like people will complain that HAUL can't run on all roads,
22:52:48 <LordAro> Samu: not there, but the function returns a CargoID
22:52:51 <LordAro> look that up
22:53:04 <LordAro> newgrf cargoes mean they're never constant, remember
22:55:24 *** chomwitt has joined #openttd
22:56:16 *** sim-al2 has quit IRC
22:56:22 <Samu> not sure where to look
22:56:52 <LordAro> something that looks cargo related, probably ;)
22:57:22 *** gelignite has quit IRC
22:59:44 *** Progman has joined #openttd
23:03:31 <Samu> https://noai.openttd.org/docs/1.7.2/classAICargo.html
23:03:40 <Samu> not sure what I'm looking for
23:03:49 <Samu> wanna know if it's passengers
23:04:30 <Samu> i assume it is
23:04:41 <Samu> with a 5% chance it could be mail
23:06:21 <LordAro> well you want something that takes the cargoid and turns it into a string
23:06:28 *** Gja has quit IRC
23:06:37 <LordAro> or at the very least, check it has the same effect that "passengers" do
23:06:44 <LordAro> you're on the right page
23:08:06 *** sim-al2 has joined #openttd
23:10:21 <Samu> ok gonna log all answers from these functions
23:12:50 <Samu> local c = AICargo.IsValidCargo(ct)
23:12:55 <Samu> is this?
23:13:06 <Samu> local ct = ec.GetCargoType()
23:13:14 <Samu> local ec = AIEventEnginePreview.Convert(e)
23:13:31 <Samu> whatever gonna try
23:14:19 <supermop_work_> https://www.tt-forums.net/download/file.php?id=201489
23:14:28 <ST2> Samu: with so many questions and so few reading, LordAro makes ~90 percent of the GS xD
23:14:42 <supermop_work_> maybe town zones could be a bit differeny
23:15:25 <supermop_work_> so you dont end up with a city with a 10 mile diameter CBD and then 3 blocks of suburbs at the edges
23:15:49 <LordAro> ST2: i'm deliberately not giving any answers :p
23:16:01 <ST2> that's ma boy ;)
23:16:10 <LordAro> Samu: read the function definition a bit more closely
23:16:14 <LordAro> it should become clearer
23:16:23 <LordAro> ST2: lol
23:17:13 <ST2> well, I look at many GS's and how functions were used and the API page
23:17:35 <LordAro> that's basically how i wrote my AI, all those years ago
23:17:35 <ST2> before trying to touch - and well, I didn't started on an easy place
23:18:27 <ST2> my 1st try was with Aphid's CB GS, because wanted to put it on our servers, and our server controller needed to get info from there (we have goal servers)
23:18:58 <supermop_work_> later
23:25:22 <ST2> anyway, I already told Samu that studying other GS's - or even using them as base (some simple ones) and using GSCompany::GetQuarterlyCompanyValue
23:25:31 <ST2> he would get a CV gamescript :)
23:25:50 *** Progman has quit IRC
23:25:53 <Samu> yeah i wanted to make a GS, but someone told me to make an AI instead
23:26:15 <ST2> hehe
23:26:22 <ST2> well, for GS: https://nogo.openttd.org/api/1.7.2/
23:26:38 <ST2> or even better: https://nogo.openttd.org/api/
23:26:46 <ST2> it can change
23:27:53 <ST2> I appreciate all the work devs put on this, and I prefer to read and test that ask (example): I typed an A, what comes next?
23:28:48 <ST2> if you hit a "brick" wall, ofc feel free to ask
23:28:55 <ST2> anyway, that's my opinion :)
23:31:01 *** dustinm` has quit IRC
23:34:14 *** Stimrol has quit IRC
23:34:33 <Samu> PASS
23:34:40 <Samu> now what was the question?
23:35:45 <Samu> the second question
23:35:57 <Samu> local cl = AICargo.GetCargoLabel(ct)
23:36:06 <Samu> oki
23:36:27 <Samu> https://imgur.com/kXoZuC4
23:36:57 <Samu> local c = AICargo.IsValidCargo(ct) local cl = AICargo.GetCargoLabel(ct) local f = AICargo.IsFreight(ct) local te = AICargo.GetTownEffect(ct) local dt = AICargo.GetDistributionType(ct) AILog.Info("Cargo: " + ct + " (" + c + ") (" + cl + ") (" + f + ") (" + te + ") (" + dt + ")")
23:38:40 <Samu> TE_PASSENGERS,
23:38:42 *** dustinm` has joined #openttd
23:39:53 <LordAro> Samu: you don't need to echo everything you write into this channel
23:45:09 *** nielsm has quit IRC