Simple dumb launcher alternative for linux

Posts
142
Likes
59
I made a shell script that can update the files. It doesn't have (m)any features. It checks urls under http://update.moviebattles.org/lists/ for the md5 hashes of files and downloads the ones where it differs. I guess this is what the launcher do.
It can be useful for small servers, where installing mono is hard.

Dependencies
It needs bash(not sure about other shells) and wget.

Usage
Ignored files (which won't be overwritten when new version is available) can be set at the start of the script.
Add or remove to the lines starting with 'add_to_file_list' to change which filepacks to download.

It has to be run from the directory where openjk lives.
It creates/overwrites files without asking anything, but it doesn't delete files, so files that are not part of mbii or put into the IGNORED_FILES array at the start of the script should be safe.
 

Attachments

  • mbii_updater.sh.txt
    3.7 KB · Views: 254
Last edited:
Upvote 0
Posts
495
Likes
540
it's alredy like this
Code:
-rwxrwxrwx 1 root   root 1989160 lut  8 13:03 mbii.i386
doesn't the last 'x' mean that everyone has right to execute?
 
Posts
142
Likes
59
It does. Can you run it from the command line?

./mbii.i386 +set fs_game "MBII"

Btw, why is it still root owned if you chowned it?
The other thing that gives nonsense error messages is when you try to run a 32-bit binary on a 64-bit linux without the 32-bit libs, but iirc it's different.
 

LoU

R2D2
Movie Battles II Team Retired
Posts
746
Likes
651
I will provide new launcher for Linux (nosudo)
 
Posts
142
Likes
59
I missed what you wrote about ntfs. Your home is ntfs, but the system partition is not, right? Maybe you miss the exec option when mounting the home partition? What is the line in /etc/fstab for the home partition?
 
Posts
495
Likes
540
Your home is ntfs
not yet, it's just named 'home'
the system partition is not
right
Maybe you miss the exec option when mounting the home partition? What is the line in /etc/fstab for the home partition?
i used some forum solution for mounting the ntfs partition (where the mb2 is located)
the fstab is:
Code:
UUID=3DE947E82C4D8675 /media/prezes/home/ ntfs-3g auto,users,permissions 0 0
 
Posts
142
Likes
59
I would try

sudo mount -o remount,exec /media/prezes/home

to remount with the additional exec option. If it works you can add this option to fstab.
You need sudo here because normal users can't mount filesystems, but mount is designed for running by root unlike my script or the launcher.
 
Posts
495
Likes
540
I would try

sudo mount -o remount,exec /media/prezes/home

to remount with the additional exec option. If it works you can add this option to fstab.
You need sudo here because normal users can't mount filesystems, but mount is designed for running by root unlike my script or the launcher.
Code:
$ sudo mount -o remount,exec /media/prezes/home
Remounting is not supported at present. You have to umount volume and then mount it once again.
//then i unmounted from thunar context menu
$ sudo mount -o exec /media/prezes/home
Using default user mapping
//then
$ mono MBIILauncher.exe
//pressed play
mbii.i386: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
does it mean i need libsdl2 library? will try to install and try again
edit: nah, installing libsdl2-2.0-0 didn't change anything
edit2: installing libsdl2-dev also didn't help, the problem must be with the permissions
 
Last edited:

TeKilla

Donator
Posts
120
Likes
66
permission denied

maybe it's the 32b thing, i recently moved to 64b os
edit: what libs do i need?

try this:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libfontconfig1:i386 libx11-6:i386 libxrender1:i386 libxext6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libsm6:i386 libsdl2-2.0-0:i386
 
Posts
495
Likes
540
sudo apt-get install libfontconfig1:i386 libx11-6:i386 libxrender1:i386 libxext6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libsm6:i386 libsdl2-2.0-0:i386

it says
Code:
libglu1-mesa:i386 is already the newest version.
libsm6:i386 is already the newest version.
libx11-6:i386 is already the newest version.
libfontconfig1:i386 is already the newest version.
libglib2.0-0:i386 is already the newest version.
libxext6:i386 is already the newest version.
libxrender1:i386 is already the newest version.
but it also reports some errors
Code:
Nie udało się zainstalować niektórych pakietów. Może to oznaczać,
że zażądano niemożliwej sytuacji lub użyto dystrybucji niestabilnej,
w której niektóre pakiety nie zostały jeszcze utworzone lub przeniesione
z katalogu Incoming ("Przychodzące").
Następujące informacje mogą pomóc rozwiązać sytuację:

Następujące pakiety mają niespełnione zależności:
libgl1-mesa-glx:i386 : Wymaga: libglapi-mesa:i386 (= 10.1.3-0ubuntu0.6)
E: Nie udało się naprawić problemów, zatrzymano uszkodzone pakiety.
then i installed the libglapi-mesa:i386, and the libgl1-mesa-glx:i386 turned out to be alredy installed

tried "mono MBIILauncher.exe" and "sudo mono MBIILauncher.exe"
still gives me this permission denied error
imma just forget about it and play on windows
 
Top