Summary: | Force NWN to keep player data in ~ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | int19h <me> |
Component: | [OLD] Games | Assignee: | Denis Dupeyron (RETIRED) <calchan> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | dark_mail, games, masta-gentoo, michael, openhs, remy, zeekec |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 152367 | ||
Bug Blocks: | |||
Attachments: |
Wrapper script
New wrapper for user local data |
Description
int19h
2005-02-25 05:06:58 UTC
Created attachment 52114 [details]
Wrapper script
The proposed wrapper script. This should correctly handle any NWN installation,
optionally with SoU, HotU, and custom modules installed.
Perhaps /opt/nwn/*vault (for pre-created characters which come with the game)
should also be copied to newly created ~/.nwn? Not sure...
there is also http://home.woh.rr.com/nwmovies/nwuser/ Well, yes, but nwuser looks like a very ugly hack, whereas the script solution seems quite elegant. Although I would rather invert its logic, i.e. symlink everything from /opt/nwn *except* a list of files and directories (database, logs, nwn.ini, nwnplayer.ini, tempclient, dmvault, localvault, saves, servervault). Created attachment 71654 [details] New wrapper for user local data This is a enhanced wrapperscript which symlinks and copies files and directories from /opt/nwn to ~/.nwn as suggested here: http://bugs.gentoo.org/show_bug.cgi?id=83291#c3 so what happened here? Did we ever get this added to portage? No. I have this on my personal list, but dealing with pretty much anything NWN-related gives me a massive headache. My first course of action here is to ensure that games-rpg/nwn(-data) works with all of the media sets out there, which is currently does not. After that, I'll look at adding new features, such as this one. I haven't forgotten about it, I've just been a bit too busy to get to it yet. OK. This is fixed in the (currently) masked version of nwn-data/nwn... please unmask it and test it out. Once it comes out of package.mask, I'll close this bug. games-rpg/nwn-1.68-r1 is out of package.mask, I upgraded to it, and get this on starting: /opt/nwn/nwn: line 30: syntax error in conditional expression /opt/nwn/nwn: line 30: syntax error near `-a' /opt/nwn/nwn: line 30: ` if [[ -z "${LANG}" -a -r ".metadata/linguas_$i" -a -d "$i" ]] ' If I comment out the relevant lines in the script (LANG= en in my case) nwn starts, but does not look for the savegames in the ~/.nwn/en directory but in the old /opt/nwn directory. (In reply to comment #8) The new -r3 ebuilds were just committed and unmasked, and should fix this. Please test and report back. Denis. Works for me in 1.68-r4. Should this be resolved-fixed? I'd rather not mark this as fixed. I'm experiencing some issues with the savegames, coming from multiple places where they are saved/loaded (and maybe because of my german version): /opt/nwn/saves (only contains quicksave (see below)) ~/.nwn/saves (contains some outdated savegames, maybe from my own attempts to get this mayhem working) ~/.nwn/de/saves (contains the actual savegames, but I'm pretty sure I already was beyond the point of my last savegame. Additionally, the quicksave in this folder only contains symlinks to the quicksave in /opt/nwn/saves, but I cannot load it as nwn then complains about insufficient disk space and just sits there, waiting to be killed.) The quicksave in /opt/nwn/saves only contains files marked as writable by the owner, which explains the strange behaviour when loading. And, for a bonus, all the other savegames come without preview, instead the portrait.tga is displayed on all preview images. With copying around the savegames I managed to somehow keep nwn playable, but IMHO this issue is not resolved yet. Sorry I haven't come up with these issues earlier, I previously had nwn installed by hand.) My nwn version is 1.68-r4 Anyone else having issues of that kind, maybe even a solution? (In reply to comment #11) > I'd rather not mark this as fixed. Just FYI, I'm currently moving across the Atlantic and my hardware is somewhere on a ship. I should get it back around early february but won't probably be able to resume development which involves demanding software such as NWN before some time after that. That's unless I'm lucky enough to get my hands on a more powerful laptop in the meantime, which is not totally impossible. Denis. OK. I reverted to installing NWN by hand, but if you need someone for some testing, just drop a note here. This is now in stable and I'm not experiencing any of the problems above even when playing with another language than English. Thus I'm closing this bug. Do not hesitate to reopen if necessary. Denis. |