Jump to content

Recommended Posts

Posted

I hope this is the right category - I've tried to follow like six tutorials on installing Dotnet 10 via script and while it updated the DOTNET_ROOT, it didn't actually update which version my deck is using and I have no idea why - attached is the dotnet --info output.

I have already added the necessary lines to the bashrc and restarted my deck.

image_2026-07-03_051248377.png

  • 2 months later...
Posted
26 minutes ago, isupor said:

I'm having the same issue, did you ever find a solution? If not, the flatpack for VS works despite me not having dotnet10 for whatever reason.

Flatpak's probably the easiest solution. It works because Flatpaks bundle everything they need inside (more or less).

Posted

I still got dotnet 8 as the default on my system, added dotnet 10 directly to the vintage story folder, and added an environment variable that points to the location

export DOTNET_ROOT=./dotnet # Manually set dotnet 10 variables
export PATH=$PATH:./dotnet

Then the scrip start vintage story just fine.

Posted
20 hours ago, isupor said:

I'm having the same issue, did you ever find a solution? If not, the flatpack for VS works despite me not having dotnet10 for whatever reason.

Flatpaks are, for better or worse, sandboxed applications that inherently ship with all their necessary dependencies inside of the package.

Posted
45 minutes ago, Dark Thoughts said:

Flatpaks are, for better or worse, sandboxed applications that inherently ship with all their necessary dependencies inside of the package.

this.

Minecraft used to ship with it's own copy of Java for the same reason... just in case you didn't have Java.

Posted

I have had some success downloading DOTNET 10 as the root user which then the rest of the system used. I can't remember exactly what I did for the environment variable but it ended up working. I am unfortunately not incredibly familiar with steamos version of Linux but I will update this reply if I can recreate what I did.

Posted
32 minutes ago, MirthOfManus said:

I have had some success downloading DOTNET 10 as the root user which then the rest of the system used. I can't remember exactly what I did for the environment variable but it ended up working. I am unfortunately not incredibly familiar with steamos version of Linux but I will update this reply if I can recreate what I did.

Did that solution survive OS updates?

Posted (edited)

Yes it did.

Its a local install in the vintage story folder itself. And as long as the environment variable is right, and pointing at the correct location, it will work.

Edited by Dilan Rona
Posted (edited)

Oh wait you're not MirthOfManus, my bad. MirthOfManus said they installed it globally as the root user on SteamOS, I was asking about that because SteamOS often wipes changes to the root partition on OS updates.

Edited by Diff
Posted

Will still work on SteamOS with the local install. He has to make sure the environment variables are in place for the game to run.

#!/bin/bash

# Get the absolute directory path of where the script is located
SCRIPT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"

# Required for the game to load its own fonts (must be absolute path)
export FONTCONFIG_FILE="$SCRIPT_DIR"/fonts.conf

# Change directory to where the game executable should also be
cd "$SCRIPT_DIR"

# try to use the more powerful/dedicated GPU if available - set this if by default it uses your integrated graphics card
# export DRI_PRIME=1

# Manually set dotnet 10 variables
export DOTNET_ROOT=./dotnet
export PATH=$PATH:./dotnet

# Run the game, pass along all arguments given to the script
./Vintagestory "$@"

Thats my entire script for Vintage Story 1.22.7. And the way I got mine setup, I got 1.20.12, 1.21, and 1.22 installed. 1.20 being my megabuild map (that depends on dotnet 8 for the plugins).

Posted
On 9/10/2026 at 2:53 AM, Diff said:

Flatpak's probably the easiest solution. It works because Flatpaks bundle everything they need inside (more or less).

Not exactly a fan of flatpacks. Updates I do manually.

Posted
2 hours ago, Dilan Rona said:

Not exactly a fan of flatpacks. Updates I do manually.

Why is that? Just curious. I always thought they were great because they just work! ™️ I see them as self-contained venvs which are pretty much necessary for running Python applications since some of them might use different packages than others.

Posted (edited)
21 hours ago, Diff said:

Did that solution survive OS updates?

Unfortunately, no. Are you attempting to run a VS server on your deck or just trying to play on the deck? If the former, I had success putting the 

export DOTNET_ROOT=/home/vintagestory/.dotnet
export PATH=$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH

from the /.bashrc file into the server.sh file but I am not sure how helpful that is for someone just running the game.

In case this does help, another change I made was further in the server.sh file.

INVOCATION="/home/vintagestory/.dotnet/dotnet ${SERVICE} --dataPath \"${DATAPATH}\" ${OPTIONS}"
PGREPTEST="/home/vintagestory/.dotnet/dotnet ${SERVICE} --dataPath ${DATAPATH}"

This had solved my problem of not being able to run commands for my vintagestory user while in my main user.
There is almost certainly a better way of doing this but I am not very knowledgeable about steamos/Linux. Hopefully this helps! If not, hopefully it'll help someone else attempting to do something similar.

Edit: From reading, it seems like Dilan Rona seems to have a good script.

Edited by MirthOfManus
Posted (edited)
8 hours ago, MirthOfManus said:

Edit: From reading, it seems like Dilan Rona seems to have a good script.

the script is the default run script from vintage story.

SCRIPT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"

That line above was a suggestion from me via ticket, for usage cases where the game was launched from a shortcut, to guarantee the game launches from the right folder.

image.png.905a961bab708f5cc01f2a749bc6f001.png

And as per that partial screenshot, I got a local install of dotnet.

cd "$(dirname "$(readlink -f "$0")")"

cd "$(dirname "$(readlink -f "$0")")"

Above line was another suggestion from me.

Edited by Dilan Rona
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.