PSX-SCENE Forum Discussion for Sony PlayStation/PsOne/PS2/PS3/PSP/PS VITA
  • Deroad Explains Libmove With A How To

    Developer Deroad is back with a tutorial regarding his recently released libmove for psl1ght homebrew development. On the psxbrew wiki you will find the necessary information needed to include the move controller support in your homebrew apps. This is a must read for developers who are keen on adding this to their homebrew apps. Something I can see added to ThatOtherPerson's homebrew game UFO Racer. Just a thought... Check out the below!


    About libmove:
    libmove tutorial online. For any help there are always the forums.

    What is libmove?

    Is a simple lib that allows to use the PlayStation Move controller on the PS3 through PSL1GHT (V2). This lib works only with the Playstation Eye.

    How to use it:

    Include

    It's quite simple to use. First thing is including the lib into the source code.
    Code:
    #include <libmove/libmove.h>
    You don't need any other header. that one include all the things.

    Initialise libmove:

    then you need to initialise it:
    Code:
    initLibMove();
    This function return LIBMOVE_ERROR if something went wrong. If everything is fine, that returns LIBMOVE_OK. This can be an example of how to use this:
    Code:
    if(initLibMove() == LIBMOVE_ERROR){
    //Something went wrong
    return -1;
    }else{
    //Do something..
    }
    End libmove
    To stop the lib, you can simply call this function. it will return LIBMOVE_ERROR if something went wrong. If everything is fine, that returns LIBMOVE_OK.
    Code:
    initLibMove();
    Continued here...
    News Source: psxbrew.net via @Wargio

    PSX-SCENE: The Pinnacle Scene Xenocracy
    tthousand likes this.
    Comments 23 Comments
    1. yes159's Avatar
      yes159 -
      There is one thing i've been wondering about these homemade SDKs, how do they come up with the different functions? Do people just copy them from the official SDKs and incorporate it into their own SDK, or do they make them from scratch somehow (if so, how do they do this?)?
    1. deank's Avatar
      deank -
      The whole psl1ght is a copy of the sony official sdk 1.60/1.90 (with namespace changed from cell to sys). If anyone thinks it is legal he is a fool.
    1. yes159's Avatar
      yes159 -
      Quote Originally Posted by deank View Post
      The whole psl1ght is a copy of the sony official sdk 1.60/1.90 (with namespace changed from cell to sys). If anyone thinks it is legal he is a fool.
      Thanks for the info Yeah, this is what i was wondering about. I'm under the impression that someone means that using the official pirated SDKs is bad, but using a open source one is just fine. If the open source ones are just copy from the official SDKs, then that doesnt change much. No offence to Deroad here, i was just curious how the open source SDKs worked and how they are made.
    1. deroad's Avatar
      deroad -
      Quote Originally Posted by deank View Post
      The whole psl1ght is a copy of the sony official sdk 1.60/1.90 (with namespace changed from cell to sys). If anyone thinks it is legal he is a fool.
      HAHAHAHAHAHAHAHHAHAHAHAHAHAH not true XD

      you should do the comedian deank.

      PSL1GHT is an SDK derived from the reverse engineering made on the ps3 and the official SDK. on V1, devs, kept the original file names from the official SDK, that's why all the stuff starts with cell*.
      on the v2, they changed all the names to make it completely legal. names can have copywrite. anyway, v2 has more functions that v1 doesn't have.

      so it's not true that "The whole psl1ght is a copy of the sony official sdk 1.60/1.90 (with namespace changed from cell to sys)" and yes, it is completely legal. all the softwares are under GPL and BSD licence. also the official SDK uses GNU software, so that's legal since GNU software is OpenSource.

      so, yes I THINK THAT'S LEGAL and i'm a fool to think that. You should remember deank that your "awesome" backup manager, or what you want to call that app, is ILLEGAL. made with closed source software and with libs that has sony copywright (like PSGL) that you use.


      (sorry for the delay to answer to this thread, but i didn't noticed that there was a question here )
    1. yes159's Avatar
      yes159 -
      Thanks for the info to you to, Deroad But if the open source SDK takes stuff from the official SDK, isnt this what Deank is referring to as being illegal? Is everything that is under GNU automatically free (being open source doesnt necessarily means that it is free, if i'm not mistaken)?
    1. deroad's Avatar
      deroad -
      Take stuff from the sdk is illegal. That's obvious. But when you reverse a thing ad then rewrite the code in your way, that's not illegal. An example: arkanoid is the original name of the game, but you can legally recreate the same game in your way. That's what all the ps3 devs has done. They never used a single Sony thing, everything was written to be similar to the Sony sdk. Not everything is under gnu. What was written by Sony is under copywrite, and have it, without the permission of Sony itself, make it illegal
    1. yes159's Avatar
      yes159 -
      I see. Out of curiousity, how much rewriting is happening? To use the Arkanoid example, are we talking about simply changing the title of the game and leaving everything else like it is (hardly any changes as all), or are we talking about making a completely new game like Alleyway or BreakQuest (both games are based on the Arkanoid idea, but they have all different levels, themes, music etc.).
    1. deroad's Avatar
      deroad -
      I don't know. But, for example: librsx is completely written by the devs. That lib was not written by Sony. When you talk about psl1ght, you are talking about a software that only links some functions to the sprx inside the ps3 and some tools to build pkg, self, etc.. There are only a few Real libs (like librsx) with the sdk.all the other libs are only ported to work on the ps3 (that's why there is a folder called "portlibs"). I think that on v2, there are only my libs and 2-3 others, completely written from 0 for psl1ght.
    1. tthousand's Avatar
      tthousand -
      I am going to have to change this to deroad explains thread. Thanks for answering all the questions. I am sure there aren't to many bounds to your knowledge of the scene. Thanks again, for what you do, and for being a friend!

      How hard would it be for me to make a pkg like the one you made me last year? Is it pretty n00b friendly, or am I most likely going to go through some trial and error, and possibly asking for support?
    1. yes159's Avatar
      yes159 -
      Quote Originally Posted by deroad View Post
      I don't know. But, for example: librsx is completely written by the devs. That lib was not written by Sony. When you talk about psl1ght, you are talking about a software that only links some functions to the sprx inside the ps3 and some tools to build pkg, self, etc.. There are only a few Real libs (like librsx) with the sdk.all the other libs are only ported to work on the ps3 (that's why there is a folder called "portlibs"). I think that on v2, there are only my libs and 2-3 others, completely written from 0 for psl1ght.
      Ah ok, i see. So all the other libs are not included in ps1ight? But arent they needed to be able to make some homebrew? Unless that is what you mean with "portlibs", that those libs are taken directly from the official PS3 SDK (unless i'm misunderstanding something)?
    1. yoshi314's Avatar
      yoshi314 -
      Quote Originally Posted by deank View Post
      The whole psl1ght is a copy of the sony official sdk 1.60/1.90 (with namespace changed from cell to sys). If anyone thinks it is legal he is a fool.
      it looks like a thin layer to forward requests to the in-firmware drivers actually. there does not seem to be any magic proprietary code to process input data in any special way in here. this stuff could be easily derived from analysis of firmware move + camera modules.

      also, there is a project to use move on linux and linux kernel driver for the ps3 camera, that's been around for a few years - this might have also helped greatly with accomplishing this.

      additionally, sony has been known to act quickly on offending github hosted projects. i'd take lack of their action here as a good thing.

      from legal point of view, API is not subject to copyright (see the recent oracle vs google java lawsuit drama for good examples). API as in names of syscalls, the amount of arguments they take, the expected return values, etc. it's the implementation that is copyrighted.

      i assume the former is what you mean here. the syscall names might have been derived either from the ps3 firmware (as there is an option to setup the move controller in firmware) or from any move-enabled application.

      if that's your point, you might find that ps2sdk is just as illegal, because some modules are written to be a drop-in replacements for official ones, and work with apps written with official sdk on that platform. similarily on psp. and i would assume it's the same thing on other consoles ( which i do not have ) .
    1. deank's Avatar
      deank -
      Quote Originally Posted by deroad View Post
      HAHAHAHAHAHAHAHHAHAHAHAHAHAH not true XD

      you should do the comedian deank.

      PSL1GHT is an SDK derived from the reverse engineering made on the ps3 and the official SDK. on V1, devs, kept the original file names from the official SDK, that's why all the stuff starts with cell*.
      on the v2, they changed all the names to make it completely legal. names can have copywrite. anyway, v2 has more functions that v1 doesn't have.

      so it's not true that "The whole psl1ght is a copy of the sony official sdk 1.60/1.90 (with namespace changed from cell to sys)" and yes, it is completely legal. all the softwares are under GPL and BSD licence. also the official SDK uses GNU software, so that's legal since GNU software is OpenSource.

      so, yes I THINK THAT'S LEGAL and i'm a fool to think that. You should remember deank that your "awesome" backup manager, or what you want to call that app, is ILLEGAL. made with closed source software and with libs that has sony copywright (like PSGL) that you use.


      (sorry for the delay to answer to this thread, but i didn't noticed that there was a question here )
      I'm not going down the name-calling road or insulting your 'apps'. My 'awesome app' doesn't use PSGL. I don't really care what you think - it doesn't change the legality of the psl1ght sdk.

      Let me quote you:
      PSL1GHT is an SDK derived from the reverse engineering made on the ps3 and the official SDK
      This alone is illegal.
    1. deank's Avatar
      deank -
      Quote Originally Posted by yoshi314 View Post
      it looks like a thin layer to forward requests to the in-firmware drivers actually. there does not seem to be any magic proprietary code to process input data in any special way in here. this stuff could be easily derived from analysis of firmware move + camera modules.
      My comment was in no way directed at libmove/librsx/efl or at deroad's work.
    1. yoshi314's Avatar
      yoshi314 -
      Quote Originally Posted by deank View Post
      My comment was in no way directed at libmove/librsx/efl or at deroad's work.
      sorry about all that, then. got lost in the discussion

      however, in case of psl1ght, i'll stand by my opinion until i am proven wrong.
    1. deroad's Avatar
      deroad -
      Quote Originally Posted by deank View Post
      This alone is illegal.
      Still not true. reverse is not illegal. you can't even make it illegal if your purposes is the implementation of a thing.

      when you do "reverse engineering", what you do is understand how it works (but it's not really necessary to fully understand it) and be able to reproduce it. what it means? you can "reverse" something also just looking it: for example, if you have an handcart and you understand how to reproduce it, without the need to know why the wheel is made in that way, or why was built in that way, and you build an implementation of that, you have just done Reverse Engineering.

      Now, if you take the PSEye/EyeToy (i don't remember which one works, but thanks for the example yoshi314) and try to connect to a pc with the latest kernel it will work. why it works? because somebody understood how to communicate to the hardware and got it working. how it does that? simply with reverse engineering. does it means that it used Sony drivers and reverse them? NO. does it means that his code is ILLEGAL? NO. does it means that what is released is under some kind of copywrite since it is using Sony hardware? NO.

      So where is the ILLEGAL part? it's illegal if you use "reverse engineering" with the purposes of creating a competing product (and for "creating a competing product" i mean that you are going to sell it as a perfect clone).

      PSL1GHT is not a clone, you can't even call it clone. it only has the main functions implemented to be similar to the original one. why isn't it illegal? simply because is something derived from a reverse engineering and implemented to get the code working with the hardware. they simply arranged a way to talk to the machine. it's illegal if your code is based on the original one. PSL1GHT is partially derived from the original one but not based from it.

      let's take for example my homebrew that you have reversed to get the brewology api.

      (Assume for example that my original code were under some strict copywrite) What you have done is an implementation of the use of the API. does it make your code "illegal" (in the case if my code was under some kind of copywrite)? NO. because it's YOUR implementation derived from my code. is it based on my code? NO. so it's not illegal. it's illegal that you have used the brewology api (but that's another thing and we already talked about that).
    1. deank's Avatar
      deank -
      Whatever man... Whatever makes you happy.
    1. deroad's Avatar
      deroad -
      Quote Originally Posted by tthousand View Post
      How hard would it be for me to make a pkg like the one you made me last year? Is it pretty n00b friendly, or am I most likely going to go through some trial and error, and possibly asking for support?
      what pkg ?
    1. tthousand's Avatar
      tthousand -
      I don't want to say in public. It's the only one I've ever had you made for me. It was about 9 months ago or so. If you still don't remember, let me know, and I will just send you a PM or DM (DM on twitter).
    1. deroad's Avatar
      deroad -
      Quote Originally Posted by tthousand View Post
      I don't want to say in public. It's the only one I've ever had you made for me. It was about 9 months ago or so. If you still don't remember, let me know, and I will just send you a PM or DM (DM on twitter).
      That one??! Ok. Understood
    1. tthousand's Avatar
      tthousand -
      Quote Originally Posted by deroad View Post
      That one??! Ok. Understood
      SO basically, I am asking if I were to try that out for myself... Would I just go to your mega hacking thread... Or would I find better information at PSXBrew?
  • Daily Digest


    Want to receive the latest PSX info in your email?

    Sign up for our Daily Digest!



    Want to learn more about the team keeping you up to date with the latest scene news?

    Read about them now!

    Check out our Developer bios, too!

  • Recent Threads

    ANTZ7

    question about using bruteforce

    Thread Starter: ANTZ7

    yo all

    so my question is. i just used bruteforce to change some games saves over

    i did far cry 3 perfect and did tombraider

    Last Post By: ANTZ7 Today, 09:29 PM Go to last post
    posimosh

    WTS G25 Racing Wheel $120 (US) Will Ship

    Thread Starter: posimosh

    Used for about a year. In good shape with minor wear and tear, minor signs of usage, but hardware wise, its perfect. I have pictures to share if yall

    Last Post By: posimosh Today, 08:58 PM Go to last post
    APE992

    Slim PS2 boots to black screen

    Thread Starter: APE992

    I've got a SCPH-77001 that appears to have everything work short of actually working. I can hear the laser try to focus, it'll spin up discs, the sled

    Last Post By: RandQalan Today, 06:56 PM Go to last post
    hcode123

    New Multiman Themes by hcode123

    Thread Starter: hcode123

    Harlem shake instrumental in the abstract themes.

    Abstract Red Theme

    Abstract Red Theme.zip

    Abstract Orange Theme

    Last Post By: hcode123 Today, 04:20 PM Go to last post
    selfa

    ASSASSIN'S CREED 3 doesn't start

    Thread Starter: selfa

    hello
    i downloaded assassin's creed 3 (eur and usa) but when i launch the game it doesn't start and redirect me back to xmb...

    Last Post By: bitsbubba Today, 05:36 PM Go to last post
    Glennrap

    BLUS30919 won't work anymore?

    Thread Starter: Glennrap

    Hi guys,

    I would normally find a solution online but I havent come across any issue like this thats simular... Basically im running rogero

    Last Post By: Anno1404 Today, 08:25 AM Go to last post
  • Recent Comments

    worrorfight

    Pointman: The Akkadian Wars - Homebrew Game by Condorstrike

    I would be in that class.. :D Go to last post

    worrorfight Today 10:26 PM
    Gradius

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    Emulators are never perfect. On PS3 for example, the colors (yes! the colors!) are ALL WRONG, not... Go to last post

    Gradius Today 10:22 PM
    tthousand

    Pointman: The Akkadian Wars - Homebrew Game by Condorstrike

    I was talking about this release :p It looks so amazing, you should start a class to teach people.... Go to last post

    tthousand Today 10:09 PM
    atreyu187

    Fan Control Utility v1.7 Relased CFW 4.41 Supported!!

    Correct confirmed Rebug Toolbox will in fact work so just the utility can be ran from a cold start. Go to last post

    atreyu187 Today 08:03 PM
    GhaleonX

    PSIO Team Update To Project PlayStation Input Output - A PS1 SD Card Hack

    I'd be more interested in a display mod - some emulators give better (sharper, better polys, etc)... Go to last post

    GhaleonX Today 07:39 PM
    bitsbubba

    PSChannel receives some Eye Candy from Opium2k

    http://youtu.be/RT9O-pUGsVM
    Yes that's Dre on the turn tables, :p Go to last post

    bitsbubba Today 07:38 PM
    STLcardsWS

    New Multiman Themes by hcode123

    How to place a Vote



    http://img716.imageshack.us/img716/9273/psxscenecontesttute.gif Go to last post

    STLcardsWS Today 07:12 PM
    underball

    In Depth Review/Comparison Of OEM Cooling Fans

    actually, the quality of the paste is only a tiny bit of it. What makes the biggest difference is... Go to last post

    underball Today 06:25 PM
    elver

    In Depth Review/Comparison Of OEM Cooling Fans

    Any news on the poorly named Talismoon Whisper for PS3 FAT?
    I've replaced thermal paste under the... Go to last post

    elver Today 06:24 PM
    karim-psx

    In Depth Review/Comparison Of OEM Cooling Fans

    I had changed the thermal past under the IHS and I got those temps, also in my update I have raised... Go to last post

    karim-psx Today 05:55 PM