Closed hartmark closed 4 months ago
Nevermind, I solved it by installing the binary and GLSMAC_data under /usr/share/glsmac and add a bootstrap shell script that cd to that directory.
The AUR-package can be found now under: https://aur.archlinux.org/packages/glsmac-git
Thanks, I'll add --prefix too just for convenience
--prefix already exists and means something else (place to store user data such as account)
Added --datapath which points to GLSMAC_data, for example:
~/dev/glsmac/bin/GLSMAC --smacpath ~/games/smac --datapath ~/dev/glsmac/GLSMAC_data
(defaults to [working_dir]/GLSMAC_data)
Cool, thanks for quick fix. Could we please have a default also for --smacpath preferably /home/markus/.local/share/glsmac/smac-data or something. That way I can make a symlink from that folder to the real destination so I just cann start by running "glsmac"
I don't see how, --smacpath must point to installation of SMAC on user's computer, and there can be different SMAC distributions (Loki, GOG, Planetary Pack) and different ways to install (for example somebody can unpack loki version tar.gz somewhere and that's it). Also, different OS (Linux, Windows, ...). We don't want to force user to install or move their SMAC installation to specific place. What I can do in future is maybe add UI prompt that will ask for SMAC location on first launch, and then save it somewhere inside --prefix
Yeah, that would be a better solution, we should have a settings file if fullscreen is used and other tweakables.
I'm trying to make an aur package for glsmac.
Where should I place GLSMAC_data folder so it can find it? As it seems now I need to stand in the folder having that directory.
One way would to have them in the folder used by --prefix
Another neat thing would be to have a setting stored in a file in --prefix for misc settings like fullscreen, fps, and the smacfolder so I could just start the application by issuing "glsmac" without any arguments.