xboxscene.org forums

Author Topic: How About A Action Script Making Program?  (Read 65 times)

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
How About A Action Script Making Program?
« on: January 21, 2004, 06:06:00 AM »

Any updates? Would be nice!
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
How About A Action Script Making Program?
« Reply #1 on: January 21, 2004, 09:25:00 AM »

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)
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
How About A Action Script Making Program?
« Reply #2 on: January 21, 2004, 10:09:00 AM »

wink.gif )
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
How About A Action Script Making Program?
« Reply #3 on: January 21, 2004, 10:29:00 AM »

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

chilin_dude

  • Archived User
  • Hero Member
  • *
  • Posts: 3068
How About A Action Script Making Program?
« Reply #4 on: November 26, 2003, 11:32:00 AM »

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?
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
How About A Action Script Making Program?
« Reply #5 on: November 26, 2003, 04:21:00 PM »

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?
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
How About A Action Script Making Program?
« Reply #6 on: November 26, 2003, 06:33:00 PM »

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
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
How About A Action Script Making Program?
« Reply #7 on: November 26, 2003, 07:22:00 PM »

biggrin.gif.
I was trying to do this using recursion, but it just doesn't work right.

Will try this later, starting from scratch.
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
How About A Action Script Making Program?
« Reply #8 on: November 26, 2003, 10:23:00 PM »

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
Logged

koldfuzion

  • Archived User
  • Hero Member
  • *
  • Posts: 1226
How About A Action Script Making Program?
« Reply #9 on: November 27, 2003, 06:51:00 AM »

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

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
How About A Action Script Making Program?
« Reply #10 on: November 27, 2003, 09:54:00 AM »

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