Forum: PS3 Technical Development - Topics relating to Playstation 3 Technical development ONLY! Read and discuss the latest Cobra USB updates, tutorials and explanations or find out about bluray drive bypass firmwares plus much more.


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: msgdialog - Progress Bars?
  

Results 1 to 6 of 6
  1. #1 msgdialog - Progress Bars? 
    Kayot's Avatar
    Kayot is offline Member
    Join Date
    Dec 2008
    Posts
    312
    Downloads
    12
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    20
    I'm not sure if it's my dev tools or not, but when I run the msgdialog program my progress bars instantly fill and disappear before I even see them. I hear the chime that says their finished.

    I was wondering if this was normal? According to the source it should take 100x1000 milliseconds, or 100 seconds. Any ideas?
    Never confuse heroism with simple self interest.
    You must first be illusioned, before you can be disillusioned.
    Hope is the first step on the road to disappointment.
    Winning Lotto Numbers: 6 14 16 22 28 (56)
    Reply With Quote  

  2. #2  
    neoxxx's Avatar
    neoxxx is offline Registered User
    Join Date
    Feb 2011
    Posts
    5
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    cellMsgDialogProgress....inc(CELL_MSGDIALOG_PRO... , increment_var)
    Very provable mistakes in passing the increase to the progress bar.....(increment_var)
    Last edited by neoxxx; 02-24-2011 at 10:22 AM.
    Reply With Quote  

  3. #3  
    Kayot's Avatar
    Kayot is offline Member
    Join Date
    Dec 2008
    Posts
    312
    Downloads
    12
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    20
    Code:
        msgType mdialogprogress = MSGDIALOG_SINGLE_PROGRESSBAR;
        
        happypercent = 0;
    
        msgDialogOpen(mdialogprogress, "Recharging happiness batteries...", my_dialog, (void *) 0x33330001, NULL);
        msgDialogProgressBarMessage(PROGRESSBAR_INDEX0, "You're Happy");
        msgDialogResetProgressBar(PROGRESSBAR_INDEX0);
       
        dialog_action = 0;
        while(!dialog_action)
    		{
            msgDialogIncProgressBar(PROGRESSBAR_INDEX0, happypercent);
    		sysCheckCallback();my_flip();
            if(happypercent < 100) happypercent++;
            usleep(100*1000);
    		}
    
        msgDialogClose();
    I think it's filling ok, it's just not sleeping right. There should be a delay, but there isn't. I'm sure this works fine, just way to fast to see it. I'm wondering what's causing the issue.
    Never confuse heroism with simple self interest.
    You must first be illusioned, before you can be disillusioned.
    Hope is the first step on the road to disappointment.
    Winning Lotto Numbers: 6 14 16 22 28 (56)
    Reply With Quote  

  4. #4  
    jjolano is offline Programmer
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    70
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    11
    usleep is for nanoseconds. 100*1000 nanoseconds = 0.1 milliseconds
    Reply With Quote  

  5. #5  
    Kayot's Avatar
    Kayot is offline Member
    Join Date
    Dec 2008
    Posts
    312
    Downloads
    12
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    20
    Geeze, what's the point then?

    I tried sleep, but the ps3 crashes every time. I guess this is one of those, use it if you need it, but don't count on the demo to display it.
    Never confuse heroism with simple self interest.
    You must first be illusioned, before you can be disillusioned.
    Hope is the first step on the road to disappointment.
    Winning Lotto Numbers: 6 14 16 22 28 (56)
    Reply With Quote  

  6. #6  
    jjolano is offline Programmer
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    70
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    11
    hermesEOL pushed some fixes for msgdialog in his fork of PSL1GHT - maybe it will work?

    https://github.com/hermesEOL/PSL1GHT
    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
  •