Comments (8)
Thanks, I will look into that.
from xash3d-fwgs.
Fixed 5694610
from xash3d-fwgs.
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.
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.
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.
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.
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.
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.
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)
- [MOD: Earth's Special Forces] Игрок не издаёт звуки при прыжке HOT 3
- Quake WAD2 and Alias MDL formats broken HOT 1
- Xash3D keeps crashing HOT 10
- PHS generating takes a lot of time on some maps HOT 4
- Support for special Portuguese Brasilian characters: Á Ã Ó Í HOT 1
- Titles.txt utf-8 don't render HOT 24
- [MOD: Marathon Rampancy] Белый квадрат вместо радара HOT 1
- Дедикатед сервер не работает? HOT 2
- Моментальный краш игры с ошибкой Sys_Warn: Error: Can't initialize ref_gl renderer! HOT 24
- Better multi-language support
- [OpenGL] Some decals are rendered with artifacts HOT 2
- Voice volume depends on MP3Volume
- Крашится при открытии редактора тача HOT 1
- В консоли XashDS перестал отображаться текст кроме верхней строки (пример команда cmdlist) HOT 3
- Изменение в поведении developer HOT 1
- [Android] Вопрос: Сборка лаунчера в AndroidIDE 2.7.1-beta HOT 7
- Демоплеер с паузой/перемоткой/переключением демо HOT 1
- Информация о записанном демо HOT 2
- [Android] Inverted mouse
- [Android] Themed icon does not work 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 xash3d-fwgs.