Results 1 to 10 of 10

Thread: Random PSP shutdowns during running of lua scripts --

                  
   
  1. #1
    PSP User Emeriastone's Avatar
    Join Date
    Feb 2006
    Location
    MO, USA
    Posts
    612
    Rep Power
    71

    Default Random PSP shutdowns during running of lua scripts --

    Hey all, I have a problem. During running of one script in particular, my psp will go black, shut off. I recieve no error messages and cannot discover for the life of me why this is happening.

    The following is an excerpt of the script in question. This same sequence of script repeats 7 times to show multiple frames, and the random shutdowns occur from sequence 4 to 6. For example this is sequence 3 and all the sequences are identical except for specifics, filenames, etc.



    ...

    Frame3 = Image.load("intro/intro3.jpg")

    empty = 255
    fadercolor = Color.new(0,0,0,empty)
    trans:clear(fadercolor)

    while true do
    screen:clear()

    screen:blit(0,0,Frame3)
    screen:blit(0,0,trans)
    if empty > 0 then
    empty = empty - 5
    else
    break
    end

    fadercolor = Color.new(0,0,0,empty)
    trans:clear(fadercolor)
    screen.waitVblankStart()
    screen.flip()
    end
    seagull:play()
    screen.waitVblankStart(630)
    while true do
    screen:clear()
    screen:blit(0,0,Frame3)
    screen:blit(0,0,trans)
    if empty < 255 then
    empty = empty + 5
    else
    break
    end

    fadercolor = Color.new(0,0,0,empty)
    trans:clear(fadercolor)
    screen.waitVblankStart()
    screen.flip()
    end

    ...


    Again, I've tried isolating the problem, breaking each sequence up into parts and testing them for errors, still it seems that these shutdowns are random.

    Any help would be greatly appreciated.

    Emeriastone

  2. #2
    PSP User Apoklepz's Avatar
    Join Date
    Oct 2005
    Location
    Bottom of The Pit
    Posts
    1,542
    Rep Power
    78

    Default

    Wow...that's frikkin weird...I'll look into this soon enough and let you know what happens on mine.

    BTW, what version of lua are ya running on your 1.50 DAX custom fw?

  3. #3
    PSP User Emeriastone's Avatar
    Join Date
    Feb 2006
    Location
    MO, USA
    Posts
    612
    Rep Power
    71

    Default

    lua v0.20 I believe

  4. #4
    PSP User Apoklepz's Avatar
    Join Date
    Oct 2005
    Location
    Bottom of The Pit
    Posts
    1,542
    Rep Power
    78

    Default

    Ok, have you tried runnind the same script on luaplayer ver. 0.16 before?

    BTW, I'm gonna test the script right now on my 0.16 lua...looks like I only need an image in there (intro3.jpg)along with the script, am I right? If so, I'll just create one and name it accordingly...you don't need to post it up. I'll post back in a sec.

  5. #5
    PSP User Emeriastone's Avatar
    Join Date
    Feb 2006
    Location
    MO, USA
    Posts
    612
    Rep Power
    71

    Default

    No I haven't. Got a link to an old version of lua?

  6. #6
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    85

    Default

    How you tried running it on LuaPlayer windows version? Does it give the same random shutdown?

  7. #7
    PSP User Emeriastone's Avatar
    Join Date
    Feb 2006
    Location
    MO, USA
    Posts
    612
    Rep Power
    71

    Default

    Luaplayer windows has problems rendering this because of the fade rendering, I can see each transition through a flicker, but as far as I know it runs completely though the script without error.

    I can relate the random shut down like this: if it was the script's problem, it would shut my computer off when running it in LuaPlayer windows (or cause my computer to bluescreen, restart). But since it doesn't, since it doesn't shutdown LuaPlayer for windows, I'm guessing one of the following is the culprit:

    LuaPlayer v0.20 for psp (I will try v0.16 next)
    My PSP can't handle the fade-in/fade-out effects 5 to 6 to 7 times in a row
    Lua doesn't like me


    Update:


    v0.20 was causing random shutdowns.
    v0.16 for some reason works better than v0.20. It renders the fade effects faster too. Can someone explain to me why this version is better?

  8. #8
    DCEmu Coder drEDN4wt's Avatar
    Join Date
    Aug 2005
    Location
    U.K.
    Posts
    172
    Rep Power
    0

    Default

    are you running out of memory?

    have it show your free memory while running.

  9. #9
    Registered User NoQuarter's Avatar
    Join Date
    Dec 2005
    Posts
    2,106
    Rep Power
    0

    Default

    Running out of memory shouldn't cause a shutdown with luaplayer,I think.

  10. #10

    Default

    That would be a memory issue, i experienced the same thing in coding in the faded cut scenes for linkens quest until i found a better way of dealing with the issue.

    Rather than loading one image after another, i made it replace the currently loaded image with the next one, therfor removing the memory issue

    Hope that helps

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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