sof on 32bit mx19  [Solved]

Message
Author
in2media
Posts: 60
Joined: Mon Feb 19, 2018 5:09 pm

sof on 32bit mx19

#1 Post 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
win 7 pc, lubuntu 17.10 on compaq pressario, mx 17 on inspiron 1545.
samsung 700g7c mx17
registered linux user number 625675
linux is a way of life
otmapp wwwc krazies and kattle and the krew

SwampRabbit
Posts: 3602
Joined: Tue Jun 14, 2016 2:02 pm

Re: sof on 32bit mx19

#2 Post 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
NEW USERS START HERE FAQS, MX Manual, and How to Break Your System - Don't use Ubuntu PPAs! Always post your Quick System Info (QSI) when asking for help.

in2media
Posts: 60
Joined: Mon Feb 19, 2018 5:09 pm

Re: sof on 32bit mx19

#3 Post 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
Last edited by in2media on Fri Oct 08, 2021 4:09 pm, edited 1 time in total.
win 7 pc, lubuntu 17.10 on compaq pressario, mx 17 on inspiron 1545.
samsung 700g7c mx17
registered linux user number 625675
linux is a way of life
otmapp wwwc krazies and kattle and the krew

Huckleberry Finn

Re: sof on 32bit mx19

#4 Post 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 ...)

in2media
Posts: 60
Joined: Mon Feb 19, 2018 5:09 pm

Re: sof on 32bit mx19

#5 Post 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
win 7 pc, lubuntu 17.10 on compaq pressario, mx 17 on inspiron 1545.
samsung 700g7c mx17
registered linux user number 625675
linux is a way of life
otmapp wwwc krazies and kattle and the krew

Huckleberry Finn

Re: sof on 32bit mx19

#6 Post 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 )

in2media
Posts: 60
Joined: Mon Feb 19, 2018 5:09 pm

Re: sof on 32bit mx19

#7 Post 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
win 7 pc, lubuntu 17.10 on compaq pressario, mx 17 on inspiron 1545.
samsung 700g7c mx17
registered linux user number 625675
linux is a way of life
otmapp wwwc krazies and kattle and the krew

Huckleberry Finn

Re: sof on 32bit mx19

#8 Post 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 ) :)

in2media
Posts: 60
Joined: Mon Feb 19, 2018 5:09 pm

Re: sof on 32bit mx19

#9 Post 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
win 7 pc, lubuntu 17.10 on compaq pressario, mx 17 on inspiron 1545.
samsung 700g7c mx17
registered linux user number 625675
linux is a way of life
otmapp wwwc krazies and kattle and the krew

Huckleberry Finn

Re: sof on 32bit mx19

#10 Post 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:
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Software / Configuration”