xboxscene.org forums

OG Xbox Forums => Official MediaXMenu (MXM) Forum => Dashboard Forums => MXM ActionScripting Forum => Topic started by: theplowking on November 01, 2003, 06:22:00 PM

Title: Actionscript Requests
Post by: theplowking on November 01, 2003, 06:22:00 PM
place your requests here


request
Change xbox name script
Title: Actionscript Requests
Post by: BenJeremy on November 03, 2003, 05:09:00 PM
Here's one from me: A Diagnostic script!

Start with a Skin Configuration Checker.... looking for common problems like improperly nested folders, rar files, or missing skin paths.

From there, other common problems could be tackled.
Title: Actionscript Requests
Post by: thetruethugg on November 08, 2003, 05:38:00 AM
Ok, two script's I may make myself, but now I'm too tired/lazy to even begin to start action scripting.  So, here they are:

A script that checks for XBMP/C save file, deletes it, then launches XBMP/C.  This is for people who always use the latest CVS.  Now, I haven't really had problems just updating and using the same save file, but I think they reccommend that you delete it first.  Plus, when you can easily run this action, why the hell not do it?

The next script would take screenshot's you've made, and move them to say, on the E or F drive.

Um, now that I think of it, these script's are kind of useless.  You don't NEED to delete the saves for XBMP/C before updating to the latest CVS.  And, if you have a skin, you probably want to show it off, therefore won't forget to check Z drive for the pics.  Oh well, maybe I'll see about doing them anyway, learn from it or whatever.
Title: Actionscript Requests
Post by: koldfuzion on November 08, 2003, 08:34:00 PM
QUOTE
Change xbox name script


It can be changed via mxm.xml.. i know thats not what you asked for.. but there is not a function to set the xbox name using a script yet. (it will be easy if that function is added)


QUOTE
Start with a Skin Configuration Checker.... looking for common problems like improperly nested folders, rar files, or missing skin paths.


a pet-peave of mine...so I will start on this.   Always willing to accept help (get with me on irc if you want to talk about it)
Title: Actionscript Requests
Post by: koldfuzion on November 09, 2003, 01:53:00 PM
QUOTE (BenJeremy @ Nov 4 2003, 03:09 AM)
Start with a Skin Configuration Checker.... looking for common problems like improperly nested folders, rar files, or missing skin paths.

From there, other common problems could be tackled.


OK, not 100%.. but its close. (has a couple issues that need fixed) See Skin Validator in this forum.

What else did you have in mind?   smile.gif
Title: Actionscript Requests
Post by: BenJeremy on November 10, 2003, 03:04:00 AM
QUOTE (koldfuzion @ Nov 9 2003, 05:53 PM)
QUOTE (BenJeremy @ Nov 4 2003, 03:09 AM)
Start with a Skin Configuration Checker.... looking for common problems like improperly nested folders, rar files, or missing skin paths.

From there, other common problems could be tackled.


OK, not 100%.. but its close. (has a couple issues that need fixed) See Skin Validator in this forum.

What else did you have in mind?   smile.gif

Well, I'll probably have to add some things, like PING, but validating other settings, verifying that a newsfeed is set up, for example, or if they've got menu items defined. Maybe a media validator (identify missing media for menu items)

Skins were the big thing, though...
Title: Actionscript Requests
Post by: ravage73 on November 10, 2003, 12:27:00 PM
how about a script that would make my wife leave me alone when im playing a game!
Title: Actionscript Requests
Post by: koldfuzion on November 10, 2003, 12:38:00 PM
lol.. i would have already written that if it was possible.
Title: Actionscript Requests
Post by: thetruethugg on November 11, 2003, 08:54:00 AM
QUOTE (thetruethugg @ Nov 8 2003, 09:38 AM)
A script that checks for XBMP/C save file, deletes it, then launches XBMP/C.  This is for people who always use the latest CVS.  Now, I haven't really had problems just updating and using the same save file, but I think they reccommend that you delete it first.  Plus, when you can easily run this action, why the hell not do it?

CODE
SETFUNC EXISTS FILEEXISTS "E:\TDATA\0face007\"
SETFUNC XBMP FILEEXISTS "E:\Apps\XBMP\default.xbe"

GOTO CHECK

:CHECK
IF EXISTS == "0" GOTO END
IF EXISTS == "1" GOTO BEGIN
IF XBMP == "0" GOTO END
IF XBMP == "1" GOT BEGIN

:BEGIN
RmDir "E:\TDATA\0face007\" 1
RmDir "E:\UDATA\0face007\" 1
GOTO LAUNCH

:END
BeginDraw UseCurrent
MessageBox "No save exists$eol$$eol$Press A to exit"
INPUT
IF %_GP_A% == "1" GOTO QUIT
EndDraw

