Add option to use MacOS launch settings in templates#4
Add option to use MacOS launch settings in templates#4jacopouggeri wants to merge 1 commit intoanegostudios:mainfrom
Conversation
|
oh nice, whats the issue with using the |
|
Yeah the error says it doesn't find the assembly. I've tried running it multiple times from different locations but even though the dll file is clearly there, it never gets detected by dotnet. I can post the error later if needed. |
|
hmm looking at this again can you try if that works for you "commandName": "Executable",
"executablePath": "dotnet",
"commandLineArgs": "VintagestoryServer.dll --tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"",
"workingDirectory": "$(VINTAGE_STORY)"since it uses workingDirectory it should work , at least it seems on my end from a quick test edit: "commandLineArgs": "\"$(VINTAGE_STORY)/VintagestoryServer.dll\" --tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"", |
|
I can try later, but even when I ran dotnet directly in the terminal when being in the same folder as the assembly, it couldn't find it |
|
ohh I see, that maybe an issue with the dotnet installation, On linux if you install it manually you will need to set the DOTNET_ROOT variable so it can properly locate the dotnet SDK maybe that is missing on your end? |
|
I did not have DOTNET_ROOT set but it didn't seem to change things after doing so. This is the error I get when running the launch settings you posted (both variations) Again this happens even when I try to run the |
|
does the dotnet command otherwise work normally? what type of mac are you using x64 (intel) or arm (M1/M2/..)? I am just trying to maybe find the source of the issue but if there is nothing we can do we can merge this. I just can not believe that that could I ask you to try to make a sample console app and see if it works there? |
|
I have had another look at it and tested in my Mac OS Monterey VM and it works there without any issues |
Running a console application works fine, and now that I did a fresh install of only the x64 dotnet version things sort of seem to work, so I think this issue can be closed. However I run into an issue when I try to actually run the game with the default launch settings. I think it has to do with me using a x64 version of dotnet... should I install an arm64 one instead? I could not find any guidance or information on this, why is an x64 version required in the first place if the machine is arm64? Note: this is the same issue I had when trying to run the decompiled game ;( |
|
Adding to this, since the issue might have to do with the arm64 architecture, I tried running with Rosetta: This works too but the screen renders at 1/4th of the size while the mouse input is correct (as if it was full-size) |
|
Might be worth reopening since I do think the issue persists for arm64 macs |
chore: keep only changes relevant to PR
We are few, but there are some, modders on Mac OS. Since I found out the ideal launch settings for Mac OS, something I struggled with a lot when I had just started, it would be nice to make these available for everyone by default.