IRC logs for #openttd on OFTC at 2023-10-20
            
00:07:14 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
01:15:25 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11303: Add: Dedicated server heightmap support https://github.com/OpenTTD/OpenTTD/pull/11303#issuecomment-1771919358
01:36:12 *** Wormnest has quit IRC (Quit: Leaving)
02:08:16 *** debdog has joined #openttd
02:11:46 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
03:15:28 *** xyii[m] has joined #openttd
03:39:11 *** keikoz has joined #openttd
05:18:15 *** keikoz has quit IRC (Ping timeout: 480 seconds)
05:18:39 *** axet has joined #openttd
07:12:08 *** esselfe has quit IRC (Remote host closed the connection)
07:15:36 *** axet has quit IRC (Read error: Connection reset by peer)
07:15:44 *** axet has joined #openttd
07:25:14 *** axet has quit IRC (Read error: Connection reset by peer)
07:26:07 *** axet has joined #openttd
07:42:51 *** axet has quit IRC (Read error: Connection reset by peer)
07:46:19 *** axet has joined #openttd
08:05:39 *** axet has quit IRC (Read error: Connection reset by peer)
08:05:55 *** axet has joined #openttd
08:20:07 *** axet has quit IRC (Read error: Connection reset by peer)
08:20:57 *** axet has joined #openttd
08:38:58 *** axet has quit IRC (Read error: Connection reset by peer)
08:40:54 *** axet has joined #openttd
08:43:36 *** axet has quit IRC (Read error: Connection reset by peer)
08:44:19 *** axet has joined #openttd
08:58:36 *** axet1 has joined #openttd
08:58:36 *** axet has quit IRC (Read error: Connection reset by peer)
09:19:20 *** axet1 has quit IRC (Read error: Connection reset by peer)
09:20:39 *** axet has joined #openttd
09:21:47 *** pemensik|home has joined #openttd
09:22:20 *** Flygon has quit IRC (Quit: A toaster's basically a soldering iron designed to toast bread)
09:23:01 <pemensik|home> hello! Are somewhere documented approximate resources needed for multiplayer servers? How much memory and CPU do I need for 30+ people connected?
09:24:22 <truebrain> memory: about as much as 1. Each user consumes a tiny bit more memory, but think about a few KiB of RAM
09:24:30 <truebrain> CPU: very similar
09:24:36 <truebrain> the only thing that increases per user, is network usage
09:24:57 <truebrain> and, ofc, 30 people will build a lot of trains in a very short time; that will consume more and more CPU
09:25:13 <truebrain> and more
09:25:14 <truebrain> and more
09:25:27 <truebrain> so really, you will see the effect of many people playing sooner than the fact they are connected
09:25:45 <LordAro> (the multiplayer server is "just" running another instance of the game, so pretty much whatever CPU is needed to run the save locally)
09:33:43 <alfagamma7> truebrain: Somewhat agree
09:39:45 <peter1138> Well.
09:40:08 <peter1138> Well.
09:40:29 <truebrain> is there water in the well?
09:40:41 <LordAro> there's certainly lots coming out of the sky
09:40:46 <LordAro> mostly sideways
09:41:05 <truebrain> same here .. they expect even worse later today ... happy I didn't go to the office tbh
09:44:18 <LordAro> it was quite fun cycling in this morning
09:44:22 <LordAro> lots of leaning
09:44:34 <peter1138> Still waiting on a new gear cable to arrive for my touring bike.
09:44:59 <peter1138> I also got some clip-on SPD reflectors, but they don't fit my pedals :(
09:46:41 <peter1138> Might as well have just got some combo pedals instead.
09:47:35 <peter1138> I see Wiggle/CRC are having troubles.
09:48:07 <peter1138> Always happens when companies expand too much...
09:48:47 <peter1138> I remember when Wiggle was a small bike shop in Portsmouth. Them days eh!
09:52:31 <LordAro> mm
10:10:57 <peter1138> MS Office says I need to restart Office to apply privacy settings changes.
10:11:06 <peter1138> I restarted it. No effect.
10:11:10 <peter1138> I rebooted, no effect.
11:03:23 <pemensik|home> is there any good tool to run openttd dedicated server as a service, but into which I can connect if I need to?
11:03:35 <pemensik|home> kind of tmux on demand
11:07:21 <andythenorth> Was it lunch?
11:07:29 <andythenorth> Pescado del dia
11:11:25 *** thelounge34 has quit IRC (Ping timeout: 480 seconds)
11:14:03 <xarick> hio
11:25:01 *** thelounge34 has joined #openttd
11:26:48 *** keikoz has joined #openttd
11:30:24 <LordAro> pemensik|home: i believe someone's made a docker image - it's linked somewhere on the forums
11:31:59 <pemensik|home> I would like something like tmux session with logging enabled. So I can make some admin changes, but then detach and have it running
11:33:11 <LordAro> i mean, there's nothing stopping you doing that
11:33:15 <pemensik|home> I think similar problems were with minecraft servers or anything else. Just have on-demand connection to stdin, but with ability to disconnect from it
11:33:50 <pemensik|home> so I think there should be already decent tool to do that exactly, I may just not know it
11:35:50 <LordAro> there's various other ways of connecting to the server console too - rcon console commands from within game or the admin port gives some amount of access too
11:52:31 <pemensik|home> is there documentation of rcon and how it can be used?
11:53:28 *** axet has quit IRC (Read error: Connection reset by peer)
11:53:30 *** axet has joined #openttd
12:12:29 <LordAro> https://wiki.openttd.org/en/Manual/Dedicated%20server#controlling-the-server-with-rcon some, not a lot
12:15:27 <pemensik|home> LordAro, perfect, thanks a lot!
12:35:13 <peter1138> Mmm, salad... in a sandwich.
12:49:05 *** nielsm has joined #openttd
13:05:08 <peter1138> Well.
13:06:21 <LordAro> Where's Lassie when you need her?
13:08:38 <pemensik|home> I would like to use my own list of generated town names. Can I put somewhere my custom list of names to use?
13:12:34 <LordAro> not really, you need a newgrf for that, or a pre-made scenario
13:14:52 <pemensik|home> ouch.
13:15:28 <pemensik|home> but newgrf would be needed just for a savegame generation. Then other clients would not need it, right?
13:15:55 <LordAro> afraid not, that's not how newgrfs work
13:16:19 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11383: Change: Display cargo lists in sorted cargo order. https://github.com/OpenTTD/OpenTTD/pull/11383
13:19:37 <peter1138> I guess it wouldn't be impossible to have a feature for town names that was only used for initial generation, so doesn't need to be shared. But that doesn't exist right now.
13:21:59 <LordAro> write a gamescript to rename all the towns!
13:22:08 <LordAro> definitely a useful solution
13:22:15 <peter1138> Also possible.
13:22:29 <pemensik|home> Can a game script change names of towns?
13:23:06 <LordAro> https://docs.openttd.org/gs-api/classGSTown sure.
13:23:17 <LordAro> but a GS is also needed by all clients :p
13:23:27 <peter1138> No it's not.
13:23:36 <LordAro> oh, right
13:23:40 <LordAro> i think i knew that
13:23:45 <DorpsGek> [OpenTTD/OpenTTD] 2TallTyler approved pull request #11383: Change: Display cargo lists in sorted cargo order. https://github.com/OpenTTD/OpenTTD/pull/11383#pullrequestreview-1690034893
13:24:19 <talltyler> But if you’re the server host (requirement for running the GS), you can just use the NewGRF and make everybody use it too 😉
13:25:02 <LordAro> depends whether you want to publish it...
13:25:04 <peter1138> Yes but publishing that on the content server whenever you want to tweak the list of names if a bit much.
13:25:22 <talltyler> Peter: just for my own knowledge, what is this sort order for cargos? Is it just passengers, mail, then everything else? Alphabetical? I don’t remember seeing anything about it when doing industry set development
13:26:58 <peter1138> talltyler, CC_PASSENGERS > CC_MAIL > CC_SPECIAL > Alphabetical.
13:27:12 *** virtualrandomnumber has joined #openttd
13:27:17 <peter1138> So there's no explicit sort property, it's set by cargo class flags.
13:27:29 <peter1138> (And also by name)
13:27:57 <peter1138> In the before picture it's... whatever order the GRF defines the cargo types.
13:28:12 *** virtualrandomnumber has quit IRC (Remote host closed the connection)
13:28:15 <peter1138> Well, not actually, it's by cargo id order.
13:29:05 <johnfranklin> ate lamb sandwich for dinner
13:29:34 <pemensik|home> I want it for internal company event. Not necessary to be public
13:32:37 *** Eddi|zuHause has quit IRC ()
13:32:55 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11383: Change: Display cargo lists in sorted cargo order. https://github.com/OpenTTD/OpenTTD/pull/11383#issuecomment-1772749508
13:35:14 *** Eddi|zuHause has joined #openttd
13:35:19 <peter1138> Server-to-Client NewGRF distribution would help things, but that is a huge can of worms...
13:36:30 <pemensik|home> is there any git repo of simple small game script example?
13:48:00 *** axet has quit IRC (Quit: Leaving.)
14:09:18 *** axet has joined #openttd
14:09:32 <_zephyris> Is there any reason for the sprite aligner to show 4x offsets, and move in a step size of 1? Ctrl+click to move by 8 seems weird too... Why not show 4x smaller values, ie. as you'd use in a grf?
14:17:15 <peter1138> click-click moves by 4...
14:17:47 <pemensik|home> I am missing some crash course. Okay, weird language squirrel is used. But how exactly do I make script read by the game?
14:19:13 <peter1138> Oh, it is 8. Hmm.
14:21:27 <peter1138> _zephyris, probably because the people designing the UI aren't the people using the NewGRF tools. And people prefer to complain about offsets being confusing instead of highlight actual weirdness ;)
14:22:32 <_glx_> pemensik|home: <https://wiki.openttd.org/en/Manual/Game%20script>
14:22:58 <peter1138> https://github.com/OpenTTD/OpenTTD/commit/17cd86d76264f09d7bde59e41f8992718e968811
14:23:23 <peter1138> But maybe you can't actually specify offsets in 4x land? Dunno.
14:25:07 <peter1138> That's before PR-times, so I've no longer any idea about the justification of that change. But it was 9 years ago.
14:27:55 <pemensik|home> ah, I were trying to find how to compile the script and it is consumed just as its tar archive
14:28:00 <peter1138> _pruple, maybe has some thought with experience of making 4x sprites too.
14:29:07 <peter1138> (Especially thinking about the 127-128 thing)
14:30:15 <peter1138> Internally there is only 1 offset regardless of zoom level, and that is for the 4x size.
14:30:20 <LordAro> pemensik|home: i suspect a premade scenario might be better for your situation, if it's a one off event
14:30:53 <pemensik|home> Is it possible to open generated game and just rename towns in a save game?
14:31:16 <LordAro> yes
14:31:49 <pemensik|home> is there a tool which can be used to edit the savegame?
14:31:57 <peter1138> Yes, the game :-)
14:31:59 <LordAro> we call it 'openttd'
14:32:02 <LordAro> :p
14:32:28 <LordAro> (there do exist a few external savegame readers out there, but i'm not aware of any that do any editing)
14:32:44 <_pruple> Yes, the offsets in your NFO/nml are actual pixels, whereas the sprite aligner offsets are always 4x, so you have to divide by 2 or 4 if you're drawing at a lower resolution.
14:33:01 <pemensik|home> ah, right. So lot of point and click. I want to name several offices.
14:33:23 <pemensik|home> is it possible to convert savegame to scenario and edit it in the editor?
14:34:28 <peter1138> Ah so you are able to use the 4x offsets as they are, but only if you are doing 4x sprites.
14:37:16 <_pruple> Well, usually not, because the sprites are cropped during grf compile so end up with a different origin. 🙂 but you can use the *difference* in offsets as they are in 4x.
14:42:22 <_zephyris> Hmmm. Realistically people must dominantly use 1x offsets. I'd forgotten that you set offsets for 2x/4x alternate sprires separately.
14:42:27 <peter1138> I don't think that's fixable as that cropping is external and not really OpenTTD's 'fault'.
14:42:46 <_zephyris> A step of 4 for ctrl+click seems much more sensible though!
14:43:36 <_pruple> peter1138: Yes, there's no way for the game to know how big the sprite was before cropping.
14:45:14 <brickblock19280> Right now I mostly use Ctrl click and then a few small ones at the end since clicking four times is a huge pain
14:45:55 <brickblock19280> Would it be possible to chose between different offset lengths for different zooms by buttons?
14:46:03 <peter1138> I'm happy to fix this, but knowing that is it actually possible to use the zoomed in offsets just changes what the fix is :)
14:46:08 *** rau117 has joined #openttd
14:46:08 <rau117> Eh, I should have asked this https://discord.com/channels/142724111502802944/142725338831519744/1164928385974292620 here instead instead of ottd-help
14:50:11 <rau117> Are there any plans to add the ability to precisely set the time for autosaves?
14:50:11 <rau117> Instead of a list of 10, 30, 60. . . make an input field so that you can make saves once every 12 minutes, for example.
14:55:43 <_zephyris> peter1138: I'dn
14:56:57 <_zephyris> peter1138: I'd argue settting 4x offsets to anything other than 4x the 1x offsets is a very niche case - because you always need to have a 1x sprite to have a 2x/4x alternate. However you absolutely can set it.
14:57:44 *** gelignite has joined #openttd
15:00:53 <_zephyris> Hmmm... A simple decent fix would be to show 1x, 2x and 4x offsets in a simple format (-12/-24/-48) and change ctrl+click to a 4px step.
15:01:27 <_zephyris> What's the actual appropriate 1x offset from a 4x offset? Presumably floor(x/4)?
15:08:51 <pemensik|home> how can I download superlib? https://dev.openttdcoop.org/projects/superlib is failing, is there a new place for it?
15:10:51 <LordAro> online content download?
15:16:01 <pemensik|home> how do I choose libraries in online content?
15:16:42 <rau117> https://cdn.discordapp.com/attachments/1008473233844097104/1164945288839045270/image.png?ex=65450ed8&is=653299d8&hm=2cda9c622af537937ad337226b5d5da59fa11a8a51b6a7456aa1089f1d79691d&
15:16:42 <rau117> pemensik|home: just… search for it
15:17:17 <pemensik|home> ah, it is not offered from the same place, got it
15:28:13 *** HerzogDeXtEr has joined #openttd
15:42:37 <peter1138> Ah fudge, am I going to have to change the outers and rewrap the bar tape as well...? :(
15:43:49 <LordAro> rip
15:48:46 *** axet has quit IRC (Remote host closed the connection)
15:49:13 *** axet has joined #openttd
15:49:38 <merni> pemensik|home: Since apparently nobody answered this... you can convert a save to a scenario by just changing the .sav extension to .scn
15:49:40 <merni> And vice versa
15:54:29 <LordAro> merni: hadn't yet been relevant, afaict? server's perfectly happy with -g foo.sav as it is -g foo.scn
15:54:40 <LordAro> s/server/command line/
15:55:02 <merni> they were asking about editing in the scenario-editor though, and that does need .scn
15:58:31 *** Etua has joined #openttd
16:05:06 <LordAro> oh! i missed that line
16:05:20 <LordAro> too much extra graphics discussion
16:06:43 *** Etua has quit IRC (Quit: Etua)
16:32:22 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11383: Change: Display cargo lists in sorted cargo order. https://github.com/OpenTTD/OpenTTD/pull/11383
16:39:32 <DorpsGek> [OpenTTD/OpenTTD] PeterN opened pull request #11384: Codechange: Avoid emplace_back(new()) into a unique_ptr. https://github.com/OpenTTD/OpenTTD/pull/11384
16:48:53 *** Wolf01 has joined #openttd
16:55:40 <LordAro> 45 files changed, 116 insertions(+), 1768 deletions(-)
16:55:46 <LordAro> i think i'll call Friday done
16:58:38 <pemensik|home> oh ho! thank you everyone, I have made a script to rename all towns from an array. Seems to work.
16:58:58 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #11384: Codechange: Avoid emplace_back(new()) into a unique_ptr. https://github.com/OpenTTD/OpenTTD/pull/11384#pullrequestreview-1690556154
17:00:14 <peter1138> LordAro, 17:55, over time time!
17:00:28 <peter1138> pemensik|home, nice work :)
17:02:28 <pemensik|home> did not know industry is connected to town's name and cannot have own name.
17:10:23 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #11364: Codechange: Rework IniFile handling to use std::list and less pointering. https://github.com/OpenTTD/OpenTTD/pull/11364#pullrequestreview-1690577451
17:15:03 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #11349: Codechange: Simplify usage of GRFFile cargo_map. https://github.com/OpenTTD/OpenTTD/pull/11349#pullrequestreview-1690583868
17:15:33 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #11370: Codechange: Use max_element to find best cargo (sub-)type in NewGRF var 42 https://github.com/OpenTTD/OpenTTD/pull/11370#pullrequestreview-1690585480
17:17:51 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 approved pull request #11369: Codechange: Replace refit option list C-array with std::map. https://github.com/OpenTTD/OpenTTD/pull/11369#pullrequestreview-1690589264
17:26:48 <peter1138> Oof, time to get busy...
17:37:31 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11364: Codechange: Rework IniFile handling to use std::list and less pointering. https://github.com/OpenTTD/OpenTTD/pull/11364
17:38:59 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11349: Codechange: Simplify usage of GRFFile cargo_map. https://github.com/OpenTTD/OpenTTD/pull/11349
17:39:36 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11369: Codechange: Replace refit option list C-array with std::map. https://github.com/OpenTTD/OpenTTD/pull/11369
17:40:30 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11370: Codechange: Use max_element to find best cargo (sub-)type in NewGRF var 42 https://github.com/OpenTTD/OpenTTD/pull/11370
17:40:52 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11384: Codechange: Avoid emplace_back(new()) into a unique_ptr. https://github.com/OpenTTD/OpenTTD/pull/11384
17:42:50 <LordAro> now's where you find out one of them silently conflicts with another
17:43:27 <peter1138> Or further, builds and runs but not correctly...
17:43:56 *** axet has quit IRC (Read error: Connection reset by peer)
17:44:43 *** axet has joined #openttd
17:46:28 <peter1138> Phew, it builds ;-)
17:47:11 <peter1138> Make regression fails but I think that's an out-of-date unit test.
17:48:51 <peter1138> The task that copes the files over to the unit test directory doesn't automatically run.
17:49:22 <_glx_> https://github.com/OpenTTD/OpenTTD/actions <-- it's a mess 🙂
17:51:20 <peter1138> Too many things at onceOh dear.
17:51:27 <peter1138> +'
17:51:28 <peter1138> . '
17:51:35 <peter1138> Hmm, my enter key appears to be hyper-sensitive.
18:31:11 *** memoryloss has joined #openttd
18:31:11 <memoryloss> wait why are these all bots?
18:32:45 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 opened pull request #11385: Codechange: replace size() == 0 with .empty() https://github.com/OpenTTD/OpenTTD/pull/11385
18:34:29 <Rubidium> because we are bots? ;)
18:34:56 <dwfreed> (correct answer: IRC bridge)
18:35:27 <peter1138> 54 files, nice.
18:36:14 *** axet has quit IRC (Read error: Connection reset by peer)
18:36:18 <peter1138> > constexpr bool empty() const noexcept { return size() == 0; }
18:36:23 <peter1138> The irony :)
18:36:39 *** axet has joined #openttd
18:36:48 <peter1138> I think that one might not be correct though.
18:37:57 <Rubidium> I hope that's not the implementation for std::list ;)
18:38:34 <DorpsGek> [OpenTTD/OpenTTD] eints-sync[bot] pushed 1 commits to master https://github.com/OpenTTD/OpenTTD/commit/4c24334fdae05c1ffded3713cd3cb1823e801cb4
18:38:35 <DorpsGek> - Update: Translations from eints (by translators)
18:38:42 <DorpsGek> [OpenTTD/OpenTTD] anatolyeltsov updated pull request #10541: Feature: Industry production graph https://github.com/OpenTTD/OpenTTD/pull/10541
18:39:06 <DorpsGek> [OpenTTD/OpenTTD] PeterN commented on pull request #11385: Codechange: replace size() == 0 with .empty() https://github.com/OpenTTD/OpenTTD/pull/11385#pullrequestreview-1690729573
18:42:42 <LordAro> quite a lot of those
18:52:17 *** axet has quit IRC (Read error: Connection reset by peer)
18:52:24 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 updated pull request #11385: Codechange: replace size() == 0 with .empty() https://github.com/OpenTTD/OpenTTD/pull/11385
18:52:49 *** axet has joined #openttd
18:53:26 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 commented on pull request #11385: Codechange: replace size() == 0 with .empty() https://github.com/OpenTTD/OpenTTD/pull/11385#pullrequestreview-1690747832
19:14:50 <DorpsGek> [OpenTTD/OpenTTD] PeterN merged pull request #11379: Change: Use CARGO_LIST to show station cargo acceptance changes. https://github.com/OpenTTD/OpenTTD/pull/11379
19:31:22 <peter1138> LordAro, if I keep checking the weather, will it make it nice tomorrow?
19:36:07 <Rubidium> if you keep doing it long enough, sure ;D
19:36:47 <peter1138> Still checking the weather and it's now April...
19:37:14 <andythenorth> 27 degrees here
19:37:22 <andythenorth> Rained a bit though
19:51:14 <peter1138> Hmm
20:54:40 <DorpsGek> [OpenTTD/OpenTTD] PeterN approved pull request #11385: Codechange: replace size() == 0 with .empty() https://github.com/OpenTTD/OpenTTD/pull/11385#pullrequestreview-1690890169
20:58:50 *** zzy2357[m] has quit IRC (Ping timeout: 480 seconds)
20:59:02 *** einar[m] has quit IRC (Ping timeout: 480 seconds)
20:59:30 *** axet has quit IRC (Quit: Leaving.)
21:05:47 <DorpsGek> [OpenTTD/OpenTTD] rubidium42 merged pull request #11385: Codechange: replace size() == 0 with .empty() https://github.com/OpenTTD/OpenTTD/pull/11385
21:06:16 <peter1138> > load average: 20.82, 13.47, 8.93
21:06:18 <peter1138> Busy busy...
21:07:37 *** zzy2357[m] has joined #openttd
21:27:35 <DorpsGek> [OpenTTD/OpenTTD] anatolyeltsov updated pull request #10541: Feature: Industry production graph https://github.com/OpenTTD/OpenTTD/pull/10541
21:35:38 *** jinks has quit IRC (Quit: ZNC - http://znc.in)
21:35:57 *** jinks has joined #openttd
21:39:02 <LordAro> peter1138: yes
21:43:46 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:49:37 *** einar[m] has joined #openttd
22:09:41 *** nielsm has quit IRC (Ping timeout: 480 seconds)
22:16:50 *** keikoz has quit IRC (Ping timeout: 480 seconds)
22:19:47 *** gelignite has quit IRC (Quit: Stay safe!)
23:39:38 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
23:54:55 <DorpsGek> [OpenTTD/OpenTTD] Berbe commented on pull request #11303: Add: Dedicated server heightmap support https://github.com/OpenTTD/OpenTTD/pull/11303#issuecomment-1773533304