Seite 149 von 342 ErsteErste ... 49 99 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 199 249 ... LetzteLetzte
Zeige Ergebnis 4.441 bis 4.470 von 10238

Lua Programming Help Thread

This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; u mean eboot.pbp in game% ? PSPBrew is best imo ;) look in http://dl.qj.net for it...

  
  1. #4441
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    u mean eboot.pbp in game% ? PSPBrew is best imo ;)
    look in http://dl.qj.net for it



  2. #4442
    QJ Gamer Blue
    Points: 4.918, Level: 44
    Level completed: 84%, Points required for next Level: 32
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    6ft. Down Underground........Oh and guess what my avatar is
    Beiträge
    387
    Points
    4.918
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    ok what do i do?...just change the pic?

  3. #4443
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    yes..and remove at3 coz its GTA theme

  4. #4444
    QJ Gamer Blue
    Points: 4.918, Level: 44
    Level completed: 84%, Points required for next Level: 32
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    6ft. Down Underground........Oh and guess what my avatar is
    Beiträge
    387
    Points
    4.918
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von myschoo
    yes..and remove at3 coz its GTA theme
    ok...and on the other one...can I have more then one lua file?

  5. #4445
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    yes...only the 1st one must be named script.lua ...thats the starting one...
    u can have as many u want to ;)

  6. #4446
    QJ Gamer Blue
    Points: 4.918, Level: 44
    Level completed: 84%, Points required for next Level: 32
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    6ft. Down Underground........Oh and guess what my avatar is
    Beiträge
    387
    Points
    4.918
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von myschoo
    yes...only the 1st one must be named script.lua ...thats the starting one...
    u can have as many u want to ;)
    ok cool, so instead of index you put script


    Oh and i was wandering when my game go's to beta stage will you beta test it?

  7. #4447
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    yes script.lua

    no problem :)

    pls can u tell me how do u change ur "mood" sign under ur name? :)

  8. #4448
    QJ Gamer Blue
    Points: 4.918, Level: 44
    Level completed: 84%, Points required for next Level: 32
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    6ft. Down Underground........Oh and guess what my avatar is
    Beiträge
    387
    Points
    4.918
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von myschoo
    yes script.lua

    no problem :)

    pls can u tell me how do u change ur "mood" sign under ur name? :)
    yea go to editoptions...and change it their

  9. #4449
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    it works! thx thx :)

  10. #4450
    QJ Gamer Blue
    Points: 4.918, Level: 44
    Level completed: 84%, Points required for next Level: 32
    Overall activity: 0%

    Registriert seit
    Sep 2006
    Ort
    6ft. Down Underground........Oh and guess what my avatar is
    Beiträge
    387
    Points
    4.918
    Level
    44
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von myschoo
    it works! thx thx :)
    no problem

  11. #4451
    Ponies and Unicorns
    Points: 5.778, Level: 49
    Level completed: 14%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Pelennor Fields
    Beiträge
    547
    Points
    5.778
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    when i change the variable currentarea should i assign the picture variables used in the previous area to "nil" to save ram space or is it fine???
    If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
    Gold donations are highly appreciated!

  12. #4452
    QJ Gamer Green
    Points: 11.800, Level: 71
    Level completed: 38%, Points required for next Level: 250
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Ort
    Middle Europe
    Beiträge
    1.281
    Points
    11.800
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    i think if u use dofile they will still stay in RAM

  13. #4453
    Ponies and Unicorns
    Points: 5.778, Level: 49
    Level completed: 14%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Pelennor Fields
    Beiträge
    547
    Points
    5.778
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Im trying not to use dofiles right now both my areas are in 1 file index.lua but I see a lot of posts about people saying the psp crashed because of the ram overload on picture files so i was wondering if i need to assign them to nil or not or if that will even do anything.
    If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
    Gold donations are highly appreciated!

  14. #4454
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    ???

    its fine. just do

    if currentarea = something then
    blit this image
    if not then
    blit this one

    the psp shouldnt get an overload from that..i do it all the time
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  15. #4455
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von GuitarGod1134
    when i change the variable currentarea should i assign the picture variables used in the previous area to "nil" to save ram space or is it fine???

    it depends. is your player allowed to back to that area? if its gone forever, then just make it nil, otherwise keep it.
    --------------------------------------------------------------------------------------

  16. #4456
    Ponies and Unicorns
    Points: 5.778, Level: 49
    Level completed: 14%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Pelennor Fields
    Beiträge
    547
    Points
    5.778
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    ok thanks alright well i made this little app while i was waiting for some responses and im getting an error something at like 49 with is the eof but idk whats wrong.
    edit : lol nvm i never put while true do lol.
    If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
    Gold donations are highly appreciated!

  17. #4457
    QJ Gamer Blue
    Points: 6.041, Level: 50
    Level completed: 46%, Points required for next Level: 109
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Missouri
    Beiträge
    451
    Points
    6.041
    Level
    50
    Downloads
    0
    Uploads
    0

    Standard

    I'm having trouble with exiting my menu.

    Code:
    black = Color.new(0,0,0)
    red = Color.new(255,0,0)
    white = Color.new(255,255,255)
    menustatus = 1
    stickmenu = Image.load("stickmenu.png")
    oldpad = Controls.read()
    while true do
    pad = Controls.read()
    screen:clear(white)
    screen:blit(0,0,stickmenu)
    screen:print(180,170,"Single Player",black)
    screen:print(180,180,"Multiplayer",black)
    screen:print(180,190,"Controls",black)
    screen:print(180,200,"Exit",black)
    if menustatus == 1 then
    screen:print(180,170,"Single Player",red)
    end
    if menustatus == 2 then
    screen:print(180,180,"Multiplayer",red)
    end
    if menustatus == 3 then
    screen:print(180,190,"Controls",red)
    end
    if menustatus == 4 then
    screen:print(180,200,"Exit",red)
    end
    if pad:down() and oldpad:down() ~= pad:down() then
    menustatus = menustatus + 1
    end
    if pad:up() and oldpad:up() ~= pad:up() then
    menustatus = menustatus - 1
    end
    if menustatus == 0 then
    menustatus = 4
    end
    if menustatus == 5 then
    menustatus = 1
    end
    if pad:cross() and menustatus == 1 then
    --code--
    end
    if pad:cross() and menustatus == 2 then
    --code--
    end
    if pad:cross() and menustatus == 3 then
    --code--
    end
    if pad:cross() and menustatus == 4 then
    os.exit()
    end
    screen.waitVblankStart()
    screen.flip()
    oldpad = pad
    end
    It waits about 10 seconds and shuts completely off. So it won't go to the XMB like it's supposed to.

  18. #4458
    Ponies and Unicorns
    Points: 5.778, Level: 49
    Level completed: 14%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Pelennor Fields
    Beiträge
    547
    Points
    5.778
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    whats wrong with home? if u want to go to the xmb?
    If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
    Gold donations are highly appreciated!

  19. #4459
    QJ Gamer Gold
    Points: 11.942, Level: 71
    Level completed: 73%, Points required for next Level: 108
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Ort
    ...
    Beiträge
    2.080
    Points
    11.942
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    i just have a quick question so here it is:

    ??Why is it when i look at my picture using luaplayer for windows, it flickers??

  20. #4460
    Ponies and Unicorns
    Points: 5.778, Level: 49
    Level completed: 14%, Points required for next Level: 172
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Pelennor Fields
    Beiträge
    547
    Points
    5.778
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    something to do with the loop repeating i guess.
    If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
    Gold donations are highly appreciated!

  21. #4461
    QJ Gamer Gold
    Points: 11.942, Level: 71
    Level completed: 73%, Points required for next Level: 108
    Overall activity: 0%

    Registriert seit
    Nov 2006
    Ort
    ...
    Beiträge
    2.080
    Points
    11.942
    Level
    71
    Downloads
    0
    Uploads
    0

    Standard

    is there any way i can fix it?

  22. #4462
    QJ Gamer Blue
    Points: 6.041, Level: 50
    Level completed: 46%, Points required for next Level: 109
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Missouri
    Beiträge
    451
    Points
    6.041
    Level
    50
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von GuitarGod1134
    whats wrong with home? if u want to go to the xmb?
    Because no one likes the home button. Now can someone help...

  23. #4463
    QJ Gamer Gold
    Points: 11.629, Level: 70
    Level completed: 95%, Points required for next Level: 21
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Beiträge
    1.633
    Points
    11.629
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    if pad:cross() then os.exit() end

    Doesn't that work?

  24. #4464
    QJ Gamer Blue
    Points: 6.041, Level: 50
    Level completed: 46%, Points required for next Level: 109
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Missouri
    Beiträge
    451
    Points
    6.041
    Level
    50
    Downloads
    0
    Uploads
    0

    Standard

    No... I said it freezes and shuts off completely in 10 seconds.

  25. #4465
    QJ Gamer Gold
    Points: 11.629, Level: 70
    Level completed: 95%, Points required for next Level: 21
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Beiträge
    1.633
    Points
    11.629
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Get the custom luaplayer by cools and use System.quit()

  26. #4466
    QJ Gamer Blue
    Points: 6.041, Level: 50
    Level completed: 46%, Points required for next Level: 109
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Missouri
    Beiträge
    451
    Points
    6.041
    Level
    50
    Downloads
    0
    Uploads
    0

    Standard

    cant find it. can i get a link?

  27. #4467
    QJ Gamer Gold
    Points: 11.629, Level: 70
    Level completed: 95%, Points required for next Level: 21
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Beiträge
    1.633
    Points
    11.629
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Just search for it, its a couple pages back here in the psp development forum.

  28. #4468
    QJ Gamer Blue
    Points: 6.041, Level: 50
    Level completed: 46%, Points required for next Level: 109
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Ort
    Missouri
    Beiträge
    451
    Points
    6.041
    Level
    50
    Downloads
    0
    Uploads
    0

    Standard

    oh i thought it was on dl.qj.net
    -= Double Post =-
    search isn't picking it up.
    -= Double Post =-
    Now i wanna know how to keep my controls menu on the screen when i press X so I don't have to hold X down. So I go to controls on the main menu. I press X and I want it to keep the controls menu up. What it does now is make me hold down the button for it to stay up.

    Code:
    black = Color.new(0,0,0)
    red = Color.new(255,0,0)
    white = Color.new(255,255,255)
    menustatus = 1
    stickmenu = Image.load("backgrounds/stickmenu.png")
    controlsmenu = Image.load("backgrounds/controlsmenu.png")
    oldpad = Controls.read()
    while true do
    pad = Controls.read()
    screen:clear(white)
    screen:blit(0,0,stickmenu)
    screen:print(180,170,"Single Player",black)
    screen:print(180,180,"Multiplayer",black)
    screen:print(180,190,"Controls",black)
    if menustatus == 1 then
    screen:print(180,170,"Single Player",red)
    end
    if menustatus == 2 then
    screen:print(180,180,"Multiplayer",red)
    end
    if menustatus == 3 then
    screen:print(180,190,"Controls",red)
    end
    if pad:down() and oldpad:down() ~= pad:down() then
    menustatus = menustatus + 1
    end
    if pad:up() and oldpad:up() ~= pad:up() then
    menustatus = menustatus - 1
    end
    if menustatus == 0 then
    menustatus = 3
    end
    if menustatus == 4 then
    menustatus = 1
    end
    if pad:cross() and menustatus == 1 then
    dofile("singleplayer.lua")
    end
    if pad:cross() and menustatus == 2 then
    dofile("multiplayer.lua")
    end
    if pad:cross() and menustatus == 3 then
    dofile("controls.lua")
    end
    if pad:l() and pad:r() then
    System.usbDiskModeActivate()
    end
    screen.waitVblankStart()
    screen.flip()
    oldpad = pad
    end
    And the dofile("controls.lua") is
    Code:
    screen:clear(white)
    screen:blit(0,0,controlsmenu)
    without the quotes of course.
    Geändert von Cheez Pirate (12-02-2006 um 09:32 PM Uhr) Grund: Automerged Doublepost

  29. #4469
    QJ Gamer Gold
    Points: 11.629, Level: 70
    Level completed: 95%, Points required for next Level: 21
    Overall activity: 0%

    Registriert seit
    Aug 2006
    Beiträge
    1.633
    Points
    11.629
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    black = Color.new(0,0,0)
    red = Color.new(255,0,0)
    white = Color.new(255,255,255)
    menustatus = 1
    blitcm = false
    stickmenu = Image.load("backgrounds/stickmenu.png")
    controlsmenu = Image.load("backgrounds/controlsmenu.png")
    oldpad = Controls.read()
    while true do
    pad = Controls.read()
    screen:clear(white)
    screen:blit(0,0,stickmenu)
    screen:print(180,170,"Single Player",black)
    screen:print(180,180,"Multiplayer",black)
    screen:print(180,190,"Controls",black)
    if menustatus == 1 then
    screen:print(180,170,"Single Player",red)
    end
    if menustatus == 2 then
    screen:print(180,180,"Multiplayer",red)
    end
    if menustatus == 3 then
    screen:print(180,190,"Controls",red)
    end
    if pad:down() and oldpad:down() ~= pad:down() then
    menustatus = menustatus + 1
    end
    if pad:up() and oldpad:up() ~= pad:up() then
    menustatus = menustatus - 1
    end
    if menustatus == 0 then
    menustatus = 3
    end
    if menustatus == 4 then
    menustatus = 1
    end
    if pad:cross() and menustatus == 1 then
    dofile("singleplayer.lua")
    end
    if pad:cross() and menustatus == 2 then
    dofile("multiplayer.lua")
    end
    if pad:cross() and menustatus == 3 then
    blitcm = true
    end
    if pad:l() and pad:r() then
    System.usbDiskModeActivate()
    end
    if blitcm then
    screen:blit(0,0,controlsmenu)
    end
    screen.waitVblankStart()
    screen.flip()
    oldpad = pad
    end

  30. #4470
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von kinghiei
    i just have a quick question so here it is:

    ??Why is it when i look at my picture using luaplayer for windows, it flickers??
    ...or the code may be inefficient. wrongly place "screen:clear"s, "screen.waitVblankStart"s , and "screen.flip"s can do that.
    -= Double Post =-
    to Cheez Pirate: i think its doing that because the controls.lua file doesnt have a loop. it just does those two lines of code then quits. unless theres more youre not saying.
    Geändert von EminentJonFrost (12-03-2006 um 01:06 AM Uhr) Grund: Automerged Doublepost
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 07:53 AM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .