Linux: Run a Compiled Game??

LenseOnLife

  • Posts: 127
 :-[

Hi,

I've got stencyl working fine on LUBUNTU, can import games from my Windows PC and test them on all the platforms without a hitch.  I can even publish to Linux

BUT

What do I do now - how do I get the published game / file to run.  I realise that this is due to my total lack of understanding / knowledge of Linux / Ubuntu.  I right clicked on teh file an set the permission to make it executable but when I try to run it just looks blankly at me stubbornly conserving energy and doing not a thing  ???

Anyone know how to breathe life into that Linux file - should there be a slot for a 10p coin or something like that?  Or maybe its a trade union demarcation issue?

Any suggestions?

Oliver

merrak

  • *
  • Posts: 2738
Have you tried running the game from the terminal console and seeing what error messages you receive?

LenseOnLife

  • Posts: 127
hi,

The frustrating thing is that it does absolutely nothing, just return with the command prompt. No errors. It is as if it runs the game and terminates without doing anything.

Oliver

merrak

  • *
  • Posts: 2738
If you don't mind sending me the executable I'll try to run it and see what I get. I'm running Ubuntu 16.04 LTS

LenseOnLife

  • Posts: 127
Hi Merrak,

Attached is the published 'test' game.  It is a single scene, green colour and no events or anything else.  It runs fine when I test using Flash, Linux platforms etc. but I can't get the published version to do anything  >:(

I'm using LUBUNTU 16.04 LTS

I have no doubt but that I'm not doing something really, really simple and basic  :-[

Seems the game is too big to upload.  Here is a link to my Google drive copy (10.6 MB)

https://drive.google.com/a/lenseonlife.org/file/d/1l-O5X_HA0fb8kZb6aQK-h4dfcR2IvMWA/view?usp=sharing

Oliver

merrak

  • *
  • Posts: 2738
I tried to run the game and got the error message "Error : Null Function Pointer". I reported this in the Issue Tracker: http://community.stencyl.com/index.php?issue=420.0

You can see my workaround in the Issue Tracker thread. It might not hurt to add your experience and data to the thread as well (Stencyl build, Ubuntu version, etc.)

LenseOnLife

  • Posts: 127
Hi Merrak,

Thanks for the input - I'll pop over and have a look at the other thread.

cheers,

Oliver

merrak

  • *
  • Posts: 2738
What do the Windows and OSX builds desktop builds produce? Do they package all the resource files into one large data file?

merrak

  • *
  • Posts: 2738
Edit. It doesn't look like it, but all I have to go on is the Poppytail game that NickamonPoppytail published.

You can package the files in the test game directory for distribution, but the resource files would be easily taken. On the other hand, if that's also the case with Windows/OSX builds (I don't know since I've never built a desktop app on those platforms), then Linux won't be an exception to the norm.

The files you would need to distribute are found in
.../stencylworks/games-generated/GAME/Export/linux64/cpp/bin/

Package all files and subdirectories.

LenseOnLife

  • Posts: 127
Hi,

On my other PC (Win10) the Windows distribution is a folder with subfolders ...

On the Linux (32 bit), under cpp there is a bin folder, a haxe folder and an obj folder.  The game is in the bin folder along with lime-legacy.ndll, manifest, regexp.dso, std.dso and zlib.dso.  I can move the 'bin' to another location on teheUbuntu installation and the game runs fine.  In terms of the other PC(s), even copying everything under cpp to the other machine(s) has no effect.

Just noticed that other machine(s) have different Linux version - so that might be the problem.  The other option is to run as Flash if I could find a Standalone version of Flash to install - the web based isn't suitable for the people using the games.

Oliver

merrak

  • *
  • Posts: 2738
It sounds like you can get a Linux build on par with a build on any other platform, then. You just have to pull it out of the games-generated area.

Just noticed that other machine(s) have different Linux version - so that might be the problem.  The other option is to run as Flash if I could find a Standalone version of Flash to install - the web based isn't suitable for the people using the games.

I think the Flash player was discontinued for Linux a few years ago. Given the current state and direction of Flash, I wouldn't expect it to be a good option, anyway.

If you run the game from the terminal then it should tell you what libraries that are missing. If the other machine is running Ubuntu then checking that it's up to date should fix that problem.