Stencyl is not working properly after upgrading to Ubuntu 13.10 (amd64)

ZHart

  • Posts: 14
ZHart, if you update to the latest version it should work again (as discussed in the other topic.) HTML5 works for me as well with the latest version.
Many thanks for the list of required libraries for Flash.

But after update to the latest version of Stensyl I have some other problems. During compilation, I get errors about missing classes. For example, when compiling the test game "Maze Game" I get the error:
Code: [Select]
Switch Scene (32) -  Class not found
And similar messages about missing classes issued during compilation of any game, although earlier the same games compiled normally.
Moreover, in some games the class names are different for each compilation (for options "Flash (Player)", "Flash (Browser)" and "HTML5").

Here are instructions how to get the Flash player to work and also how to install a 64-bit JDK. The instructions for Ubuntu. (I set up a VM. Didn't take long, and I didn't want to mess around on my system.)
For me, much easier to install Java using the installer from PPA:
Code: [Select]
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer

I don't know why but sometimes the bundled Java version doesn't work. It fails without any error message. For example, I just tried the bundled JRE on my machine, and it worked, but in the Ubuntu VM it didn't.
I already wrote about this in my first post. As I wrote, to me helped installation of the following 32-bit libraries:
Code: [Select]
sudo apt-get install libxtst6:i386 libXext6:i386 libxi6:i386 libncurses5:i386 libxt6:i386 libxpm4:i386 libxmu6:i386 libxp6:i386

captaincomic

  • *
  • Posts: 6108
But after update to the latest version of Stensyl I have some other problems. During compilation, I get errors about missing classes. For example, when compiling the test game "Maze Game" I get the error:
Code: [Select]
Switch Scene (32) -  Class not found
You need to run "Run -> Clean Project" to solve that.

Quote
I already wrote about this in my first post. As I wrote, to me helped installation of the following 32-bit libraries:
Code: [Select]
sudo apt-get install libxtst6:i386 libXext6:i386 libxi6:i386 libncurses5:i386 libxt6:i386 libxpm4:i386 libxmu6:i386 libxp6:i386
Ah, great, that explains it. So there's no need to download a 64-bit JRE.

So the instructions could look like this:
Quote
Installation instruction for Ubuntu and Debian
Installation on other Linux distribution will be similar but the package names could be different. If you have questions, ask on the forum.

1) Packages needed for the compiler:
Install the following packages:
Code: [Select]
sudo apt-get install libgc-dev
Steps 2 and 3 are only needed if you are on a 64-bit Linux.

2) Packages needed to run Stencyl with the bundled JRE:
Install the following packages:
Code: [Select]
sudo apt-get install libxtst6:i386 libXext6:i386 libxi6:i386 libncurses5:i386 libxt6:i386 libxpm4:i386 libxmu6:i386 libxp6:i386
3) Packages needed for the standalone Flash player:

On Debian, you need to add 32-bit architecture to the package manager first
Code: [Select]
sudo dpkg --add-architecture i386
sudo apt-get update
   
On Ubuntu, the package manager has i386 as a foreign architecture by default. You probably don't need to add it.

Now install the following packages:
Code: [Select]
sudo apt-get install libgtk2.0-0:i386 libxt6:i386 libxext6:i386 libatk1.0-0:i386 libc6:i386 libcairo2:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386 libglib2.0-0:i386 libice6:i386 libpango1.0-0:i386 libpng12-0:i386 libsm6:i386 libx11-6:i386 libxau6:i386 libxcursor1:i386 libxdmcp6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 zlib1g:i386 libnss3-1d:i386 libnspr4-0d:i386 libcurl3:i386 libasound2:i386

To make the Gtk warnings about missing themes go away, also install these packages:
Code: [Select]
sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386

« Last Edit: November 27, 2013, 03:43:28 pm by captaincomic »

ZHart

  • Posts: 14
You need to run "Run -> Clean Project" to solve that.

Finally, it works!
Thank you very much for your help.

Jon

  • *
  • Posts: 17524
I think this is best housed inside a README that's distributed with the Linux build. We should also cut the bundled JRE and inform the user about what to do.

I'll have Marck make these changes.

captaincomic

  • *
  • Posts: 6108
A README sounds good.

With the extra packages installed the bundled JRE works, so maybe you could keep it bundled.