Back to Home / #openttd / 2018 / 08 / Prev Day | Next Day
#openttd IRC Logs for 2018-08-01

---Logopened Wed Aug 01 00:00:58 2018
00:29-!-Supercheese [] has quit [Read error: Connection reset by peer]
00:30-!-Supercheese [] has joined #openttd
00:30-!-Supercheese is "Supercheese" on #openttd
00:33-!-snail_UES_ [] has quit [Quit: snail_UES_]
01:32-!-Supercheese [] has quit [Read error: Connection reset by peer]
01:32-!-Supercheese [] has joined #openttd
01:32-!-Supercheese is "Supercheese" on #openttd
01:34-!-Smedles [~quassel@] has quit [Ping timeout: 480 seconds]
01:35<LordAro>TrueBrain: that is much more friendly than i would've been :>
01:35<TrueBrain>I know; that is why I replied :P
01:35<TrueBrain>hmmm .. why did nobody review #6868 yet, but newers of similar content were reviewed?
01:35<TrueBrain>that is odd
01:41<TrueBrain>right, off to work!
02:30-!-andythenorth [] has joined #openttd
02:30-!-andythenorth is "andythenorth" on #openttd
02:31<andythenorth>oof wrong window
02:55<@peter1138>Nothing there though.
03:39-!-Supercheese [] has quit [Quit: Valete omnes]
04:21<@planetmaker>he, this openbu guy is funny. He always has these funky ideas :D He's not new, though
04:35<andythenorth>will it rain today?
04:35<andythenorth>dislike cycling in rain
04:39<V453000>I'd pay for rain
04:42-!-andythenorth [] has quit [Quit: andythenorth]
05:02-!-andythenorth [~andytheno@] has joined #openttd
05:02-!-andythenorth is "andythenorth" on #openttd
05:22<@peter1138>That moment when you realise you didn't push the thing you were working on on your laptop.
05:33-!-gentz [] has joined #openttd
05:33-!-gentz is "realname" on #openttd
05:34<gentz>Hello OpenTTD irc, hopefully some of you have knowledge with the openttd codebase
05:34<gentz>My goal is as follows:
05:35<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
05:36<dihedral>so if the user does not bump into that limit, the limit will not be reset the next day?
05:36<dihedral>so you are looking for a daily terraforming limit?
05:36<gentz>If the user doesn't bump into the limit, then it is done teraforming
05:38<gentz>Every tried to level a mountain in a server with a daily terraforming limit? It's very inconvenient
05:38<dihedral>that's what the terraforming limit is there fore
05:38<dihedral>... for
05:38<gentz>Anyways, I added a function called "SmartLevelDailyLoop", and it get's called every day
05:39<gentz>But I'm not sure how to swich to the appropriate companies and issue a new "CmdLevelLand" for them.
05:40<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
05:42<dihedral>now i get what you are after
05:43<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
05:45<LordAro>there's a config variable to increase/remove the limit
05:45<LordAro>much better to use that
05:46<dihedral>^ what he sais
05:47<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
05:47<gentz>*I get that their
05:47<LordAro>maybe the server owner wants to stop people from leveling mountains
05:49<gentz>Well, then It's an ineffective counter measure. Currently I just use an autoclicker + the lower land tool
05:52<dihedral>perfect - you have a solution :-)
05:53<andythenorth>64 cargo FIRS then?
05:53<LordAro>i believe the original intention of the feature was to stop accidental/abusive "level the entire map"
05:54<dihedral>gentz, you do not need to implement that feature server side, it would suffice for you to patch your client
05:54<gentz>I'm not trying to implement it server side.
05:55<dihedral>then there is no need to loop over every company
05:55<dihedral>only your own
05:56<dihedral>but quite frankly, I personally dislike the idea
05:56<gentz>But don't I need to loop over all of them to get access to my "Company*"?
05:57<dihedral>I find it a lot more challenging and interesting to build with unchanged terrain and minimize the need for terraforming
05:57<LordAro>_current_company, or something iirc
05:57<dihedral>the price for terraforming should be increased drastically :-P
05:58<dihedral>that would actually force people to use those tools less
05:58<gentz>They can increase the price if they want to (the server operators), I just want to level mountains till that happens :p
05:58<dihedral>hehe - terraforming is not a fixed cost but rather percentage of your bank balance
05:59<dihedral>that would actually be a nice idea - make it 10% and you have a natural limit :-D
06:01<LordAro>terraforming EU style :)
06:01<dihedral>i genuinly like that thought
06:04<dihedral>LordAro, where you first have to get the permission for the docmd before it gets scheduled and executed?
06:04<dihedral>with a random factor
06:04<dihedral>"Your request to build the 5th Trainsstation in x has been denied"
06:04<LordAro>hey, people wanted a more realistic financial model
06:04<LordAro>turn it up to the max
06:05<andythenorth>add more politics too
06:05<andythenorth>and geographical borders
06:05<dihedral>that would be easy: initial loan = 0, buy credit with paypal and transfer it into the game with a bot and the ai
06:05<andythenorth>so you have to do different compliance in different areas
06:05<andythenorth>and territories also re-weight industry probability
06:05<andythenorth>and mess with payment curves
06:06<andythenorth>random offsets from the defaults
06:06<andythenorth>then all those track sets with 14 kinds of electrification make sense
06:06<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
06:06<andythenorth>eh why don't the railtype grfs also have types for different signalling systems?
06:06<andythenorth>that affects speed
06:06<andythenorth>and we could have them adjust the pathfinder
06:06<gentz>Anyone know where the third definition is?
06:07<dihedral>what if stations never belong to a company but to the town, and you can only service the stations a town builds
06:08<LordAro>gentz: probably default parameters, check the relevant header file
06:09<LordAro> alternatively...
06:09<LordAro>...i realise that link isn't all that helpful
06:09<LordAro>but the documentation in general probably is
06:12<@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?
06:12<LordAro>map of thing to number?
06:19-!-andythenorth [~andytheno@] has left #openttd []
06:40<gentz>Network-game sychronization failed...
06:41<gentz>I've implemented it wrong :/
06:44<gentz>And in local games: "Can't level land here... land sloped in wrong direction"
06:50<gentz>The thing is making docks... docks with no water
06:51<gentz>Err locks, and they do have water. Forgot abase was disabled.
07:20-!-gnu_jj [] has quit []
07:46-!-gnu_jj [] has joined #openttd
07:46-!-gnu_jj is "jj" on #openttd
07:52<gentz>Hold on, that is abase... hmm for some reason I remember the water brighter
07:53<@peter1138>I recommend TTD graphics ;)
08:22<gentz>Can someone explain to me why the CcTerraform callback isn't called when it fails to terraform (and gives a read message)?
08:25<gentz>Well, it's called in single player games
08:26<gentz>Not multiplayer games however... augh
08:34<@peter1138>In multiplayer the command is sent to the server and there is no immediate response.
08:35<gentz>So, when the "only_sending" flag in DoCommandP is set true, I wont see the response?
08:36-!-snail_UES_ [] has joined #openttd
08:36-!-snail_UES_ is "Jacopo Coletto" on #openttd
08:36<gentz>Time to add an "always run" callback, I guess :/
08:39<@peter1138>Good luck with that.
08:39<@peter1138>Anyway, the callback should be called when the command comes back to you from the server.
08:40<gentz>I want to add failed commands to a vector of them, so that I can keep retrying them
08:41<gentz>When they come back (if they do) they don't appear to be calling my callback if it failed
08:42<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)
08:46<@peter1138>Looking at the code, I suspect the server also needs to know about the callback.
08:46<gentz>By my callback I mean "CcTerraform"
08:47<@peter1138>Ah, modifying existing callback.
08:48<gentz>I suspect there is a way to examine all the commands we are getting back?
08:56<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)
09:03<@peter1138>Nah, it'll keep you awake wondering, and frustrated.
09:10-!-snail_UES_ [] has quit [Quit: snail_UES_]
09:12<dihedral>you go to bed at 6 AM?
09:13<@peter1138>Well he started this around 3.5 hours ago...
09:13<@peter1138>And that's just the IRC side.
09:13<@peter1138>"A quick fix" no doubt.
09:23<@peter1138>Waking up in the morning... "well, maybe an autoclicker isn't so bad"
09:31<dihedral>terraforming a mountain is bad!
09:31<dihedral>regardles of the method
09:46-!-nielsm [] has joined #openttd
09:46-!-nielsm is "Niels Martin Hansen" on #openttd #tycoon
09:49<@peter1138>dihedral, know anything about ASP.NET Identity, Single Sign-On, and how to meld it all together?
09:56<dihedral>i've worked with asp, and with single sign on separate systems however
09:56<dihedral>never touched .net or identity
09:57<dihedral>what'cha got?
09:58-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
09:59-!-Alberth [] has joined #openttd
09:59-!-Alberth is "purple" on #openttd
09:59-!-mode/#openttd [+o Alberth] by ChanServ
09:59<@peter1138>Currently I've got some kind of .net forms authentication
10:02<@Alberth>sounds dangerous
10:06<@peter1138>Pretty much. It's mixed with 2FA authentication, token-based auth and web services / non-web backend programs.
10:07<dihedral>my contact to sso was mainly shibboleth and cas
10:08<dihedral>a rather simple approach really
10:08<dihedral>but that will not help you, unless you want to reinvent the wheel for sso
10:12-!-cHawk [] has quit [Quit: Leaving]
10:14<nielsm>okay why does timidity (the cmdline program) just produce silence here
10:17<dihedral>have you turned up the volume?
10:17<nielsm>I'm having it dump to a wav file and the wav file is zero all the way through
10:19<nielsm>trying to have it use freepats, but it also complains about no instruments being mapped to all the various programs
10:20-!-frosch123 [] has joined #openttd
10:20-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd
10:27<nielsm>fluidsynth works
11:09-!-Wormnest [] has joined #openttd
11:09-!-Wormnest is "Wormnest" on #openttd
11:12<@peter1138>It's a mess, isn't it.
11:13<@peter1138>I'm sure I had a patch once™ that implemented SDL_mixer support.
11:14<LordAro>you should find that
11:14<nielsm>there is a patch somewhere that uses fluidsynth as a library to render music
11:14<LordAro>i remember that, should be PR'd, imo
11:14<@peter1138>Or at least, someone else did. Hmm.
11:16<@peter1138>Hmm, fluidsynth is nicer than timidity anyway.
11:39<nielsm>so did anyone patch nml yet? :P
12:21-!-nielsm [] has quit [Ping timeout: 480 seconds]
12:24-!-Progman [] has joined #openttd
12:24-!-Progman is "Peter Henschel" on #openttdcoop #openttd
12:41-!-Wormnest [] has quit [Ping timeout: 480 seconds]
13:02-!-Wormnest [] has joined #openttd
13:02-!-Wormnest is "Wormnest" on #openttd
13:06-!-Progman [] has quit [Remote host closed the connection]
13:17-!-innocenat [] has joined #openttd
13:17-!-innocenat is "innocenat" on #openttdcoop #openttd
13:41-!-andythenorth [] has joined #openttd
13:41-!-andythenorth is "andythenorth" on #openttd
13:56<andythenorth>such cat
14:26-!-tokai|noir [] has joined #openttd
14:26-!-mode/#openttd [+v tokai|noir] by ChanServ
14:26-!-tokai|noir is "Christian Rosentreter" on +#openttd
14:33-!-tokai [] has quit [Ping timeout: 480 seconds]
14:34-!-nielsm [] has joined #openttd
14:34-!-nielsm is "Niels Martin Hansen" on #openttd #tycoon
15:07-!-mindlesstux [] has joined #openttd
15:07-!-mindlesstux is "Tux" on #openttd #ipv6
15:18-!-frosch123 [] has quit [Ping timeout: 480 seconds]
15:57-!-ToBeFree [] has joined #openttd
15:57-!-ToBeFree is "Tobias "ToBeFree" Frei" on #debian #openttd @#freiwuppertal #https-everywhere #oolite-dev @#linux #oolite #oolite-ger
16:03-!-Wolf01 [] has joined #openttd
16:03-!-Wolf01 is "Wolf01" on #openttd
16:03<andythenorth>yo Wolf01
16:03<andythenorth>which technic 2018 sets you buying?
16:07-!-ToBeFree [] has quit [Quit: Leaving]
16:08-!-Progman [] has joined #openttd
16:08-!-Progman is "Peter Henschel" on #openttdcoop #openttd
16:20-!-Alberth [] has left #openttd []
16:21-!-glx [] has joined #openttd
16:21-!-glx is "Loïc GUILLOUX" on #openttd
16:21-!-mode/#openttd [+v glx] by ChanServ
16:26<andythenorth>I don't need a giant red crane in my house
16:29<Wolf01>I do, I need it to move the boxes up and down from the top of the wardrobe
16:41<Wolf01>Also, we'll might have another grf for NRT
16:48-!-nielsm [] has quit [Ping timeout: 480 seconds]
16:54-!-sim-al2 [] has joined #openttd
16:54-!-sim-al2 is "sim-al2" on #openttd
17:19-!-andythenorth [] has left #openttd []
17:35<Wolf01>Me too
17:35-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
17:49-!-Progman [] has quit [Remote host closed the connection]
18:05-!-Wormnest [] has quit [Quit: Leaving]
19:57-!-mindlesstux [] has quit [Quit: Connection closed for inactivity]
20:08-!-Rubidium [] has quit [Remote host closed the connection]
21:01-!-snail_UES_ [] has joined #openttd
21:01-!-snail_UES_ is "Jacopo Coletto" on #openttd
22:53-!-glx [] has quit [Quit: Bye]
23:38-!-haudrauf [] has quit [Ping timeout: 480 seconds]
23:39-!-haudrauf [] has joined #openttd
23:39-!-haudrauf is "Haudrauf" on #openttd #frickelplatz #cryptoparty
---Logclosed Thu Aug 02 00:00:59 2018