IRC logs for #openttd on OFTC at 2017-11-18
            
00:00:29 *** Tirili has joined #openttd
00:48:20 *** Progman has joined #openttd
01:02:17 <Samu> "By enabling this button, only aircraft matching the same type as the one selected for replacement are displayed"
01:02:29 <Samu> better?
01:02:35 *** andythenorth has quit IRC
01:03:08 <Samu> "By enabling this button, only aircraft of the same type as the one selected for replacement are displayed"
01:03:34 <Samu> where is the english expert!? :) a little help
01:03:59 *** ToBeFree has quit IRC
01:07:57 *** HerzogDeXtEr has quit IRC
01:08:28 *** Progman has quit IRC
01:13:36 *** SgtStroopwafel_ has joined #openttd
01:13:54 *** sla_ro|master has quit IRC
01:20:16 *** Tirili has quit IRC
01:20:25 *** oskari89 has quit IRC
01:21:06 *** Tirili has joined #openttd
01:30:10 <Samu> cyas
01:30:15 *** Samu has quit IRC
01:42:01 *** Gja has quit IRC
01:46:12 *** HiddenKnowledge has joined #openttd
01:47:41 <HiddenKnowledge> Hello, I tried getting a patch to work but I couldn't get it to merge. I even tried doing it manually but the code looked very different in some of the places.
01:48:14 <HiddenKnowledge> So I figured maybe I should post in the forum to ask, but now I don't know where to post, should I post in the support forum or in the thread for the patch?
01:48:59 <HiddenKnowledge> The thread doesn't really say which version of openttd it's supposed to be merged with.
01:49:06 *** chomwitt has quit IRC
01:49:13 <HiddenKnowledge> It just says 'Trunk'
01:49:33 <HiddenKnowledge> But that could have been any version, obviously.
01:56:14 *** Tirili has quit IRC
01:59:16 *** FLHerne has quit IRC
02:01:31 *** tokai has quit IRC
02:04:51 *** Flygon has joined #openttd
02:07:15 *** tokai has joined #openttd
02:07:16 *** ChanServ sets mode: +v tokai
03:06:35 *** Gustavo6046 has quit IRC
03:17:06 *** glx has quit IRC
03:27:46 *** sim-al2 is now known as Guest790
03:27:46 *** sim-al2 has joined #openttd
03:32:27 *** Guest790 has quit IRC
04:24:09 <HiddenKnowledge> Are there any patches that cap the fast forward speed? I tried to look for one but couldn't find it.
05:57:45 *** HiddenKnowledge has quit IRC
06:04:22 *** Smedles has quit IRC
06:04:26 *** Smedles has joined #openttd
06:15:50 *** Smedles has quit IRC
06:16:20 *** Smedles has joined #openttd
06:24:08 *** Smedles has quit IRC
06:36:43 *** Smedles has joined #openttd
06:54:55 *** supermop_ has quit IRC
07:29:58 *** Alberth has joined #openttd
07:29:59 *** ChanServ sets mode: +o Alberth
08:31:40 *** Progman has joined #openttd
09:04:59 *** sla_ro|master has joined #openttd
09:17:10 *** andythenorth has joined #openttd
09:17:20 <andythenorth> Road Hog is a song in original game music
09:17:23 <andythenorth> did not know that
09:25:11 *** gelignite has joined #openttd
09:26:56 *** stefino has joined #openttd
09:33:55 <Alberth> o/
09:34:41 <Eddi|zuHause> i only remember "an alien ate my railway"
09:38:38 *** Progman has quit IRC
09:44:12 *** Arveen has joined #openttd
09:46:12 *** stefino has quit IRC
09:46:28 *** stefino has joined #openttd
09:49:11 *** Arveen2 has quit IRC
10:28:56 *** synchris has joined #openttd
10:52:44 *** oskari89 has joined #openttd
11:01:11 <alluke> western metro opened finally after over year of delay
11:01:55 <alluke> could go drink beer there and test drive it
11:10:34 *** Stimrol has joined #openttd
11:12:16 *** FLHerne has joined #openttd
11:55:23 *** Stimrol has quit IRC
11:55:28 *** andythenorth has quit IRC
12:00:43 *** Cubey has joined #openttd
12:06:26 *** kaiserchief has joined #openttd
12:06:44 *** stefino has quit IRC
12:07:00 *** kaiserchief has quit IRC
12:25:02 *** Cubey has quit IRC
12:31:02 *** Gja has joined #openttd
12:39:19 *** HerzogDeXtEr has joined #openttd
13:03:29 *** Gja has quit IRC
13:17:15 *** Samu has joined #openttd
13:20:33 *** Stimrol has joined #openttd
13:54:41 *** Gja has joined #openttd
14:09:27 *** oskari89 has quit IRC
15:27:51 *** Flygon has quit IRC
15:34:39 *** Gustavo6046 has joined #openttd
15:56:42 *** gusta_000 has joined #openttd
15:57:49 *** Gustavo6046 has joined #openttd
16:00:57 <Samu> i'm failing to construct a widget
16:01:16 *** SgtStroopwafel_ has quit IRC
16:03:36 <Alberth> and it's so simple :(
16:05:16 <Samu> https://imgur.com/2K9tav9
16:05:19 <Samu> good vs bad
16:05:50 <Samu> i want that black hole to be filled with grey
16:08:05 <Samu> this->GetWidget<NWidgetStacked>(WID_RV_AIRCRAFT_ONLY)->SetDisplayedPlane(this->match_aircraft_type ? 0 : SZSP_HORIZONTAL);
16:08:28 <Samu> is it SZDP_HORIZONTAL or VERTICAL?
16:08:55 <Samu> SZSP
16:09:38 *** SgtStroopwafel_ has joined #openttd
16:09:45 *** Mahjong1 has joined #openttd
16:10:15 <Samu> bah, vertical looks worse
16:10:22 <Samu> so, it must be somehwere else, halp
16:12:35 <Alberth> just make a widget, don't mess with widget sizes
16:13:03 <Alberth> ^ which is just 1-2 lines in the window widget tree
16:14:46 <Alberth> widget stacks are making changing window layout, way more advanced than you need, probably
16:14:54 <Alberth> *are for
16:15:50 <Samu> there's already one specifically for trains
16:16:05 <Samu> and other for the other vehicles
16:16:15 <Samu> do you mean i need to make one specifically for aircraft?
16:17:03 *** Mahjong has quit IRC
16:17:13 <Samu> that's too much copy paste
16:17:27 <Samu> that was the way I had before, i was trying to simplify it
16:18:39 <Samu> static WindowDesc _replace_rail_vehicle_desc( WDP_AUTO, "replace_vehicle_train", 500, 140, WC_REPLACE_VEHICLE, WC_NONE, WDF_CONSTRUCTION, _nested_replace_rail_vehicle_widgets, lengthof(_nested_replace_rail_vehicle_widgets) );
16:18:57 <Samu> static WindowDesc _replace_vehicle_desc( WDP_AUTO, "replace_vehicle", 456, 118, WC_REPLACE_VEHICLE, WC_NONE, WDF_CONSTRUCTION, _nested_replace_vehicle_widgets, lengthof(_nested_replace_vehicle_widgets) );
16:19:35 <Samu> was trying to reuse replace_vehicle
16:25:35 <Alberth> ok
16:26:58 <Alberth> then you must either use a stack widget, or initialize widgets to 0 size that you don't want to see, while creating the tree
16:28:25 <Alberth> where stack widget is for dynamically changing the window
16:29:07 <Alberth> although it's the most complicated form, there are much simpler forms if the sizes don't change after construction
16:41:33 <Eddi|zuHause> alluke: only one year delay? in what utopian world do you live?
16:46:36 <Samu> NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_RV_MATCH_AIRCRAFT_TYPE), SetDataTip(STR_REPLACE_MATCH_AIRCRAFT_TYPE, STR_REPLACE_MATCH_AIRCRAFT_TYPE_HELP),
16:48:01 <Samu> NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_RV_MATCH_AIRCRAFT_TYPE), SetDataTip(STR_REPLACE_MATCH_AIRCRAFT_TYPE, STR_REPLACE_MATCH_AIRCRAFT_TYPE_HELP), SetResize(1, 0), SetFill(1, 1),
16:49:48 <Samu> gonna try again
16:50:38 *** ToffeeYogurtPots has joined #openttd
16:52:01 <Samu> meanwhile, this was my copy/paste method
16:52:02 <Samu> https://paste.openttdcoop.org/puhsjpjyc
16:56:22 <Samu> do AIs have access to this stuff too?
16:56:32 <Samu> they can change my settings this way?
16:56:36 <Samu> lel
16:58:15 *** mindlesstux has quit IRC
16:58:50 *** mindlesstux has joined #openttd
17:00:58 <Samu> do AIs have their own 'openttd.cfg' file for gui stuff? or ?
17:04:18 <Samu> i need to understand what happens when an AI 'clicks' 'Match aircraft type' button, are they gonna change my openttd.cfg file, or do they have their own virtual openttd.cfg file?
17:04:48 <LordAro> AIs can't change game settings
17:05:13 <Samu> well, but the way I implemented this, might be doing that
17:05:28 <LordAro> not sure about game scripts, but i'd imagine they're the same
17:05:42 *** supermop has joined #openttd
17:06:08 <supermop> yo
17:06:36 <Samu> IConsoleSetSetting("gui.autoreplace_match_aircraft_type", !_settings_client.gui.autoreplace_match_aircraft_type);
17:06:53 <Samu> this thing is what happens when clicking match aircraft typoe
17:08:29 <Samu> i didn't want to make this a company setting, i wanted each client to have their own preference
17:08:37 <Samu> but i worry about ais
17:09:47 <Samu> i dont want ais to change my preferences, wish i could test an ai
17:14:08 <Alberth> you changed checks in the replacement command ?
17:16:17 <Samu> what ?
17:16:43 <Samu> https://paste.openttdcoop.org/puhsjpjyc#line-42 at line 42
17:17:27 <Samu> must be a DoCommand?
17:19:09 <Samu> line 44 is checking directly from the _settings_client
17:19:18 <Samu> to set the button state
17:22:06 <Samu> line 31 as well
17:23:49 *** andythenorth has joined #openttd
17:23:53 <andythenorth> o/
17:24:02 *** supermop has quit IRC
17:24:06 <Alberth> if you changed a CoCommand, then the other clients must also know the setting, or they block the replace, and desync
17:24:13 <Alberth> o/ andy
17:24:38 <Alberth> *DoCommand
17:25:22 <Samu> hmm autoreplace is a giant DoCommand
17:25:46 <Samu> but the outcome is unchanged regardless of this setting
17:26:00 <Samu> it's only acting as a filter for the list
17:27:32 <Samu> if a client has match aircraft type disabled and the other does not, it won't matter in the deciding moment when the aircraft is being replaced
17:28:06 <Samu> doesn't depend on it
17:29:40 <Samu> i think i have a way to test this, brb
17:32:40 <Samu> it's a setting of this kind: having a client with drag & drop toggled on and another having it toggled off
17:32:47 <Samu> playing in the same company
17:37:57 <Alberth> I am surprised the replacement doesn't check for a compatible aircraft type when replacing
17:38:22 <Alberth> *replacement code
17:40:12 <Samu> testing replacement
17:40:16 <Alberth> hmm, perhaps it makes sense, at an airport with both helicopters and aircraft
17:41:16 <Samu> no desync so far, aircraft is being sent for replacement
17:41:41 <Samu> will see if it desync, i got server and client playing in the same company, but with different match aircraft type
17:42:00 *** Wormnest has joined #openttd
17:42:10 <Alberth> sure, gui doesn't desync in itself, a command must do something different at different machines
17:42:28 <Alberth> but if you didn't change that code, it should not desync
17:43:16 <Alberth> if you did change that code, you should make sure your changes are computed in the same way at all machines
17:48:02 <Samu> strange, aircraft isn't being replaced, what's happening :(
17:50:54 <Samu> oh, i see why
17:51:09 <Samu> trying to replace passenger with mail, that doesn't work
17:51:21 <Samu> better test without av8
17:56:58 <Samu> network game synchronization failed
17:57:09 <Samu> interesting, it desyncs
17:58:22 <Samu> i knew this was too good to be true
18:00:16 <Samu> really have to learn how to generate lists
18:06:42 <Samu> lines 11-16 are the cause of desync
18:06:55 <Samu> i wanna learn how to generate lists
18:10:21 *** Stimrol has quit IRC
18:10:30 <Samu> my first desync :(
18:10:35 *** Gustavo6046 has quit IRC
18:11:40 *** Stimrol has joined #openttd
18:22:59 *** Gja has quit IRC
18:23:05 <Samu> maybe this ain't too hard, give me some time, i'm trying to generate a list in another manner
18:23:11 <Samu> b back later
18:30:09 *** supermop has joined #openttd
18:36:42 <Samu> done
18:36:43 <Samu> yay
18:36:54 <Samu> trying desync
18:36:57 <Samu> brb
18:42:36 *** Gustavo6046 has joined #openttd
18:45:08 <Samu> no desync!
18:46:47 <Samu> https://paste.openttdcoop.org/p9hlizjtm
18:47:11 <Samu> now back to my other issue, about AIs being able to change my settings
18:49:02 <Samu> Alberth: halp :o
18:49:13 <Samu> AIs or GSs
18:49:47 *** supermop has quit IRC
18:59:38 *** glx has joined #openttd
18:59:38 *** ChanServ sets mode: +v glx
18:59:51 <Samu> case WID_BRAS_PLATFORM_DRAG_N_DROP: { _settings_client.gui.station_dragdrop ^= true;
19:00:54 <Samu> do AIs have access to this button at all?
19:01:19 <Samu> what can AIs do afterall? :( i'm so depressed
19:12:27 *** Breckett has joined #openttd
19:25:35 <Samu> hmm instead of match aircraft type, i got an even better idea
19:26:51 <Samu> list all, list heli, list small, list large, list matching aircraft type
19:45:44 <DorpsGek> Commit by translators :: r27931 trunk/src/lang/portuguese.txt (2017-11-18 19:45:38 +0100 )
19:45:45 <DorpsGek> -Update from Eints:
19:45:46 <DorpsGek> portuguese: 7 changes by neuralshock
19:46:49 *** Gja has joined #openttd
20:06:28 *** Progman has joined #openttd
20:10:53 *** Tillerbob has joined #openttd
20:12:11 <Tillerbob> I have a really dumb question. I've been having issues with joining loading bays to oil wells and iron ore. I have put them all around and both types of bay. Any thoughts on what I'm doing wrong?
20:15:00 <Alberth> euhm, what do you want to transport?
20:15:11 <Alberth> with what type of vehicles?
20:15:33 <Alberth> laoding bays -> trucks?
20:15:37 <Tillerbob> I go with the oil wells. I have the oil trucks. The loading bays just say Accepts: Nothing
20:16:00 <Tillerbob> Same with the ore mine. I put the bay next to it and it says Accepts: Nothing
20:16:04 <Alberth> yes, you get oil, you don't bring it
20:16:18 <Tillerbob> <--- Dumbass
20:16:22 <Alberth> :)
20:16:30 <Tillerbob> It's been a long day already. Thanks...
20:16:36 <Alberth> enjoy the game
20:16:39 <Tillerbob> I've been fighting the most obvious thing ever. Appreciate the helpt
20:17:37 <Alberth> this is oneof those problems that just must have a stupid answer
20:17:51 <Alberth> and you're just blind
20:17:57 <Alberth> happens to all of us :)
20:22:01 *** supermop has joined #openttd
20:29:06 *** supermop_home has joined #openttd
20:43:13 <Samu> subsidies for cargo dist topic is hot
20:44:37 <Samu> i'd also like an option to completely disable subsidies
21:05:24 <Alberth> just ignore them
21:05:37 <Alberth> maybe you can disable the news items
21:06:31 <Alberth> additional income is non-relevant anyway
21:13:20 *** supermop_home has quit IRC
21:20:29 *** PressureLine has joined #openttd
21:26:56 *** supermop has joined #openttd
21:27:04 <PressureLine> wjee
21:28:29 *** Tillerbob has quit IRC
21:31:29 *** Breckett has quit IRC
21:39:17 <PressureLine> i think my project for the day should be "all default industries on one map!"
21:42:37 <Alberth> 64x64 map :)
21:42:52 <PressureLine> tempting
21:43:16 <Alberth> oh, it's fun for a few times
21:43:25 <PressureLine> but. I prefer larger maps, so when im making a grf for me, I don't really care about 64^2 maps
21:43:33 <Alberth> no room for large stations
21:44:22 <Alberth> you can always do 128x1024 or so
21:45:01 <Alberth> bit insanely long :)
21:46:45 <PressureLine> https://i.imgur.com/yPDDrMn.png
21:48:01 <PressureLine> eventual goal in that game is to be running 10TL mainline trains
21:49:13 <PressureLine> 64x4096
21:49:18 * PressureLine nods sagely
22:02:23 <Alberth> ieks
22:02:25 *** Alberth has left #openttd
22:08:19 <PressureLine> maybe i'll have a play around with OpenGFX+ Industries
22:09:17 *** Gustavo6046 has quit IRC
22:09:51 *** Gustavo6046 has joined #openttd
22:09:51 *** FLHerne_ has joined #openttd
22:13:28 *** FLHerne has quit IRC
22:13:55 *** SgtStroopwafel_ has quit IRC
22:15:05 *** SgtStroopwafel_ has joined #openttd
22:29:57 <Samu> well, in competitive servers, it matters
22:30:03 <Samu> about subsidies
22:30:34 *** sla_ro|master has quit IRC
22:33:17 <Samu> SQGSWindow.DefSQConst(engine, ScriptWindow::WID_RV_MATCH_AIRCRAFT_TYPE, "WID_RV_MATCH_AIRCRAFT_TYPE");
22:33:36 <Samu> what is this SQGSWindow stuff supposed to do?
22:34:00 <Samu> src/script/api/game/game_window.hpp.sq
22:35:29 <Samu> seems like a whole different coding style, these .sq files
22:43:37 *** mczapkie has joined #openttd
22:43:49 <mczapkie> Hello
22:45:30 *** mindlesstux has quit IRC
22:46:09 *** mindlesstux has joined #openttd
22:53:14 <mczapkie> I can change allow_subsidy option to enumerate (off, manual, all)
22:53:32 <andythenorth> lo mczapkie
22:54:19 <mczapkie> Hello Andy
22:57:59 <mczapkie> I was answering to @Samu
22:59:27 *** Stimrol has quit IRC
23:06:24 *** Laedek_ has quit IRC
23:07:17 *** Laedek has joined #openttd
23:09:10 *** SgtStroopwafel_ has quit IRC
23:11:00 *** Pressure_Line has joined #openttd
23:11:56 <Samu> hi mczapkie plz do
23:13:08 *** kais58 has quit IRC
23:13:58 *** synchris has quit IRC
23:13:58 *** kais58 has joined #openttd
23:17:30 *** PressureLine has quit IRC
23:17:30 *** Smedles has quit IRC
23:17:46 *** Smedles has joined #openttd
23:18:55 *** gelignite has quit IRC
23:27:50 <mczapkie> Samu, good idea, hovewer I'm not sure if this patch would be implemented in trunk
23:41:52 <Samu> :)