PSP-Hacks.com

Join the Dashhacks Fan Club on FacebookFollow Dashhacks on TwitterDashhacks YouTube ChannelPSP-Hacks RSS Feed

Hack your Sony PSP

Forums | Tutorials | Custom Firmwares | PSP Themes | Search


 

Joyau: Programming with Ruby on the PSP

greg | July 13, 2009

Calling all devs, especially those well-versed in Ruby. Welcome to the game — Kode’s Joyau (read: Jewel, in English).

Joyau is a Ruby interpreter for the PlayStation Portable. Similar to that of Lua you’ll code in Ruby and crunch that code using the supplied EBOOT, which acts as the script interpreter. Kode notes the documentation is currently incomplete; however, you can learn how things work by trial and error and using the provided samples.

Ruby Logo

Things you may need and/or should know:

  1. Copy the “script.rb” file (your Ruby code) into the same directory as the Joyau EBOOT.
  2. The Joyau EBOOT is compiled with PSP_FW_VERSION = 371.
  3. Try LEDA or Time Machine if you’re experiencing problems with executing the EBOOT.

Current features:

  • A working sprite system;
  • A particles generator (just a front end to the devslib one in fact);
  • A scrolling class;
  • Some audio function (really basic though, I’ve to work on that… I’ll try with OpenAL to provide ogg support at least);
  • Also, text manipulation (drawing text, …);
  • Possibility to draw basic forms (Circle, rect, …);
  • Some things provided by Ruby itself.

Download: Joyau v0.4: Ruby Interpreter for the PSP

Source code & samples via GitHub.

- source: ps2dev

Share This With...
  • Facebook
  • Digg
  • Twitter
  • RSS
  • Slashdot
  • Technorati
  • del.icio.us
  • Reddit
  • Blogosphere News
  • HackerNews
  • StumbleUpon
  • Google Bookmarks
  • email
Comments (21)

Tagged: :: ::

RSS feed | Trackback URI

21 Comments »

Comment by Jaryth
2009-07-13 12:54:13

Its good to see more support like this. The more platforms people can do things in, generally, the more things people will do! :D

 
Comment by Fayte
2009-07-13 13:02:13

YES!!!!! THANKYOU!!! I”LL SPREAD THE WORD!!! KEEP WORKING ON THIS!!! it is EPIC! :D

 
Comment by slack
2009-07-13 13:48:24

I don’t get it… What is this exactly?

Comment by Mon Ouïe (Kode)
2009-07-14 07:41:46

Hi,

Ruby is a programming language, just like Lua, or C.
It is usually interpreted, and Ruby developers made a library which allow us to easily create extensions in C.

After that, Vincent Xu (Thus, not me) has ported the library for the PSP, and I use it in Joyau.
I create classes in C++, and then I wrap them with ruby library.

If you don’t understand it yet, it’s exactly like the Lua player, but it’s for Ruby.

 
 
Comment by Sh4d0w
2009-07-13 14:17:43

I have never heard of ruby before but this looks cool!

 
Comment by Turtlebelly
2009-07-13 14:25:23

Interesting. Here’s a question.

RPG Maker uses Ruby for a lot
of the important game-bits, does
this open the potential for a PSP
port?

Comment by Mon Ouïe (Kode)
2009-07-14 07:48:06

Some people have already asked this.

Actually, it should be possible, but it’d take time, and you can be sure it’s not me who would do this.

In fact, you have to port the full RGSS for the PSP, and to create wrapper for these. Some functions would be really hard to get, some could even be done in Ruby.

Anyway, you could as well start a project from scratch and just use the libruby, since it’ll probably be easyer to do all the class without using mine.

Also you’ll have to convert RPG maker data in order to make them easyer to read, since they’re serialized.

Comment by Turtlebelly
2009-07-14 14:33:54

Alright, thank you very much for explaining this!

 
 
Comment by Synwyrm
2009-07-15 18:58:47

Couldnt you just find the psx version of Rpg Maker, although i’ve had problems on a phat, it seems to work fine on a slim.

 
 
Comment by Kilogold
2009-07-13 14:44:00

Ruby… Interesting… I’d like to see what people will do with this…

 
Comment by XTGZoReX
2009-07-13 15:03:08

> RPG Maker uses Ruby for a lot
of the important game-bits, does
this open the potential for a PSP
port?

Is it Open Source? If not, probably no.

> I don’t get it… What is this exactly?

Thou shalt Google.

Comment by slack
2009-07-13 18:11:30

Weelll… Thou shalt Google is new, so I won’t get mad at you lol ;)

 
 
Comment by Acid_1
2009-07-14 01:51:47

Now if only an active Python and Java project were up, a whole new community could arise.

Comment by Decius
2009-07-14 05:03:58

I would find Python would be closer to do than Java, If you mean JRE on the PSP of course.

=\

Comment by Acid_1
2009-07-14 21:39:25

Well I do Python personally, and dabble in straight up C (No ++/#). I am not at all versed in Java but aren’t you able to use it as an interpreted language like Python or Perl?

 
 
 
Comment by Mon Ouïe (Kode)
2009-07-14 07:59:07

Oh, I’ve said the documentation wasn’t complete in the first post, but now it’s totally false : All functions and classes are listed.

 
Comment by Mr. Shizzy
2009-07-14 10:00:34

Awesome !!
Thanks for sharing :D

I’ll post this at my web page as well:

theplayground-uk.c0/\/\

 
Comment by Decius
2009-07-16 07:50:10

Who else is getting the error “80020148″ ?

Everytime I launch the app it gives me the following error; And yes script.rb is in the same directory as the eboot.

>_>

Comment by Mon Ouïe (Kode)
2009-07-16 08:08:11

That’s fixed in the newers versions. O.4 was the last having that problems.
You can get the newest version EBOOT.PBP here : http://cloud.github.com/downloads/Kode/Joyau/EBOOT.PBP

 
 
Comment by MK2k
2009-07-16 10:36:06

How’s the performance of ruby on the PSP? I know that ruby is one of the slowest (but really feature rich) scripting languages out there. PHP on PSP anyone? :)

However, big ups for ruby on rail… err PSP!

 
<< Login :: Register >>
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)


Affiliates



Video Games






PSP Hacks Archives