IRC logs for #openttd on OFTC at 2017-03-08
⏴ go to previous day
00:09:16 *** jonty-comp has joined #openttd
00:17:21 *** FLHerne has joined #openttd
00:24:02 *** HerzogDeXtEr1 has joined #openttd
00:26:22 *** sim-al2 has joined #openttd
00:46:14 *** Cybert1nus has joined #openttd
01:34:25 *** markasoftware has joined #openttd
01:38:00 *** supermop__ has joined #openttd
04:59:03 *** ChanServ sets mode: +v tokai
08:30:27 *** smoke_fumus has joined #openttd
08:44:31 *** Biolunar has joined #openttd
09:18:51 *** gelignite has joined #openttd
09:26:46 *** ZirconiumX has joined #openttd
09:38:00 <ZirconiumX> I'm attempting to build OpenTTD on a raspberry pi. This ought to be an interesting exercise in waiting.
09:38:10 <ZirconiumX> (dedicated server)
09:45:55 *** supermop has joined #openttd
09:54:55 <Samu> ST2, your server kicked me for some weird reasons
09:56:32 <Samu> it decided to change my name "gato preto Xarick" to "Otken" upon join
09:57:07 <Samu> I was never Otken, never used that name
10:08:07 <crem> Maybe you just don't remember.
10:08:55 <Samu> I am 100% certain I never used "Otken", the server decided to rename me to that
10:10:18 <Samu> I've seen someone named Otken yesterday in the server, but that's it
10:11:46 <Samu> it wrongly renamed me to Otken is the issue hre
10:12:53 <crem> I still think it did that rightfully.
10:16:54 <Samu> do you work on btpro, crem?
10:17:11 <Samu> i never used "Otken", that's one thing I can garantee
10:17:22 <Samu> the server messed up somehow
10:17:50 <Samu> don't know if you have access to logs, to see what happened
10:24:09 <crem> That sounds unplausible. :)
10:25:46 <Samu> whatever, doesn't matter
10:26:04 <Samu> the second time I joined with "gato preto Xarick" it didn't rename me
10:56:51 *** supermop has joined #openttd
11:45:11 *** supermop_ has joined #openttd
11:50:42 *** JacobD88 has joined #openttd
12:36:47 <Samu> i'm a terrible bit wise mather
13:17:50 *** TheMask96 has joined #openttd
13:20:24 *** maciozo has joined #openttd
13:30:27 <Samu> I did it, yay, i had to store both
13:30:45 <Samu> _transparency_opt and _transparency_lock
13:37:06 *** gelignite has joined #openttd
13:48:47 <Samu> there's a difference between 0 and NULL, let's hope it accepts NULL
13:50:08 <Samu> 0 - nothing is transparent, NULL - I didn't even start yet
13:50:32 <__ln__> what language are you talking aboot?
13:51:14 <Wolf01> Harrrr, let's the infamous pirate DeMorgan haunt you
13:52:05 <Samu> just did it for building a dock
13:52:43 <Samu> now, for all other cases... ugh... have to identify such situations 1 by 1
14:27:38 *** sla_ro|master has joined #openttd
14:45:57 <__ln__> they probably didn't mean it that way, and the tweet has been removed now... but pretty amazing
15:18:49 *** chomwitt has joined #openttd
15:43:42 *** sla_ro|master has joined #openttd
16:18:16 <Wolf01> Meh... the remove overlay button from a plugin disappeared from firefox :|
16:23:31 <supermop_> ok so have a few isr looking depots to add to docklands, now need to draw a few variants of the chips looking ones
16:26:51 *** JacobD88 has joined #openttd
16:42:40 <Samu> darn window classes window by id, widgets and nested crap
16:55:04 <Samu> why is it so hard to find the cases where windowses are focused
16:55:23 *** Alberth has joined #openttd
16:55:23 *** ChanServ sets mode: +o Alberth
16:57:38 <Samu> Alberth: are you the windows/widget stuff in openttd expert? :o
17:06:02 <Alberth> I wrote some of the stuff
17:11:43 <Samu> HandlePlacePushButton is probably what I'm looking for
17:20:33 <Alberth> search through all files for the function definition, when you found it, you found it!
17:21:10 <Alberth> otherwise, I have absolutely no idea what that function does
17:21:25 <Alberth> probably somerhing with push buttons
17:30:58 <Samu> i'm working with the dock toolbar gui at the moment, trying to implement this "smart" transparency
17:31:37 <Samu> ship depot button is behaving different than all the others...
17:33:23 <Samu> i click on it, transparency is set, if i click it again, it closes, but the transparency doesn't revert
17:33:45 <Samu> seems like there is a closing method that wasn't taken care
17:36:02 <Samu> it was probably my error, trying again, brb
17:36:54 <Samu> nop, still behaves wrong, grrr
17:39:57 <Samu> it was missing in the code, i had to write a bit of it
17:40:40 <Samu> dock toolbar is finished :)
17:45:29 <supermop_> what do depots have to do with transparency?
17:46:29 <Alberth> or why does it gets NULL assigned?
17:47:15 <Samu> because i can modify the transparency settings while I'm building
17:47:43 <Samu> and to better adapt between the old, the new and the modified
17:48:53 <Alberth> I am not even sure we talk about the same code :p
17:51:19 <Samu> if i start building, i start the temporary transparency which makes those variables non-null anymore
17:51:56 <Samu> if, in the middle of build, i toggle some transparency setting, lines 145 and 153 will act upon it
17:52:59 <Samu> if using NULL is wrong, then i dunno what to do
17:53:37 <Samu> 0 means that nothing is transparent, which can certainly be a temporary value
17:58:14 <Samu> do you think it could be 0? now that i'm looking at it more closely... perhaps it can? hmm
17:59:47 <Samu> how would i detect that I have started the temporary transparency?
18:02:19 <Alberth> NULL is likely interpreted as 0
18:02:49 <Alberth> you can of course always add another variable to denote whether you started or not
18:07:51 *** ZirconiumX has joined #openttd
18:08:21 <ZirconiumX> In case anybody was morbidly curious, the RPi build of OpenTTD took about 3 hours.
18:10:26 <Wolf01> But the most important question is: does it work well as dedicated server?
18:22:20 <Samu> i got this bugged yet, after all
18:25:17 <ZirconiumX> Wolf01: Well, I naively built with LTO, and my pi ran out of memory.
18:25:26 <ZirconiumX> So now I gotta repeat the process without LTO
18:28:01 <Samu> it can't be 0 t.t, i need another variable
18:32:47 <supermop_> Is there any reason for someone to ever want to change depot styles to have fewer styles?
18:33:26 <supermop_> like if i have 8 waytypes with 8 types of depot, would someone want a param to make them all the same style of depot?
18:35:56 <Alberth> it's perhaps simpler to automagically build the correct type
18:37:00 <supermop_> Alberth: but will someone out there want the non corect type?
18:37:28 <Alberth> I have no doubt that person exists
18:37:41 <supermop_> and is it worth it to have a param
18:38:07 <Alberth> for every button in openttd, there is at least one person that wanrts an extra setting for it
18:39:01 <Alberth> I would say, the grf decides. Some authors believe that the user should be in control, other authors believe they know best
18:40:12 <Alberth> for me personally, I probably will not even bother playing with road types or tram types, I am not a modeller person
18:41:02 <Alberth> people that care for such things may also prefer authentic depots
18:41:52 *** HerzogDeXtEr has joined #openttd
18:41:59 <supermop_> Alberth: some people may want them visually distinct to tell what is ROAD and what is ELRD, some people might want them to all match?
18:42:13 <supermop_> NRT allows depots based on year too
18:49:15 <supermop_> i feel like the people who want to model things in detail though would want to be able to build certain styles regardless of year
18:50:40 <Alberth> every player wants something else :p
18:51:05 <Alberth> ie you can't make everyone happy
18:51:39 <Alberth> thus everyone uses a different subset of grfs, which are useful to him/her
18:51:54 *** frosch123 has joined #openttd
19:02:55 *** Progman has joined #openttd
19:04:41 *** Wormnest has joined #openttd
19:11:37 *** supermop__ has joined #openttd
19:11:41 <ZirconiumX> Considering trying to build a NoAI.
19:11:47 <ZirconiumX> Another one, anyway
19:12:47 <ZirconiumX> LordAro: if you'll blow the dust off AroAI
19:13:13 <Samu> can't even use them like I want
19:13:50 <LordAro> i'd probably start from scratch if i did
19:14:06 <LordAro> i dare not look at the code, it'll be awful
19:14:15 <LordAro> Samu: how do you want to use them?
19:14:39 <frosch123> LordAro: what does it do?
19:14:48 <LordAro> frosch123: fixes a warning with clang(3.9)
19:15:13 <LordAro> you have no idea how often i have to remind people of that
19:15:26 <planetmaker> oh, by the hour, I'd recon :P
19:16:15 <ZirconiumX> Since you're all devs, what's the formula for profit?
19:16:20 <Samu> window class management is a mess for me
19:16:33 <ZirconiumX> It's more cargo over more distance, faster right? Any of these makes you more money
19:16:40 <Samu> window class, or window id, :(
19:16:48 <Samu> don't even know what is what
19:17:05 <frosch123> why does usa switch to dst on the 12th this year? isn't it usually the first sunday in march?
19:17:07 <planetmaker> samu the difference is like family name vs. given name
19:20:28 <Samu> i don't understand widgets, windows class, windows id, parent, child
19:20:29 <ZirconiumX> Also, LordAro, I thought you'd disabled +g
19:20:48 <Samu> and the 999 ways to close them
19:21:32 <Alberth> that many? I thought there was only one, ie "delete w"
19:22:07 <Samu> some of them don't close because it's a parent or a child or a related
19:22:21 <LordAro> ZirconiumX: oh, apparently i haven't
19:22:50 <Alberth> window class is like a family of windows, ie all train lists, or all depot windows
19:23:19 <Alberth> window id is a unique identifier within the class, so you can point to a specific depot window
19:23:49 <Samu> i can't use the asserts to track down if it was started, because of the way these windows are managed
19:23:58 <Samu> if the transparency was started
19:24:17 <Alberth> construction toolbars often have child windows. Press the 'station' button, and a child 'station picker window' opens
19:24:18 <Samu> they don't all follow the same rules
19:24:47 <Alberth> press the 'depot' or 'bridge' window and the depot build or bridge build window opens
19:25:03 <Alberth> a toolbar only allows one child window to open
19:25:17 <Alberth> so if you open one, all others get closed, usually
19:25:26 <Alberth> there might be a few exceptions here
19:25:41 <Alberth> object window comes to mind
19:25:55 <Samu> when i click build dock, then i click build ship depot, i get an assert... :(
19:26:17 <Samu> click build dock - starts transparency
19:26:25 <Samu> click ship depot - starts transparency
19:26:33 <Samu> the asserts catches that i'm starting it again
19:27:26 <Alberth> that seems like a good idea, one open child window from the ship build toolbar
19:28:22 <Alberth> so likely you should not just start transparency, but instead first check if the window is already open, and if not, then open it
19:28:25 <glx> when are you stopping transparency ?
19:29:22 <Alberth> glx: you skipped "why do you start transparency while building a dock" :)
19:30:05 <glx> well I guess it helps to see where to place it
19:31:18 <Samu> how to check if the window is already open
19:31:41 <glx> I think there's a function to search window class
19:31:46 <Alberth> something FindWindow ... ByClass or so
19:50:28 <Samu> i was really starting it twice
19:51:42 <Samu> yeah, the assert doesn't complain anymore
19:53:23 *** FLHerne has joined #openttd
19:54:13 <Samu> removed the one at line 113
19:56:34 <ZirconiumX> Ah, the joys of AI development
19:58:24 <ZirconiumX> Is there a list of used four character GetShortName() strings?
19:59:48 <frosch123> there uses to be one
20:01:53 <ZirconiumX> >last updated 2011-06-21
20:02:21 <frosch123> aparently there is also a wiki page
20:02:25 <planetmaker> there really hasn't been much AI development in the last years
20:02:52 <frosch123> the forum topic ends with the list moved to the wiki there
20:02:58 <frosch123> but, well, i guess bananas also has a list
20:16:07 *** Supercheese has joined #openttd
20:28:40 *** andythenorth has joined #openttd
20:29:51 <ZirconiumX> Okay, NoAI devs, who feels like helping me debug some code?
20:30:43 <ZirconiumX> Why does this never trigger?
20:30:55 * ZirconiumX says, as an event triggers.
20:31:43 <frosch123> there is an irc-bridge event
20:32:15 <ZirconiumX> How do I convert an AIEvent to string for debugging?
20:33:44 <frosch123> maybe it's possible to query the classname
20:33:52 <frosch123> but i do no know squirrel well enough
20:34:07 <ZirconiumX> Since "Don't know how to handle a 3" is not very helpful and may change.
20:35:42 <supermop__> andythenorth: a new road grf has appeared
20:35:45 <andythenorth> eh another NRT grf
20:36:23 <Supercheese> could make another one with insulting names, call it RudeTypes
20:36:24 <supermop__> we are trying to goad you in to rereleasing tonka trucks
20:36:25 <Samu> when to stop transparency asserts all over the place, t.t
20:36:54 <supermop__> do you have tonka as a brand of big toy mining trucks in UK?
20:36:59 <LordAro> ZirconiumX: i recommend stealing from other AIs :p
20:37:41 <ZirconiumX> Call me an ascetic, but I was planning to MIT license it
20:37:46 <ZirconiumX> So stealing is an issue
20:39:52 <supermop__> how does the tonka wikipedia page not have a single photo of the archetypal tonka truck
20:43:30 <andythenorth> I had generic brand, not tonka
20:43:34 <Samu> oh boy, i can't do this by the means of FindWindow
20:43:49 <andythenorth> there was a watercooler moment where they ran an actual mining truck off a quarry face
20:43:55 <andythenorth> alongside a tonka toy
20:43:59 <andythenorth> one survived, one didn’t :P
20:44:05 <Samu> i got to check which the cursor is active
20:44:25 <Samu> cursor mode, or whatever, hmmm grrr
20:44:59 <ZirconiumX> If AISubsidy.GetSourceType() returns SPT_TOWN, can I assume AISubsidy.GetDestinationType() will also return SPT_TOWN?
20:45:12 <ZirconiumX> And vice versa for SPT_INDUSTRY
20:45:31 <ZirconiumX> ...No, that wouldn't work for goods, would it?
20:46:31 <frosch123> gamescripts can spawn all kind of subsidies
20:46:42 <andythenorth> which seemed insane at the time, but eh, it’s a 25 year old life expired mining truck
20:46:45 <frosch123> pax from town to oilrig is fine
20:47:17 <frosch123> maybe we should make an oilrig focused gamescript
20:47:25 <frosch123> oilrigs have all kind of weirdnesses
20:47:32 <andythenorth> don’t they just :P
20:48:01 <ZirconiumX> I have a switch statement, inside a switch statement, inside a while loop, inside a while loop.
20:48:07 <andythenorth> to work like the rest of FIRS :P
20:48:20 <ZirconiumX> I should probably put that into a function.
20:50:18 <Supercheese> Refactor? Meh, I'd rather play Factorio once more time.... Refactorio
20:51:29 <supermop__> i feel like they had that ad here too
20:55:08 <andythenorth> maybe I should revisit farm vehicles :P
20:55:14 <andythenorth> they never panned out in HEQS though
20:55:34 <andythenorth> tractors have very little to offer the game, unless I OP them somehow
20:55:48 *** smoke_fumus has joined #openttd
20:56:57 <Supercheese> Give them a nice cargo decay bonus to offset the extreme slowness?
20:57:49 <supermop__> they are to look cute driving around
20:58:03 <ZirconiumX> Probably for the same reason there are car GRFs
20:58:12 <supermop__> they are overpowered in cuteness
21:01:34 <andythenorth> anyway good to see more grfs
21:01:46 <andythenorth> usually I am the consumer of the spec, not part of the creation
21:02:06 <Supercheese> other side of the aisle, eh?
21:03:50 <andythenorth> frosch123: I am trying to think of a funny name for that GS…Rig King doesn’t work :P
21:04:21 <andythenorth> nah, I have nothing
21:05:28 <frosch123> andythenorth: rigs of rods?
21:06:45 *** dihedral has joined #openttd
21:10:10 <ZirconiumX> Squirrel produces such wonderful errors.
21:10:23 <ZirconiumX> "Expression expected"
21:11:43 <andythenorth> provide an expression :)
21:12:30 <ZirconiumX> My brace counting skills are good enough to notice there's nothing missing
21:13:13 <Samu> I'm back to HandlePlacePushButton, apparently this is the holy grail function I need to work with, not windowses
21:13:27 <Alberth> I tpyically rely on the editor for counting brackets :)
21:14:20 <planetmaker> and 2nd order I rely on proper indentation :)
21:15:14 <ZirconiumX> And my indentation is also working
21:15:58 <ZirconiumX> I should prbably at least make the indentation consistent
21:16:07 <supermop__> hmm where should depot graphic switch go... switch what file the spriteset references, or switch which spriteset the graphics black asks for?
21:16:31 <Alberth> consistent indentation is quite useful in the long run
21:17:57 <ZirconiumX> Well, I found the missing bracket
21:17:58 <Samu> damn it, it's not the holy grail function, I'm so bad at this
21:18:31 <Alberth> isn't the holy grail non-reachable by definition?
21:19:33 <Alberth> no worries, I also always start at a wrong end :)
21:22:01 <andythenorth> I usually start at the right end, then discover I have the wrong goal :P
21:26:24 <Alberth> I tried to decipher your iron horse makefile, but it's so horrible, it may be quicker to ask you what it should do :)
21:26:30 <Alberth> somewhen next weekend?
21:27:10 <Alberth> mercurial info program may need a bit more extension, but we'll see
21:28:02 <andythenorth> weekends can be quite chores or family oriented :)
21:28:12 * andythenorth will see how it goes
21:28:43 <andythenorth> ‘what should it do’ is mostly set some shell parameters and then call some python scripts
21:28:48 <andythenorth> then zip the result
21:29:03 <andythenorth> preferably cross platform :P
21:30:20 <frosch123> andythenorth: btw. do you have the password to upload bananas stuff with the "openttdcoop" user?
21:30:42 <frosch123> cool, noone bothered to upload the past 2 released of ogfx :p
21:31:12 *** chomwitt has joined #openttd
21:34:52 <andythenorth> jenkins pipeline -> bananas
21:34:58 <andythenorth> if the tests greenlight, just ship it
21:35:29 <frosch123> some projects have a "make bananas" target
21:37:04 <andythenorth> could have jenkins call musa if the build works :P
21:37:19 <andythenorth> something seems odd about the makefile doing it, dunno why
21:39:26 <frosch123> so you can generated the text entries :p
21:40:33 <Alberth> if you want the scripts I wrote to make a new makefile, that would be an option too
21:40:55 <andythenorth> auto-generating makefile? o_O
21:41:15 <Alberth> not that automatic :)
21:41:20 <frosch123> i think in ogfx i added a generated makefile
21:41:22 <andythenorth> can make write the makefile as it goes? o_O
21:41:41 <frosch123> it is used to make the version detection work with both a hg checkout and a bundle
21:42:01 <frosch123> it is generated, if hg is present, otherwise it is used from the bundle
21:43:08 <frosch123> anyway, make checks whether any of the read Makefiles are targets, and then tries to rebuild them. if they change it, make starts over from the beginning
21:43:17 <frosch123> not sure whether you can make loops with that
21:49:57 <Alberth> doit: $(MAKE) doit :p
22:01:28 *** supermop_ has joined #openttd
22:05:42 *** ZirconiumX has joined #openttd
22:06:01 <ZirconiumX> I return, with 100% more BNC
22:10:45 *** Supercheese has joined #openttd
22:18:21 *** FLHerne has joined #openttd
22:26:00 <andythenorth> supermop: ROAD, HAUL….FARM? :P
22:26:12 <andythenorth> “cannot be built in towns”
22:49:48 *** FLHerne has joined #openttd
23:21:09 *** andythenorth has left #openttd
23:49:48 <Samu> gonna give up on this automated transparency thing, I can't do it
continue to next day ⏵