| Author |
Message |
|
Runaway Proton
Gameop
Joined: Thu Aug 24, 2006 2:00 am Posts: 1737 Location: USA
|
 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
_________________ American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them. http://www.runawayproton.com <-- Expired telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired http://www.twsubspace.com <-- Expired Teamspeak 3 50.23.212.53:4196 <-- Expired Just a has been now.
|
| Wed Nov 09, 2011 7:24 am |
|
 |
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
 Re: Scripting Beginning
TWX Proxy seems to be the most popular: http://navhaz.com/files/twxproxy-205.exeThe Navhaz Junction has a big library of scripts: http://www.navhaz.com/forums/ezdloads.phpThe Cabal's Secret Hideout has a nice article on TWX scripting: http://www.tw-cabal.com/strategy/twxscripthelp.html
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
| Wed Nov 09, 2011 7:32 am |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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.
_________________ T0yman (Permanently Retired since 2012) Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.
|
| Wed Nov 09, 2011 7:58 am |
|
 |
|
Crosby
Lieutenant Commander
Joined: Sun Jan 29, 2006 3:00 am Posts: 800 Location: Iowa
|
 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.
_________________ #+++ The early bird may get the worm, but the second mouse gets the cheese. #---
|
| Wed Nov 09, 2011 9:03 am |
|
 |
|
Promethius
Ambassador
Joined: Mon Feb 09, 2004 3:00 am Posts: 3141 Location: Kansas
|
 Re: Scripting Beginning
_________________
/ Promethius / Enigma / Wolfen /
"A man who has no skills can be taught, a man who has no honor has nothing."
|
| Wed Nov 09, 2011 12:33 pm |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: Scripting Beginning
What is TWXIDE? Google's not turning it up.
I write SWATH scripts in the Eclipse IDE.
_________________ Suddenly you're Busted!
|
| Wed Nov 09, 2011 1:16 pm |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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 
_________________ T0yman (Permanently Retired since 2012) Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.
|
| Wed Nov 09, 2011 1:49 pm |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 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.
_________________ Suddenly you're Busted!
|
| Wed Nov 09, 2011 1:55 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1133 Location: Augusta, GA
|
 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 [ 157.38 KiB | Viewed 8767 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
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Wed Nov 09, 2011 5:50 pm |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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. I only wish it could compile from within and save the extra step  hint hint 
_________________ T0yman (Permanently Retired since 2012) Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.
|
| Wed Nov 09, 2011 5:57 pm |
|
 |
|
Runaway Proton
Gameop
Joined: Thu Aug 24, 2006 2:00 am Posts: 1737 Location: USA
|
 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.
_________________ American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them. http://www.runawayproton.com <-- Expired telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired http://www.twsubspace.com <-- Expired Teamspeak 3 50.23.212.53:4196 <-- Expired Just a has been now.
|
| Wed Nov 09, 2011 8:13 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1133 Location: Augusta, GA
|
 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).
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Wed Nov 09, 2011 11:29 pm |
|
 |
|
Kaus
Gameop
Joined: Tue Nov 19, 2002 3:00 am Posts: 1050 Location: USA
|
 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 
_________________ Dark Dominion TWGS Telnet://twgs.darkworlds.org:23 ICQ#31380757, -=English 101 pwns me=- "This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."
|
| Wed Dec 14, 2011 4:54 pm |
|
 |
|
Hotblack Desiato
Ensign
Joined: Tue Jul 21, 2009 2:37 pm Posts: 241 Location: Ottawa, Canada
|
 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.
|
| Wed Dec 14, 2011 6:53 pm |
|
 |
|