:LAUNCH
Exec "E:\Apps\XBMP\default.xbe"

:QUIT
QUIT


Ok, so there's the half ass version 1.0.  Not too shabby for a few min. work, I'd say.  I just tweaked it, and I haven't used it yet, but the last one worked, only it always displayed the message box.  I plan to make it alot better, possibly reading the cache menu and finding the location of XBMP/XBMC and deleting the saves and launching depending on user input.  But, I'm lazy and 'plan' to do alot of things.  smile.gif
Title: Actionscript Requests
Post by: koldfuzion on November 11, 2003, 01:21:00 PM
QUOTE (theplowking @ Nov 2 2003, 04:22 AM)
request
Change xbox name script

Done

You can get it here--> NameChanger.xas

It REQUIRES (AlphabetSoup.xas) too and you must edit the first line in the NameChanger.xas to reflect the location where you save alphabetsoup.xas to.

A Reboot is required for the change to take effect, you can do it immediately to see the change, or later if you want to play a game first..

A Pain I know.. but that pain will go away some day. smile.gif

INFO BLOCK:

;##################################################
;#  Name: Name Changer
;#  Author:koldfuzion
;#  Date: 10-31-2003
;#  File Name:NameChanger.xas
;#  Version: 1.0
;#  Purpose: Allow user to change the xbox name.
;#  REQUIREMENTS : MUST HAVE AND alphabetsoup.xas on the xbox and
;#                 Editchange the location on the first line below.
;##########################################################

SET asoupLocation c:mxmscriptsalphabetsoup.xas

;--------  check for MXM.XML  -----------
Title: Actionscript Requests
Post by: koldfuzion on November 11, 2003, 01:25:00 PM
QUOTE (thetruethugg @ Nov 11 2003, 06:54 PM)
QUOTE (thetruethugg @ Nov 8 2003, 09:38 AM)
A script that checks for XBMP/C save file, deletes it, then launches XBMP/C.  This is for people who always use the latest CVS.  Now, I haven't really had problems just updating and using the same save file, but I think they reccommend that you delete it first.  Plus, when you can easily run this action, why the hell not do it?


doesnt XBMP save as 0face007 and XBMC save as 0face008 ???
Title: Actionscript Requests
Post by: thetruethugg on November 11, 2003, 08:18:00 PM
QUOTE (koldfuzion @ Nov 11 2003, 05:25 PM)
QUOTE (thetruethugg @ Nov 11 2003, 06:54 PM)
QUOTE (thetruethugg @ Nov 8 2003, 09:38 AM)
A script that checks for XBMP/C save file, deletes it, then launches XBMP/C.  This is for people who always use the latest CVS.  Now, I haven't really had problems just updating and using the same save file, but I think they reccommend that you delete it first.  Plus, when you can easily run this action, why the hell not do it?


doesnt XBMP save as 0face007 and XBMC save as 0face008 ???

007 is XBMP and 008 is XBMC.  The script is just a test, using something that's actually working for me, the last 2 or 3 cvs builds of XBMC just freeze upon launch, so I couldn't really test.
Title: Actionscript Requests
Post by: koldfuzion on November 12, 2003, 12:37:00 AM
ok cool.. yea it will be a good thing to have this script.  Mine was locking up too...actually both of mine were, but i finally got xbmp working again.   I havent tried the latest xbmc yet.

Be sure to post your finished product smile.gif
Title: Actionscript Requests
Post by: thetruethugg on November 12, 2003, 02:38:00 AM
Yea sure thing.  I'll try and get it done relatively soon, though I'm kinda lazy and very new to action scripting, and it's been ages since I've done any 'real' programming, kinda forgot most of it.
Title: Actionscript Requests
Post by: spillage on November 12, 2003, 05:49:00 AM
I am just sorted most of my MXm dash now to look as I want but do not know how to change the thumbnail or add a wmv file for the dashboard?
Title: Actionscript Requests
Post by: Kthulu on November 12, 2003, 12:50:00 PM
hey BJ,  i hope this is a good place for this...

as i understand it, the _AutoExec in the Internal.xml is executed whenever MXM loads and _AutoExec can be overridden with one's own custom script.  in the next release, could you include an _OnExit internal script that really does nothing, but can be overridden?

here's why i think that would be cool...
an autoexec script could be written that prompts if you want to 'login' so to speak.  when one 'logins', the script could load a 'user profile' that includes things like mxm.xml, menu.xml, etc. and game-saves from a backup location.  when MXM exits, another script could ask if one wants to 'logout' which would entail backing up current saves, etc. and restoring the previous settings and saves.

