Stencyl on Raspberry Pi 3?

lucasloredo

  • Posts: 2
I don't have a laptop or desktop—only an iPad, plus my school's computers. I'm trying to think of the most cost-effective way to get Stencyl into my life, and I thought—What about Raspberry Pi? I know there have been posts in the past, but no one has asked the question since Rasppi 3 came out. Have there been any changes with the new model that might allow Stencyl to run on it? $60 for a Stencyl platform sounds pretty damn good.

JeffreyDriver

  • Posts: 2262
Couldn't you grab a second hand laptop for very little? In the UK you can grab a refurbished laptop for £100 (about $120 usd) You could probably pick up a straight second hand (not refurbished) for even less.

milkstache

  • *
  • Posts: 39
Stencyl's minimum requirements ask for one of these
    Mac OS X 10.9 (Mavericks)
    Windows 7
    Ubuntu 10.04
    Java 8 or later.
so if you can install any of them on the pi then you can install stencyl there also since stencyl probably has a lower requirement than any of the OS that it run's on. I would assume the same goes for games made in stencyl but you will have to take memory into account.

mdotedot

  • Posts: 1640
Some time ago I used the following steps to run Stencyl on Raspberry PI 3.

The problem was with RUNNING a game. Java (with which Stencyl is made) runs just fine with the path adjustment.
I used Mac to create the image and the steps.

I am waiting for openfl version to try the last link in the text:
"



https://www.raspberrypi.org/downloads

RaspBian (jessie)



jar xvf 2016-02-26-raspbian-jessie.zip

Make sure that the disk you want is unmounted from Mac
diskutil unmountDisk /dev/disk5

SD Formatter Macintosh Download
Overwrite Format

 

sudo dd bs=1m if=2016-03-18-raspbian-jessie.img of=/dev/rdisk5


sudo diskutil unmountDisk /dev/disk5



ssh -l pi 192.168.x.x

raspberry is password





Enlarge the Raspberry PI when booted with jessie.



$ sudo bash

$ fdisk /dev/mmcblk0

mmand (m for help): p
Disk /dev/mmcblk0: 14.9 GiB, 16021192704 bytes, 31291392 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0cf63fa8

Device         Boot  Start     End Sectors  Size Id Type
/dev/mmcblk0p1        8192  131071  122880   60M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      131072 7870463 7739392  3.7G 83 Linux


Command (m for help): d
Partition number (1,2, default 2): 2

Partition 2 has been deleted.

Command (m for help): n
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2):
First sector (2048-31291391, default 2048): 131072
Last sector, +sectors or +size{K,M,G,T,P} (131072-31291391, default 31291391): 31291100

Created a new partition 2 of type 'Linux' and of size 14.9 GiB.

Command (m for help): p
Disk /dev/mmcblk0: 14.9 GiB, 16021192704 bytes, 31291392 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0cf63fa8

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        8192   131071   122880   60M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      131072 31291100 31160029 14.9G 83 Linux

w = write

reboot

sudo resize2fs /dev/mmcblk0p2

reboot

DONE


== VNC ==

 apt-get install tightvncserver


vncserver

(Password)


aspberrypi:~/Downloads $ cd
pi@raspberrypi:~ $ cd .config/
pi@raspberrypi:~/.config $ mkdir autostart
pi@raspberrypi:~/.config $ cd autostart/
pi@raspberrypi:~/.config/autostart $ nano tightvnc.desktop
[Desktop Entry]
Type=Application
Name=TightVNC
Exec=vncserver :1
StartupNotify=false
^O
^X

Mac Client
Finder
  Go -> Connect to server
 

vnc://192.168.2.1:5901


====


Stencyl download with browser epiphany.



Modify the Stencyl command: cp Stencyl run
vi run
Remove path in front of java

mv /usr/bin/haxe /usr/bin/old_haxe
mv /usr/bin/haxelib /usr/bin/old_haxelib

Follow :  (Need new openfl version to be used by Stencyl)

http://www.gepatto.nl/get-piratepig-running-on-a-raspberry-pi-2-with-raspbian-jessie/


"
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

morphman86

  • Posts: 141
Couldn't you grab a second hand laptop for very little? In the UK you can grab a refurbished laptop for £100 (about $120 usd) You could probably pick up a straight second hand (not refurbished) for even less.

Actually, places like Cash Converters are a bit expensive. The £100 one from there would cost £60-£80 from Amazon or eBay :)

As for the RasPi, the specs are high enough and it can run Ubuntu 10.4, so it should have no problems running Stencyl.
In fact, a very common thing to run on a RasPi (even from the 2.x days) is Minecraft, both server and client on the same board. My laptop has problems running that, but no problems with Stencyl, so I'm fairly certain the RasPi 3 can run it.

The problem, as I see it, is that you'll want more than the board. You want the SD card to put the OS on and use for storage, so that's probably around $20. Then a display, unless you wanna sit in front of the TV (which gives odd resolutions), so at least another $15 for a cheap used one. Keyboard and mouse is a must, so that's another $15.
Now you've gone from $60 to at least $110. At that price you might as well get a used laptop.

If you wanna do it because it's cool, that's one thing, but if your main concern is to save money, then I think a laptop is your best bet.
Programming equivalent of Jack-of-all-trades

kierannolan

  • Posts: 64
Raspberry Pi compatibility is something I've been waiting for,  the Pi is brilliant plug and play solution if you are showing your game in a public space, for example at an exhibition

It's small, easy to transport or send by post if you have to, and if it gets lost or damaged it's not a big deal

I'm looking forward to getting this working :)