www.ClassicTW.com
https://www.classictw.com/

Script Editor?
https://www.classictw.com/viewtopic.php?f=15&t=20271
Page 1 of 3

Author:  V'Ger [ Thu Jan 24, 2008 11:14 am ]
Post subject:  Script Editor?

I have gotten tired of using notepad to edit my twx scripts, and was wondering if there was something out there (hopefully free) that people have been using that is a little bit more friendly for it?

Thanks.

Author:  Promethius [ Thu Jan 24, 2008 11:43 am ]
Post subject:  Re: Script Editor?

V'Ger wrote:
I have gotten tired of using notepad to edit my twx scripts, and was wondering if there was something out there (hopefully free) that people have been using that is a little bit more friendly for it?

Thanks.


ConTEXT (http://www.context.cx/ is the editor I use and it seems pretty good. You can download the keyword file (highlighter) that will help in debugging since it color codes everything. Last I knew it was free for personal use. I believe there is a twxproxy.chl file on grimytrader that you can use to highlight with - you can always modify the highlighter.

Author:  Gray Lensman [ Thu Jan 24, 2008 1:43 pm ]
Post subject:  Re: Script Editor?

It is a freeware program :D

Author:  V'Ger [ Thu Jan 24, 2008 3:40 pm ]
Post subject:  Re: Script Editor?

Thanks guys, this looks like exactly what I was looking for.

Author:  Wildstar [ Fri Jan 25, 2008 8:02 am ]
Post subject:  Re: Script Editor?

I use Editlite I think its called.
Alexio turned me on to it. It is pretty cool.

Author:  Zarkahn [ Fri Jan 25, 2008 10:08 am ]
Post subject:  Re: Script Editor?

you remember how to script WS? lmao
just messing with ya...

I use Context as well

Author:  Promethius [ Fri Jan 25, 2008 1:11 pm ]
Post subject:  Re: Script Editor?

Wildstar wrote:
I use Editlite I think its called.
Alexio turned me on to it. It is pretty cool.


I used to use Editpad Lite some time ago and liked it until I came across conTEXT. The main draw for me is the highlighter and while it doesn't stop scripting errors - esp the one I seem most prone to, it helps a lot in the debug process. The error I have most often? Using $currentline instead of currentline - not sure why I try to make currentline a var -- doesn't work very well when evaluating it. ;)

Author:  Zarkahn [ Fri Jan 25, 2008 1:18 pm ]
Post subject:  Re: Script Editor?

heh heh
my most common one is forgetting a quote...

easy to find with the line numbers in context though...

settrigger bust :bust "Suddenly you're Busted!

normally its the last part I added to a script... get in a hurry... laff


but the missing end will always show last line in a file

Author:  V'Ger [ Fri Jan 25, 2008 1:47 pm ]
Post subject:  Re: Script Editor?

I have been trying to write some more elegant scripts, using goSub commands and the like to read in files, and other things that may been to be done multiple times, what I keep forgetting to do is initialize the counter variable at the start of the sub, it took me about 2 hours the other night to figure out why something wasn't working, and just reading an EOF char in certain situations. :oops:

Author:  Traitor [ Fri Jan 25, 2008 3:56 pm ]
Post subject:  Re: Script Editor?

I use textpad. But there is a different editor that I'll be using soon. very soon. heh.

Author:  Promethius [ Fri Jan 25, 2008 9:10 pm ]
Post subject:  Re: Script Editor?

V'Ger wrote:
I have been trying to write some more elegant scripts, using goSub commands and the like to read in files, and other things that may been to be done multiple times, what I keep forgetting to do is initialize the counter variable at the start of the sub, it took me about 2 hours the other night to figure out why something wasn't working, and just reading an EOF char in certain situations. :oops:


Remember inserting a pause can be your best friend when debugging. Run, pause, check triggers and variables. Working in modules is the best way to do things. If the module works and then it doesn't act right later, I can track down the problem a lot faster. A script with 1000+ lines written w/o modules can cause you to go crazy trying to figure out what is wrong.

Author:  LoneStar [ Fri Jan 25, 2008 9:39 pm ]
Post subject:  Re: Script Editor?

Traitor wrote:
I use textpad. But there is a different editor that I'll be using soon. very soon. heh.


A Compiler, wish I had :mrgreen:

Author:  LoneStar [ Fri Jan 25, 2008 9:56 pm ]
Post subject:  Re: Script Editor?

Promethius wrote:
Remember inserting a pause can be your best friend when debugging. Run, pause, check triggers and variables. Working in modules is the best way to do things. If the module works and then it doesn't act right later, I can track down the problem a lot faster. A script with 1000+ lines written w/o modules can cause you to go crazy trying to figure out what is wrong.


Code:
WaitFor (#179 & "Turns")


handy for 'stepping' through code. need only press /


$0.02

Author:  V'Ger [ Fri Jan 25, 2008 10:15 pm ]
Post subject:  Re: Script Editor?

I have a module that is just a delayTrigger, usually set for 15 to 30 seconds, that I use to get a snapshot of the variables and triggers...

Author:  Promethius [ Sat Jan 26, 2008 2:13 am ]
Post subject:  Re: Script Editor?

LoneStar wrote:
Promethius wrote:
Remember inserting a pause can be your best friend when debugging. Run, pause, check triggers and variables. Working in modules is the best way to do things. If the module works and then it doesn't act right later, I can track down the problem a lot faster. A script with 1000+ lines written w/o modules can cause you to go crazy trying to figure out what is wrong.


Code:
WaitFor (#179 & "Turns")


handy for 'stepping' through code. need only press /


$0.02


I am going to have to use that idea - better than pause and delays as you control it however you want.

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