Jump to content


Photo

How About A Action Script Making Program?


  • Please log in to reply
13 replies to this topic

#1 chilin_dude

chilin_dude

    X-S Knowledgebase

  • Members
  • PipPipPipPipPipPipPipPip
  • 4,945 posts
  • Location:USA
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 26 November 2003 - 07: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?

#2 yourwishismine

yourwishismine

    X-S Genius

  • Members
  • PipPipPipPip
  • 890 posts
  • Xbox Version:unk

Posted 26 November 2003 - 08:55 PM

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...


#3 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 27 November 2003 - 12:21 AM

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?

Edited by geniusalz, 28 November 2003 - 02:37 PM.


#4 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 27 November 2003 - 02:33 AM

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


#5 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 27 November 2003 - 03:22 AM

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.

#6 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 27 November 2003 - 06:23 AM

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

Edited by geniusalz, 27 November 2003 - 06:24 AM.


#7 koldfuzion

koldfuzion

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,480 posts

Posted 27 November 2003 - 02:51 PM

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.


#8 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 27 November 2003 - 05:54 PM

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.

#9 yourwishismine

yourwishismine

    X-S Genius

  • Members
  • PipPipPipPip
  • 890 posts
  • Xbox Version:unk

Posted 27 November 2003 - 11:35 PM

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...


#10 chilin_dude

chilin_dude

    X-S Knowledgebase

  • Members
  • PipPipPipPipPipPipPipPip
  • 4,945 posts
  • Location:USA
  • Xbox Version:v1.0
  • 360 version:unknown

Posted 21 January 2004 - 02:06 PM

Any updates? Would be nice!

#11 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 21 January 2004 - 05:25 PM

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)

#12 yourwishismine

yourwishismine

    X-S Genius

  • Members
  • PipPipPipPip
  • 890 posts
  • Xbox Version:unk

Posted 21 January 2004 - 05:45 PM

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...

#13 geniusalz

geniusalz

    Team MXM

  • Head Moderators
  • PipPipPipPipPip
  • 1,827 posts
  • Gender:Male
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 21 January 2004 - 06:09 PM

I hear ya.
To me it makes more sense to update it every public release.
(Just me procrastinating again wink.gif )

#14 flattspott

flattspott

    X-S Freak

  • Moderator
  • PipPipPipPipPip
  • 1,787 posts
  • Location:Southern California
  • Xbox Version:v1.0
  • 360 version:v1 (xenon)

Posted 21 January 2004 - 06:29 PM

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.

Edited by flattspott, 21 January 2004 - 06:33 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users