Is there any more information on the PBAT scripting language than the little bit on the Wiki?
|
|
|
|
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! | ||
|
|
Is there any more information on the PBAT scripting language than the little bit on the Wiki?
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
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 ?
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..
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
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 ?
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 :
When I change the value of the widget INT, the SET command isn't executed.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$"
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
| « Previous Thread | Next Thread » |