Page 1 of 1

sof on 32bit mx19

Posted: Fri Oct 08, 2021 3:29 pm
by in2media
hi im trying to play soldier of fortune, yes i know its an old game but i like it and so do my grandsons so i want it back. anyway im running mx19 32bit as i couldnt figure how to run it on my 64bit system. i tried sh setup.sh as it says in the sof manual but get the following errors.

$ cd sof
john@mx:~/Desktop/sof
$ sh setup.sh
setup.sh: 9: setup.sh: function: not found
x86
john@mx:~/Desktop/sof
$ setup.sh
bash: setup.sh: command not found
john@mx:~/Desktop/sof
$ sudo sh setup.sh

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for john:
setup.sh: 9: setup.sh: function: not found
x86
..

any help appreciated

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 3:53 pm
by SwampRabbit
can you try

Code: Select all

./script-name.sh
key being ./

Also make sure the file is executable, Right-Click it ? Properties > Permissions > Allow this file to run as a program

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 4:01 pm
by in2media
john@mx:~
$ ./script-name.sh
bash: ./script-name.sh: No such file or directory
john@mx:~
$ ./script-sof.sh
bash: ./script-sof.sh: No such file or directory
john@mx:~


wasnt sure if you meant name or name of game etc.

all permissions granted

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 4:04 pm
by Huckleberry Finn
Just try bash

Code: Select all

bash setup.sh
Meanwhile, with script-name.sh @SwampRabbit meant that setup.sh :

Code: Select all

./setup.sh
Don't forget that you need to be in that directory, like you did before:

john@mx:~/Desktop/sof

Otherwise it won't be able to find it normally "No such file or directory" ... (Or you need to type the full path ...)

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 4:30 pm
by in2media
Huckleberry Finn wrote: Fri Oct 08, 2021 4:04 pm Just try bash

Code: Select all

bash setup.sh
gives no permission to write to user/local/games

checked permissions but cant change them, says owned by root

Meanwhile, with script-name.sh @SwampRabbit meant that setup.sh :

Code: Select all

./setup.sh

gives function not found

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 4:36 pm
by Huckleberry Finn
First

Code: Select all

su
(or sudo su )

then bash setup.sh

(Again, when you're within that folder in terminal: ~/Desktop/sof )

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 4:48 pm
by in2media
i forgot bout the su command, sorry bout that.
says unable to find bin/x86/sof but it is in the sof folder.
but its installed the base install

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 4:51 pm
by Huckleberry Finn
No, nothing to be sorry, we first tried as normal user, then after it refused to do it (for permissions) we tried as root (you didn't forget or skip that ) :)

Re: sof on 32bit mx19

Posted: Fri Oct 08, 2021 4:55 pm
by in2media
yea i forgot permissions il admit. ive only spent 2 weeks on this game for kiddies.
i just couldnt get my head around it

Re: sof on 32bit mx19

Posted: Sun Oct 10, 2021 8:37 am
by Huckleberry Finn
If it's exactly : "unable to find bin/x86/sof " then it's true, cause it needs to be /bin/sof (it really can't find "bin" within that directory or anywhere else) (if there's not a specific folder in sof, like this: ~/Desktop/sof/bin/x86/sof )

So, just open the script with text editor, search (generally Ctrl + F ) for bin/sof then correct them putting a / in front, save, close (maybe re-install)

If the main issue is solved, you can mark the thread like this:

Re: sof on 32bit mx19

Posted: Sun Oct 10, 2021 9:07 am
by in2media
Ah ok mate. Il look at that when i get home.
Thanks

Re: sof on 32bit mx19

Posted: Mon Oct 11, 2021 6:10 am
by Huckleberry Finn
Actually, after posting, I realized that directly editing that as /bin/ is a stupid idea (of mine) cause this time it really won't be able to find it as there's no such thing there :) .. So , maybe (according to the output) we just give the full path like /home/john/Desktop/sof/bin/blahblah to make it sure ...

You can do one of these: Right click on .sh and "archive", to say anyname.7z then Attachments : "add files" below (if < 300 KiB )

Or directly copy-paste the contents in your post and put in code tags (highlight all and click </> )


Also, if you can do this, then we'll know/guess what bin folder it's talking about / looking for :

Right click on sof folder "open terminal here" , then ls -R

Again, in code tags :)

Re: sof on 32bit mx19  [Solved]

Posted: Tue Oct 12, 2021 12:35 pm
by Huckleberry Finn
Update for other readers: According to the output of ls -R (and the .sh file) @frenzy67 sent via PM , I told him this:


... So, it seems the message is true: "unable to find bin/x86/sof"

./BIN/X86:
GLIBC-2.1

./BIN/X86/GLIBC-2.1:
SOF

There's just GLIBC-2.1 (directory) in bin/x86/ and sof is under that.

So, simply copy-paste the sof from BIN/X86/GLIBC-2.1 to one level up, into /BIN/X86/

and re-try installation
________________________

He replied it's ok now and hopefully will mark the thread as solved :)

Re: sof on 32bit mx19

Posted: Tue Oct 12, 2021 12:42 pm
by in2media
Thanks Huckleberry Finn. Yor info via pm sorted this problem out.

Re: sof on 32bit mx19

Posted: Tue Oct 12, 2021 1:53 pm
by SwampRabbit
So glad you could get this sorted and can play this with your grandson!

I was searching a bit on this game (barely due to lack of time), it looks like GOG has it and Lutris has runner for it and the CDROM version too. Something to think about if you ever need to mess with it again.
https://lutris.net/games/soldier-of-fortune/

Re: sof on 32bit mx19

Posted: Tue Oct 12, 2021 2:13 pm
by in2media
sweet got it bookmarked incase