Help - Search - Members - Calendar
Full Version: How About A Action Script Making Program?
Scenyx Entertainment Community > Xbox1 Forums > Dashboard Forums > Official MediaXMenu (MXM) Forum > MXM Developer/Skinner Forum
chilin_dude
Ok i tried to get into actionscripting; read all the docs and one hell of a lot of posts but still don't totally get. So i was thinking 'what if there was a prog that had most of the basic functions in it' by basic i mean copy, MKdir and all that sorts of stuff.
I'm sure if this was made it would get a lot more people into the action scripting....
Comments?
yourwishismine
QUOTE (chilin_dude @ Nov 26 2003, 03:32 PM)
Ok i tried to get into actionscripting; read all the docs and one hell of a lot of posts but still don't totally get. So i was thinking 'what if there was a prog that had most of the basic functions in it' by basic i mean copy, MKdir and all that sorts of stuff.
I'm sure if this was made it would get a lot more people into the action scripting....
Comments?

Chillin Dude...

Exactly the kind of project that I'm working on...

how ever it's not an easy one...

and my guess it that geniusalz will beat me to the

punch... LOL...

but hey that is fine with me... cause he's a AWESOME

coder...
geniusalz
I have another idea, which will probably make scripting tons easier.

Incorporate FOR loops, IF THEN ELSEIF ELSE statements, and WHILE loops. Then have the program convert those to GOTO statements. So it makes scripting tons easier. Cool, eh?
geniusalz
For example

CODE
IF x == y THEN

IF y == z THEN
LAUNCHDVD
ELSE
REBOOT
ENDIF

ELSEIF X > Y
OPENTRAY
ELSE
CLOSETRAY
ENDIF

Is converted to:

CODE
IF x == y GOTO lbl1
IF X > Y GOTO lbl2
CLOSETRAY
GOTO lbl3

:lbl1
IF y == z GOTO lbl4
REBOOT
GOTO lbl5

:lbl4
LAUNCHDVD
GOTO lbl5

lbl5:
GOTO lbl3

lbl2:
OPENTRAY
GOTO lbl3

lbl3:
QUIT
geniusalz
Tried it, but I have a mind lapse right now biggrin.gif.
I was trying to do this using recursion, but it just doesn't work right.

Will try this later, starting from scratch.
geniusalz
Check out this proof of concept cool.gif
Not too much functionality right now, but hopefully I'll be working on it
Download MXM Scripter 0.1a

Forum seems dead today. 4 posts and not a single reply. dry.gif
koldfuzion
kinda goes the way of a WYSIWYG editor. learn the editor and how to us IT instead of learning the code.

Why not just make a editor that ASSISTs you in writing the code.... a WYSIWMXMG editor.

what do I mean, I mean a simple text editor with buttons to provide code blocks like a MSGBOX Button that would add the following code at the cursor location..

CODE

BeginDraw UseCurrent
MessageBox ""
EndDraw
input
If %_GP_X% == "1" GOTO
If %_GP_Y% == "1" GOTO
If %_GP_A% == "1" GOTO
If %_GP_B% == "1" GOTO
If %_GP_BLACK% == "1" GOTO


or a pulldown list that would allow quick additions of SETFUNC statements at the cursor position.

Of course, to have the functions, labels and stuff color coded would make it hella easy to understand and read.

The WYSIWMXMG, would come from the built in "position" editor (a seperate part of the program) that the person could use to position text, or box at the desired location and be able to SEE it is they way they want it without having to test in MXM.
geniusalz
I see what you mean.
But I hate goto's and the lack of ifs, so that's what I worked on first.
I'll try to implement both things (WYSIWYG and WYSIWMXMG, lol), and you can use whatever feature you want.
Obviously, you can still use goto's in the program. It won't break existing scripts.

The next thing i wanna work on is FOR and WHILE loops, just to make it (MUCH) easier for basic'ers to script.

As I showed in the example, it helps readability a lot, and makes it easier to write the code. Especially nested if's.
yourwishismine
Hey, geniusalz, nice start. I liked Kold's suggestions too, what he suggested is along the lines of what I was thinking of... can't wait to see what you can turn this into...
chilin_dude
Any updates? Would be nice!
geniusalz
Sorry, guys. I'm doing way too many things at once laugh.gif
Maybe someone should cuztomize some of those all-purpose text editors (xml, c++, basic, etc) to work properly with actionscripts (commands and variables and such)
yourwishismine
I think this would be better suited for when a v1.0 MXM comes out... as BJ seems to add 4 or 5 new actionscripts to every public release (and that is a good thing in this case) and also fixes 'bugs' in the current ones.. it would be difficult for someone to keep up with the new script commands and make sure that the user was formatting them correctly and stuff.. I think a better idea for now would just be to keep the pinned ActionScript Command reference up to date...
geniusalz
I hear ya.
To me it makes more sense to update it every public release.
(Just me procrastinating again wink.gif )
flattspott
Dude I was just thinking of doing something similar. More like MS Visual Studio though, but not nearly as big and complicated.

On www.planetsourcecode.com I found some code to dynamically change the text color as you typed based on certin key words and I also found anouther one that gives you a little popup box like Vistual Studio.

I was gonna see what can be done.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.