Giter Site home page Giter Site logo

Comments (8)

a1batross avatar a1batross commented on August 12, 2024 1

Thanks, I will look into that.

from xash3d-fwgs.

a1batross avatar a1batross commented on August 12, 2024 1

Fixed 5694610

from xash3d-fwgs.

mmillar-bolis avatar mmillar-bolis commented on August 12, 2024

Hey, I just wanted to say that this works great and the server/client libraries are now found. Thank you so much!

There is just one thing I am not quite sure about:

As long as the current working directory path is the same as XASH3D_RODIR, the game folder (e.g. valve) is correctly found. If XASH3D_RODIR is different from the current working directory, the game folder will not be found. Is this the intended function?

from xash3d-fwgs.

a1batross avatar a1batross commented on August 12, 2024

What do you mean?.. Can you describe your setup?

XASH3D_RODIR is meant to point at a read-only path, whether it's physically read-only (CD discs, SD cards with write protect pin or OS imposed restrictions) or where you do not intend to write any data (like the Steam library).

XASH3D_BASEDIR is where engine jumps into (it prints in the logfile that current working directory has been changed) and stores all the volatile user data. Anything that can be written gets written there.

Read-only and read-write paths better do not collide. It just makes no sense to set up a read-only path and then just write stuff into it.

from xash3d-fwgs.

a1batross avatar a1batross commented on August 12, 2024

Be aware that not all mods support XASH3D_RODIR. I would even say that no mods actually supports it.

Despite that both GoldSrc and Xash3D FWGS provide access to its virtual filesystem (through filesystem_stdio.dll), not all modders do not know how to use it as it has never been properly documented.

from xash3d-fwgs.

mmillar-bolis avatar mmillar-bolis commented on August 12, 2024

Thanks for the response. I see now how I was not very clear, so I will try to clarify:

Before invoking xash3d.exe, I must first pushd into the same directory path as whatever I set XASH3D_RODIR to be.

Example environment:

# Not really an env var of mine, just here to clarify
XASH_BINARY_PATH=C:\Users\Generic\Program Files\Games\Half-Life\App\Xash3D-Fwgs64\xash3d.exe

# Read-only directory of mods
XASH3D_RODIR=C:\Users\Generic\Program Files\Games\Half-Life\App\Mods

# Write-only directory that is used during execution time
XASH3D_BASEDIR=C:\Users\Generic\Program Files\Games\Half-Life\Data\Profile

# The current directory of the shell just before execution time (not matching RODIR)
cd "C:\Users\Generic\Program Files\Games\Half-Life\App\Xash3D-Fwgs64"

.\xash3d.exe

So, in the above example, if I do not pushd away from Xash's directory and into the Mods directory (before I start xash3d.exe), the valve folder will not be found on start-up.

Log showing error condition

If I do pushd into the Mods directory, and then start Xash from a relative path, all is well and I never encounter an error about finding game folders:

# Not really an env var of mine, just here to clarify
XASH_BINARY_PATH=C:\Users\Generic\Program Files\Games\Half-Life\App\Xash3D-Fwgs64\xash3d.exe

# Read-only directory of mods
XASH3D_RODIR=C:\Users\Generic\Program Files\Games\Half-Life\App\Mods

# Write-only directory that is used during execution time
XASH3D_BASEDIR=C:\Users\Generic\Program Files\Games\Half-Life\Data\Profile

# The current directory of the shell just before execution time (matching RODIR)
pushd "C:\Users\Generic\Program Files\Games\Half-Life\App\Mods"

..\Xash3D-Fwgs64\xash3d.exe

popd

I understand that the engine will jump to the write directory during runtime for necessary reasons, but perhaps it may be advisable for me to always set the shell to the Mods directory before executing the path to Xash? I just wanted to check if this step of needing to cd or pushd the shell into the read-only directory just before runtime was intended behavior or not. It was not quite clear to me from the Environment documentation, so I thought I would ask. I don't expect you to change the engine behavior.

Thank you again for all of your great work and support. Xash3d-FWGS just keeps getting better and better!

from xash3d-fwgs.

a1batross avatar a1batross commented on August 12, 2024

This is weird, and I never had issues with it.

What you're encountering is probably a bug, but just today, while I was debugging the engine to resolve this issue, everything worked for me as intended.

from xash3d-fwgs.

mmillar-bolis avatar mmillar-bolis commented on August 12, 2024

Okay, not a very big problem. I will investigate further.

My setup involves using the amd64 build of Xash3d-FWGS, and so all 13 or so libraries I am loading are built from hlsdk-portable. So far, these particular libraries are working wonderfully with XASH3D_RODIR and XASH3D_BASEDIR separation, and it is such a relief to be able to keep my mod directories nice and clean. Thank you very much for this feature!

I have encountered one minor, possible bug involving writing gameinfo.txt, so I went ahead and made a separate issue (#1700 ) about it. Thank you again for all your help!

from xash3d-fwgs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.