Results 1 to 6 of 6

Thread: psp hombrew programing help needed

  
  1. #1
    canadabear07 is offline -Hacks Newbie
    Join Date
    Jul 2011
    Posts
    9
    Rep Power
    0

    Default psp hombrew programing help needed

    what is rong wth this script? when i press buttons nothing happens



    -- ******* Variables ********

    green = Color.new(0,255,0)
    upPressed = 'You are pressing the "UP" button'
    downPressed = 'You are pressing the "DOWN" button'
    leftPressed = 'You are pressing the "LEFT" button'
    rightPressed = 'You are pressing the "RIGHT" button'
    LPressed = 'You are pressing the "L" button'
    -- *****Main Loop****** while true do
    screen:clear()
    pad = Controls.read()
    if pad:up() then screen:print(100,100,upPressed,green) end
    if pad:down() then
    screen:print(100,100,downPressed,green)
    end
    if pad:left() then
    screen:print(100,100,leftPressed,green)
    end
    if pad:right() then
    screen:print(100,100,rightPressed,green)
    end
    if pad:l() then
    screen:print(100,100,LPressed,green)
    end
    if pad:r() then
    screen:print(100,100,'You are pressing the "R" button',green)
    end
    if pad:triangle() then
    screen:print(100,100,'You are pressing the "TRIANGLE" button',green)
    end
    if pad:circle() then
    screen:print(100,100,'You are pressing the "CIRCLE" button',green)
    end
    if pad:cross() then
    screen:print(100,100,'You are pressing the "X" button',green)
    end
    if pad:square() then
    screen:print(100,100,'You are pressing the "SQUARE" button',green)
    end
    screen.waitVblankStart()
    screen.flip()
    end


  2. #2
    Ryu's Avatar
    Ryu
    Ryu is offline Super Mod of the Brood -Hacks Titan
    Join Date
    Mar 2006
    Location
    Dologany
    Posts
    19,190
    Rep Power
    40

    Default

    what is that codding in

    PSP 1.5 got on USA first day is was 1.5 NOW 4.01 M33-2 -> 5.00 M33-6(1.50 addon),
    Old PS3s: PS3 60GB FW:3.41(2nd ps3 YLoD, 1st, YLoD)
    New PS3:
    Slim 160gb 01-21-2011 Working
    was 3.40 OFW->3.60 OFW

    2nd PSP : PHAT 5.50 GEN-D2
    3rd PSP : Sliver 3000 Starting OFW:4.20 (NEW bought NEW on 11/28/2010)
    It a good idea to have "Hide extensions for known file types" in Folder Options(under Tool) unchecked (turn on extensions)

    3DS FC:0301-9790-8019

  3. #3
    canadabear07 is offline -Hacks Newbie
    Join Date
    Jul 2011
    Posts
    9
    Rep Power
    0

    Default

    Lua

  4. #4
    Ryu's Avatar
    Ryu
    Ryu is offline Super Mod of the Brood -Hacks Titan
    Join Date
    Mar 2006
    Location
    Dologany
    Posts
    19,190
    Rep Power
    40

    Default

    moved to the LUA section

    PSP 1.5 got on USA first day is was 1.5 NOW 4.01 M33-2 -> 5.00 M33-6(1.50 addon),
    Old PS3s: PS3 60GB FW:3.41(2nd ps3 YLoD, 1st, YLoD)
    New PS3:
    Slim 160gb 01-21-2011 Working
    was 3.40 OFW->3.60 OFW

    2nd PSP : PHAT 5.50 GEN-D2
    3rd PSP : Sliver 3000 Starting OFW:4.20 (NEW bought NEW on 11/28/2010)
    It a good idea to have "Hide extensions for known file types" in Folder Options(under Tool) unchecked (turn on extensions)

    3DS FC:0301-9790-8019

  5. #5
    10$man's Avatar
    10$man is offline Programmer -Hacks Smarty
    Join Date
    Jun 2010
    Posts
    100
    Rep Power
    8

    Default

    Code:
    green = Color.new(0,255,0)
    upPressed = 'You are pressing the "UP" button'
    downPressed = 'You are pressing the "DOWN" button'
    leftPressed = 'You are pressing the "LEFT" button'
    rightPressed = 'You are pressing the "RIGHT" button'
    LPressed = 'You are pressing the "L" button'
    -- *****Main Loop****** while true do
    screen:clear()
    pad = Controls.read()
    if pad:up() then screen:print(100,100,upPressed,green) end
    if pad:down() then
    screen:print(100,100,downPressed,green)
    end
    if pad:left() then
    screen:print(100,100,leftPressed,green)
    end
    if pad:right() then
    screen:print(100,100,rightPressed,green)
    end
    if pad:l() then
    screen:print(100,100,LPressed,green)
    end
    if pad:r() then
    screen:print(100,100,'You are pressing the "R" button',green)
    end
    if pad:triangle() then
    screen:print(100,100,'You are pressing the "TRIANGLE" button',green)
    end
    if pad:circle() then
    screen:print(100,100,'You are pressing the "CIRCLE" button',green)
    end
    if pad:cross() then
    screen:print(100,100,'You are pressing the "X" button',green)
    end
    if pad:square() then
    screen:print(100,100,'You are pressing the "SQUARE" button',green)
    end
    screen.waitVblankStart()
    screen.flip()
    end
    You forgot to put while true do (right before screen:clear())
    My PSPz: PSP 2000 5.00 m33-4, PSP 1000 GEN d3

    Group Projects: Game (unannounced)

    personal Projects: Shotgun fun fun psp, Learning exploiting

  6. #6
    Zasisem's Avatar
    Zasisem is offline -Hacks Enthusiast
    Join Date
    May 2010
    Posts
    316
    Rep Power
    8

    Default

    @10$Man
    Yeah he did put it, but he put it where it's stated as a comment:

    -- *****Main Loop****** while true do

    He must've rushed it, it should be:
    -- *****Main Loop******
    while true do

Posting Permissions

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