Forum: Crystal Chip - Posts about the Crystal Chip mod go in here.


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: PBAT scripting
  

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 24
  1. #1 Question PBAT scripting 
    CrEOF is offline Member
    Join Date
    Dec 2006
    Posts
    38
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Is there any more information on the PBAT scripting language than the little bit on the Wiki?
    PS2 --> RF Converter --> 14" RCA B&W Television
    Reply With Quote  

  2. #2  
    Jones23's Avatar
    Jones23 is offline 2 3 your mind...
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    1,175
    Downloads
    2
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    1
    Sadly not, but you can figure out most of it just by looking at the scripts and watching the BM menu. That's what I did to make my CustomBM release.
    Best thing for scripting is the network, you can start BM via network with PS2Client and PS2Link, test the scripts, change them on the PC, restart BM to test the changes. That way you can't mess up your BM on the PS2.

    best regards Jones23
    PS2 PAL SCPH-70004 v12, HDCombo, IDE HDD 80GB
    CrystalChip 2.1, CC Software R34 modified v2
    Tutorials: CC Wiki
    Homebrew: LaunchELF v4.40, SMS 2.9(Rev.4)

    Best German Console Scene Site: ModControl.com
    Reply With Quote  

  3. #3  
    Yoc's Avatar
    Yoc
    Yoc is offline Member
    Join Date
    Feb 2005
    Posts
    306
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I was planning to try to make my own modifications. But just a question Jones, when you are debugging the thing, isn't reload menu enough to load BM again each time you make a modification ? Do I really have to start again BM with ps2link to see the result ?
    PS 2 V5 PAL (SCPH 30004R) - HDD 80 GB - CC 1.0 - PowerBook G4 17" - FREE HDLOADER - SMS - ULE - SNES Station
    BootManager Themes - Essential Pack - CC Wiki (en)
    Tools for Mac : xdumb.free.fr, home for Xdumb and ps2XClient
    Reply With Quote  

  4. #4  
    CrystalChip's Avatar
    CrystalChip is offline Member
    Join Date
    Dec 2004
    Posts
    299
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Reload Menu should be adequate. This is what I use when I'm scripting.

    Some day it would be nice to create an actual reference for PBAT..
    Reply With Quote  

  5. #5  
    Yoc's Avatar
    Yoc
    Yoc is offline Member
    Join Date
    Feb 2005
    Posts
    306
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I've almost finished my script for short menus.
    But I've got a question about variables : in the DEFCONF.PBT script, where I think you define your variables (and give them a default value), what does the "S32", "U32", "U8"... mean ?
    PS 2 V5 PAL (SCPH 30004R) - HDD 80 GB - CC 1.0 - PowerBook G4 17" - FREE HDLOADER - SMS - ULE - SNES Station
    BootManager Themes - Essential Pack - CC Wiki (en)
    Tools for Mac : xdumb.free.fr, home for Xdumb and ps2XClient
    Reply With Quote  

  6. #6  
    CrystalChip's Avatar
    CrystalChip is offline Member
    Join Date
    Dec 2004
    Posts
    299
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by Yoc View Post
    I've almost finished my script for short menus.
    But I've got a question about variables : in the DEFCONF.PBT script, where I think you define your variables (and give them a default value), what does the "S32", "U32", "U8"... mean ?
    That's the "data type" of the variable. You have:

    STRING(as the name suggests..)
    U8/S8(unsigned/signed 8-bit)
    U16/S16(unsigned/signed 16-bit)
    U32/S32(unsigned/signed 32-bit)

    http://en.wikipedia.org/wiki/Signedness
    Reply With Quote  

  7. #7  
    Yoc's Avatar
    Yoc
    Yoc is offline Member
    Join Date
    Feb 2005
    Posts
    306
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    OK, thank you for the details.
    I tried to assign a variable for a widget CHOICE and I declared it as U8 as I thought it was enough for just 2 values : 0 or 1. But it doesn't work. I have to declare it as a U32 type.
    Am I missing something ?
    PS 2 V5 PAL (SCPH 30004R) - HDD 80 GB - CC 1.0 - PowerBook G4 17" - FREE HDLOADER - SMS - ULE - SNES Station
    BootManager Themes - Essential Pack - CC Wiki (en)
    Tools for Mac : xdumb.free.fr, home for Xdumb and ps2XClient
    Reply With Quote  

  8. #8  
    Yoc's Avatar
    Yoc
    Yoc is offline Member
    Join Date
    Feb 2005
    Posts
    306
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    I'm sorry, but there is something I can't get.

    First, you display widgets. Then the user change a value of one of the widget. Where does the program returns exactly ? From which point does it start again ?

    Here is my code :
    Code:
    		ADDWIDGET "INT" "  $BM.TXT_LIMITED_PASSWORD$" "$BM.TXT_HINT_LIMITED_PASSWORD$" "BM.CNF_LIMITED_PASSWD_NB" "0" "999" "1"
    		SET "BM.CNF_LIMITED_PASSWD_CH" "$BM.CNF_LIMITED_PASSWD_NB$"
    When I change the value of the widget INT, the SET command isn't executed.
    PS 2 V5 PAL (SCPH 30004R) - HDD 80 GB - CC 1.0 - PowerBook G4 17" - FREE HDLOADER - SMS - ULE - SNES Station
    BootManager Themes - Essential Pack - CC Wiki (en)
    Tools for Mac : xdumb.free.fr, home for Xdumb and ps2XClient
    Reply With Quote  

  9. #9  
    Jones23's Avatar
    Jones23 is offline 2 3 your mind...
    Join Date
    Jun 2005
    Location
    Germany
    Posts
    1,175
    Downloads
    2
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    1
    The SET command is executed every time you enter the menu containing it.
    You could add that command to the :CONFIG_SAVE section in BMMENUS.PBT, then it can be done before saving the config.

    best regards Jones23
    PS2 PAL SCPH-70004 v12, HDCombo, IDE HDD 80GB
    CrystalChip 2.1, CC Software R34 modified v2
    Tutorials: CC Wiki
    Homebrew: LaunchELF v4.40, SMS 2.9(Rev.4)

    Best German Console Scene Site: ModControl.com
    Reply With Quote  

  10. #10  
    CrystalChip's Avatar
    CrystalChip is offline Member
    Join Date
    Dec 2004
    Posts
    299
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by Yoc View Post
    OK, thank you for the details.
    I tried to assign a variable for a widget CHOICE and I declared it as U8 as I thought it was enough for just 2 values : 0 or 1. But it doesn't work. I have to declare it as a U32 type.
    Am I missing something ?
    Yes, you're missing what "doesn't work" means. :P I'm coming to hate that phrase more than you can imagine.

    It may be that there's a bug in the U8 types since afaik I don't use them for anything. However I need more details about what problems you experience...
    Reply With Quote  

Page 1 of 3 1 2 3 LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •