Back to Home / #openttd / 2017 / 06 / Prev Day | Next Day
#openttd IRC Logs for 2017-06-17

---Logopened Sat Jun 17 00:00:37 2017
00:13-!-Bhootrk_ [] has joined #openttd
00:13-!-Bhootrk_ is "realname" on #debian-ruby #debian-www #fish #freedombox #gcc #koha #kosagi #linode #linux-rt #linuxfs #love #mastodon-administration #mingw-w64 #mm #moocows #msys2 #oftc #ooni #open-maps-more-than-maps #openjdk #openttd #openttdcoop #osm #osm-de #osm-dev #osm-es #otr #ovirt #packaging #pax #publiclab #qemu #Qubes_OS #redditprivacy #sepia #slackware #spi #subgraph #suckless #vserver #zcash
00:27-!-Bhootrk_ [] has quit [Ping timeout: 480 seconds]
01:32-!-Hiddenfunstuff [] has joined #openttd
01:32-!-Hiddenfunstuff is "Geth" on #openttd #/r/openttd #openttdcoop
02:19-!-cHawk [] has quit [Quit: Leaving]
02:29-!-Alberth [] has joined #openttd
02:29-!-mode/#openttd [+o Alberth] by ChanServ
02:29-!-Alberth is "purple" on @#openttd
02:29<@Alberth>hi hi
03:29-!-Progman [] has joined #openttd
03:29-!-Progman is "Peter Henschel" on #openttdcoop #openttd
04:09-!-Hiddenfunstuff [] has quit [Quit: HydraIRC -> <- Po-ta-to, boil em, mash em, stick em in a stew.]
04:33-!-HerzogDeXtEr [] has joined #openttd
04:33-!-HerzogDeXtEr is "purple" on #openttd
04:42-!-Wolf01 [] has joined #openttd
04:42-!-Wolf01 is "Wolf01" on #openttd
05:14-!-gelignite [] has joined #openttd
05:14-!-gelignite is "gelignite" on #openttd #openttdcoop.devzone
05:42-!-andythenorth [] has joined #openttd
05:42-!-andythenorth is "andythenorth" on #openttd
05:51-!-Arveen [] has joined #openttd
05:51-!-Arveen is "realname" on #openttd #openttdcoop
05:53<LordAro>Alberth: i made a thing
05:59<Wolf01>Oh, cleanup :D
05:59<Wolf01>Good job with that nested if too
06:28<@Alberth>BinNegator looks wrong
06:31<andythenorth>nothing says “Sunny Saturday” like the GDPR
06:31<@Alberth>The "less" operator means that at most one of f(a, b) and f(b, a) is true, negator makes both false
06:33<@Alberth>o/ andy, and a sunny saturday to you as well, for as long as it lasts
06:35-!-Gja [] has joined #openttd
06:35-!-Gja is "Martin" on #bcache #openttd
06:36<@Alberth>return !(minr1 < minr2); <-- looks suspicious for the same reason
06:37<Eddi|zuHause>andythenorth: well, i guess even brexit won't save you from that
06:37-!-andythenorth [] has quit [Quit: andythenorth]
06:38<@Alberth>LordAro: ^ (min2 < min1) instead ?
06:39<LordAro>Alberth: i didn't say it was perfect
06:39<LordAro>definitely noticed some inverted sorts floating around
06:40-!-andythenorth [] has joined #openttd
06:40-!-andythenorth is "andythenorth" on #openttd
06:40<andythenorth>Eddi|zuHause: nope it won’t :P
06:41<andythenorth>it’s not actually bad
06:41<andythenorth>I just don’t want to be doing it on a Saturday
06:42-!-Wormnest [] has joined #openttd
06:42-!-Wormnest is "Wormnest" on #openttd
06:43<LordAro>Alberth: i don't think there's anything wrong with BinNegator though - it's only supposed to do BinNegator(f(a, b)) == !f(a, b)
06:43<LordAro>the order of the arguments isn't relevant to it
06:43<LordAro>it's a reimplementation of std::not_fn
06:44<@Alberth>as a first thing, it looks good
06:44<LordAro>(i won't mention how just as i was trying to pastebin it, i managed to git checkout -- . the whole thing)
06:45<@Alberth>I wonder if you could do the * -> & conversion separately, by introducing references in our custom sort-routines
06:45<@Alberth>yeah, better not mention that :p
06:46<LordAro>(managed to retrieve most of it from a git diff from scrollback)
06:47<LordAro>not sure if that's a thing that qsort can cope with
06:47<@Alberth>also not sure it's worth the effort, tbh
06:48-!-andythenorth [] has quit [Quit: andythenorth]
06:48<@Alberth>why not? you can do the pointer dereferencing in the qsort-compare call then
06:48<@Alberth>ie our qsort
06:49<@Alberth>or do we use other qsorts too?
06:49<LordAro>hmm, maybe
06:49<LordAro>i'll have to investigate
06:49<LordAro>there's also an implementation of gnome sort, which i decided probably wasn't worth the bother
06:51<@Alberth>In QSort: qsort() <-- we eventually use a library, it seems, could be a problem in that case I agree
06:52<@Alberth>never even heard of it until I read your diff :)
06:53<@Alberth>no idea about qsort performance in almost sorted lists either
06:55<@Alberth>still, somewhat fuzzy, you'd expect comparators to take actual values, or is qsort inherited from C ?
07:10-!-Stimrol [] has joined #openttd
07:10-!-Stimrol is "Stimrol" on #openttd
07:23<Execthts>I just downloaded 1.7.1 source, compiled it and it reports 1.7.0, why?
07:24<Eddi|zuHause>either you compiled the wrong thing, or you ran the wrong executable
07:24<Eddi|zuHause>(or much less likely: the bundle is wrong)
07:26<Execthts>Doing it again, just in case I was an idiot
07:28-!-frosch123 [] has joined #openttd
07:28-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd
07:36<Execthts>ok, I fsck'd it up, nvm
07:36<Execthts>it works now.
07:37-!-frosch123 [] has quit [Remote host closed the connection]
07:37-!-frosch123 [] has joined #openttd
07:37-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd
07:41-!-frosch123 [] has quit [Remote host closed the connection]
07:41-!-frosch123 [] has joined #openttd
07:41-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd
07:44-!-frosch123 [] has quit [Remote host closed the connection]
07:50<LordAro>Alberth: qsort is C :)
07:53-!-Gja [] has quit [Quit: Going offline, see ya! (]
07:59<@Alberth>ok, that explains use of pointers
08:05-!-Gja [] has joined #openttd
08:05-!-Gja is "Martin" on #bcache #openttd
08:43-!-juzza1 [] has quit [Quit: leaving]
09:12-!-Maraxus [] has joined #openttd
09:12-!-Maraxus is "Maraxus" on #openttd #factoriocoop @#openttdcoop.stable @#openttdcoop
09:15-!-Maraxus [] has quit []
09:26-!-Gja [] has quit [Quit: Going offline, see ya! (]
09:45<supermop_home>ERROR: "moprv25.nml", line 10102: No unique free parameters available for internal computations.
09:46-!-efess [] has joined #openttd
09:46-!-efess is "afsd" on #openttdcoop #openttd #/r/openttd
09:46<supermop_home>going to need a different way
09:56<supermop_home>maybe Ill just make one switch for capacity that can somehow tell what generation a truck is, and hardcode the values there
09:58<supermop_home>even better if the switch can also tell what type of truck it is
09:58-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
09:59<supermop_home>but would need to add some superfluous differentiation to tell flat beds from hoppers... like all hoppers have HP ending in 5
10:00<supermop_home>also 2550hp for RVs seems too low for a big modern tram
10:19-!-sla_ro|master [] has joined #openttd
10:19-!-sla_ro|master is "slamaster" on @#sla #openttd #love
10:22-!-andythenorth [] has joined #openttd
10:22-!-andythenorth is "andythenorth" on #openttd
10:30<supermop_home>yo andythenorth
10:30<andythenorth>hi hi
10:30<supermop_home>you till have your tuk tuk
10:32<andythenorth>trying to sell it
10:32<andythenorth>might need to fix it first :P
10:33<andythenorth>why? o_O
10:33<supermop_home>wife and I were talking about tuk tuks last night, made me think of it
10:34<supermop_home>so is this crazy?: I am making a switch that picks a 2nd switch based on number of parts in veh, and then the second switch picks capacity based on vehicles introduction date
10:38<andythenorth>why would that be crazy?
10:38<andythenorth>that’s programming
10:38<andythenorth>whether the result is crazy…. :P
10:39<supermop_home>seems convoluted but trying to move all of the capacities etc to one place at top of file where i can set them once
10:39<supermop_home>rather than having to update 300 locations
10:40<supermop_home>can't figure out a way yet for the switch to ask whether a truck is a flat bed or hopper etc
10:40<supermop_home>so will still a handful of different switches
10:40<andythenorth>python or similar :P
10:40<andythenorth>proper compile
10:43<Vadtec>does anyone have a good set of instructions for building a dual teatrathorp? im trying to build it, but I keep coming up off by one all over the place
10:44<supermop_home>Vadtec don't know what that is
10:44<supermop_home>no idea
10:45<supermop_home>andythenorth: road trains - always 3 trailers? or length grows with generation?
10:45<supermop_home>like 2, 3, 4
10:46<andythenorth>I would keep them the same overall length
10:46<andythenorth>and fit the number of trailers to what looks good
10:49-!-Gja [] has joined #openttd
10:49-!-Gja is "Martin" on #bcache #openttd
10:54-!-Lejving_ [] has quit [Read error: Connection reset by peer]
10:56<supermop_home>wonder if I really want that number of parts switch
10:56<supermop_home>or just keep the rigid, semi, and road train switch chains apart
11:54<andythenorth>hurr peter1138
11:55-!-andythenorth [] has quit [Quit: andythenorth]
11:57-!-andythenorth [] has joined #openttd
11:57-!-andythenorth is "andythenorth" on #openttd
12:01-!-andythenorth [] has quit []
12:03-!-Lejving [] has joined #openttd
12:03-!-Lejving is "realname" on @#openttdcoop.pz #openttdcoop.stable #openttdcoop #mi-gaming #mashinky #factoriocoop #/r/openttd #openttd
12:34-!-glx [] has joined #openttd
12:34-!-glx is "Loïc GUILLOUX" on #openttd
12:34-!-mode/#openttd [+v glx] by ChanServ
12:49-!-andythenorth [] has joined #openttd
12:49-!-andythenorth is "andythenorth" on #openttd
12:56-!-andythenorth [] has quit [Quit: andythenorth]
13:01-!-Gja [] has quit [Quit: Going offline, see ya! (]
13:03-!-juzza1 [] has joined #openttd
13:03-!-juzza1 is "juzza1" on #openttdcoop.devzone #openttd
13:03-!-juzza1 [] has quit []
13:05-!-andythenorth [] has joined #openttd
13:05-!-andythenorth is "andythenorth" on #openttd
13:09-!-juzza1 [] has joined #openttd
13:09-!-juzza1 is "juzza1" on #openttdcoop.devzone #openttd
13:22-!-Snail [] has joined #openttd
13:22-!-Snail is "Jacopo Coletto" on #openttd
13:37-!-qwebirc13931 [~oftc-webi@] has joined #openttd
13:37-!-qwebirc13931 is "OFTC WebIRC Client" on #openttd
13:37-!-qwebirc13931 [~oftc-webi@] has quit [Remote host closed the connection]
13:43-!-Gja [] has joined #openttd
13:43-!-Gja is "Martin" on #bcache #openttd
13:55-!-andythenorth [] has quit [Quit: andythenorth]
13:55-!-APTX_ [] has joined #openttd
13:55-!-APTX_ is "APTX" on #openttd #kernelnewbies
13:56-!-andythenorth [] has joined #openttd
13:56-!-andythenorth is "andythenorth" on #openttd
13:57-!-andythenorth [] has left #openttd []
13:59-!-APTX [~APTX@2001:470:71:71d:defe:7ff:fee1:3d5d] has quit [Ping timeout: 480 seconds]
14:23-!-Snail [] has quit [Quit: Snail]
14:30<luaduck>is there a set of cvars for adjusting ship pathfinding / creation rules? we've got a spammer on our public server that keeps spamming ships with extremely long / complex paths without buoys, causing the server to lag like crazy
14:31<luaduck>I've turned max_ships way down as a stopgap measure, but a nicer solution would be being able to set the maximum routing distance for ships in a cvar
14:31<luaduck>something like ship_node_max_distance
14:34<Eddi|zuHause>there used to be a limit, but it might be specific to one pathfinder
14:50-!-DDR [] has joined #openttd
14:50-!-DDR is "David" on #openttd
15:26<supermop_home>switch cannot operate on 'introduction date'
15:26<supermop_home>so much for that
15:32<supermop_home>i could make it based on build date
15:32<supermop_home>so that if you buy a new old model of truck, it comes with a new large capacity trailer
15:35-!-sla_ro|master [] has quit []
15:38-!-Alberth [] has left #openttd []
15:52<supermop_home>can't think of any other way to identify what 'generation' a truck is from
15:57<supermop_home>is there a way to take either only the first or the last digit of the item id and have a switch work on that?
16:17-!-sim-al2 [] has joined #openttd
16:17-!-sim-al2 is "sim-al2" on #openttd @#/r/openttd
16:49<Eddi|zuHause>that does not sound like the right solution to any problem
16:50<supermop_home>eddi probably not
16:50<supermop_home>I am deep in a swamp of my own making here
16:51<supermop_home>should all rigid trucks be ordered together in buy menu, or all mineral trucks, rigid or otherwise?
16:53<supermop_home>road hog and egrvts seem to do the latter
16:53<supermop_home>I was doing the former
16:57<supermop_home>maybe I can turn the id into a string
17:05<supermop_home>Eddi|zuHause: want i want is a way to define that a truck is of a certain generation, but there doesn't seem to be any way to do that
17:07<supermop_home>so formatting the ids such that one digit of the id corresponds to the generation, then having the switch work on that is best i can think of
17:10<Eddi|zuHause>there is no reason for this "generation" being in a dynamic switch. the generation is static, so you can also use it statically (by calling something "generation1_xxx"
17:11<Eddi|zuHause>or so)
17:12<supermop_home>but the capacity switch decides capacity based on what the generation of a vehicle is
17:12<Eddi|zuHause>also, you can set the buy menu ordering separately from the order in which they appear in your grf, or the ids the vehicles have
17:13<supermop_home>so the capacity switch needs some way to infer the generation
17:13<Eddi|zuHause>no, you need a separate capacity switch for each generation
17:15<supermop_home>i guess that's not really the end of the world
17:16<Eddi|zuHause>anyway, there is probably an 80+ variable for vehicle ID in NFO, which probably is not mapped to an NML variable, and i advise against using it this way
17:26-!-Biolunar [] has joined #openttd
17:26-!-Biolunar is "Biolunar" on #openttd #suckless
17:33-!-FLHerne [] has joined #openttd
17:33-!-FLHerne is "Francis Herne" on #openttd
18:43-!-Snail [] has joined #openttd
18:43-!-Snail is "Jacopo Coletto" on #openttd
18:44-!-HerzogDeXtEr [] has quit [Read error: Connection reset by peer]
18:46-!-tokai [] has quit [Ping timeout: 480 seconds]
18:48-!-tokai [] has joined #openttd
18:48-!-tokai is "Christian Rosentreter" on #openttd
18:48-!-mode/#openttd [+v tokai] by ChanServ
18:53-!-chomwitt [~chomwitt@2a02:587:dc05:4000:1844:653b:1235:d63a] has joined #openttd
18:53-!-chomwitt is "chomwitt" on #debian-mentors #oolite #openttd #qemu #debian #debian-games
18:55-!-Gja [] has quit [Quit: Going offline, see ya! (]
19:32-!-Stimrol [] has quit [Quit: ZNC -]
19:32-!-Biolunar [] has quit [Ping timeout: 480 seconds]
19:39-!-FLHerne [] has quit [Quit: There's a real world out here!]
19:41-!-Progman [] has quit [Remote host closed the connection]
19:44-!-Wormnest [] has quit [Quit: Leaving]
19:49-!-tokai|noir [] has joined #openttd
19:49-!-tokai|noir is "Christian Rosentreter" on #openttd
19:49-!-mode/#openttd [+v tokai|noir] by ChanServ
19:53-!-tokai [] has quit [Ping timeout: 480 seconds]
20:31-!-crem [] has joined #openttd
20:31-!-crem is "Mooskagh" on #openttd
20:31-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
20:32-!-crem_ [] has quit [Ping timeout: 480 seconds]
20:58-!-gelignite [] has quit [Quit:]
21:05-!-DDR [] has quit [Quit: DDR is not Dance Dance Revolution]
21:05-!-DDR [] has joined #openttd
21:05-!-DDR is "David" on #openttd
21:33<supermop_home>Error: (IndexError) "pop from empty list".
21:33<supermop_home>Command: ['nmlc', 'moprv26.nml']
21:33<supermop_home>Location: File "nml\", line 74, in pop
21:33<supermop_home>weird nmlc error
22:07-!-Lejving [] has quit [Read error: Connection reset by peer]
22:46-!-glx [] has quit [Quit: Bye]
---Logclosed Sun Jun 18 00:00:38 2017