Back to Home / #openttd / 2022 / 06 / Prev Day | Next Day
#openttd IRC Logs for 2022-06-22

---Logopened Wed Jun 22 00:00:14 2022
01:15-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
01:15-!-andythenorth is "andythenorth" on #openttd
01:40-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
01:42-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
01:42-!-andythenorth is "andythenorth" on #openttd
01:50-!-Etua [~Thunderbi@danelski.pl] has joined #openttd
01:50-!-Etua is "Etua" on #openttd #debian-pl #osm-pl
01:52-!-Etua [~Thunderbi@danelski.pl] has quit []
02:02-!-Flygon [~Flygon@180-150-37-2.b49625.bne.nbn.aussiebb.net] has joined #openttd
02:02-!-Flygon is "Flygon" on #openttd
02:02-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
02:09-!-Extrems` [gamecube@expert.extremscorner.org] has joined #openttd
02:09-!-Extrems` is "https://www.extremscorner.org/" on #openttd
02:11-!-dwfreed_ [~dwfreed@irssi.hotellite.net] has joined #openttd
02:11-!-dwfreed_ is "dwfreed" on #xen #virt #uno #redditprivacy #pax #osm-fi #openttd #open-xchange #oftc #msys2 #moocows #llvm #linux #linode #https-everywhere #help #freedombox #fdroid #dot #debian-perl #debian-next #debian-mysql #debian-kde #ceph-backports #ceph-ansible #C #biz #debian-ctte #dcs #ceph-orchestrators #ceph-devel #ceph #OpenRailwayMap
02:12-!-wallabra_ [~Gustavo60@189.6.213.19] has joined #openttd
02:12-!-wallabra_ is "Gustavo Ramos Rehermann" on #openttd #llvm #linux #C #
02:12-!-Netsplit synthon.oftc.net <-> larich.oftc.net quits: wallabra, Extrems, dwfreed, murr4y
02:12-!-Extrems` is now known as Extrems
02:13-!-wallabra_ is now known as wallabra
02:13-!-sla_ro|master [~sla.ro@82.210.162.179] has joined #openttd
02:13-!-sla_ro|master is "slamaster" on @#sla #openttd
02:14-!-dwfreed_ is now known as dwfreed
02:20-!-murr4y [ali@83.234.139.34.bc.googleusercontent.com] has joined #openttd
02:20-!-murr4y is "AK" on #openttd #bitlbee #suckless #nuug
02:24-!-D-HUND is now known as debdog
02:27-!-WormnestAndroid [~WormnestA@47.197.72.118] has quit [Remote host closed the connection]
02:29-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
02:29-!-andythenorth is "andythenorth" on #openttd
03:02-!-Smedles [~quassel@2403:580d:1:0:aaa1:59ff:fe53:1a69] has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
03:03-!-Smedles [~quassel@2403:580d:1:0:aaa1:59ff:fe53:1a69] has joined #openttd
03:03-!-Smedles is "Paul Smedley" on #openttd
04:09-!-HerzogDeXtEr [~farci@ip92341a34.dynamic.kabel-deutschland.de] has joined #openttd
04:09-!-HerzogDeXtEr is "purple" on #openttd
04:26-!-Samu [~Ricardo@ev1-84-90-70-178.netvisao.pt] has joined #openttd
04:26-!-Samu is "realname" on #openttd
04:44-!-Joel [~Joel@pa49-178-158-35.pa.nsw.optusnet.com.au] has joined #openttd
04:44-!-Joel is "realname" on #openttd
05:19<Samu>ais need a function to compute cargo weight
05:20<Samu>might be useful, I think
05:56<@peter1138>Isn't that just maths?
06:16<Samu>it's a cargo spec
06:17<Samu>how much does a passenger weight
06:18<Samu>how much does 40 passengers weight in tonnes
06:25<@peter1138>cargo->weight / 16, but also take into account FreightWagonMult()
06:39-!-Joel__ [~Joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
06:39-!-Joel__ is "realname" on #openttd
06:42<@peter1138>Or maybe just add a method to get the current weight of a vehicle.
06:44<@peter1138>That would be most accurate because, of course, NewGRF can vary capacity.
06:46-!-Joel [~Joel@pa49-178-158-35.pa.nsw.optusnet.com.au] has quit [Ping timeout: 480 seconds]
06:46<Samu>wow?
06:46<Samu>they can make a passenger weight more than it should?
06:47<Samu>i'm working on ScriptCargo::GetWeight
06:48<Samu>it gets it from the cargo spec
06:48<@peter1138>Vary capacity, not vary weight.
06:48<Samu>ScriptCargo::GetWeight(cargo_type, amount)
06:50<Samu>return ::CargoSpec::Get(cargo_type)->weight * static_cast<int64>(amount) / 16;
06:55-!-WormnestAndroid [~WormnestA@47.197.72.118] has joined #openttd
06:55-!-WormnestAndroid is "WormnestAndroid" on #openttd
07:02<@DorpsGek>[OpenTTD/OpenTTD] SamuXarick opened pull request #9930: Add: ScriptCargo::GetWeight to get cargo weights https://github.com/OpenTTD/OpenTTD/pull/9930
07:05<Samu>ops
07:05<Samu>uint in one side, uint32 in the other
07:07<@DorpsGek>[OpenTTD/OpenTTD] SamuXarick updated pull request #9930: Add: ScriptCargo::GetWeight to get cargo weights https://github.com/OpenTTD/OpenTTD/pull/9930
07:10<Samu>here's "typical" usage https://pastebin.com/raw/RncbNpvv
07:11<Samu>too much math
07:14<@peter1138>Samu, I would include the freight multiplier inside the AI function.
07:14<@peter1138>Then the AI doesn't have to know or care about it.
07:15<@peter1138>Using AIGameSettings.GetValue("freight_trains") is a red flag
07:20<Samu>but the problem is, that only applies to trains
07:24<@peter1138>Hah
07:25<@peter1138>Maybe include vehicle type as a parameter instead.
07:25<@peter1138>getweight(cargo_type, vehicle_type, amount)
07:35<andythenorth>hmm
07:35<andythenorth>time to get a riscos emulator? https://www.riscos.info/index.php/OpenTTD
07:35<andythenorth>I tried to make it work once, but it crashed a lot :P
08:37<@peter1138>Hah
08:39<Samu>i dont know how to regression test again
08:39<Samu>where is the log file generated
08:48<Samu>nvm i found them
09:02<Samu>what weight should i return for ships and aircraft?
09:02<Samu>0?
09:02<Samu>-1?
09:02<Samu>the actual value without freight multiplier?
09:03<Samu>does weight even affect them?
09:05<@DorpsGek>[OpenTTD/OpenTTD] SamuXarick updated pull request #9930: Add: ScriptCargo::GetWeight to get cargo weights https://github.com/OpenTTD/OpenTTD/pull/9930
09:06<Samu>btw I noticed GetDistributionType (CargoID cargo_type) doesn't have regression tests
09:17-!-wallabra [~Gustavo60@189.6.213.19] has quit [Ping timeout: 480 seconds]
09:21<Samu>great, another hidden weight...
09:21<Samu>pow_wag_weight
09:30-!-nielsm [~nielsm@83-88-128-174-dynamic.dk.customer.tdc.net] has joined #openttd
09:30-!-nielsm is "Niels Martin Hansen" on #openttd
09:44-!-Joel__ [~Joel@pa49-184-212-24.pa.vic.optusnet.com.au] has quit [Ping timeout: 480 seconds]
09:59-!-dihedral [~dihedral@znc.dihedral.de] has quit [Ping timeout: 480 seconds]
10:01-!-Joel__ [~Joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
10:01-!-Joel__ is "realname" on #openttd
10:14<Samu>tractive effort for maglevs is still computed, very confusing
10:49<Samu>do wagons have tractive effort?
10:50<Samu>also there is power and power
10:51<Samu>it's complicated
10:56-!-sla_ro|master [~sla.ro@82.210.162.179] has quit []
11:23-!-Joel__ [~Joel@pa49-184-212-24.pa.vic.optusnet.com.au] has quit [Ping timeout: 480 seconds]
11:27-!-dihedral [~dihedral@znc.dihedral.de] has joined #openttd
11:27-!-dihedral is "dihedral" on @#grapes #openttd.dev #openttd.noai #openttdcoop.dev #openttd
11:56-!-Etua [~Thunderbi@danelski.pl] has joined #openttd
11:56-!-Etua is "Etua" on #openttd #debian-pl #osm-pl
11:58-!-glx [~glx@000128ec.user.oftc.net] has joined #openttd
11:58-!-glx is "Loïc GUILLOUX" on #openttd
11:58-!-mode/#openttd [+v glx] by ChanServ
12:12-!-Joel__ [~Joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
12:12-!-Joel__ is "realname" on #openttd
12:14-!-frosch123 [~frosch@00013ce7.user.oftc.net] has joined #openttd
12:14-!-frosch123 is "frosch" on #openttd
12:34-!-Smedles [~quassel@2403:580d:1:0:aaa1:59ff:fe53:1a69] has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
12:34-!-Smedles [~quassel@2403:580d:1:0:aaa1:59ff:fe53:1a69] has joined #openttd
12:34-!-Smedles is "Paul Smedley" on #openttd
12:50-!-Joel__ [~Joel@pa49-184-212-24.pa.vic.optusnet.com.au] has quit [Ping timeout: 480 seconds]
12:57-!-Smedles_ [~quassel@61-245-148-167.3df594.adl.nbn.aussiebb.net] has joined #openttd
12:57-!-Smedles_ is "Paul Smedley" on #openttd
13:01-!-Smedles [~quassel@2403:580d:1:0:aaa1:59ff:fe53:1a69] has quit [Ping timeout: 480 seconds]
13:10-!-sla_ro|master [~sla.ro@82.210.162.179] has joined #openttd
13:10-!-sla_ro|master is "slamaster" on @#sla #openttd
13:23-!-Flygon [~Flygon@180-150-37-2.b49625.bne.nbn.aussiebb.net] has quit [Quit: A toaster's basically a soldering iron designed to toast bread]
13:26-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
13:35-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
13:35-!-andythenorth is "andythenorth" on #openttd
13:35-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit []
13:53-!-Wormnest [~Wormnest@47.197.72.118] has joined #openttd
13:53-!-Wormnest is "Wormnest" on #openttd
14:00-!-Teshiron [~oftc-webi@157-131-171-165.fiber.dynamic.sonic.net] has joined #openttd
14:00-!-Teshiron is "OFTC WebIRC Client" on #openttd
14:04<Teshiron>Quick question re: NoAI AILists, is there an easy way to Valuate the list by performing an operation on the current value? it seems wasteful to have to re-calculate the current value first.
14:27<frosch123>never heard something like that
14:27<frosch123>i would make a copy of the list, or "transform" the value during the copying
14:37-!-gelignite [~gelignite@55d444c2.access.ecotel.net] has joined #openttd
14:37-!-gelignite is "gelignite" on #llvm #openttd
14:42-!-Teshiron [~oftc-webi@157-131-171-165.fiber.dynamic.sonic.net] has quit [Remote host closed the connection]
14:45-!-Teshiron [~oftc-webi@157-131-171-165.fiber.dynamic.sonic.net] has joined #openttd
14:45-!-Teshiron is "OFTC WebIRC Client" on #openttd
14:51<Teshiron>sorry, if anyone had previously responded, I missed it when the computer went to sleep :P
14:53-!-Montana_ [~Montana@7.221.94.90.dynamic.jazztel.es] has joined #openttd
14:53-!-Montana_ is "realname" on #openttd
15:19<frosch123>Teshiron: http://www.home.thegrebs.com:8080/openttd/2022/06/22#14:04
15:30-!-tokai|noir [~tokai@00012860.user.oftc.net] has joined #openttd
15:30-!-tokai|noir is "Christian Rosentreter" on #openttd
15:30-!-mode/#openttd [+v tokai|noir] by ChanServ
15:37-!-tokai [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
15:53-!-andythenorth [~andytheno@82.33.111.41] has joined #openttd
15:53-!-andythenorth is "andythenorth" on #openttd
15:54-!-wallabra [~Gustavo60@189.6.213.19] has joined #openttd
15:54-!-wallabra is "Gustavo Ramos Rehermann" on #openttd #llvm #linux #C #
16:05<Samu>hi Teshiron, I will look forward for an updated Teshinet :p
16:06-!-frosch123 [~frosch@00013ce7.user.oftc.net] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
16:17<Teshiron>I decided to write a new one instead, but it'll be pretty similar to start with
17:16-!-Netsplit charon.oftc.net <-> helix.oftc.net, liquid.oftc.net quits: avdg, kstar892[m], giords[m], hylshols7qui[m], patricia[m], jact[m], johanna[m], joey[m]1, nartir[m], dihedral, (+44 more, use /NETSPLIT to show all of them)
17:16<Teshiron>goodness, I haven't seen a netsplit in years. of course, that's because I haven't been on IRC in years ... >.>
17:16-!-Netsplit over, joins: wallabra, andythenorth, +tokai|noir, gelignite, sla_ro|master, +glx, debdog, @peter1138, paulus[m], lunchboxhero[m] (+11 more)
17:17-!-Netsplit over, joins: Montana_, Etua, dihedral, nielsm, Samu, HerzogDeXtEr, SpComb, fonsinchen, avdg, @planetmaker (+23 more)
17:19-!-wallabra_ [~Gustavo60@189.6.213.19] has joined #openttd
17:19-!-wallabra_ is "Gustavo Ramos Rehermann" on #openttd #llvm #linux #C #
17:23-!-Teshiron [~oftc-webi@157-131-171-165.fiber.dynamic.sonic.net] has quit [Quit: Page closed]
17:23-!-mode/#openttd [+v planetmaker] by ChanServ
17:24-!-wallabra [~Gustavo60@189.6.213.19] has quit [Ping timeout: 480 seconds]
17:31-!-sla_ro|master [~sla.ro@82.210.162.179] has quit []
17:37<Samu>i was calculating the wrong max speed for the train :( dumb me
17:39<Samu>which newgrf has imposed track speed limits that works well with UKRS2 or Iron Horse?
17:47<Samu>random screenshot of the day, best passenger train in the year 2072 with those newgrfs -> https://i.imgur.com/hb0wMT8.png
17:49<Samu>Zeus (Electric) with 5x Railcar Trailer running on Advanced electric high-speed line construction
17:52<Samu>not really sure why it has to be Advanced electric high-speed line construction
17:53<Samu>if max speed is 159 km/h
17:54<Samu>tomorrow I'll improve this
17:54-!-Samu [~Ricardo@ev1-84-90-70-178.netvisao.pt] has quit [Quit: Leaving]
17:55-!-nielsm [~nielsm@83-88-128-174-dynamic.dk.customer.tdc.net] has quit [Ping timeout: 480 seconds]
18:16-!-andythenorth [~andytheno@82.33.111.41] has quit [Quit: andythenorth]
18:43-!-Etua [~Thunderbi@danelski.pl] has quit [Quit: Etua]
18:48-!-gelignite [~gelignite@55d444c2.access.ecotel.net] has quit [Quit: Stay safe!]
18:53-!-wallabra_ [~Gustavo60@189.6.213.19] has quit [Ping timeout: 480 seconds]
19:04-!-HerzogDeXtEr [~farci@ip92341a34.dynamic.kabel-deutschland.de] has quit [Read error: Connection reset by peer]
19:36-!-Montana_ [~Montana@7.221.94.90.dynamic.jazztel.es] has quit [Quit: Leaving]
20:22-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
20:22-!-joel is "joel" on #openttd
20:24-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has quit [Remote host closed the connection]
20:34-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
20:34-!-joel is "joel" on #openttd
20:35-!-wallabra [~Gustavo60@2804:14d:4cd8:96b6:b038:7b10:b018:9590] has joined #openttd
20:35-!-wallabra is "Gustavo Ramos Rehermann" on #openttd #llvm #linux #C #
20:40-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has quit [Remote host closed the connection]
20:49-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
20:49-!-joel is "joel" on #openttd
20:49-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has quit [Read error: Connection reset by peer]
21:25-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
21:25-!-joel is "joel" on #openttd
21:47-!-Wormnest [~Wormnest@47.197.72.118] has quit [Quit: Leaving]
21:48-!-joel [~joel@pa49-184-212-24.pa.vic.optusnet.com.au] has quit [Remote host closed the connection]
21:53-!-Joel [~Joel@pa49-184-212-24.pa.vic.optusnet.com.au] has joined #openttd
21:53-!-Joel is "realname" on #openttd
22:31-!-D-HUND [~debdog@2a00:79c0:64e:4b00:7a24:afff:fe8a:d04d] has joined #openttd
22:31-!-D-HUND is "Wowbagger" on #openttd
22:34-!-debdog [~debdog@2a00:79c0:660:c800:7a24:afff:fe8a:d04d] has quit [Ping timeout: 480 seconds]
23:08-!-glx [~glx@000128ec.user.oftc.net] has quit []
---Logclosed Thu Jun 23 00:00:15 2022