IRC logs for #openttd on OFTC at 2024-09-19
โด go to previous day
00:09:44 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
00:53:34 *** Wormnest has joined #openttd
02:13:45 *** Wormnest has quit IRC (Ping timeout: 480 seconds)
02:18:10 *** Wormnest has joined #openttd
02:19:45 *** gnu_jj_ has joined #openttd
02:22:54 *** gnu_jj has quit IRC (Ping timeout: 480 seconds)
02:31:32 *** akimoto has joined #openttd
02:39:38 *** D-HUND has quit IRC (Ping timeout: 480 seconds)
04:46:00 <DorpsGek> - Update: Translations from eints (by translators)
05:33:23 *** keikoz has quit IRC (Ping timeout: 480 seconds)
07:18:23 *** SigHunter has joined #openttd
07:40:10 *** HerzogDeXtEr has joined #openttd
08:31:07 *** mindlesstux has joined #openttd
10:00:11 <xarick> trying to understand what to do
10:04:01 <xarick> it really wants to find unofficial-breakpad
10:08:25 <peter1138> xarick: It will try to find unofficial-breakpad, but it's not an error if it can't find it. As you can see it's compiling it without.
10:09:42 <xarick> how do i debug with this vscode is what i'm wondering
10:10:12 <xarick> does it support breakpoints
10:11:33 <peter1138> VS Code uses extensions to provide more features. At the minimum you probably want the Microsoft C/C++ Extension Pack.
10:11:38 <peter1138> (Might already be installed)
10:12:05 <xarick> it installed that, but hmm
10:12:50 <peter1138> There's an extension called "Native Debug" that supports gdb or lldb. Not sure if it's required but I have it installed.
10:17:51 *** Flygon has quit IRC (Read error: Connection reset by peer)
10:23:38 <xarick> no permissions to write in usr whatever folder
10:25:33 <peter1138> Don't try to install it.
10:27:05 <xarick> now its compiling again,
10:30:00 <xarick> i really need this virtual machine to run with more than 1 core
10:30:14 <xarick> any other OS that might work?
10:30:46 <xarick> mint doesn't boot when the VM has more than 1 cpu core
10:31:33 <peter1138> AreAre you using virtualbox or something?
10:33:48 <peter1138> At the bottom, they seem to have the same issue.
10:34:18 <peter1138> (don't immediately jump to follow any instructions in there)
10:38:09 <xarick> that one i solved with using non dynamic ram
10:47:52 <xarick> gcc++ is slower than whatever it used before
10:48:05 <peter1138> The last few posts are about more than 1 core.
10:48:30 <peter1138> What other compilers have you installed?
10:48:38 <peter1138> It could be debug vs release build.
10:49:15 <xarick> so i dunno what it used
10:49:25 <xarick> but on the list i only find gcc
10:56:56 <peter1138> IIRC hyper-v does not give you a virtual sound card. Though it may be possible to add one.
11:09:42 <LordAro> also allegro is not something that's particularly desirable on linux
11:23:49 <xarick> installing Ubuntu 22.04 LTS
11:25:47 <xarick> oh 24.04.1 is newer ๐ฆ
11:30:08 <xarick> wow, the installation looks so similar
11:32:31 <peter1138> Mint and Ubuntu are both Debian-derivatives, so they use the same package manager and lots will be similar.
11:33:42 <xarick> maybe ubuntu is better on hyper-v, gonna test it
11:40:47 <Heiki> and Mint is basically Ubuntu with a different user interface
11:41:14 <ahyangyi> ^ mint flavored ubuntu
11:41:33 <peter1138> Is Mint based on Ubuntu or Debian?
11:42:02 <peter1138> It won't be long before Xarick is going native ๐
11:42:59 <_glx_> I would just use wsl, it allows to run linux GUI programs directly from windows
11:44:20 <_glx_> Anyway virtual box is probably a better choice for VMs
11:45:09 <peter1138> Hyper-V works, but it feels like it is intended for headless background VMs.
11:48:28 <ahyangyi> "WSL 2 is running as a hyper-v virtual machine."
11:49:46 <peter1138> Oh, overlay cargo icons.
11:56:55 <_glx_> ahyangyi: Yes but it just works, no need to configure anything, and it allows GUI apps like they are windows native
12:47:14 <peter1138> Hmm, block-scoped or file-scoped namespaces...
12:59:02 <_pruple> it appears the presence of an action b causes renum 6.1.0 to silently fail
13:01:26 <_pruple> tried it with the example code from the wiki, tried it in multiple nfo files
13:03:38 <peter1138> If only the codebase for nforenum/grfcodec wasn't absolutely horrible.
13:06:18 <_pruple> well, if wishes were fishes we'd all get wet, or something
13:06:45 <peter1138> Every time I look at it I get swamped.
13:07:01 <peter1138> it is hard to read, let alone understand what it's doing.
13:15:27 <ahyangyi> _glx_: Yeah, I like WSL 2
14:44:54 <xarick> could not find Fontconfig
14:45:10 <xarick> but i installed it somehow
15:04:06 <xarick> alright, ubuntu does it better atm
15:05:44 <xarick> but i hear mean things about ubuntu
15:32:59 <ahyangyi> xarick: Yeah, I think you got that pattern. `lib<name>-dev` usually gets you what you need ๐
15:39:57 <peter1138> And then there's zlib...
15:49:42 <ahyangyi> And libressl isn't a library called "ressl".
16:14:29 <xarick> font is missing glyphs to display char 0x52 and 0x648 in medium font size
16:18:14 <peter1138> 0x52 would be surprising.
16:23:19 <peter1138> hehe, i was just looking for tictoc briefly
16:23:27 <peter1138> It does not exist in my work C# projects
16:26:16 <peter1138> Stopwatch should do.
16:37:56 <xarick> source control is difficult to understand
16:39:28 <xarick> wasn't I supposed to have an upstream
16:42:02 <peter1138> 1.1ms to lookup 26,000 rows. Probably fine.
16:46:39 <_pruple> I'm honestly surprised he hasn't commented on the level crossing thing.
16:47:45 <LordAro> xarick: if you acquired the source, you probably have an upstream
16:47:50 <LordAro> unless you removed it
16:52:09 <_pruple> it crashes for me too fwiw
16:52:15 <peter1138> Yeah, my Steam version does.
16:55:22 <xarick> yay i successfuly managed to debug and hit a breakpoint
16:56:39 <xarick> hmm the mouse disappeared though ๐ฆ
16:57:31 <xarick> is there a hotkey shortcut to stop debugging?
16:57:39 <peter1138> Oh, I threw the wrong exception type.
16:57:49 <peter1138> I fixed that, but must've got lost in a stash.
17:00:48 <xarick> mouse cursor gets locked in when the breakpoint is reached
17:01:07 <xarick> not sure if it's a problem with virtual machine
17:01:56 <peter1138> in your openttd.cfg, videodriver = "sdl:no_mouse_capture"
17:02:03 <peter1138> in the [misc] section.
17:02:32 <xarick> i still dont know where this openttd.cfg is located on linux
17:17:30 <LordAro> how long's that been broken?
17:19:09 <peter1138> Well, the social plugin side, since it was merged, but it wasn't noticed until now.
17:38:38 <_glx_> oh so smallest size never worked, but the recent change in param validation make it visible
17:43:52 <peter1138> Yes, but only because the exception was incorrect...
17:44:14 <peter1138> Well, with the exception there shoul be a debug message.
17:47:52 <peter1138> Also, funny how even with an exception, complete with message, no useful error message comes from the Windows crashlog...
18:05:50 *** akimoto has joined #openttd
19:06:58 *** gelignite has joined #openttd
19:13:28 *** nielsm has quit IRC (Ping timeout: 480 seconds)
19:27:24 <aviationgamerx> I need help with compiling
19:32:29 <aviationgamerx> the dependencies are they like other things I have to install? I didn't understand from the "compiling.md" file, there is so much things that are vague, am I supposed to be knowing or have learned something before I can download these things before opening visual studio?
19:34:44 <aviationgamerx> I apologize for so much questions, but it's not clear, this is my first time seeing or working on any real project or anything similar
19:35:14 *** tokai|noir has joined #openttd
19:35:14 *** ChanServ sets mode: +v tokai|noir
19:37:47 <xarick> virtual machine eating 20 gb ram
19:41:18 <xarick> i recently reinstalled visual studio
19:42:04 *** tokai has quit IRC (Ping timeout: 480 seconds)
19:42:10 <xarick> cloning via github integrated on visual studio was easy enough, but i had a few trouble with setting up vcpkg
19:42:51 <xarick> i cloned vcpkg repository
19:45:06 <xarick> CMakeSettings for OpenTTD has a field for CMake Toolchain file
19:45:45 <xarick> I added the path for the cloned vcpkg repository, \vcpkg\scripts\buildsystems\vcpkg.cmake
19:46:17 <xarick> in your cause it's wherever you placed it
19:46:37 <xarick> guess I'm a bad helper ๐ฎ
19:47:40 <xarick> then you need to change the VCPKG_TARGET_TRIPLET from x64-windows to x64-windows-static
19:47:56 <xarick> regenerate the caches and it should work
19:48:28 <xarick> oh, you may also need git bash installed to have version numbering working correctly
19:50:58 <aviationgamerx> xarick: ok wait, what do you mean here
19:52:31 <aviationgamerx> ok so basically went and cloned vcpkg, and did the commands here
19:52:45 <aviationgamerx> I am lsot what to do after
19:53:11 <xarick> where is your vcpkg located
19:53:21 <aviationgamerx> in a file in my documents
19:54:39 <aviationgamerx> I am trying to run vcpkg.exe but it isn't working, I am not sure if that is what I was supposed to do
19:56:12 <aviationgamerx> aviationgamerx: I did that and did this
19:57:01 *** Wormnest has joined #openttd
19:57:48 *** gelignite has quit IRC (Quit: Stay safe!)
19:57:49 <xarick> On visual studio open the OpenTTD folder (I assume you have the source), then open Project > Cmake Settings, and you should have a x64-Debug Configuration on the left, I believe
20:00:55 <xarick> there you should find the field 'CMake toolchain file' empty. You put there 'path-to-vcpkg\scripts\buildsystems\vcpkg.cmake
20:00:56 <aviationgamerx> oh i thought I had to do that after downloading the dependencies, I tought it would give me errors if I tried to clone without dependecies
20:01:17 <aviationgamerx> I am clonning a fork now
20:02:15 <xarick> bootstrap-vcpkg.bat hmm, I didn't use this step
20:03:00 <aviationgamerx> xarick: it's on the vcpkg setup instructions
20:03:15 <aviationgamerx> I am not sure why it wants me to make a project and do some weird stuff but I ignored that
20:05:20 <aviationgamerx> xarick: field?
20:06:04 <aviationgamerx> that is the top
20:06:53 <xarick> hmm you should have two vertical scrollbars, the outer one has more stuff hidden above
20:07:20 <xarick> but maybe try save and generate CMake cache just in case
20:11:28 <xarick> when i get in trouble, i rely on Project > Delete Cache and Reconfigure
20:14:12 <aviationgamerx> what is cmake cache?
20:16:25 <xarick> not really sure, but when making changes to the configurations, it's better to regenerate it
20:17:04 <xarick> otherwise it will fail to build
20:17:38 <_glx_> cmake should generate deps via vcpkg when configuring for openttd
20:19:21 <xarick> VCPKG_TARGET_TRIPLET needs to be manually edited
20:19:52 <xarick> it's not automatically configured that way
20:26:07 <_glx_> yes and we say it in compiling.md
20:28:57 <aviationgamerx> xarick: ok so what should I do?
20:29:45 <xarick> change x64-windows to x64-windows-static
20:31:54 <xarick> i tried x64-windows and it ends up looking for missing .dll files as libraries
20:35:53 <aviationgamerx> I don't have any vcpkg options there
20:38:43 <xarick> ๐ฆ i need screenshots
20:38:56 <xarick> maybe i can see what's failing
20:41:58 <xarick> visual studio, and git
20:42:22 <xarick> then clone vcpkg, i think u did it ๐
20:42:41 <xarick> i didn't run the bootstrap file, maybe you should
20:42:54 <xarick> i dunno why It worked for me though
20:43:31 <xarick> 2 - Set up the Visual Studio project
20:43:31 <xarick> I really think this step doesn't matter
20:43:53 <xarick> or rather, you set it for OpenTTD project
20:44:21 <xarick> those instructions for hello world is too confusing for me
20:47:52 <xarick> oh, OpenTTD already have a vcpkg.json file
21:08:06 <aviationgamerx> xarick: that's what I was saying, I didn't understand how it is helping set up anything
21:08:40 <aviationgamerx> alr then, maybe I have to look around and try to see what is wrong
21:16:27 <peter1138> > str_purchase_axl_ltm_spc :{BLACK}Axle Weight: {YELLOW}{0:STRING}{}{BLACK}Loading Time: {YELLOW}{2:COMMA} day{P 2 "" s}{}{BLACK}{1:STRING}
21:16:37 <peter1138> Hmm, which parameter is that {P} referring to...
21:17:23 *** keikoz has quit IRC (Ping timeout: 480 seconds)
21:18:31 *** aperezdc has quit IRC (Remote host closed the connection)
21:19:34 *** aperezdc has joined #openttd
21:20:29 *** akimoto has quit IRC (Remote host closed the connection)
21:23:06 <xarick> where do i find the variables in vscode
21:23:34 <xarick> configuration or environment not sure what I'm looking for
21:38:05 <truebrain> peter1138: can't be strings ๐ So must be the COMMA! As that is how computers work ๐
21:44:13 *** HerzogDeXtEr has quit IRC (Read error: Connection reset by peer)
21:45:05 <xarick> what the heck is a keyring
21:48:00 <xarick> stoopid pointless passwords no one cares about ๐
21:48:05 <peter1138> But this is a NewGRF string, which uses... <handwave> magic for parameters.
21:49:12 <peter1138> So I not sure that {P 2 "" s] actually refers to the {2:COMMA}.
21:54:14 <talltyler> Unless youโre using days as a unit for axle weight, I suspect itโs for the COMMA ๐
21:54:44 <peter1138> Yeah, you'd think, but...
21:56:59 <talltyler> Does it currently work? As in, you broke it with a change and are trying to make it work? Or are you troubleshooting on behalf of a GRF author who is trying to implement it?
21:58:45 <_glx_> xarick: directly in json files
22:00:46 <peter1138> talltyler: I'm trying to ascertain whether it is broken because of my changes, or it was already broken but not visible.
22:02:45 <talltyler> I assume youโve tried 14.1 or a nightly?
22:03:51 <talltyler> Iโve never seen a plural that reads from a specific parameter like that (assuming thatโs what the 2 is for)
22:04:10 <talltyler> Not that I am any kind of string expert ๐
22:08:35 <michi_cc[d]> Normal thing in language files, but NewGRF string codes are different.
22:11:00 *** Wolf01 has quit IRC (Quit: Once again the world is quick to bury me.)
22:14:29 <peter1138> Hm, what does NML emit for {2:COMMA}{...
22:16:34 <peter1138> Yeah, I'm sure this NewGRF is wrong.
22:17:59 <peter1138> {P} will automatically use the previous parameter anyway.
22:18:50 <peter1138> And if parameter 2 is actually the {1:STRING}...
22:19:03 <_glx_> nml might to magic with arg stack
22:19:25 <peter1138> It always "worked" before because that the string system just returned 0.
22:19:39 <peter1138> You'd see "1 days" but only if the value is 1.
22:25:23 <peter1138> Yes, it does rotates to the stack and things.
22:25:40 <peter1138> The {2:...} means it is grabbing a different value from the stack.
22:25:57 <peter1138> It does not affect which DParam is actually filled.
22:30:36 <peter1138> ^ without 12954 it may or may not crash.
continue to next day โต