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

    qwillis

    4.45 OFW

    Thread Starter: qwillis

    Just a heads up to anyone who see this, 4.45 OFW was just released and there are a bunch of reports of consoles getting bricked.
    So even if you're

    Last Post By: tthousand Today, 12:19 AM Go to last post
    archicharmer

    Game Save Console ID dependence

    Thread Starter: archicharmer

    Next i want to try is Game Save Console ID in whatever dependence. Here i am guessing to a long-numbered Console ID.

    I need that someone

    Last Post By: archicharmer Yesterday, 10:27 PM Go to last post
    Munkee915

    Missing HDD space

    Thread Starter: Munkee915

    I have a PS3 slim w/ a 640gb HDD installed and Rogero 4.41 cfw. I have recently started hitting the limit on HDD space. The XMB shows I have 65gb/596gb

    Last Post By: BahumatLord Yesterday, 10:23 PM Go to last post
    Blyze

    Best uLaunch Version to Use

    Thread Starter: Blyze

    Just wondering which version of uLaunch should I use to install Free McBoot? I've already used the version in the Noobie Package, but all I get is a black

    Last Post By: Blyze Yesterday, 02:30 PM Go to last post
    ConorrChapple

    Anyone wanna play The Last Of Us online?

    Thread Starter: ConorrChapple

    If so add: ConorChapplee

    Last Post By: ConorrChapple Yesterday, 01:33 PM Go to last post
    ShaolinAssassin

    Devil May Cry Pal in NTSC mode

    Thread Starter: ShaolinAssassin

    Hi guys,

    I come here to request a lil help, cause Im really out of ideas. Im trying to play my PAL copy of Devil May Cry with

    Last Post By: Staylecrate Today, 12:11 AM Go to last post
  • Recent Comments

    john0100

    Rogero CEX-4.41 v1.00 Released

    Where is the CINAVIA PATCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Go to last post

    john0100 Today 12:25 AM
    mushbert

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

    Really hoping the PSIO guys can make a good product... My drive is still working OK, but if they... Go to last post

    mushbert Yesterday 11:36 PM
    InTheSevens

    Rogero CEX-4.41 v1.00 Released

    Just in time for the release of 4.45. Go to last post

    InTheSevens Yesterday 11:34 PM
    FarSide

    PlayStation 4 vs Xbox One (E3) - Who won? You decide

    I find the DRM comments the most interesting. If Sony is leaving DRM up to the publisher will this... Go to last post

    FarSide Yesterday 09:47 PM
    maruka

    PS2 Classics Manager v1.02 by CaptainCPS-X

    Installed it all correctly. Ran Jurassic Park Operation Genesis, 1st game I ran, it played fine... Go to last post

    maruka Yesterday 08:28 PM
    tthousand

    Cobra ODE Hardware To Be Released Soon

    Thanks for the lesson an0nym0us . It opened my eyes to some things I did not see before. I... Go to last post

    tthousand Yesterday 08:12 PM
    racer0018

    Cobra ODE Hardware To Be Released Soon

    They were suppose to send me to test but I have not gotten anything and I have not heard back from... Go to last post

    racer0018 Yesterday 05:27 PM
    Gradius

    Cobra ODE Hardware To Be Released Soon

    Price: US$ 120 Go to last post

    Gradius Yesterday 04:50 PM
    The Big Harsh

    Rogero Custom Firmware 4.40 Version 1.03 Released

    After I was on CFW 4.30 I updated to CFW 4.41, then I tried to enter my PSN account but suddenly... Go to last post

    The Big Harsh Yesterday 04:20 PM
    aneesh

    Cobra ODE Hardware To Be Released Soon

    As long as it can run backups on super slim as they show i am happy. Pricing will surely be high. Go to last post

    aneesh Yesterday 02:20 PM