Times are UTC Toggle Colours
00:02:51 *** y2kboy23 has quit IRC 00:03:07 <glx> you can just tell the installer to download opengfx 00:05:39 *** y2kboy23 has joined #openttd 00:15:32 <Miko0000> Oh okay thanks 00:16:15 *** jinks has joined #openttd 00:17:23 <glx> if you go on the download way check the sound and music lines too 00:17:47 <glx> and uncheck TTD CD 00:19:59 *** jinks_ has joined #openttd 00:19:59 *** jinks has quit IRC 00:20:03 *** jinks_ is now known as jinks 00:32:15 *** Miko0000 has quit IRC 01:10:37 *** WormnestAndroid has quit IRC 01:11:22 *** WormnestAndroid has joined #openttd 01:34:40 *** sla_ro|master has quit IRC 01:35:01 *** Flygon has joined #openttd 02:32:51 *** debdog has joined #openttd 02:35:57 *** glx has quit IRC 02:36:14 *** D-HUND has quit IRC 02:40:55 *** Wormnest has joined #openttd 03:34:46 *** Wormnest has quit IRC 03:47:20 *** WormnestAndroid has quit IRC 03:49:03 *** WormnestAndroid has joined #openttd 05:17:17 *** Wormnest has joined #openttd 05:46:02 *** nielsm has joined #openttd 05:59:52 *** snail_UES_ has joined #openttd 06:09:56 *** Wormnest has quit IRC 06:14:57 *** sla_ro|master has joined #openttd 07:06:01 *** Wolf01 has joined #openttd 07:26:12 *** snail_UES_ has quit IRC 08:08:29 *** Samu has joined #openttd 08:08:39 <Samu> hi 08:16:12 <Samu> testing my AI being friendly 08:16:30 <Samu> wondering if it bankrupts for being too friendly 08:22:48 <Samu> EpicTrans is really.... lame 08:23:05 <Samu> builds wood bridges everywhere, and bankrupts all the time 08:23:16 <Samu> then builds more wood bridges 08:23:37 <Samu> and the other AIs make use of the bridges in pathfinding 08:23:57 <Samu> oh well, just another trial against AIs 08:37:32 *** WormnestAndroid has quit IRC 08:37:44 *** WormnestAndroid has joined #openttd 08:43:55 <Samu> terron bug https://www.tt-forums.net/viewtopic.php?f=65&t=54639&p=1224490#p1224490 08:59:21 *** gelignite has joined #openttd 09:28:20 *** Progman has joined #openttd 09:35:24 *** frosch123 has joined #openttd 10:03:01 *** arikover has joined #openttd 10:20:52 <Samu> this.cost = this.Cost(this); 10:21:00 <Samu> help! english me on that 10:27:05 <Samu> https://github.com/SamuXarick/LuDiAI-AfterFix/blob/master/RoadPathfinder.nut#L49 10:27:13 <Samu> what's happening here, it's confusing 10:28:49 <Samu> there is no this.Cost 10:29:05 <Samu> or is it? 11:27:32 <Wolf01> For me it's confusing how the Road.Cost works... but I'm lacking knowledge of the language syntax 11:33:40 <Samu> those _set and _get functions 11:34:03 <Samu> i dont call them directly, but they seem to be called 11:50:36 <nielsm> http://squirrel-lang.org/doc/squirrel2.pdf <- page 33 and 34 describe the _set and _get metamethods 12:40:16 *** snail_UES_ has joined #openttd 12:48:17 *** gelignite has quit IRC 13:18:13 *** snail_UES_ has quit IRC 13:26:05 *** Wolf01 is now known as Guest313 13:26:07 *** Wolf01 has joined #openttd 13:27:19 <Wolf01> It's funny that I have ups protected network and then the line goes out because a power outage in the entire town... with the old dsl it didn't happen 13:28:05 *** Guest313 has quit IRC 14:02:49 <Eddi|zuHause> i suppose it's hard to power distributed network hubs through fibreglass... 14:19:23 *** DrSegfault has joined #openttd 14:20:29 <DrSegfault> hey, I've played on one map for 7 years and now there's no space left to build anything new. can I somehow extend the map size now? 14:20:38 <Eddi|zuHause> no 14:21:04 <DrSegfault> :-(( 14:22:04 <nielsm> long answer: it would be extremely difficult to expand the map size every single object on the map needs to have its coordinates updated, and all references to coordinates would also need to be updated 14:22:31 <DrSegfault> nielsm: I meant mostly appending stuff at the sides, keeping the old coords 14:22:53 <nielsm> yes that's the thing, tiles have an index, not a coordinate 14:23:03 <DrSegfault> ahh 14:23:18 <nielsm> you could extend in the Y direction, but extending in the X direction would need remapping everything 14:25:26 <DrSegfault> doesn't sound like that's doable with a few minutes of scripting... 14:25:52 <nielsm> nope, too many places need changing, and it would most definitely confuse any AI or GS being used 14:43:56 *** Flygon has quit IRC 14:58:41 *** sla_ro|master has quit IRC 15:03:56 *** Wormnest has joined #openttd 15:43:41 *** Samu has quit IRC 16:17:27 *** Samu has joined #openttd 16:17:44 <Samu> somebody turned off the computer 16:17:49 <Samu> fml 16:26:29 <Samu> Redirect Left is annoying 16:27:46 <Samu> I won't fix it myself, it's not like I have access to upload for him 16:27:56 <Samu> or them 16:29:02 <Samu> "thread is dead", orly? maybe because nobody reported bugs... 16:29:46 <LordAro> try not to monologue, Samu 16:32:27 <Samu> https://www.tt-forums.net/viewtopic.php?f=65&t=54639&start=60#p1224506 16:37:51 <Samu> trans ai was also dead, then this year he started fixing stuff 16:43:02 *** Eddi|zuHause2 has joined #openttd 16:47:46 *** Eddi|zuHause has quit IRC 16:54:41 <Wolf01> bbl 16:55:27 <argoneus> do you guys still play ttd 16:56:52 <Samu> ya 16:57:37 <argoneus> any train sets you'd recommend for FIRS 16:57:42 <argoneus> extreme 16:57:54 <argoneus> last I played NUTS was all the hype 16:58:36 *** Wolf01 is now known as Guest324 16:58:38 *** Wolf01 has joined #openttd 17:01:03 <Samu> what is the name of a line going from 2 opposite verices of a rectangle? 17:01:17 <Samu> english:( 17:02:09 <LordAro> diagonal 17:02:56 <Samu> rectangle has 4 points, A B C D. A C and B D are opposite. the line that starts at A and ends in C is called... 17:02:59 <Samu> diagonal 17:03:08 *** Guest324 has quit IRC 17:03:39 <arikover> argoneus: I would say Iron Horse. 17:03:56 <Samu> iron horse line 17:05:28 <argoneus> that looks cute 17:08:46 <peter1139> LordAro, nice work 17:09:53 <LordAro> peter1139: everything hurts 17:09:59 <peter1139> I bet 17:10:36 <LordAro> but thanks :) 17:11:36 <Samu> my geometric skills aka math suck 17:12:40 <Samu> dont know what to call the variable 17:12:44 <Samu> _search_area_radius 17:13:08 <Samu> _extend_diagonal_area 17:14:09 <Samu> _max_search_area_limit 17:14:57 <Samu> _search_area_limit 17:15:18 <Samu> _limit_search_area 17:16:36 <peter1139> Use them all interchangably. 17:18:52 *** gelignite has joined #openttd 17:18:52 <Samu> given 2 tiles A and B, draw a rectangle starting on A, ending on B, to generate tiles C and D 17:19:33 *** Eddi|zuHause2 is now known as Eddi|zuHause 17:20:07 <Samu> then using those points, get the _min_x, _min_y, _max_x, _max_y 17:21:06 <LordAro> Samu: go away and think about it, instead of live streaming your thought process here 17:21:19 <Samu> :( 17:25:15 <peter1139> LordAro, I wimped out. It started spitting as I was leaving but I went out anyway, but after an hour I was soaked :/ 17:25:30 <peter1139> Should've at least found the waterproof socks/overshoes. 17:26:42 <LordAro> heh 17:26:54 <LordAro> no issues with the weather here, other than the wind 17:29:21 *** Thedarkb-X40 has quit IRC 17:31:20 *** Thedarkb-X40 has joined #openttd 17:44:14 *** Eddi|zuHause has quit IRC 17:50:00 *** andythenorth_ has joined #openttd 17:51:53 *** andythen_ has joined #openttd 17:52:11 <andythen_> argoneus: Iron Horse 2 17:52:22 <andythen_> There’s a beta on bananas 17:52:49 <argoneus> what's the difference from 1? 17:53:06 *** andythenorth_ has quit IRC 17:53:55 <andythen_> “Everything” :) 17:54:09 <andythen_> Also needs the Termite track grf 17:55:12 <argoneus> oh 17:55:18 <argoneus> I was trying to find a list of trains or sth 17:58:06 <_moep_> hey community! where can i change, that i buy new vehicles, when they are too old? 17:59:41 *** Eddi|zuHause has joined #openttd 18:00:18 <andythen_> argoneus: there used to be online docs for Iron Horse listing all trains, but they’re gone (for now) 18:00:45 <andythen_> One day I’ll figure out how to provide them :) 18:00:55 <Eddi|zuHause> maybe andynow_ could fix them? 18:01:19 <andythen_> Surfeit of nicks? 18:01:30 <andythen_> Multiple devices :p 18:01:44 <Eddi|zuHause> first world problems? 18:01:48 <andythen_> Very 18:03:34 * andythen_ dinner 18:03:43 *** andythen_ has quit IRC 18:07:00 <Samu> im trying to limit the pathfinder search from https://imgur.com/DEWepqV to https://imgur.com/QnDM9Ee 18:07:26 <Samu> i take the coordinates of the 2 stations and compute a rectangle 18:08:01 <Samu> i can increase the size of the rectangle by that value i put there _max_search_area_limit 18:08:42 <Samu> now I just need a decent variable name and to describe it, help 18:10:57 <Wolf01> "x" 18:11:21 <Samu> https://imgur.com/xjBwDqV here's with a value of 3 18:11:45 <Samu> https://imgur.com/QnDM9Ee here's with a value of 1 18:12:03 <Samu> https://imgur.com/DEWepqV here's with a value of 0 - unrestricted search 18:12:30 <Samu> now english what I just did for me plz 18:42:09 <Samu> ~back, and no english 18:43:00 <Samu> "x" is a bad name 18:50:04 <Samu> _max_search_area_offset ? 18:50:25 <Samu> _search_offset 18:58:04 <LordAro> it doesn't matter that much 18:58:21 <LordAro> if it's disastrously wrong, someone else can suggest something better 18:59:58 <Samu> _max_search_offset = null; ///< The maximum offset of the rectangle area the pathfinder is limited to. Uses source and target tiles as reference points for the rectangle. If 0, the search is unrestricted and not confined to any area. 19:00:13 <Samu> well, then :( 19:00:57 <Samu> how's this english 19:07:19 <Arveen> do cacti die when you just place them somewhere in the desert ? 19:07:56 <Arveen> ^ sub tropical map 19:12:19 <nielsm> Samu: _search_range 19:13:40 <nielsm> "Range to search aroud source and destination, in either coordinate. 0 indicates unlimited." 19:15:59 *** glx has joined #openttd 19:15:59 *** ChanServ sets mode: +v glx 19:20:03 <Samu> cool, nielsm thx, appreciated 19:29:28 <Samu> erm, it's not quite around source and dest only 19:29:48 <Samu> those are only 2 points 19:31:25 <Samu> hard to sumarize it, I suppose 19:55:17 *** andythenorth_ has joined #openttd 19:55:43 <andythenorth_> US trains have some realism chaallenges 19:56:16 <andythenorth_> Lots of the big shiny stuff only had 15 year service lives 19:56:46 <andythenorth_> It gets worn out by intense use, or superceded by new technology 19:56:48 *** frosch123 has quit IRC 19:57:29 <andythenorth_> Gameplay is better with generations around 30 years :p 20:00:51 <andythenorth_> Union Pacific went through ~7 generations of high-end locomotive 1930-1970 :p 20:01:45 <milek7> 30 years is too short, here 50+ locos are still used ;P 20:04:05 *** andythenorth_ has quit IRC 20:13:09 *** andythenorth_ has joined #openttd 20:14:28 <andythenorth_> New trains every 10 years? o_O 20:19:19 *** andythenorth_ has quit IRC 20:20:45 <Samu> on a 64x64 map, freeform off makes playable area 63x63 ? 20:20:55 <Samu> freeform on makes 62x62? 20:22:05 <Samu> i thought the entire 64x64 was available with freeform off 20:22:17 <Samu> is it really only 63x63? 20:25:49 <nielsm> 62x62 20:26:06 <nielsm> the outer ring of tiles is special 20:26:41 <nielsm> edge tiles that can't be used for anything except detecting you're at the edge 20:29:18 <Samu> uhm, counting from 0 to 62 is 63 20:29:51 <nielsm> both row 0 and row 63 are guard tiles 20:29:58 <nielsm> (I forget the proper word) 20:31:46 <Samu> row 63 isn't water 20:31:51 <Samu> it's black 20:31:56 <Samu> but row 0 is water 20:32:24 <LordAro> void tiles 20:32:44 <LordAro> and iirc yes, they're only in certain directions 20:32:48 <LordAro> can't remember why 20:32:51 * LordAro looks at peter1139 20:33:19 *** gelignite has quit IRC 20:36:13 <Samu> interesting 20:38:20 <Samu> this means there's actually more road buildable area with freeform on 20:38:39 <Samu> even though the playable area of the map is shorter 20:38:47 <Samu> smaller 20:40:01 <Samu> 63x63 = can build road from 1 to 61 20:40:33 <Samu> 62x62 = can build road from 1 to 62 20:44:09 <peter1139> Void tile changes were nothing to do with me. 20:44:37 <LordAro> oh i know, but i can't remember the details about the reasons why things are the way that they are 20:47:29 <Samu> local freeform = AIMap.IsValidTile(0) ? 0 : 1; 20:47:59 <Samu> if it's valid, freeform is disabled, min_x and min_y is 0 20:48:07 <nielsm> the void tiles on the bottom edges are needed so the map edge can be raised/lowered 20:48:08 <michi_cc> SE and SW map edges always had void tiles to simplify coding wrap-around. As tile slope depends on the surround tile heights, freeform as void all around because you can't assume tile height 0 anymore. 20:48:10 <Samu> else min_x and min_y is 1 20:48:19 *** Arveen has quit IRC 20:58:34 <Samu> https://paste.openttdcoop.org/pmfujrgil 20:58:40 <Samu> any way to simplify this ? 21:10:34 <Samu> oh, the other function 21:11:18 <Samu> https://paste.openttdcoop.org/prqsbwaty 21:11:34 <LordAro> Samu: probably not without sacrificing readability 21:11:56 <LordAro> the this._min/max_x/y conditionals look a bit odd 21:12:08 <LordAro> certainly need some extra parens 21:12:39 <LordAro> but the false term being N_x - (N_x - this._search_range) is odd 21:17:29 <Samu> hmm, but it works already :( 21:17:39 <Samu> ok, parenthesis 21:18:24 <LordAro> Samu: not saying it doesn't work, but it's a lot of code for what's just this._search_range 21:19:56 <Samu> this._min_x = (N_x - this._search_range) < min_freeform ? min_freeform : N_x - this._search_range; 21:24:06 <LordAro> oh, i see 21:24:14 <LordAro> that's very different than what i assumed it was being 21:24:21 <LordAro> (hence, parens) 21:25:09 <LordAro> sounds like you want max(min_freeform, N_x - this._search_range); though 21:25:46 <Samu> is there a max function in squirrel 21:25:53 <LordAro> i imagine so 21:26:00 <LordAro> you can make one if not 21:30:32 <Samu> looks like there is 21:37:49 <Samu> https://github.com/OpenTTD/OpenTTD/blob/7c8e7c6b6e16d4a26259a676db32d8776b99817e/src/script/squirrel_std.cpp#L24 21:50:17 *** WormnestAndroid has quit IRC 21:51:07 *** WormnestAndroid has joined #openttd 21:58:20 <Samu> https://paste.openttdcoop.org/p1x8xmqgt 21:58:23 <Samu> smaller 22:18:56 *** arikover has quit IRC 22:33:33 *** Wormnest has quit IRC 22:38:09 *** Wormnest has joined #openttd 22:39:36 <Samu> actually using it... 22:39:37 <Samu> pathfinder.cost.search_range = route_dist / 5; 22:40:02 *** WormnestAndroid has quit IRC 22:40:22 <Samu> it's not really a "cost", but... 22:40:41 *** WormnestAndroid has joined #openttd 22:44:01 *** Progman has quit IRC 22:44:24 <Samu> fastest profile is ultra mega hyper godly fast now 22:44:35 <Samu> range = 1 lol 22:44:49 <Samu> fails a lot on maps with tons of water 22:45:34 *** nielsm has quit IRC 22:46:59 <Samu> @calc 20 / 5 22:46:59 <DorpsGek> Samu: 4 22:47:58 <Samu> @calc 155/5 22:47:58 <DorpsGek> Samu: 31 22:49:17 <Samu> 31 is a little bit too much, i think 22:49:33 <Samu> but ok, will have to test 22:52:48 *** WormnestAndroid has quit IRC 22:55:08 *** Wolf01 has quit IRC 22:55:12 *** Samu has quit IRC 22:55:58 *** Wormnest has quit IRC 23:01:12 *** Wormnest has joined #openttd 23:31:00 *** WormnestAndroid has joined #openttd 23:45:21 *** HerzogDeXtEr has quit IRC