zesterer / teloren

A command-line frontend for Veloren
https://www.veloren.net
GNU General Public License v3.0
90 stars 8 forks source link

Asset directory not found #17

Open jemsurfer opened 2 years ago

jemsurfer commented 2 years ago

Starting teloren with normal arguments always ends in the same panic:

Server info: ServerInfo { name: "Official Veloren Server", description: "Welcome to the Veloren Pre-Alpha. Enjoy your journey!", git_hash: "2d2d6b5c", git_date: "2022-08-11", auth_provider: Some("https://auth.veloren.net") }
Players: {}
thread 'rayon-c-0' panicked at 'Asset directory not found. In attempting to find it, we searched:
/home/$USER/.cargo/bin
/home/$USER/git/teloren
/home/$USER/.local/share/veloren/
/usr/local/share/veloren/
/usr/share/veloren/
)', ~/.cargo/git/checkouts/veloren-8eeb8813aff3de76/a1b5f53/common/assets/src/lib.rs:292:9

Is there a package I need to download, or a repository to clone in order to fix this? Thanks :)

TheIceCubeDude commented 2 years ago

I suppose you have to copy the asset directory from your veloren profie from within airshipper's directory (/home/$USER/.local/share/veloren/airshipper/profiles/default/assets) to one of the directories above (I use /home/$USER/.cargo/bin). However, this might not be the solution because when I do this the game never starts, but that might be another issue idk.

cpetig commented 2 years ago

If you want to run this binary you should definitely do a cargo update first as otherwise the veloren-client library is outdated (and doesn't match the server) - probably resulting in not starting (I know this issue from the past, but don't see it today)

Also I created a symbolic link from $HOME/.local/veloren/assets to the assets folder of my veloren checkout - linking to the up to date airshipper assets directory is probably also a very good idea.

bjungs commented 11 months ago

Symlink worked for me! Thanks!