Forum: Official Open PS2 Loader Forum - Discussion and information on the Official Open PS2 Loader.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




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!

 


User Tag List

Thread: Changing\calculating the IGR combos?
  

Results 1 to 5 of 5
  1. #1 Changing\calculating the IGR combos? 
    mgh
    mgh is offline Member
    Join Date
    Jul 2011
    Posts
    234
    Downloads
    0
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    17
    I may be wrong but isn't changing the combos just a simple change in padhook.h

    #define IGR_COMBO_R1_L1_R2_L2 0xF0
    #define IGR_COMBO_START_SELECT 0xF6
    #define IGR_COMBO_R3_L3 0xF9
    My question is how to calculate that number...how Start+Select mean F6 or R3+L3 mean F9 or L2+R2+L1+R1 mean F0
    It's probably something from libpad.h(...ps2sdk\ee\include\libpad.h)but from what I tried,looks like I don't understand it.

    If I change the L2+R2+L1+R1 to for example only L2+R2,this will fix all of my problems(have the ability to return to OPL while having the ability to use the build in game reset on some games).
    Reply With Quote  

  2. #2  
    mgh
    mgh is offline Member
    Join Date
    Jul 2011
    Posts
    234
    Downloads
    0
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    17
    I still don't understand it but by testing I find those.

    FD - L3
    0xFB - R3
    0xF9 - R3 + L3
    0xF7 - Start
    0xF6 - Start + Select
    0xF5 - Start + L3
    0xF3 - Start + R3
    So I changed the Reset to 0xFD(R1+L1+R2+L2+L3)
    and turn off to 0xFB(R1+L1+R2+L2+R3)

    #define IGR_COMBO_R1_L1_R2_L2 0xF0
    #define IGR_COMBO_START_SELECT 0xFD
    #define IGR_COMBO_R3_L3 0xFB
    Which in my personal opinion is much better(I don't know of any game that uses those combinations of anything)

    I can also change the
    IGR_COMBO_START_SELECT and IGR_COMBO_R3_L3 text in padhook.c and padhook.h but the important part are those digits
    Reply With Quote  

  3. #3  
    yoshi314's Avatar
    yoshi314 is offline linux junkie
    Join Date
    Mar 2008
    Posts
    1,786
    Downloads
    6
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    18
    FD - L3
    0xFB - R3
    0xF9 - R3 + L3
    so, R3 + L3 = R3 and L3 = 0xFB && 0xFD = 0xF9 (test it in online hexadecimal calculator).

    you could simply do

    Code:
    #define PAD_L3 0xFD
    #define PAD_R3 0xFB
    
    #define PAD_L3_R3 = PAD_L3 && PAD_R3
    for improved readability.
    Reply With Quote  

  4. #4  
    mgh
    mgh is offline Member
    Join Date
    Jul 2011
    Posts
    234
    Downloads
    0
    Uploads
    0
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    17
    Sorry but I'm little confused.

    Ok I understand the calculation process(I would never think of using && in calculator even thought I know that && mean "and")
    What exactly are you trying to tell me...yes if I type 0xFB && 0xFD = in windows calculator in hex mode,I will get F9 as a result but how should I know 0xFB mean R3 and 0xFD mean L3.

    In libpad.h
    R3 is defined as 0x0004 and L3 as 0x0002...how R3 becomes FD and L3 becomes FB
    Reply With Quote  

  5. #5  
    yoshi314's Avatar
    yoshi314 is offline linux junkie
    Join Date
    Mar 2008
    Posts
    1,786
    Downloads
    6
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    4
    Likes Received
    18
    my guess is that these values are negative, for some reason. they seem to be exact opposites of libpad values, at least those you posted.

    i'll try figuring this out.
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •