IRC logs for #openttd on OFTC at 2018-08-01
            
00:00:02 *** Progman has quit IRC
00:08:54 *** Wormnest has quit IRC
00:10:03 <nielsm> haha, spent waaay too long on this, but got it working!
00:10:24 <nielsm> ms hyper-v doesn't seem to have any sound driver support, so testing sound stuff from linux with it is hard
00:11:01 <nielsm> so now I've managed to set up a loopback alsa device, and recording from that with darkice, streaming to a local icecast server, and then playing that stream on my host
00:11:14 <nielsm> of course there's several seconds delay, but IT WORKS!
00:28:45 <LordAro> good lord
00:28:48 <LordAro> nielsm: bad, stop that
00:29:38 <nielsm> but I can't get the linux build to include libtimidity.cpp in the build ?!
00:32:21 <nielsm> it's adding -DLIBTIMIDITY to CFLAGS and CXXFLAGS, and -ltimidity to LIB
00:32:34 <nielsm> but not music/libtimidity.o to OBJS_CXX
00:32:34 <LordAro> ha
00:32:57 <nielsm> sources.list does look right tho
00:42:52 <nielsm> https://0x0.st/sWLv.png :(
00:44:38 <LordAro> :(
00:44:55 <nielsm> I probably broke something with music file paths
00:45:01 <nielsm> during all the other music code reworking
00:45:56 <nielsm> so two issues to fix here: 1) build system partially ignoring libtimidity, 2) music file paths are passed wrong
00:46:28 <nielsm> and it's long past bedtime, gn
00:54:42 *** nielsm has quit IRC
03:21:33 *** snail_UES_ has joined #openttd
03:37:39 *** Mazur has joined #openttd
03:47:41 *** Mazur has quit IRC
04:42:24 *** Supercheese has joined #openttd
05:13:08 *** glx has quit IRC
05:39:08 *** mindlesstux has quit IRC
05:39:42 *** haudrauf has quit IRC
05:41:01 *** haudrauf has joined #openttd
05:43:47 <snail_UES_> anybody here? :P
06:29:56 *** Supercheese has quit IRC
06:30:18 *** Supercheese has joined #openttd
06:33:15 *** snail_UES_ has quit IRC
07:32:23 *** Supercheese has quit IRC
07:32:45 *** Supercheese has joined #openttd
07:34:31 *** Smedles has quit IRC
07:35:03 <LordAro> TrueBrain: that is much more friendly than i would've been :>
07:35:11 <TrueBrain> I know; that is why I replied :P
07:35:56 <TrueBrain> hmmm .. why did nobody review #6868 yet, but newers of similar content were reviewed?
07:35:57 <TrueBrain> that is odd
07:41:08 <TrueBrain> right, off to work!
08:30:08 *** andythenorth has joined #openttd
08:31:45 <andythenorth> OpenBU.com
08:31:54 <andythenorth> oof wrong window
08:55:21 <peter1138> Nothing there though.
09:39:19 *** Supercheese has quit IRC
10:18:19 <planetmaker> moin
10:20:09 <peter1138> Hi
10:21:45 <planetmaker> he, this openbu guy is funny. He always has these funky ideas :D He's not new, though
10:35:10 <andythenorth> will it rain today?
10:35:36 <andythenorth> dislike cycling in rain
10:39:37 <V453000> I'd pay for rain
10:42:21 <andythenorth> hmm
10:42:22 <andythenorth> bbl
10:42:24 *** andythenorth has quit IRC
11:02:23 *** andythenorth has joined #openttd
11:22:39 <peter1138> That moment when you realise you didn't push the thing you were working on on your laptop.
11:33:54 *** gentz has joined #openttd
11:34:36 <gentz> Hello OpenTTD irc, hopefully some of you have knowledge with the openttd codebase
11:34:46 <gentz> My goal is as follows:
11:35:37 <gentz> I want to implement a "Smart" level terrain feature, which, if the user bumps into the terraform limit, it restarts that terraform the next day
11:36:13 <dihedral> so if the user does not bump into that limit, the limit will not be reset the next day?
11:36:24 <dihedral> so you are looking for a daily terraforming limit?
11:36:49 <gentz> If the user doesn't bump into the limit, then it is done teraforming
11:38:01 <gentz> Every tried to level a mountain in a server with a daily terraforming limit? It's very inconvenient
11:38:29 <dihedral> that's what the terraforming limit is there fore
11:38:32 <dihedral> ... for
11:38:39 <gentz> Anyways, I added a function called "SmartLevelDailyLoop", and it get's called every day
11:39:21 <gentz> But I'm not sure how to swich to the appropriate companies and issue a new "CmdLevelLand" for them.
11:40:29 <gentz> dihedral, I'll still be respecting the limits imposed. Only difference is that now I won't have to keep re-issuing the command repeatedly
11:42:48 <dihedral> now i get what you are after
11:42:51 <dihedral> ha!
11:43:48 <dihedral> i was under the imression you wanted to further restrict the terraforming limit, as to only reset it once per day - i.e. limit is not per terraforming action but per day
11:45:23 <LordAro> there's a config variable to increase/remove the limit
11:45:28 <LordAro> much better to use that
11:46:33 <dihedral> ^ what he sais
11:47:19 <gentz> I'm not the one running the server. I get that intention is to stop people from leveling the world to sea level, but I only want to lower the height of a couple mountains without getting carpel tunnel syndrome
11:47:33 <gentz> *I get that their
11:47:59 <LordAro> maybe the server owner wants to stop people from leveling mountains
11:49:09 <gentz> Well, then It's an ineffective counter measure. Currently I just use an autoclicker + the lower land tool
11:52:43 <dihedral> perfect - you have a solution :-)
11:53:03 <andythenorth> 64 cargo FIRS then?
11:53:20 <LordAro> i believe the original intention of the feature was to stop accidental/abusive "level the entire map"
11:54:31 <dihedral> gentz, you do not need to implement that feature server side, it would suffice for you to patch your client
11:54:48 <gentz> I'm not trying to implement it server side.
11:55:18 <dihedral> then there is no need to loop over every company
11:55:20 <dihedral> only your own
11:56:34 <dihedral> but quite frankly, I personally dislike the idea
11:56:38 <gentz> But don't I need to loop over all of them to get access to my "Company*"?
11:57:11 <dihedral> I find it a lot more challenging and interesting to build with unchanged terrain and minimize the need for terraforming
11:57:22 <LordAro> _current_company, or something iirc
11:57:59 <dihedral> the price for terraforming should be increased drastically :-P
11:58:16 <dihedral> that would actually force people to use those tools less
11:58:30 <gentz> They can increase the price if they want to (the server operators), I just want to level mountains till that happens :p
11:58:32 <peter1138> _local_company
11:58:40 <dihedral> hehe - terraforming is not a fixed cost but rather percentage of your bank balance
11:59:21 <dihedral> that would actually be a nice idea - make it 10% and you have a natural limit :-D
12:01:08 <LordAro> terraforming EU style :)
12:01:13 <dihedral> :-D
12:01:27 <dihedral> i genuinly like that thought
12:04:22 <dihedral> LordAro, where you first have to get the permission for the docmd before it gets scheduled and executed?
12:04:27 <dihedral> with a random factor
12:04:50 <dihedral> "Your request to build the 5th Trainsstation in x has been denied"
12:04:54 <LordAro> hey, people wanted a more realistic financial model
12:04:57 <LordAro> turn it up to the max
12:05:18 <andythenorth> add more politics too
12:05:31 <andythenorth> and geographical borders
12:05:32 <dihedral> that would be easy: initial loan = 0, buy credit with paypal and transfer it into the game with a bot and the ai
12:05:40 <andythenorth> so you have to do different compliance in different areas
12:05:52 <andythenorth> and territories also re-weight industry probability
12:05:59 <andythenorth> and mess with payment curves
12:06:02 <dihedral> hehe
12:06:06 <andythenorth> random offsets from the defaults
12:06:27 <andythenorth> then all those track sets with 14 kinds of electrification make sense
12:06:37 <gentz> Hmmm, another question, I see "DoCommandP" gets sent 5 parameters from terraform_cmd.cpp, but I can only find 2 definitions of it in command.cpp, one which wants 2 parameters and another which wants 7
12:06:40 <dihedral> :-D
12:06:43 <andythenorth> eh why don't the railtype grfs also have types for different signalling systems?
12:06:49 <andythenorth> that affects speed
12:06:56 <andythenorth> and we could have them adjust the pathfinder
12:06:59 <gentz> Anyone know where the third definition is?
12:07:59 <dihedral> what if stations never belong to a company but to the town, and you can only service the stations a town builds
12:08:25 <LordAro> gentz: probably default parameters, check the relevant header file
12:09:06 <LordAro> http://docs.openttd.org/command__func_8h.html#af56e7f6f41e2c8ba64abe224f5ca2b9d alternatively...
12:09:28 <LordAro> ...i realise that link isn't all that helpful
12:09:33 <LordAro> but the documentation in general probably is
12:09:35 <LordAro> maybe
12:12:13 <peter1138> Hmm, can I track how many times something has occurred in the past 24 hours (rolling) without keeping a history of every time it has occurred?
12:12:51 <LordAro> map of thing to number?
12:19:06 *** andythenorth has left #openttd
12:40:55 <gentz> Network-game sychronization failed...
12:40:56 <gentz> damn
12:41:14 <gentz> I've implemented it wrong :/
12:44:25 <gentz> And in local games: "Can't level land here... land sloped in wrong direction"
12:50:18 <gentz> The thing is making docks... docks with no water
12:50:48 <gentz> https://i.imgur.com/iMaBSiV.png
12:51:59 <gentz> Err locks, and they do have water. Forgot abase was disabled.
13:20:01 *** gnu_jj has quit IRC
13:46:48 *** gnu_jj has joined #openttd
13:52:09 <gentz> Hold on, that is abase... hmm for some reason I remember the water brighter
13:53:28 <peter1138> I recommend TTD graphics ;)
13:58:22 <LordAro> ^
14:22:13 <gentz> Can someone explain to me why the CcTerraform callback isn't called when it fails to terraform (and gives a read message)?
14:25:46 <gentz> Well, it's called in single player games
14:26:01 <gentz> Not multiplayer games however... augh
14:34:00 <peter1138> In multiplayer the command is sent to the server and there is no immediate response.
14:35:31 <gentz> So, when the "only_sending" flag in DoCommandP is set true, I wont see the response?
14:36:05 *** snail_UES_ has joined #openttd
14:36:41 <gentz> Time to add an "always run" callback, I guess :/
14:39:08 <peter1138> Good luck with that.
14:39:57 <peter1138> Anyway, the callback should be called when the command comes back to you from the server.
14:40:46 <gentz> I want to add failed commands to a vector of them, so that I can keep retrying them
14:41:21 <gentz> When they come back (if they do) they don't appear to be calling my callback if it failed
14:42:16 <gentz> (I know my callback isn't being called cause I can't see the message in the log, nor hear the sound terraforming makes)
14:46:31 <peter1138> Looking at the code, I suspect the server also needs to know about the callback.
14:46:59 <gentz> By my callback I mean "CcTerraform"
14:47:12 <peter1138> Ah, modifying existing callback.
14:48:39 <gentz> I suspect there is a way to examine all the commands we are getting back?
14:56:20 <gentz> It's 6am and I've been working at this way too long. I think I'll go to bed and hope a sudden understanding of how openttd works internally pops into my head. (I wish that was how it works)
15:03:56 <peter1138> Nah, it'll keep you awake wondering, and frustrated.
15:10:01 *** snail_UES_ has quit IRC
15:12:04 <dihedral> you go to bed at 6 AM?
15:13:08 <peter1138> Well he started this around 3.5 hours ago...
15:13:18 <peter1138> And that's just the IRC side.
15:13:32 <peter1138> "A quick fix" no doubt.
15:16:26 <dihedral> hehe
15:23:31 <peter1138> Waking up in the morning... "well, maybe an autoclicker isn't so bad"
15:31:45 <dihedral> terraforming a mountain is bad!
15:31:57 <dihedral> regardles of the method
15:46:43 *** nielsm has joined #openttd
15:49:21 <peter1138> Morning.
15:49:57 <peter1138> dihedral, know anything about ASP.NET Identity, Single Sign-On, and how to meld it all together?
15:50:50 <nielsm> wazza
15:56:33 <dihedral> i've worked with asp, and with single sign on separate systems however
15:56:35 <dihedral> :-P
15:56:53 <dihedral> never touched .net or asp.net identity
15:57:03 <dihedral> what'cha got?
15:58:17 *** sim-al2 has quit IRC
15:59:02 *** Alberth has joined #openttd
15:59:02 *** ChanServ sets mode: +o Alberth
15:59:06 <Alberth> o/
15:59:44 <peter1138> Currently I've got some kind of .net forms authentication
16:02:43 <Alberth> sounds dangerous
16:06:02 <peter1138> Pretty much. It's mixed with 2FA authentication, token-based auth and web services / non-web backend programs.
16:07:46 <dihedral> my contact to sso was mainly shibboleth and cas
16:08:04 <dihedral> a rather simple approach really
16:08:19 <dihedral> but that will not help you, unless you want to reinvent the asp.net wheel for sso
16:12:04 *** cHawk has quit IRC
16:14:24 <nielsm> okay why does timidity (the cmdline program) just produce silence here
16:17:41 <dihedral> have you turned up the volume?
16:17:58 <nielsm> I'm having it dump to a wav file and the wav file is zero all the way through
16:19:20 <nielsm> trying to have it use freepats, but it also complains about no instruments being mapped to all the various programs
16:20:21 *** frosch123 has joined #openttd
16:27:38 <nielsm> fluidsynth works
17:09:31 *** Wormnest has joined #openttd
17:12:10 <peter1138> It's a mess, isn't it.
17:13:59 <peter1138> I'm sure I had a patch once™ that implemented SDL_mixer support.
17:14:14 <LordAro> you should find that
17:14:23 <nielsm> there is a patch somewhere that uses fluidsynth as a library to render music
17:14:42 <LordAro> i remember that, should be PR'd, imo
17:14:45 <nielsm> https://github.com/OpenTTD/OpenTTD/issues/6611
17:14:49 <peter1138> Or at least, someone else did. Hmm.
17:16:03 <peter1138> Hmm, fluidsynth is nicer than timidity anyway.
17:39:43 <nielsm> so did anyone patch nml yet? :P
18:21:12 *** nielsm has quit IRC
18:24:58 *** Progman has joined #openttd
18:41:37 *** Wormnest has quit IRC
19:02:33 *** Wormnest has joined #openttd
19:06:10 *** Progman has quit IRC
19:17:43 *** innocenat has joined #openttd
19:41:23 *** andythenorth has joined #openttd
19:42:23 <Alberth> o/
19:44:27 <andythenorth> hi
19:56:44 <andythenorth> such cat
20:26:38 *** tokai|noir has joined #openttd
20:26:38 *** ChanServ sets mode: +v tokai|noir
20:33:37 *** tokai has quit IRC
20:34:59 *** nielsm has joined #openttd
21:07:49 *** mindlesstux has joined #openttd
21:18:22 *** frosch123 has quit IRC
21:57:30 *** ToBeFree has joined #openttd
22:03:02 *** Wolf01 has joined #openttd
22:03:13 <Wolf01> Moin
22:03:19 <andythenorth> yo Wolf01
22:03:30 <andythenorth> which technic 2018 sets you buying?
22:03:50 <Wolf01> Everyone
22:07:04 *** ToBeFree has quit IRC
22:08:50 *** Progman has joined #openttd
22:20:55 *** Alberth has left #openttd
22:21:11 *** glx has joined #openttd
22:21:11 *** ChanServ sets mode: +v glx
22:26:26 <andythenorth> I don't need a giant red crane in my house
22:29:42 <Wolf01> I do, I need it to move the boxes up and down from the top of the wardrobe
22:31:16 <Wolf01> https://www.brothers-brick.com/2018/08/01/the-biggest-lego-technic-set-ever-42082-rough-terrain-crane-review/
22:41:20 <Wolf01> Also, we'll might have another grf for NRT
22:48:27 *** nielsm has quit IRC
22:54:17 *** sim-al2 has joined #openttd
23:19:21 <andythenorth> bed
23:19:22 *** andythenorth has left #openttd
23:35:21 <Wolf01> Me too
23:35:24 <Wolf01> 'night
23:35:32 *** Wolf01 has quit IRC
23:49:30 *** Progman has quit IRC