www.ClassicTW.com
http://www.classictw.com/

Scripting Beginning
http://www.classictw.com/viewtopic.php?f=15&t=32499
Page 1 of 1

Author:  Runaway Proton [ Wed Nov 09, 2011 7:24 am ]
Post subject:  Scripting Beginning

I'm interested in trying to teach myself some scripting.
What software are you who already doing this using to both write, and compile your scripts, and can you point me to any aids that may help me in this quest. Thanks in advance.

RP

Author:  Micro [ Wed Nov 09, 2011 7:32 am ]
Post subject:  Re: Scripting Beginning

TWX Proxy seems to be the most popular:

http://navhaz.com/files/twxproxy-205.exe

The Navhaz Junction has a big library of scripts:

http://www.navhaz.com/forums/ezdloads.php

The Cabal's Secret Hideout has a nice article on TWX scripting:

http://www.tw-cabal.com/strategy/twxscripthelp.html

Author:  T0yman [ Wed Nov 09, 2011 7:58 am ]
Post subject:  Re: Scripting Beginning

Runaway Proton wrote:
I'm interested in trying to teach myself some scripting.
What software are you who already doing this using to both write, and compile your scripts, and can you point me to any aids that may help me in this quest. Thanks in advance.

RP

I use TWXIDE it has common commands and highlights certain routines. Depending on what I am doing you can use notepad/wordpad or any other text editor. You just save a file and run to test, to compile in windows you drag the filename.ts over the TWX/TWXC.exe file if there are no errors it will compile if not it will tell you there is a problem. I would be more than happy to help with some basic script's over TS if you want to setup a day/time. Start with a simple task and build from there. Try to do to much to soon and like anything else you will just get frustrated.

Author:  Crosby [ Wed Nov 09, 2011 9:03 am ]
Post subject:  Re: Scripting Beginning

There is a ton of public scripts out there, don't be
afraid to tear into them and make them yours. I
reccommend Prom's and Sing's scripts, as they are
easy to read in the beginning.

For me the more advanced to read are the pack 1 & 2
scripts...too many includes, which can be kinda hard
to follow.

Author:  Promethius [ Wed Nov 09, 2011 12:33 pm ]
Post subject:  Re: Scripting Beginning

A couple of references:

viewtopic.php?f=15&t=21677&p=185686&hilit=script+tutorial#p185686

http://www.twxscripts.com/twxarrays1

Author:  Mongoose [ Wed Nov 09, 2011 1:16 pm ]
Post subject:  Re: Scripting Beginning

What is TWXIDE? Google's not turning it up.

I write SWATH scripts in the Eclipse IDE.

Author:  T0yman [ Wed Nov 09, 2011 1:49 pm ]
Post subject:  Re: Scripting Beginning

Mongoose wrote:
What is TWXIDE? Google's not turning it up.

I write SWATH scripts in the Eclipse IDE.

EP wrote it if I remember correctly, I can upload a copy once I get home. I was hoping he would have a new version out that would compile on the fly :)

Author:  Mongoose [ Wed Nov 09, 2011 1:55 pm ]
Post subject:  Re: Scripting Beginning

T0yman wrote:
EP wrote it if I remember correctly, I can upload a copy once I get home. I was hoping he would have a new version out that would compile on the fly :)


The syntax of TWX scripts seems pretty simple. It would probably be easy to write a syntax-highlighting plugin for Eclipse, and set up a project so it builds automatically.

Author:  ElderProphet [ Wed Nov 09, 2011 5:50 pm ]
Post subject:  Re: Scripting Beginning

Mongoose wrote:
What is TWXIDE? Google's not turning it up.
It's the top hit, but by default Google thinks you meant exide, and shows results for that.

Mongoose wrote:
It would probably be easy to write a syntax-highlighting plugin for Eclipse, and set up a project so it builds automatically.
That's the idea behind TWXIDE. To write scripts, I used to have to keep the TWX script reference open in one screen and the editor open in the other, so I could verify the syntax and parameter order for a given command. I integrated this into an IDE, and added syntax highlighting... probably to the point of overkill, but it suits me well. I then added a realtime variable and header list, with an integrated double-click search function directly from that list. It's a little rought around the edges, but it dramatically improved my scripting experience.
Attachment:
TWXIDE.png
TWXIDE.png [ 157.38 KiB | Viewed 8861 times ]

You can see the command list at the top right, the selected command syntax at the top, the variable and header list at the bottom right, and the highlighted search result in the main tabbed interface. The variable list is helpful for catching misspelled var names too.

Here's the introductory thread: http://www.classictw.com/viewtopic.php?f=15&t=20471

Author:  T0yman [ Wed Nov 09, 2011 5:57 pm ]
Post subject:  Re: Scripting Beginning

I didn't see the files so here I will upload them for those that have never used this program. I use it 95% of the time.

Attachment:
TWX Script Editor.zip [189.03 KiB]
Downloaded 524 times


I only wish it could compile from within and save the extra step ;) hint hint :lol:

Author:  Runaway Proton [ Wed Nov 09, 2011 8:13 pm ]
Post subject:  Re: Scripting Beginning

Thanks to all of you for your input.
Now I just have to figure out what I want to script and start hacking away at it.

Author:  ElderProphet [ Wed Nov 09, 2011 11:29 pm ]
Post subject:  Re: Scripting Beginning

Exactly, you'll learn the most by doing. And you'll find an abundance of eager scripters here ready to help you (and show off their brilliance).

Author:  Kaus [ Wed Dec 14, 2011 4:54 pm ]
Post subject:  Re: Scripting Beginning

TWXide is the Shiz couple of features I'd like but I use it almost exclusively if for nothing else than the color schemes and the reference library. I should have more time in the near future and will be appearing on ICQ and old format games again. RP if you need any personal assistance don't be a stranger :-)

Author:  Hotblack Desiato [ Wed Dec 14, 2011 6:53 pm ]
Post subject:  Re: Scripting Beginning

Just want to chime in as well for TWXide, for the code highlighting and jumpto labels.

There are bugs though. The find functionality is almost unusable, and find/replace is non-existent. Might want to use more than one editor. Or, someone could fix TWXide - if I recall, the code is available for editing.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/