Comments (6)
Same issue here
from nitrox.
Path.Combine()
shouldn't mess up like that, maybe it has something to do with emulation software like wine? If it's really the problem of Path.Combine()
, Path.GetFullPath()
seems to correct the whole path depending on which system you have.
from nitrox.
According to:
https://www.davidboike.dev/2020/06/path-combine-isnt-as-cross-platform-as-you-think-it-is/
and:
https://stackoverflow.com/questions/26067224/using-path-combine-to-form-a-linux-path-on-a-windows-system
(This is where I found the winPath.Replace('\\','/');
suggestion)
Path.Combine functions differently on windows vs linux.
My problem, I think, is that I'm trying to compile for Linux on my Windows desktop.
So, path combine is adding win style directory seperators (\), but Linux can't understand that.
Given that 1.7.1.0 was compiled and runs perfectly on both platforms, how was that compiled?
Was it compiled on a Linux system for both?
I've seen comments that Nix style separators (/) should work on both platforms, so that might be the solution.
from nitrox.
I took a look how the mixed path could come together and found out that Subnautica\Subnautica_Data\StreamingAssets\aa\catalog.json
uses win file paths (at least I don't think that there is a different version of it on linux machines). Therefore we need to sanitize the path at PrefabPlaceholderGroupsParser.cs:L109 with Path.GetFullPath()
, before we use it in AT3.
from nitrox.
Yea that file is the source of the problem, I had looked into that and fixed it locally in the past but I guess I never pushed any changes.
from nitrox.
How to fix?
from nitrox.
Related Issues (20)
- Router Shutoff when server start HOT 1
- wrecks not appearing for my friend
- Water filtration machine keeps disappearing after login HOT 1
- CrashFish spawning close to you random times
- Thermoblade animations stuck infront of camera.
- whenever me or my friend move we start teleporting.
- Question: Cannot Launch "Play Multiplayer" v1.5.0.1 it only worked once for me HOT 1
- My friends can't connect to my serveur HOT 8
- Subnautica closes almost immediately when trying to start it through Nitrox Launcher HOT 3
- Game freezing my pc for a few second every ~20 seconds
- world save don't work HOT 2
- My saved world keeps getting stuck on an infinite loading screen HOT 3
- bz-experimental branch launches subnautica not below zero HOT 1
- Wine Support for Gaming HOT 12
- Implement UDP NAT hole punching HOT 4
- no gun on gun island HOT 1
- Update ?. HOT 1
- Precursor gates not working even after ion cube is inserted HOT 1
- Scanner room detecting already broken outcrops HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nitrox.