Times are UTC Toggle Colours
00:24:45 *** chomwitt has joined #openttd 00:37:20 *** Samu has quit IRC 00:59:51 *** Progman has quit IRC 01:04:00 *** HeyCitizen has quit IRC 01:05:04 *** HeyCitizen has joined #openttd 01:09:24 *** HeyCitizen_ has joined #openttd 01:13:08 *** HeyCitizen has quit IRC 01:16:15 *** Thedarkb1-T60 has quit IRC 01:21:03 <Eddi|zuHause> so, some program was setting Tab as a "global" hotkey? 01:21:53 <Eddi|zuHause> as in, one programmer somewhere sat down and was thinking "oh, Tab isn't really used by anyone, i can safely grab that and reserve that for me"? 01:42:52 *** glx has quit IRC 01:50:41 *** cboyd_ has quit IRC 02:08:25 *** Flygon has joined #openttd 02:15:43 *** chomwitt has quit IRC 02:53:37 *** wodencafe has joined #openttd 02:54:39 *** wodencafe has quit IRC 02:54:56 *** wodencafe has joined #openttd 03:54:27 *** Supercheese has joined #openttd 03:59:40 *** haudrauf has quit IRC 04:00:39 *** haudrauf has joined #openttd 04:24:29 *** Supercheese has quit IRC 04:24:51 *** Supercheese has joined #openttd 04:32:10 *** Supercheese has quit IRC 04:32:31 *** Supercheese has joined #openttd 06:04:33 *** nielsm has quit IRC 06:19:22 *** Supercheese has quit IRC 07:44:50 *** HerzogDeXtEr has joined #openttd 07:51:38 *** andythenorth has joined #openttd 07:54:21 *** gelignite has joined #openttd 07:55:14 *** andythenorth has quit IRC 08:05:04 <peter1138> Eddi|zuHause, well, no, I'd bound it as a push-to-talk key. No indication that it would be stealing the keypress. 09:01:26 *** andythenorth has joined #openttd 09:01:27 <andythenorth> moin 09:14:10 <andythenorth> so more NARS Horse puzzles 09:14:19 *** Progman has joined #openttd 09:15:05 <andythenorth> irl US trains now have lower max speed than in 1950s/60s 09:15:29 <andythenorth> this is inconvient for game progression :p 09:36:29 *** Wormnest has joined #openttd 09:39:27 *** andythenorth_ has joined #openttd 09:40:45 *** andythenorth has quit IRC 09:52:59 *** Samu has joined #openttd 09:53:17 <peter1138> Well, I sacked off bike riding due to the rain. 09:53:23 <peter1138> Wimpy cyclist :S 10:06:19 <andythenorth_> rain? 10:06:35 <andythenorth_> it is 28 degrees and solid blue sky here :p 10:06:55 *** frosch123 has joined #openttd 10:09:21 *** andythenorth_ has quit IRC 10:09:59 *** andythenorth_ has joined #openttd 10:12:19 <Samu> "excessive cpu usage in valuator function" - the bane of most AIs 10:14:58 *** andythenorth_ has quit IRC 10:17:13 <Samu> can't you change the way evaluators work? 10:17:45 <Samu> in openttd itself 10:24:00 *** Gja has joined #openttd 10:24:36 <Samu> instead of killing the script, can't you suspend 10:24:55 <Samu> and let it continue on the next ... uh... tick? 10:29:28 <Samu> frosch123: says you are the responsible for the cpu evaluator 10:29:34 <Samu> can't you improve it? 10:48:32 *** Gja has quit IRC 10:49:14 *** synchris has joined #openttd 10:53:53 *** gnu_jj_ has joined #openttd 10:53:53 *** gnu_jj has quit IRC 11:00:58 *** andythenorth has joined #openttd 11:01:08 <LordAro> peter1138: wimp 11:04:02 *** Wacko1976 has joined #openttd 11:07:17 *** andythenorth has quit IRC 11:07:54 <planetmaker> weakly interacting massive particle... hm :P 11:09:07 *** Wolf01 has joined #openttd 11:09:17 <Wolf01> o/ 11:27:22 *** andythenorth has joined #openttd 11:27:25 <andythenorth> cabbages 11:29:28 <Samu> it appears all the code that use Valuate could be coded without using the Valuate functions 11:29:54 <Samu> Isn't it? 11:30:22 <Samu> so why is it available for us? 11:30:32 <Samu> or am I wrong? 11:40:50 *** andythenorth has quit IRC 11:47:27 *** andythenorth has joined #openttd 11:50:01 *** andythenorth has quit IRC 11:52:57 *** Wacko1976 has quit IRC 11:55:29 *** andythenorth has joined #openttd 12:00:28 *** nielsm has joined #openttd 12:04:23 *** Gja has joined #openttd 12:04:56 *** andythenorth has quit IRC 12:16:18 *** andythenorth has joined #openttd 12:27:53 *** keoz has joined #openttd 12:34:13 *** Wacko1976 has joined #openttd 13:00:07 *** keoz has quit IRC 13:08:42 *** Gja has quit IRC 13:46:20 *** Happpy has joined #openttd 13:46:38 *** Happpy has left #openttd 14:05:47 *** andythenorth has joined #openttd 14:06:18 <andythenorth> US railroads are very inconsiderate for game design 14:06:35 <andythenorth> iconic engines with lifespan of only 15 years 14:06:53 <andythenorth> bad for progression :) 14:17:40 *** Happpy has joined #openttd 14:17:52 *** Happpy has left #openttd 14:20:06 *** andythenorth has quit IRC 14:29:49 *** sim-al2 has joined #openttd 15:10:32 *** TrueBrain has quit IRC 15:17:10 *** andythenorth has joined #openttd 15:19:51 *** andythenorth has quit IRC 15:47:20 *** haudrauf has quit IRC 15:48:18 *** haudrauf has joined #openttd 15:49:58 *** andythenorth has joined #openttd 15:52:42 *** andythenorth has joined #openttd 15:52:44 <andythenorth> o/ 15:53:15 <LordAro> is it? 15:53:24 <Eddi|zuHause> bright stars burn out faster 15:55:19 <Eddi|zuHause> anyway, US rail history is easy: pioneer age, golden age, decline age and we-have-plans-for-hispeed-rail-but-they're-not-going-anywhere age 15:55:57 <andythenorth> so 4 generations :p 15:56:28 <andythenorth> how long is golden age? :p 15:57:30 <Eddi|zuHause> dunno, 1880-1940? 15:57:42 <Wolf01> I'd say until privatization 16:00:03 <andythenorth> apart from bankruptcy periods, US railroads are always private :) 16:00:10 <andythenorth> except Amtrak 16:00:41 <Wolf01> Oh, US, I read UK :P 16:01:09 <Eddi|zuHause> foundation of Amtrak is already way into the decline age 16:01:37 <Wolf01> WTF, it's cold, I wanted cold, but not so cold :S 19°C 16:02:12 <LordAro> cold here too 16:03:58 <Eddi|zuHause> typical human reaction "it's hot, i want cold" -> "it's cold, get the hot back" 16:04:49 <andythenorth> i am happy at 28deg with light breeze tbh 16:05:06 <andythenorth> which is fortunate, as that is the current weather 16:05:55 <Eddi|zuHause> it's closer to 19°C than 28°C here, but i don't have exact numbers 16:06:43 *** Supercheese has joined #openttd 16:06:58 *** snail_UES_ has joined #openttd 16:17:06 <Wolf01> 25-28°C was the ideal temperature, it was ~37°C 2 days ago 16:17:31 <Wolf01> BTW, out for dinner :P 16:17:52 *** andythenorth has quit IRC 16:21:40 <Eddi|zuHause> one would assume room temperature (21°C) was the ideal temperature 16:25:42 <Samu> @calc UINT_32 16:25:42 <DorpsGek> Samu: Error: There's really no reason why you should have underscores or brackets in your mathematical expression. Please remove them. 16:25:55 <Samu> @calc MAX_INT 16:25:55 <DorpsGek> Samu: Error: There's really no reason why you should have underscores or brackets in your mathematical expression. Please remove them. 16:25:57 <Samu> :( 16:26:39 *** gelignite has quit IRC 16:27:39 <Samu> have to change everything into square distances 16:30:57 *** andythenorth has joined #openttd 16:31:18 *** Flygon has quit IRC 16:32:47 <andythenorth> hmm 16:33:17 <planetmaker> @calc 2**31 16:33:17 <DorpsGek> planetmaker: 2147483648 16:34:25 <andythenorth> amtrak pax trains are ridiculously slow :p 16:35:00 <Eddi|zuHause> planetmaker: how do you not know this number by heart? 16:38:20 *** andythenorth_ has joined #openttd 16:38:38 *** andythenorth has quit IRC 16:42:35 *** andythenorth_ has quit IRC 16:44:09 <planetmaker> it's sufficient to know it till... 4096 ;) 16:48:56 <Eddi|zuHause> in what world? :p 16:49:37 <Eddi|zuHause> 2147483647 is even a mersenne prime 16:51:45 <planetmaker> that's too rational ;) 16:52:09 <planetmaker> for odd numbers I prefer the irrational ;) 16:55:15 <Samu> can I do this? while (AIController.Sleep(1)) { 16:55:21 <Eddi|zuHause> spoiler alert: odd numbers are never irrational :ü 16:55:24 <Eddi|zuHause> :p 16:55:26 *** andythenorth_ has joined #openttd 16:55:51 <Samu> what does AIController.Sleep(1) returns? 16:56:39 <Samu> /* static */ void ScriptController::Sleep(int ticks) 16:56:44 <Samu> void is always a true? 16:57:27 <LordAro> void is nothing 16:57:31 <LordAro> it has no return value 16:57:48 <Samu> what will happen in this? while (AIController.Sleep(1)) 16:57:51 *** andythenorth_ has quit IRC 16:57:52 <LordAro> i'd be very surprised if it worked at all 16:58:11 <Samu> it works on the GSController side 16:58:12 <LordAro> at the very least i'd expect "null" to be falsey 16:59:25 <Samu> seems to be working on AIController too 16:59:32 <Samu> the stuff inside while is executed 16:59:53 <LordAro> weird 17:01:44 <Samu> yeah, it fast forwards faster too 17:02:05 *** KouDy has quit IRC 17:09:44 <Samu> I found a bug 17:10:06 <Samu> the maximum distance of engines that don't have a max range specified should not be 0 17:10:18 <Samu> engine_list.Valuate(AIEngine.GetMaximumOrderDistance); 17:10:24 <Samu> engine_list.KeepAboveValue(dist); 17:10:45 <Samu> aircraft in this case 17:11:07 <Samu> i dunno how to report a bug anymore, so plz someone fix it 17:12:30 <Samu> it's script_vehicle.cpp 17:12:38 <Samu> line 446 17:15:17 <Samu> or maybe not 17:15:26 <Samu> script_engine.cpp line 254 17:16:00 <Samu> yeah, that's the one 17:16:14 <Samu> return ::Engine::Get(engine_id)->GetRange() * ::Engine::Get(engine_id)->GetRange(); 17:20:40 *** andythenorth_ has joined #openttd 17:21:06 <andythenorth_> oof 17:21:22 <andythenorth_> NARS Horse roster is going to be huge :p 17:21:39 <andythenorth_> so much drawing I will have to do 17:23:32 <Samu> andythenorth_: can you report my bug? :( 17:23:54 <andythenorth_> ? 17:24:51 <Samu> i just mentioned it 17:25:44 <andythenorth_> OTOH 17:26:01 <andythenorth_> not sure NARS Horse has 4/8 wagons 17:26:20 <andythenorth_> US tends to long wagons, so that cuts down drawing 17:26:37 <peter1138> Why would andythenorth_ report a bug he hasn't seen because he only just joined the channel? 17:27:15 <andythenorth_> because mystery reasons? 17:28:13 <Samu> oh, sorry, i saw him start talking 17:32:53 *** TrueBrain has joined #openttd 17:33:33 <andythenorth_> uh oh 17:33:37 <Wormnest> I would say not a bug but working as intended 17:33:39 <andythenorth_> it’s TB 17:34:08 <Samu> intended bugs :( 17:35:05 <Wormnest> It´s not a bug 17:35:27 <Samu> but why not? I can't use the KeepAbove correctly :( 17:35:34 <Samu> KeepAboveValue 17:35:52 <Samu> because it got a 0 17:36:28 <Wormnest> So what should it answer, there is no maximum distance so 0 seems the best answer 17:36:52 <Samu> MapSize 17:36:58 <Samu> best result 17:37:30 <Samu> it's a DistanceSquare 17:39:36 <Wormnest> But they can fly a lot farther than that in theory since they don´t have a max distance 17:40:02 <Samu> :( 17:40:17 <Wormnest> Just filter out the ones without a max distance 17:40:33 *** Stimrol has joined #openttd 17:41:08 <Wormnest> or make a valuator function that checks for 0 and replaces that with a random very large number 17:42:16 <peter1138> ^ this 17:42:45 <Samu> I'm testing this 17:42:48 <Samu> return ::Engine::Get(engine_id)->GetRange() * ::Engine::Get(engine_id)->GetRange() == 0 ? UINT16_MAX : ::Engine::Get(engine_id)->GetRange() * ::Engine::Get(engine_id)->GetRange(); 17:43:03 <Samu> in openttd code 17:44:12 <Wormnest> Why not keep it simple and add a small function to your ai 17:44:59 <LordAro> Samu: use a variable so you don't have to repeat Engine::Get every time 17:45:07 <Samu> because the problem is not there :( 17:45:16 <LordAro> or GetRange even 17:45:47 <Samu> I tried, but it complained about a default being there 17:46:05 <Samu> it's inside a switch 17:46:17 *** andythenorth_ has quit IRC 17:46:38 <LordAro> "it complained about a default being there" 17:46:42 <LordAro> oh 17:46:57 *** KouDy has joined #openttd 17:46:57 <LordAro> yeah, if you declare a variable inside a case statement you need to wrap the whole case inside {} 17:47:09 <LordAro> e.g. case foo: { int i = ...; } 17:47:14 <Samu> ah 17:47:18 <Samu> ok, will do 17:47:20 *** andythenorth_ has joined #openttd 17:48:51 <peter1138> andythenorth_, have you considered not leaving and rejoining every few minutes? 17:49:55 *** andythenorth_ has quit IRC 17:50:40 <peter1138> I'll take that as a no. 17:50:54 <LordAro> lol 17:52:57 <Samu> uint16 range = ::Engine::Get(engine_id)->GetRange() * ::Engine::Get(engine_id)->GetRange(); return range == 0 ? UINT16_MAX : range; 17:53:06 <Samu> in 2 lines 17:53:57 <LordAro> much better, right? :) 17:54:09 <LordAro> i'd probably add another variable 17:54:14 <Samu> yes, i didn't know about the brackets 17:54:31 *** KouDy has quit IRC 17:55:23 <Samu> Sampson U52 maximum distance is 65536 17:55:37 <Samu> looks like uin16 is too short 17:55:45 <Samu> gonna try uint_32 17:56:38 <Samu> or whatever the max squirrel accepts, which I dunno 18:00:01 <Samu> @calc 4096*4096 18:00:02 <DorpsGek> Samu: 16777216 18:00:43 <Samu> Sampson U52 maximum distance is -1 :( 18:00:48 <Samu> bah i fail 18:02:34 *** Supercheese has quit IRC 18:02:55 *** Supercheese has joined #openttd 18:03:06 <Samu> what is the highest number that squirrel likes? 18:06:01 *** tokai|noir has joined #openttd 18:06:01 *** ChanServ sets mode: +v tokai|noir 18:06:48 <peter1138> Tried INT32_MAX? 18:07:03 <Samu> Sampson U52 maximum distance is 2147483647 18:07:12 <Samu> yes, tried that 18:07:13 <Samu> just now 18:07:16 <Samu> it works 18:11:57 <Samu> return range == 0 ? INT32_MAX : range; 18:12:01 <Samu> will it be fixed? 18:13:01 *** tokai has quit IRC 18:13:41 <Samu> or is it "not a bug" :( 18:14:17 <Samu> having to work around the problem in the AI side is boring :( 18:14:23 <LordAro> what's the problem? 18:14:48 <Samu> coding to evade a bug 18:18:15 <LordAro> The maximum distance between two orders for this vehicle or 0 if the distance is unlimited." 18:18:23 <LordAro> i'd definitely say not a bug, i'm afraid 18:18:32 <LordAro> just make your own function that wraps it 18:24:31 <Samu> not sure how to do it 18:24:40 <Samu> im trying something, but it's not working 18:28:13 <Samu> ah, i think i did it 18:33:25 <Samu> https://paste.openttdcoop.org/pjfxbqdcs 18:33:27 <Samu> ugly 18:33:50 *** Vlowszx has joined #openttd 18:34:18 <Samu> lines 26-33 shouldn't exist if openttd core was fixed :( 18:34:22 <Samu> code* 18:34:57 <LordAro> i was thinking more of a function that wraps AIEngine.GetMaximumOrderDistance 18:35:48 <Samu> forgot the keepabovevalue in there 18:36:03 <LordAro> i.e. function foo(...) { local bar = GetMaximum...(); return bar == 0 ? INT_MAX : bar; } 18:36:14 *** Gja has joined #openttd 18:37:25 *** mindlesstux has quit IRC 18:44:01 <peter1138> LordAro, programmer vs ... whatever samu is doing. 18:44:51 <LordAro> we've all flailed at some point 18:45:22 <Samu> :) 18:45:46 <Samu> you mean a custom-made valuator function 18:46:25 *** glx has joined #openttd 18:46:25 *** ChanServ sets mode: +v glx 18:46:30 <Samu> gonna try 18:47:43 <Samu> yeah this isn't working 18:48:09 <Samu> parameter 1 has an invalid type 'function'; expected 'integer' 18:48:39 <LordAro> you're probably doing something wrong :p 18:55:11 <Samu> https://paste.openttdcoop.org/po9qykj5r 18:55:14 <Samu> gonna test 18:55:28 <Samu> fails already damn it 18:55:58 <LordAro> does function::WriteAI::GetMaximumOrderDistance look right to you? 18:56:28 <LordAro> do please try to think about what you're doing before asking 18:56:32 <LordAro> it saves everyone time 18:57:17 <Samu> oh, i see 18:57:45 <LordAro> (also, actually run it and read the error message) 18:58:19 <Samu> function WrightAI::GetMaximumOrderDistance(engineId) { 18:58:24 <Samu> without :: 18:58:28 <LordAro> better :) 18:58:30 <Samu> works now, thx 18:59:35 <Samu> the error was about some 'IDENTIFIER' thing 19:00:09 <LordAro> mm, those can be a bit obscure sometimes, but they're generally syntax related 19:06:19 <Samu> https://noai.openttd.org/api/trunk/classAIEngine.html#a0d3c115704bfc200432f4908df8b6ff "or 0 if the distance is unlimited"... boooo 19:06:25 <Samu> oh well 19:06:30 <Samu> i guess it's not gonna be fixed 19:07:57 <LordAro> literally already quoted and said that :p 19:19:29 <peter1138> -ENOBUG 19:25:08 *** frosch123 has quit IRC 19:28:38 <Samu> why's the ai now building helicopters for large airports... :( bah i failed somewhere 19:34:30 <Samu> fixed :) 19:34:35 <Eddi|zuHause> <LordAro> we've all flailed at some point <-- but it takes a real master to continue flailing for years 19:48:12 <Wolf01> Is there a steam service somewhere which tells you what to play? 19:50:46 <LordAro> i think there is something that will select a random game from your library 19:50:49 <LordAro> i've no idea where 19:55:10 <peter1138> heh 19:55:52 <Wolf01> Nice, there are some games with good discount, I could buy even those to add more to the indecision roulette 20:03:29 <peter1138> Indeed 20:03:39 <peter1138> And pick up some more Humble Bundles... 20:03:48 <Samu> now that I'm working with DistanceSquare instead of DistanceManhattan... I dunno what to do about min_air_distance and max_air_distace :( 20:03:59 <Wolf01> Nah, I have enough of the horror titles :P 20:04:12 <Wolf01> I'll pass this bundle 20:04:40 *** Gja has quit IRC 20:21:53 *** sim-al2 has quit IRC 20:37:31 *** KouDy has joined #openttd 20:49:12 <Samu> how do I get squareroot in squirrel? 20:55:35 <peter1138> Do you need it? 20:55:56 <peter1138> Or can you just compare against a square number? 20:59:01 <Samu> i want to calculate the optimal number of aircraft for a route of 'squared distance' 20:59:47 <LordAro> instead of doing x < sqrt(y), it's often easier to do x * x < y 21:00:06 <Samu> i have the location of both airports, I have the squared distance, now I need to know how many aircraft this route needs 21:01:05 <Samu> with distance manhattan it was easier 21:03:41 <Samu> i think i found a way, brb 21:04:57 <Samu> actually, no :( 21:16:14 *** andythenorth has joined #openttd 21:16:30 <andythenorth> peter1138 I need a bouncer :( 21:16:52 <andythenorth> I can’t run one on my phone probs 21:17:34 <andythenorth> unrelated, since when are articulated vehicles reversible? https://www.tt-forums.net/viewtopic.php?f=26&t=68616&start=240#p1212198 21:18:02 <LordAro> i hear some ottdcoop people run a bouncer 21:18:32 <andythenorth> I googld it 21:18:50 <andythenorth> didn’t find a clear answer 21:21:06 *** andythenorth has quit IRC 21:21:46 *** andythenorth has joined #openttd 21:21:54 <andythenorth> 3 minutes is not long for network timeout :x 21:23:57 <Samu> think i'm gonna use 2 distances... :( 21:24:16 <Samu> 2 distance types for every route :( 21:25:58 *** andythenorth has quit IRC 21:35:28 *** snail_UES_ has quit IRC 21:44:21 *** synchris has quit IRC 21:51:49 *** HerzogDeXtEr has quit IRC 22:00:16 *** Progman has quit IRC 22:12:56 *** Stimrol has quit IRC 22:15:24 *** Wormnest has quit IRC 22:32:42 *** Supercheese has quit IRC 22:33:04 *** Supercheese has joined #openttd 22:38:27 *** Wacko1976 has quit IRC 22:40:08 *** sim-al2 has joined #openttd 22:51:02 *** sim-al2 has quit IRC 23:45:45 <Samu> This parameter is a two-byte word, specified in little-endian byte order 23:45:50 <Samu> what does it mean? 23:53:15 *** Wolf01 has quit IRC 23:58:41 *** chomwitt has joined #openttd