IRC logs for #openttd on OFTC at 2022-06-22
            
01:45:02 *** Wormnest_ has quit IRC (Quit: Leaving)
01:50:43 *** wallabra has joined #openttd
02:32:30 *** D-HUND has joined #openttd
02:36:00 *** debdog has quit IRC (Ping timeout: 480 seconds)
03:21:27 *** glx has quit IRC ()
05:15:16 *** andythenorth has joined #openttd
05:40:51 *** andythenorth has quit IRC (Quit: andythenorth)
05:42:08 *** andythenorth has joined #openttd
05:50:27 *** Etua has joined #openttd
05:52:17 *** Etua has quit IRC ()
06:02:20 *** Flygon has joined #openttd
06:02:37 *** andythenorth has quit IRC (Quit: andythenorth)
06:09:44 *** Extrems` has joined #openttd
06:11:53 *** dwfreed_ has joined #openttd
06:12:02 *** wallabra_ has joined #openttd
06:12:49 *** wallabra has quit IRC (synthon.oftc.net larich.oftc.net)
06:12:49 *** Extrems has quit IRC (synthon.oftc.net larich.oftc.net)
06:12:49 *** dwfreed has quit IRC (synthon.oftc.net larich.oftc.net)
06:12:49 *** murr4y has quit IRC (synthon.oftc.net larich.oftc.net)
06:12:49 *** Extrems` is now known as Extrems
06:13:15 *** wallabra_ is now known as wallabra
06:13:39 *** sla_ro|master has joined #openttd
06:14:23 *** dwfreed_ is now known as dwfreed
06:20:20 *** murr4y has joined #openttd
06:24:20 *** D-HUND is now known as debdog
06:27:18 *** WormnestAndroid has quit IRC (Remote host closed the connection)
06:29:48 *** andythenorth has joined #openttd
07:02:58 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
07:03:06 *** Smedles has joined #openttd
08:09:09 *** HerzogDeXtEr has joined #openttd
08:26:19 *** Samu has joined #openttd
08:44:54 *** Joel has joined #openttd
09:19:43 <Samu> ais need a function to compute cargo weight
09:20:05 <Samu> might be useful, I think
09:56:30 <peter1138> Isn't that just maths?
10:16:15 <Samu> it's a cargo spec
10:17:53 <Samu> how much does a passenger weight
10:18:09 <Samu> how much does 40 passengers weight in tonnes
10:25:29 <peter1138> cargo->weight / 16, but also take into account FreightWagonMult()
10:39:50 *** Joel__ has joined #openttd
10:42:41 <peter1138> Or maybe just add a method to get the current weight of a vehicle.
10:44:46 <peter1138> That would be most accurate because, of course, NewGRF can vary capacity.
10:46:40 *** Joel has quit IRC (Ping timeout: 480 seconds)
10:46:46 <Samu> wow?
10:46:57 <Samu> they can make a passenger weight more than it should?
10:47:48 <Samu> i'm working on ScriptCargo::GetWeight
10:48:02 <Samu> it gets it from the cargo spec
10:48:25 <peter1138> Vary capacity, not vary weight.
10:48:38 <Samu> ScriptCargo::GetWeight(cargo_type, amount)
10:50:07 <Samu> return ::CargoSpec::Get(cargo_type)->weight * static_cast<int64>(amount) / 16;
10:55:50 *** WormnestAndroid has joined #openttd
11:02:24 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick opened pull request #9930: Add: ScriptCargo::GetWeight to get cargo weights https://github.com/OpenTTD/OpenTTD/pull/9930
11:05:39 <Samu> ops
11:05:50 <Samu> uint in one side, uint32 in the other
11:07:00 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #9930: Add: ScriptCargo::GetWeight to get cargo weights https://github.com/OpenTTD/OpenTTD/pull/9930
11:10:00 <Samu> here's "typical" usage https://pastebin.com/raw/RncbNpvv
11:11:27 <Samu> too much math
11:14:14 <peter1138> Samu, I would include the freight multiplier inside the AI function.
11:14:20 <peter1138> Then the AI doesn't have to know or care about it.
11:15:53 <peter1138> Using AIGameSettings.GetValue("freight_trains") is a red flag
11:20:37 <Samu> but the problem is, that only applies to trains
11:24:33 <peter1138> Hah
11:25:06 <peter1138> Maybe include vehicle type as a parameter instead.
11:25:21 <peter1138> getweight(cargo_type, vehicle_type, amount)
11:35:33 <andythenorth> hmm
11:35:45 <andythenorth> time to get a riscos emulator? https://www.riscos.info/index.php/OpenTTD
11:35:56 <andythenorth> I tried to make it work once, but it crashed a lot :P
12:37:59 <peter1138> Hah
12:39:28 <Samu> i dont know how to regression test again
12:39:39 <Samu> where is the log file generated
12:48:29 <Samu> nvm i found them
13:02:21 <Samu> what weight should i return for ships and aircraft?
13:02:25 <Samu> 0?
13:02:29 <Samu> -1?
13:02:48 <Samu> the actual value without freight multiplier?
13:03:39 <Samu> does weight even affect them?
13:05:13 <DorpsGek> [OpenTTD/OpenTTD] SamuXarick updated pull request #9930: Add: ScriptCargo::GetWeight to get cargo weights https://github.com/OpenTTD/OpenTTD/pull/9930
13:06:30 <Samu> btw I noticed GetDistributionType (CargoID cargo_type) doesn't have regression tests
13:17:12 *** wallabra has quit IRC (Ping timeout: 480 seconds)
13:21:29 <Samu> great, another hidden weight...
13:21:32 <Samu> pow_wag_weight
13:30:41 *** nielsm has joined #openttd
13:44:10 *** Joel__ has quit IRC (Ping timeout: 480 seconds)
13:59:58 *** dihedral has quit IRC (Ping timeout: 480 seconds)
14:01:18 *** Joel__ has joined #openttd
14:14:28 <Samu> tractive effort for maglevs is still computed, very confusing
14:49:00 <Samu> do wagons have tractive effort?
14:50:25 <Samu> also there is power and power
14:51:57 <Samu> it's complicated
14:56:22 *** sla_ro|master has quit IRC ()
15:23:20 *** Joel__ has quit IRC (Ping timeout: 480 seconds)
15:27:44 *** dihedral has joined #openttd
15:56:52 *** Etua has joined #openttd
15:58:16 *** glx has joined #openttd
15:58:16 *** ChanServ sets mode: +v glx
16:12:53 *** Joel__ has joined #openttd
16:14:11 *** frosch123 has joined #openttd
16:34:15 *** Smedles has quit IRC (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
16:34:24 *** Smedles has joined #openttd
16:50:26 *** Joel__ has quit IRC (Ping timeout: 480 seconds)
16:57:35 *** Smedles_ has joined #openttd
17:01:56 *** Smedles has quit IRC (Ping timeout: 480 seconds)
17:10:04 *** sla_ro|master has joined #openttd
17:23:18 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
17:26:41 *** andythenorth has quit IRC (Quit: andythenorth)
17:35:09 *** andythenorth has joined #openttd
17:35:14 *** andythenorth has quit IRC ()
17:53:38 *** Wormnest has joined #openttd
18:00:08 *** Teshiron has joined #openttd
18:04:32 <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.
18:27:27 <frosch123> never heard something like that
18:27:42 <frosch123> i would make a copy of the list, or "transform" the value during the copying
18:37:04 *** gelignite has joined #openttd
18:42:14 *** Teshiron has quit IRC (Remote host closed the connection)
18:45:00 *** Teshiron has joined #openttd
18:51:15 <Teshiron> sorry, if anyone had previously responded, I missed it when the computer went to sleep :P
18:53:22 *** Montana_ has joined #openttd
19:19:16 <frosch123> Teshiron: http://www.home.thegrebs.com:8080/openttd/2022/06/22#14:04
19:30:45 *** tokai|noir has joined #openttd
19:30:45 *** ChanServ sets mode: +v tokai|noir
19:37:40 *** tokai has quit IRC (Ping timeout: 480 seconds)
19:53:19 *** andythenorth has joined #openttd
19:54:20 *** wallabra has joined #openttd
20:05:40 <Samu> hi Teshiron, I will look forward for an updated Teshinet :p
20:06:58 *** frosch123 has quit IRC (Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn)
20:17:08 <Teshiron> I decided to write a new one instead, but it'll be pretty similar to start with
21:15:48 *** Montana_ has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** Etua has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** dihedral has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** nielsm has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** Samu has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** HerzogDeXtEr has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** SpComb has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** fonsinchen has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** avdg has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** planetmaker has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** Osai has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** Xaroth has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** jlx__ has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** argoneus has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** FLHerne has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** crem has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** Soni has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** jpw has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** Alkel_U3 has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** kstar892[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** blikjeham[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** joey[m]1 has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** thelonelyellipsis[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** yur3shmukcik[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** nartir[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** ookfof[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** hylshols7qui[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** glothit7ok[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** pothyurf[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** ist5shreawf[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** johanna[m] has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** Terkhen has quit IRC (charon.oftc.net helix.oftc.net)
21:15:48 *** SmatZ has quit IRC (charon.oftc.net helix.oftc.net)
21:15:54 *** wallabra has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** andythenorth has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** tokai|noir has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** gelignite has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** sla_ro|master has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** glx has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** debdog has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** giords[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** lunchboxhero[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** jact[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** patricia[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** enick_545 has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** cawal[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** magdalena[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** karoline[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** grag[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** labs[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** paulus[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** christoph[m]12 has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** peter1138 has quit IRC (charon.oftc.net liquid.oftc.net)
21:15:54 *** bkilm[m] has quit IRC (charon.oftc.net liquid.oftc.net)
21:16:16 <Teshiron> goodness, I haven't seen a netsplit in years. of course, that's because I haven't been on IRC in years ... >.>
21:16:36 *** wallabra has joined #openttd
21:16:36 *** andythenorth has joined #openttd
21:16:36 *** tokai|noir has joined #openttd
21:16:36 *** gelignite has joined #openttd
21:16:36 *** sla_ro|master has joined #openttd
21:16:36 *** glx has joined #openttd
21:16:36 *** debdog has joined #openttd
21:16:36 *** peter1138 has joined #openttd
21:16:36 *** liquid.oftc.net sets mode: +vvov tokai|noir glx peter1138 peter1138
21:16:36 *** paulus[m] has joined #openttd
21:16:36 *** lunchboxhero[m] has joined #openttd
21:16:36 *** labs[m] has joined #openttd
21:16:36 *** christoph[m]12 has joined #openttd
21:16:36 *** cawal[m] has joined #openttd
21:16:36 *** giords[m] has joined #openttd
21:16:36 *** karoline[m] has joined #openttd
21:16:36 *** magdalena[m] has joined #openttd
21:16:36 *** patricia[m] has joined #openttd
21:16:36 *** grag[m] has joined #openttd
21:16:36 *** jact[m] has joined #openttd
21:16:36 *** enick_545 has joined #openttd
21:16:36 *** bkilm[m] has joined #openttd
21:17:22 *** Montana_ has joined #openttd
21:17:22 *** Etua has joined #openttd
21:17:22 *** dihedral has joined #openttd
21:17:22 *** nielsm has joined #openttd
21:17:22 *** Samu has joined #openttd
21:17:22 *** HerzogDeXtEr has joined #openttd
21:17:22 *** SpComb has joined #openttd
21:17:22 *** fonsinchen has joined #openttd
21:17:22 *** avdg has joined #openttd
21:17:22 *** planetmaker has joined #openttd
21:17:22 *** Osai has joined #openttd
21:17:22 *** Xaroth has joined #openttd
21:17:22 *** jlx__ has joined #openttd
21:17:22 *** argoneus has joined #openttd
21:17:22 *** FLHerne has joined #openttd
21:17:22 *** crem has joined #openttd
21:17:22 *** Soni has joined #openttd
21:17:22 *** jpw has joined #openttd
21:17:22 *** Alkel_U3 has joined #openttd
21:17:22 *** kstar892[m] has joined #openttd
21:17:22 *** Terkhen has joined #openttd
21:17:22 *** SmatZ has joined #openttd
21:17:22 *** hylshols7qui[m] has joined #openttd
21:17:22 *** ist5shreawf[m] has joined #openttd
21:17:22 *** ookfof[m] has joined #openttd
21:17:22 *** thelonelyellipsis[m] has joined #openttd
21:17:22 *** joey[m]1 has joined #openttd
21:17:22 *** pothyurf[m] has joined #openttd
21:17:22 *** johanna[m] has joined #openttd
21:17:22 *** nartir[m] has joined #openttd
21:17:22 *** yur3shmukcik[m] has joined #openttd
21:17:22 *** blikjeham[m] has joined #openttd
21:17:22 *** glothit7ok[m] has joined #openttd
21:17:22 *** helix.oftc.net sets mode: +oov planetmaker Terkhen Terkhen
21:19:40 *** wallabra_ has joined #openttd
21:23:24 *** Teshiron has quit IRC (Quit: Page closed)
21:23:40 *** ChanServ sets mode: +v planetmaker
21:24:21 *** wallabra has quit IRC (Ping timeout: 480 seconds)
21:31:47 *** sla_ro|master has quit IRC ()
21:37:40 <Samu> i was calculating the wrong max speed for the train :( dumb me
21:39:24 <Samu> which newgrf has imposed track speed limits that works well with UKRS2 or Iron Horse?
21:47:57 <Samu> random screenshot of the day, best passenger train in the year 2072 with those newgrfs -> https://i.imgur.com/hb0wMT8.png
21:49:52 <Samu> Zeus (Electric) with 5x Railcar Trailer running on Advanced electric high-speed line construction
21:52:49 <Samu> not really sure why it has to be Advanced electric high-speed line construction
21:53:18 <Samu> if max speed is 159 km/h
21:54:24 <Samu> tomorrow I'll improve this
21:54:42 *** Samu has quit IRC (Quit: Leaving)
21:55:50 *** nielsm has quit IRC (Ping timeout: 480 seconds)
22:16:52 *** andythenorth has quit IRC (Quit: andythenorth)
22:43:22 *** Etua has quit IRC (Quit: Etua)
22:48:52 *** gelignite has quit IRC (Quit: Stay safe!)
22:53:25 *** wallabra_ has quit IRC (Ping timeout: 480 seconds)
23:04:32 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
23:36:14 *** Montana_ has quit IRC (Quit: Leaving)