Page 1 of 1
multiple .bygfoot dir
Posted: Tue Dec 28, 2004 9:53 pm
by vector
Seeing as I now have a number of bygfoot versions running. I was wondering if the .bygfoot dir could be under the bygfoot folder instead of in the /user. this would allow me to have a number of instances.
,bygfoot under bygfoot-1.7.3
.bygfoot under bygfoot-unstable
.bygfoot under bygfoot-1.9.0
OR
you could save it in /user as
.bygfoot-1.7.3
.bygfoot-unstable
.bygfoot-1.9.0
which is probably easier
OR
pass a cli argv like bygfoot .bygfoot1
etc.
Of course Im not totally sure whats in .bygfoot but I know I have to rm -r it each time I compile and run bygfoot for the first time to avoid clashing errors ?
Re: multiple .bygfoot dir
Posted: Wed Dec 29, 2004 2:49 pm
by gyboth
vector wrote:you could save it in /user as
.bygfoot-1.7.3
.bygfoot-unstable
.bygfoot-1.9.0
which is probably easier
OR
pass a cli argv like bygfoot .bygfoot1
etc.
Of course Im not totally sure whats in .bygfoot but I know I have to rm -r it each time I compile and run bygfoot for the first time to avoid clashing errors ?
you have to do it because the /user/.bygfoot folder is the one with highest priority when looking for text files, and if there were changes involving incompatibilities, the game crashes.
i don't know yet which solution i'd prefer... the very first one isn't a good one because the user would have to 'cd' to the bygfoot dir each time he wants to play (we aren't running things with DOS anymore, are we?)
the second seems to be nice and clean, but it leads to users having to write their config files anew each time they install a new version (for stable branches this isn't good, you'd like to have your old preferences 'imported' if you upgrade to a new version containing bugfixes).
the third one is maybe the best; a bit more circumstantial than the second, but without the disadvantages. so i think i'm going to put it onto the todo list.
gyözö
Posted: Thu Dec 30, 2004 1:54 pm
by gyboth
i've realised it's already possible to give a support dir as an argument. just use the -d switch: bygfoot -d /home/user/.bygfoot-1.7.3.
gyözö
Posted: Thu Dec 30, 2004 11:52 pm
by Guest
gyboth wrote:i've realised it's already possible to give a support dir as an argument. just use the -d switch: bygfoot -d /home/user/.bygfoot-1.7.3.
gyözö
really ?
so why did this not work
bygfoot -d/home/mark/.bygfoot2
it still creates .bygfoot not bygfoot2 then exits with
a usage command
-d Add the 'pixmapdir' directory to
and the warning
*** Doesn't seem to be a Bygfoot savegame: /home/mark/.bygfoot/saves/ ***
Posted: Thu Dec 30, 2004 11:54 pm
by vector
btw guest was vector
that rsync caused a few other problems
things seem tohave forgotten who I am
Posted: Fri Dec 31, 2004 9:27 am
by gyboth
Anonymous wrote:
really ?
so why did this not work
bygfoot -d/home/mark/.bygfoot2
it still creates .bygfoot not bygfoot2 then exits with
a usage command
-d Add the 'pixmapdir' directory to
and the warning
*** Doesn't seem to be a Bygfoot savegame: /home/mark/.bygfoot/saves/ ***
erm.. the
-d doesn't
create a directory. it takes a directory as an argument. so you just switch to the
bygfoot-1.7.3 or whatever dir, and call
bygfoot (or
src/bygfoot) with
-d ./support_files. there is the drawback, though that the conf file still gets written to the home dir. but you could copy it to the support_files/text_files dir, and it gets loaded with the
-d switch.
gyözö
Posted: Wed Jan 12, 2005 11:06 pm
by vector
Im still having trouble with this.
I now have the 1.7 and 1.9 cvs sources and its almost as if I have to "make install" each time I want to swap which branch i play? Of course I also have to rename or rm /user/.bygfoot
I guess i can live with this ..
but i also still can not get -d to work for me
-d indicates where the /support_file dir is yes?
not to be confused with the /user/.bygoot
eg
bygfoot -d/home/user/bygfoot-1.7.3/bygfoot-unstable/support_files
should run the 1.73 branch of bygfoot
while
bygfoot -d/home/user/bygfoot-1.9.0/bygfoot2-unstable/support_files
should run the 1.9 branch.
but that dose not work. I still get whatever the last branch I just "make installed"
I suspect i have to move the /user/.bygfoot manually.? for each branch
Posted: Thu Jan 13, 2005 8:08 am
by gyboth
since i had problems with this stuff myself, i've changed the priority order of the support dirs in 1.9. now the support dir in the pwd (current working directory) precedes the home/.bygfoot directory. so you can leave your home/.bygfoot dir for the 1.7 version; you just have to start 1.9 always from the dir with the 'configure' script, so that the support_dir in the directory itself is the one with highest precedence.
as to the -d switch, you have to have a space between the switch and the argument: -d support_dir_to_add.
gyözö
Posted: Thu Jan 13, 2005 9:46 am
by vector
thought i tried that but ill have another go too tired now.
and great on the cwd being the govener for which ver gets opened thats how id like it
and generally run it anyway
Posted: Fri Jan 14, 2005 11:13 pm
by vector
another approach
i have previously "make install" bygfoot so now no matter where i am in the dir structure typing bygfoot will run bygfoot.(the version i make install)
however i now have 3 versions of bygfoot src. the official release, the unstable release and the new version pre release.
Rather than having to make install (in the version dir that i want to try next) and then typing bygfoot how can i simply make it so that if im in the dir of the version i want and type bygfoot it runs that version?
this would then allow me to make some script files in my user dir like this:
Code: Select all
#!/bin/bash
cd /home/mark/games/bygfoot/bygfoot19/bygfoot2-unstable/src
bygfoot
and
Code: Select all
#!/bin/bash
cd /home/mark/games/bygfoot/bygfoot11/bygfoot-unstable/src
bygfoot
this currently doesnt work because
typing bygfoot in the src dir is bypassed and the make install version is run.
typing ./bygfoot in the src, forcing it to run in src gets me this error
mark@saturnlx:~/games/bygfoot/bygfoot19/bygfoot2-unstable/src$ ./bygfoot
** (bygfoot:6460): WARNING **: Didn't find definitions directory.
so i tried -d
mark@saturnlx:~/games/bygfoot/bygfoot19/bygfoot2-unstable/src$ ./bygfoot -d home/mark/games/bygfoot/bygfoot19/bygfoot2-unstable/support_files
and still it couldnt find it
i tried "ls" instead of ./bygfoot to see if the paths were working and sure enough it listed the support_files dir and definitions was there so im lost as to why it dosent work
i have just make uninstall bygfoot
so i now have to give specific paths for it to work.
same problem as b4 WARNING **: Didn't find definitions directory.
Posted: Sat Jan 15, 2005 9:06 am
by gyboth
vector wrote:Rather than having to make install (in the version dir that i want to try next) and then typing bygfoot how can i simply make it so that if im in the dir of the version i want and type bygfoot it runs that version?
just run bygfoot with
./src/bygfoot from the compile directory, ie. the dir with the
autogen.sh and
configure scripts. the directory './support_files' gets added automatically to the list of support directories, so you shouldn't have a problem with missing support files or dirs. the corresponding script (though i'd make an alias in your stead) would be
Code: Select all
#!/bin/bash
cd /home/mark/games/bygfoot/bygfoot19/bygfoot2-unstable
./src/bygfoot
typing ./bygfoot in the src, forcing it to run in src gets me this error
mark@saturnlx:~/games/bygfoot/bygfoot19/bygfoot2-unstable/src$ ./bygfoot
** (bygfoot:6460): WARNING **: Didn't find definitions directory.
of course not. the only dirs that get added automatically to the support dir list are './support_files' and '$HOME/.bygfoot'. if you're in 'src', there isn't a './support_files', so the only place for the program to look for support files is '$HOME/.bygfoot', which doesn't contain the new definitions, because it belongs to 1.7.
mark@saturnlx:~/games/bygfoot/bygfoot19/bygfoot2-unstable/src$ ./bygfoot -d home/mark/games/bygfoot/bygfoot19/bygfoot2-unstable/support_files
and still it couldnt find it
probably because you forgot the leading '/'. if you type
-d home/mark/games/bygfoot/bygfoot19/bygfoot2-unstable/support_files, the program looks for the specified directory
relative to the current path!.
it's really a pity we have such a time difference
we could jabber away such problems in a minute. on the other hand, every linux rookie has these problems in the beginning.
gyözö
Posted: Sat Jan 15, 2005 10:54 pm
by vector
agh yes if only you were next door. Jaqui and Eva could talk over coffee while we "bash"ed code
so simple its embarrasing.
A number of times you wrote /src/bygfoot and I kept thinking you meant cd into src and run bygfoot. But its very clearly not that at all. Well its celar now anyway.
oohh dear
as soon as i actullay type ./src/bygfoot it worked
btw
probably because you forgot the leading '/'. if you type -d
a typo i had tried both with and without / and even with and without space between -d it seemed to make no difference.
it matters not we have it working now
yeah!!
Posted: Sun Jan 16, 2005 8:27 pm
by gyboth
vector wrote:A number of times you wrote /src/bygfoot
oops sorry
a typo i had tried both with and without / and even with and without space between -d it seemed to make no difference.
but it should... i'm going to try it out.
gyözö