what do you think?
Title: Actionscript Requests
Post by: koldfuzion on November 12, 2003, 01:49:00 PM
smile.gif  MXM needs this..needs it badly. So it needs to be tweaked to perfection and more people than just you and I need to take a look to see what needs to be done before its final. I dont want to bug BJ for updates cause something was missed or not thought of... see next line.

I hope once it is final, BJ will add it to MXM as a internal script so callfiles arent needed. smile.gif... definitely needs to be the default input script.

Awesome work!
beerchug.gif  beerchug.gif  beerchug.gif  beerchug.gif  beerchug.gif
Title: Actionscript Requests
Post by: Kthulu on November 12, 2003, 02:19:00 PM
smile.gif

perhaps we could PM each other with modified code until something a little more perfect is obtained to keep from cluttering the net with <arnold voice> inferior versions </arnold voice>...

thanks again for your thoughts, suggestions, appreciation, and encouragement.
Title: Actionscript Requests
Post by: koldfuzion on November 12, 2003, 02:39:00 PM
QUOTE
not sure what you're referring to about rem-ing SET leftstring, but i'm sure the actuall text-processing stuff could be improved...i had mighty and thunderous battles with it


i just changed the

SET leftString ""

at the beginning of the script to

SET leftString "mxmskins" ( left off the "c:\" since those two chars are not supported yet)

to make sure it could handle predefined values... and it can.. just needs a little tweaking.(length, cursor postions etc)

QUOTE
perhaps we could PM each other with modified code until something a little more perfect is obtained to keep from cluttering the net with

Im on irc (#mxm) efnet server almost 24x7 if you want to talk about it there...dcc changes back and forth and such.. if you cant do irc.. I can use msn messenger too, i can pm you my contact info
Title: Actionscript Requests
Post by: BenJeremy on November 12, 2003, 04:07:00 PM
QUOTE (Kthulu @ Nov 12 2003, 04:50 PM)
hey BJ,  i hope this is a good place for this...

as i understand it, the _AutoExec in the Internal.xml is executed whenever MXM loads and _AutoExec can be overridden with one's own custom script.  in the next release, could you include an _OnExit internal script that really does nothing, but can be overridden?

here's why i think that would be cool...
an autoexec script could be written that prompts if you want to 'login' so to speak.  when one 'logins', the script could load a 'user profile' that includes things like mxm.xml, menu.xml, etc. and game-saves from a backup location.  when MXM exits, another script could ask if one wants to 'logout' which would entail backing up current saves, etc. and restoring the previous settings and saves.

what do you think?

I'll be adding a lot of new event driven scripts as I get a chance.... the one planned (might already be in there, though) "OnLaunch"
Title: Actionscript Requests
Post by: BenJeremy on November 12, 2003, 04:29:00 PM
Speaking of "Virtual keyboard" - I'm working on a white paper that will outline the new "input system" - adding several layers to the input system to allow gamepad, keyboard, IR, voice (maybe) and, yes, even mouse input as raw input and adding a native virtual keyboard layer in for Gamepad and IR users. It means all the key assignments will be user configurable (Actually more functionality available than input, so users will be able to really customize their set ups)

Of course, ActionScripters will be able to take advantage of the user-defined input translations, as well, or continue to use the raw input.

I really need to check out the Alphabet Soup script... sounds cool (any screenshots?)
Title: Actionscript Requests
Post by: Kthulu on November 12, 2003, 08:15:00 PM
you really know how to burst my bubble
Title: Actionscript Requests
Post by: geniusalz on November 12, 2003, 08:54:00 PM
laugh.gif
Title: Actionscript Requests
Post by: koldfuzion on November 12, 2003, 09:52:00 PM
QUOTE
Speaking of "Virtual keyboard" - I'm working on a white paper that will outline the new "input system" - adding several layers to the input system to allow gamepad, keyboard, IR, voice (maybe) and, yes, even mouse input as raw input and adding a native virtual keyboard layer in for Gamepad and IR users. It means all the key assignments will be user configurable (Actually more functionality available than input, so users will be able to really customize their set ups)

Of course, ActionScripters will be able to take advantage of the user-defined input translations, as well, or continue to use the raw input.


Sounds awesome!


QUOTE
I really need to check out the Alphabet Soup script... sounds cool (any screenshots?)

To hell with alphabet soup... Kthulu's (visual kbd script)  is the shiznit..

Here is a screenshot of Kthulu's (visual kbd script)  Still needs more teaking and stuff.. but he is working on it.

It works great and anyone that every saves a game should know how to use it.


Yes, the keypad alignment is one of the things needing tweaked.

user posted image
Title: Actionscript Requests
Post by: Kthulu on November 12, 2003, 11:10:00 PM
sad.gif

...shiznit... cool.gif  i like that  biggrin.gif   thanks  beerchug.gif
Title: Actionscript Requests
Post by: BenJeremy on November 13, 2003, 03:42:00 AM
QUOTE (Kthulu @ Nov 13 2003, 03:10 AM)
hey KF,  i noticed in your screenshot that the chars aren't lined up very well on the right side...did you change the spacing?  they line up WAY better than that on my screen...

if that's the way they lined up for you from my original script, i want to know something about your box...

what's your xboxdash version?

my theory for the differences in alignment would be that mxm is using some system font file somewhere on the HDD and since i have v1.0 box that's never touched Live to get upgraded, your font file (wherever and whatever it may be) is newer and slightly diff than mine.

EDIT:  Or the board messed up the spacing when i posted it...???  let me try to dcc the file to you tomorrow night

if the spacing varies this much from box to box and we can't get fix on whatever font file it's using, we'll have to manually TEXT each char on the keyboard...which sux sad.gif

...shiznit... cool.gif  i like that  biggrin.gif   thanks  beerchug.gif

Perhaps it's a matter of PAL vs. NTSC?

The font is built into the binaries... it's the same regardless.
Title: Actionscript Requests
Post by: koldfuzion on November 13, 2003, 03:53:00 AM
QUOTE (Kthulu @ Nov 13 2003, 09:10 AM)
Or the board messed up the spacing when i posted it...???  let me try to dcc the file to you tomorrow night

yea, the board messed it up.  thats why i kept stressing for people not to pay that much attention to the alignment.
unfortunately i was swapped last night with a billion other things and didnt get much time to talk to you about this or get a chance to ask for a dcc of the actual script.

thought the screenshot was a good idea to let everyone see what you've done so far..  in case they didnt feel like loading up the script.
Title: Actionscript Requests
Post by: theplowking on November 13, 2003, 06:04:00 PM
what about a script that connects to allxboxskins to check for a new version of a script that you are currently running....or checks for scripts that are new...but not downloaded

This script (if poss) would then download and "install" the new script for you...idealy it would just add it to mxmscripts (or similar) and mxm would recognize the new script

But thats a future release
Title: Actionscript Requests
Post by: geniusalz on November 17, 2003, 05:09:00 AM
How about a script to make MXM_Entry.xml's?

Use virtualkb to get the input, a sort of "sequential file browser" to look for the app/game folder.
Then make the xml, allowing for changes to the title, description, preview vid (maybe another browser).

Makes me feel like creating a browser script.
Title: Actionscript Requests
Post by: koldfuzion on November 17, 2003, 05:41:00 AM
well i already made a script that will recreate an cache_menu entry but there is one problem..

<item>
<dir>E:APPSAVALAUNCH048</dir>
<exe>E:APPSAVALAUNCH048default.xbe</exe>
<media>E:APPSAVALAUNCH048MXM_SS.WMV</media>
<title>Avalaunch</title>
<thumbnail>E:\UDATA\80299ff\TitleImage.xbx</thumbnail>
<xbeid>134388223</xbeid>
<verified>true</verified>
</item>

I dont think there is any way to find this thumbnail using actionscripts.  Am I wrong?

For local thumb the script works fine though.
Title: Actionscript Requests
Post by: geniusalz on November 17, 2003, 06:11:00 AM
Here's how it's done internally.

_T("E:UDATA%08xTitleImage.xbx"), xbeInfo.m_dwID

Seems like xbeID to me.
Title: Actionscript Requests
Post by: koldfuzion on November 17, 2003, 06:56:00 AM
smile.gif look at the previous post again.. the numbers dont match.

you telling me there is a way in actionscripting to get the xbeid and use that value to get the right dir for the game in Udata?  cause im not seeing it.
Title: Actionscript Requests
Post by: geniusalz on November 17, 2003, 11:56:00 AM
Well then, m_dwID is probably NOT xbeid. lol

I'll have to look at the sources in more detail.
Title: Actionscript Requests
Post by: BenJeremy on November 17, 2003, 02:24:00 PM
QUOTE (geniusalz @ Nov 17 2003, 03:56 PM)
Well then, m_dwID is probably NOT xbeid. lol

I'll have to look at the sources in more detail.

It is...  the source you posted outputs it in an 8-digit, zero padded hexadecimal number, which is what's used for the directory names of apps' UDATA and TDATA directories.

80299ff (Hex) == 134388223 (Decimal)
Title: Actionscript Requests
Post by: geniusalz on November 17, 2003, 03:04:00 PM
ohmy.gif Didn't see that.

Well, now we want a toHexStr Setfunc  laugh.gif
Title: Actionscript Requests
Post by: BenJeremy on November 17, 2003, 03:10:00 PM
Doh!

OK, I'll have to include some hex and decimal functions.