Fantasy Realm Online Forums: Installation Support: installing in lubuntu 14.04:
 Post Date: 3/26/2016 4:42 AM #1 
Posted By:
Andy (Fairsword)

Member Since:
3/25/2016
Title: installing in lubuntu 14.04

[Please see the 4th, 3/29/2016 10:21 AM, post for up-to-date installation notes.]

 

Hello there!

The processing of launch.sh stopped at not finding a file

which was supposed to come with mono, but

had to be found in a mono 2.0 folder.

Now, the latest version of mono,

which can be installed through the Package Manager,

does not create a mono 2.0 folder;

the file requested by FRO's install.sh is in another folder.

I did not manage to find a configuration file

where I could set the directory of mono to look in,

and so I decided to install mono 2.4 instead of the latest version;

based on the recommendation on the download page.

The only way to install mono 2.4 that I could find possible is

"from source". This requires (at least) two prerequisites:

pkg-config and glib 2.4.

pkg-config comes bundled with a compatible version of glib;

I don't know if the version of pkg-config (0.29.1) I have

is good enough for mono 2.4, but

the glib that comes with it is 2.38, so there is a good chance.

This is where I got stuck:

I could not determine where in the directory structure

should pkg-config be installed.

(I happen to know that mono goes into /usr/lib/mono/

because that's where Package Manager put it.)

My experience with Linux is close to 0.

Please help!

(Besides mono, I think lubuntu came with preinstalled opengl

and I believe that I installed sdl, but I have no way of telling

if "All Packages", as mentioned on the download page,

were installed.)

If anyone knows of a step-by-step guide to install this game

on Linux from scratch, then please let me know.

Thank you for giving some thought to this situation,

Andy



Last Edited: 4/2/2016 6:12 AM


Quote
 Post Date: 3/27/2016 7:15 PM #2 
Posted By:
Chris The Avatar

Member Since:
1/17/2011
Administrator
Title: Re: installing in lubuntu 14.04

Hi Andy,

 

Currently the game will only run on x86 Linux not x64... Some of the libs are only 32bit compatable. Its on my list to look at.  So if your running on x64 you will run into issues. 

Thanks

 

 

Chris



Quote
 Post Date: 3/28/2016 6:31 AM #3 
Posted By:
Andy (Fairsword)

Member Since:
3/25/2016
Title: Re: installing in lubuntu 14.04

[Please see the 4th, 3/29/2016 10:21 AM, post for up-to-date installation notes.]

 

Thank you for answering, Chris.

 

Yes, I'm running on x64: AMD64 CPU, 64bit Lubuntu.

I had 32bit Lubuntu installed previously and switched to 64bit because

another game's .deb installers (both 32bit and 64bit versions)  

gave errors in Package Manager.

However, installing from the .sh file worked fine -

a different case of libraries compatibilities, of course.

Well... like I said, I have very little experience with Linux,

and I depend a lot on the information found in Internet.

Here, for example:

http://www.howtogeek.com/165144/htg-explains-should-you-use-the-32-bit-or-64-bit-edition-of-ubuntu-linux/

under Past 64-bit Problems, Software Compatibility,

and in the two paragraphs before the Past 64-bit Problems title,

seems to be indicated that, in general, 

32bit software can run on a 64bit system,

and that 32bit libraries are all that a 64bit system needs to run 32bit software.

Such opinions lead me to believe that a solution

in the case of x64 Linux FRO will be found.

Meanwhile I will keep trying to get the game installed.

I have yet to arrive at the point where a library

32bit/64bit incompatibility halts the installation.

 

Thank you for looking into this, Chris.

I keep my hopes up,

Andy



Last Edited: 4/2/2016 6:12 AM


Quote
 Post Date: 3/28/2016 4:51 PM #4 
Posted By:
Andy (Fairsword)

Member Since:
3/25/2016
Title: Re: installing in lubuntu 14.04

[Please see the 4th, 3/29/2016 10:21 AM, post for up-to-date installation notes.]

 

Currently,   sh ./launch.sh   opens the FRO Client Patch Window. There, the download of 12 Patches is described, after which I get the ¨Patching completed successfully¨ message. I click on Play. The FRO Client Patch Window closes and the following report is presented in the terminal window:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at FRO.Client.GameInstance.Initialize () [0x00000]
  at FRO.Client.GameInstance.Main (System.String[] Args) [0x00000]

I have seen the same message in Clo´s post in the thread ¨Attn: Linux Users¨. The only thing that our systems seem to have in common is an NVidia graphics card; not the same model.

 

These were the installation steps that I followed, after a fresh install of Lubuntu 14.04.01 with default settings (except that I opted for Free software <=> no proprietary drivers or software):

0. Downloaded game archive, extracted to a game folder

(using   unzip FantasyRealmOnline_Linux.zip -d FantasyRealmOnline   entered in a terminal window).

1. Installation of Mono 2.4

1.0. Downloaded   mono-2.4.tar.bz2   from   http://download.mono-project.com/archive/2.4/sources/

and extracted to a setup folder (using   tar jxf mono-2.4.tar.bz2).

1.1. Prerequisites for mono are: pkg-config, glib 2.4, libgdiplus, bison.

1.1.1. Entered   pkg-config --version   in the terminal. The answer was that the package had to be installed. I chose the pkg-config package:   sudo apt-get install pkg-config

Version   0.26-lubuntu4   was installed. Found out with   dpkg -s pkg-config

1.1.2. I found written in the Internet that glib is a part of   libgtk2.0-dev   and installed that package:

Entered:   sudo apt-get install libgtk2.0-dev

Version   2.24.23-0ubuntu1.4   was installed.

1.1.3. Entered:   sudo apt-get install libgdiplus

Version   2.11+git20131008.9732566-5ubuntu1   was installed.

1.1.4. Entered:   sudo apt-get install bison

Version    2:3.0.2.dfsg-2   was installed.

2. Installation of SDL

2.1. Entered:   sudo apt-get install libsdl1.2-dev libsdl1.2debian

2.1.1. U p d a t e: I went to   libsdl.org   and found that SDL 2 exists. I downloaded   SDL2-2.0.4.tar.gz  , and extracted it with   tar -zxvf SDL*  

2.1.2. According to the instructions in docs/README-linus.md I entered the following, for the installation of prerequisites:

sudo apt-get install build-essential mercurial make cmake autoconf automake libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev libwayland-dev libmirclient-dev libxkbcommon-dev

2.1.3. According to INSTALL.txt and wiki.libsdl.org/installation, I installed the package using:

./configure --prefix=/usr/local

make

sudo make install

2.1.4. The results of pressing the -Play- button in the FRO Client Patch Window din not change.

2.1.5. It may be possible to install with apt-get instead of building from source. I have not tried this.

3. Installation of Mesa

3.0. I may have mesa installed. This assumption is based on the output of   glxinfo 

However, I may have understood incorrectly (see fragment of output below) since glxinfo is part of a package called mesa-utils.

3.1. Using   glxinfo

3.1.1. Entered:   sudo apt-get install mesa-utils

3.1.2. Entered:   glxinfo

The following lines were part of the output:

Direct rendering: Yes

OpenGL version string: 3.0 Mesa 10.1.3

3.2. It may be worth mentioning that I found in the Internet an opinion according to which NVidia cards´ original drivers are better than Mesa drivers. I don´t know yet what to make of this.

4. Installation of Fantasy Realm Online

4.0. Moved to the game folder using   cd /home/***my_user_folder***/Downloads/FantasyRealmOnline

4.1. Entered:   ./configure --prefix=/usr/local

4.2. Entered:   make

This step took a really long time (30 minutes or so).

4.3. Entered:   sudo make install

9.9.9. End Of Installation

 

Chris, when you find the time, please look at the steps described above for possible causes of errors. If there are no mistakes, is there a step missing? If not, do you think that installing a 32bit Lubuntu would be the solution?

 

Thank you,

Andy



Last Edited: 4/2/2016 6:11 AM


Quote
 Post Date: 3/29/2016 8:21 AM #5 
Posted By:
Andy (Fairsword)

Member Since:
3/25/2016
Title: Re: installing in lubuntu 14.04

I installed the i386 (32bit) version of Lubuntu 14.04 and ran a system update through the Software Updater application.

I decided to install the prerequisites for the game using   apt-get   because this implies automatic insallation of dependencies. In the case of MONO, the installation had to be prepared, for use with a specific source of packages; see below. The LXTerminal application is used for entering commands.

 

Before installing any package, you can learn about its purpose using

apt-cache show package-name

and after installation (or to see if it is already installed) with

dpkg -s package-name

 

SDL

- see instructions at http://wiki.libsdl.org/Installation in the 4th paragraph under Supported platforms, Linux/Unix

sudo apt-get install libsdl2-2.0 libsdl2-dev

- the package   libsdl2-2.0   was already installed

- test functionality: ?

MONO

- see instructions at http://www.mono-project.com/docs/getting-started/install/linux/

- prepare installation (for Xamarin packages) with:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

sudo apt-get update

- install Mono with:

sudo apt-get install mono-devel mono-complete referenceassemblies-pcl ca-certificates-mono 

- the package   ca-certificates-mono   was already installed

- the installation directory (also containing the 2.0 subfolder requested by the game) is /usr/lib/mono

- test functionality: see http://www.mono-project.com/docs/getting-started/mono-basics/

MESA

- see instructions at https://www.opengl.org/discussion_boards/showthread.php/179672-Installing-OpenGL-mesa-on-ubuntu in the 4th post

sudo apt-get install libgliapi-mesa

- the package   libgliapi-mesa   was already installed

- see instructions at http://www.wikihow.com/Install-Mesa-%28OpenGL%29-on-Linux-Mint in section 1

sudo apt-get install mesa-common-dev

- the package   mesa-common-dev   was already installed

sudo apt-get install libglew-dev libglm-dev

- I installed the above ´just in case´; the other packages indicated at the (last) link above seem to be needed only for building, not for running OpenGL programs

- test functionality: using   glxinfo   found in package   mesa-utils

sudo apt-get install mesa-utils

glxinfo|grep OpenGL

(end of installation of prerequisites for the game)

 

I downloaded the game archive for Linux; in /home/my-user-name/Downloads. I extracted it to a folder called FantasyRealmOnline; in Downloads:

unzip FantasyRealmOnline_Linux.zip -d FantasyRealmOnline

I created a folder called Games in my home folder using the File Manager application and moved the game folder there. I moved there from within the Terminal to launch the game (see first command listed below). Launching is also possible by double-clicking on   launch.sh   and choosing Execute, but then the output from the program could not be catched anywere (according to my knowledge); if I choose Execute in Terminal I still have to write the command for launching the game. If the Terminal is open, there is no need to set the script´s executable flag. For double-click launch, first set the script´s flag by right-clicking on it, choosing Properties, and changing the value for Execute in the Permissions tab; otherwise the double-click would only lead to the .sh file being opened in text mode, for editing.

cd /home/my-user-name/Games/Fan*

sh ./launch.sh

In the Terminal window appeared:

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

The FRO Client Patch System window opens through which we are informed of the managing of 12 patches, after which we are informed that ´Patching completed successfully´ and we are invited to ´Press Play (...)´. Pressing Play leads to the window being closed and to the following report being presented in the Terminal window:

Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
  at FRO.Client.GameInstance.Initialize () <0xb452da80 + 0x009e6> in <filename unknown>:0
  at FRO.Client.GameInstance.Main (System.String[] Args) <0xb7334ed0 + 0x0001f> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at FRO.Client.GameInstance.Initialize () <0xb452da80 + 0x009e6> in <filename unknown>:0
  at FRO.Client.GameInstance.Main (System.String[] Args) <0xb7334ed0 + 0x0001f> in <filename unknown>:0

It is the same error report as the one from the previous system+prerequisites configuration (64bit Lubuntu 14.04 + see details of installation in the previous post).



Last Edited: 3/29/2016 8:23 AM


Quote
 Post Date: 4/1/2016 8:10 PM #6 
Posted By:
Chris The Avatar

Member Since:
1/17/2011
Administrator
Title: Re: installing in lubuntu 14.04

Try installing the SDL development libraries.... something I have had to do in the past on linux.



Quote
 Post Date: 4/2/2016 5:52 AM #7 
Posted By:
Andy (Fairsword)

Member Since:
3/25/2016
Title: Re: installing in lubuntu 14.04

I did install the SDL development libraries. I recorded this step in my previous (last) post:

SDL

- see instructions at http://wiki.libsdl.org/Installation in the 4th paragraph under Supported platforms, Linux/Unix

sudo apt-get install libsdl2-2.0 libsdl2-dev

libsdl2-dev represents the development libraries. Here is the output of  

dpkg -s libsdl2-dev :

Package: libsdl2-dev
Status: install ok installed
Priority: optional
Section: libdevel
Installed-Size: 3671
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: libsdl2
Version: 2.0.2+dfsg1-3ubuntu1.1
Replaces: libsdl-1.3-dev
Depends: libsdl2-2.0-0 (= 2.0.2+dfsg1-3ubuntu1.1), libasound2-dev, libdbus-1-dev, libegl1-mesa-dev, libgl1-mesa-dev, libgles2-mesa-dev, libglu1-mesa-dev, libmirclient-dev, libpulse-dev, libts-dev, libudev-dev, libwayland-dev, libx11-dev, libxcursor-dev, libxext-dev, libxi-dev, libxinerama-dev, libxkbcommon-dev, libxrandr-dev, libxss-dev, libxt-dev, libxv-dev, libxxf86vm-dev
Conflicts: libsdl-1.3-dev
Description: Simple DirectMedia Layer development files
 SDL is a library that allows programs portable low level access to a video
 framebuffer, audio output, mouse, and keyboard.
 .
 This package contains the files needed to compile and link programs which
 use SDL.
Homepage: http://www.libsdl.org/
Original-Maintainer: Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>

I marked in red a dubious part of the output. For all required packages there seems to be a ¨Replaces:¨. For mono-devel, instead of a ¨Conflicts:¨ there is a large list following from a ¨Breaks:¨. I haven´t checked all packages. On the surface they say ¨ok installed¨ but who knows whats really going on in there?

What can one do? The perspective of starting from the Minimal version of Lubuntu and building a FRO compatible system dependency by dependency is chilling...

If there would not have been so many dependencies for SDL, MONO and MESA, I could have asked for the versions of all from the time when you tested the game on Linux, Chris. But now I believe that it would be much easier for you, or anyone else kind enough to get involved in this maintenance business, to please install a Lubuntu 14.04 Desktop on some machine, and then go through the steps of getting it ready for FRO. I would then know exactly what to do.

Thank you



Last Edited: 4/2/2016 6:11 AM


Quote

Page 1 of 1
Account Summary
You are not currently logged in. You must login to gain access to your account information.
Click here to login.

Don't have an account, Click here to register a new account.
Windows | Requirements
Linux | Requirements
Like Us On Facebook
Vote For Us On Indie DB
Vote For Us On Game Jolt
Chat With Other Players
Gamepedia Wiki