|
Post by dinth on Mar 20, 2009 19:37:09 GMT
Ive downloaded PKGBUILD which compiles OpenTyrian Classic from svn under linux. It worked fine, but i wanted to play Enhanted version, so ive modified my pkgbuild, changing svn directory to enhanced. It compiled OpenTyrian without errors, but after installation of game i got "ERROR: Unable to find Tyrian data file: music.mus" error. Thats strange, because PKGBuild installs also all datafiles in it works with classic version. Where should i put datafiles ? Now i have (same as with Classic version), tyrian binary in /usr/share/opentyrian/tyrian and datafiles in /usr/share/opentyrian/data/
|
|
|
Post by Mindless on Mar 21, 2009 4:14:05 GMT
perhaps the PKGBUILD had a patch for classic (which doesn't work on enhanced) that added that data path?
|
|
|
Post by dinth on Mar 21, 2009 7:07:35 GMT
But both enhanced and classic versions are in some directory, and data files are too in same directory, so i think that it must by something code-related
|
|
|
Post by yuriks on Mar 21, 2009 7:23:06 GMT
Enhanced uses a different way of specifying the data directories, that patch probably doesn't works. In fact, the package may not be installing some needed files.
Enhanced will first search for a directory named "autorun" in the cwd and then run all scripts inside. One of those should be the "00paths.con" file which specifies wether to use the user home dir for saving/etc (should probably be yes) and where the datafiles are located. This is only currently read from the cwd, which may be a problem, apart from wrapping it in a script that will changed cwd and then call tyrian I don't see any other alternative, but this is probably the best thing to be done anyway (using the wrapper script to call it).
|
|
|
Post by dinth on Mar 21, 2009 15:15:37 GMT
Ok, that will propably resolve my problem. So how is proper way of installation of enhanced version? Make install doesnt copy autorun folder anywhere, but this folder is present in src directory. How "properly" install it? (i dont want to simply, dirty copy it, because i want to make this pkgbuild public).
|
|
|
Post by yuriks on Mar 21, 2009 16:43:21 GMT
You need the "autorun" and "opentyr-data" directories. Just copy them somewhere, and edit 00paths.con. I'll be looking into adding an option to change the place where it looks for the autorun dir at compile time.
|
|