Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not fully portable (on Windows?) #158

Closed
DX37 opened this issue Nov 3, 2016 · 10 comments
Closed

Not fully portable (on Windows?) #158

DX37 opened this issue Nov 3, 2016 · 10 comments

Comments

@DX37
Copy link

DX37 commented Nov 3, 2016

Latest client still creates and uses files from Documents directory only (C:\Users%USER%\Documents\YamagiQ2).
How I can set it fully portable? If I start Quake 2 with "+set game baseq2" parameters, it uses saves and config form game dir, but still creates YamagiQ2 dir in Documents and saves logs there.

@iButane
Copy link

iButane commented Feb 13, 2017

I find this a bit annoying myself but have gotten used to it.

@Yamagi
Copy link
Member

Yamagi commented Feb 19, 2017

I'll have a look at it. We'll likely fix the baseq2-case and provide a mechanism to disable the usage of the users home directory altogether.

Yamagi added a commit that referenced this issue Mar 13, 2017
This is the first step to fix issue #158, consistent behavior for all
cases. This problem was also reported by @lonkamikaze through IRC.
Yamagi added a commit that referenced this issue Mar 13, 2017
Normally Q2 writes all persistent data (the configurations, saves, etc.)
into a subdirectory in the users $HOME. That can be a problem when the
game is installed onto an thumb drive or something like that. Therefor
provide a cvar fs_portable. When set to 1 the games uses it binary dir
as it's persistent storage location.

Examples:

./quake2 +set fs_portable 1
./quake2 +set basedir ~/games/quake2 +set fs_portable 1

fs_portable is _not_ saved into the config file. It must be set at
every start!

This closed issue #158.
@Yamagi
Copy link
Member

Yamagi commented Mar 13, 2017

Okay, I've just pushed the fix. When fs_portable is set to 1 the game writes it's configuration data, the savegames, etc. into the binary dir. An example: The game is installed to D:\quake2 and started with D:\quake2\quake2.exe +set fs_portable 1. The data will written to D:\quake2 .

@Yamagi Yamagi closed this as completed Mar 13, 2017
@DX37
Copy link
Author

DX37 commented Mar 13, 2017

I'll compile and test it.

@DX37
Copy link
Author

DX37 commented Mar 13, 2017

@Yamagi It's work, but not all.
2017-03-13 21-00-58

@Yamagi
Copy link
Member

Yamagi commented Mar 13, 2017

I totally forgot about that files. I've just pushed a fix.

@Yamagi
Copy link
Member

Yamagi commented Mar 13, 2017

It's called 'portalable', now. And no longer 'fs_portable'.

@DX37
Copy link
Author

DX37 commented Mar 18, 2017

@Yamagi It's still creates dir YamagiQ2 and std*.txt files in it. I'm using +set portable 1 params. Saving in portable works just fine.

@DX37
Copy link
Author

DX37 commented Mar 25, 2017

With e229008 commit it seems like it's fixed now. Thanks, @Yamagi!

@Yamagi
Copy link
Member

Yamagi commented Mar 25, 2017

That's very nice to know. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants