View unanswered posts | View active topics It is currently Thu Apr 23, 2026 1:12 am



Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
 Issue with SWATH Triggers 
Author Message
Gameop
User avatar

Joined: Thu Aug 24, 2006 2:00 am
Posts: 1737
Location: USA
Unread post 
I just reorganized my scripts.  I had everything in the root directory and it was hard to find, so I organized some of my scripts by author/function in folders named as such. 
Problem is this,.. Now after reseting the triggers to the scripts new locations I'm getting an error on SOME (not all) of the scripts stating that they are not compiled scripts and the script fails.  The scripts are the same that I used before successfully, and are .cts files.  Only thing is the location they're at.  But to make matters worse, I moved them back to the original location, and they still failed  Is there a setting I flipped by accident or something?  The biggest issue is with CK scripts such as surround and ship cap.  I did after all was said and done copy over the scripts with known good copies from another computer, but no change.
 
 

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


Sat Mar 10, 2007 10:15 am
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
My guess would be that the triggers are no longer pointed to the scripts. Reload your scripts and go back thru and edit and correct the triggers. I'm sure the script files are fine, you're probably just telling twx to load the wrong file.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Mar 10, 2007 10:23 am
Profile ICQ WWW
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Sing wrote a post about ordering scripts in swath here:

http://vulcansforge-online.net:99/forum ... .php?t=844

putting all of your scripts in subdirectories throws off where the scripts think other scripts are and/or where the include directory is.

I put all of my scripts in the script directory and altered my swath.cfg file to group the scripts by author like this:

Code:
<TWXProxy>
    <MenuKey>$</MenuKey>
     <ScriptDirectory>D:\TW2002\TWXProxy\scripts</Script Directory>
    <MenuFilters>
      <SubMenu prefix="1_">Pack 1</SubMenu>
      <SubMenu prefix="2_">Pack 2</SubMenu>
      <SubMenu prefix="_ck">Cherokee Public</SubMenu>
      <SubMenu prefix="__ck">Cherokee Combat</SubMenu>
      <SubMenu prefix="3_">Dynarri</SubMenu>
      <SubMenu prefix="4_">Promethius</SubMenu>
      <SubMenu prefix="5_">Wildstar</SubMenu>
      <SubMenu prefix="6_">RammaR</SubMenu>
      <SubMenu prefix="7_">Caretaker</SubMenu>
      <SubMenu prefix="8_">Traitor</SubMenu>
      <SubMenu prefix="9_">Alexio</SubMenu>
      <SubMenu prefix="_cerne">Cerne</SubMenu>
      <SubMenu prefix="_ender">Ender</SubMenu>
      <SubMenu prefix="_oz">OZ</SubMenu>
      <SubMenu prefix="ep">EP</SubMenu>
      <SubMenu prefix="extras">Extras</SubMenu>
    </MenuFilters>
  </TWXProxy>

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Sat Mar 10, 2007 10:53 am
Profile ICQ
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post 
Well actually thats not the only solution.


Sat Mar 10, 2007 3:39 pm
Profile ICQ YIM
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Parrothead wrote:
Well actually thats not the only solution.


So are you going to tell us or should we start guessing?

Cerne

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Sat Mar 10, 2007 7:29 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
And btw, those prefixes are wrong.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Mar 10, 2007 8:08 pm
Profile ICQ WWW
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post 
Cernnunos wrote:
Parrothead wrote:
Well actually thats not the only solution.


So are you going to tell us or should we start guessing?

Cerne

My ICQ is open to anyone with questions who want anwsers Cerne. Navhaz.com or Vulcan's forum is the place for these discussions
This board is for Smack only I believe or didnt you get the hint on your last post.


Sat Mar 10, 2007 8:15 pm
Profile ICQ YIM
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Sing, they are not wrong in my swath.cfg because those are the prefixes I use to manage my script collection.



It was an example, not something to be copied and pasted into someone else's swath.cfg.



Cerne

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Sat Mar 10, 2007 9:47 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
I use dny_ or dyn_ as a prefix (usually dny). Ram uses ram_, CT uses _vid_ usually, traitor uses _T_, alex is _alexio_, etc, etc. Obviously if you're renaming things then that's a different story... =)

There are numerous ways to organize your files. I use a series of rexx scripts (not much to them) and assign them to hotkeys based on function or need. For instance all of my unlim speciality scripts are on shift-F7. All of my speciality (barely used) turn scripts are on F7. I could just as easily use the little bar on the right if I wanted. Could just as easily use a TWX script to do the same.

Swath is picky about how it handles script calls. It needs to know that the script exists first, and then it only reserves 1 script per name. For instance if you have a .ts script and then compile it as a .cts you will mess up your .ts triggers.

If swath can't track a script, the hotkey will stop working. If you point the hotkey to the wrong file, or to a directory instead of the file itself, I'm not sure what will happen... but it's the only thing I can think of that would cause swath to do what RP is describing. I try to keep my exposure to swath's innards down to a minimum, it's insanely easy to mess stuff up. Always keep a backup of your swath.cfg.

One thing I've wanted to do for some time is find a way to alter the font size (well, the number of lines on the screen actually) in some way. You can do this in your comms window area by clicking on it and holding down ctrl-alt and then scrolling the mouse wheel. Only you can't do that on the main window.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Mar 10, 2007 10:03 pm
Profile ICQ WWW
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post 
Well RP's problem is with his path now anyway not the trigger themselves which are gone from his config file.


Sat Mar 10, 2007 10:10 pm
Profile ICQ YIM
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
Oh lovely...

Are you sure that mis-setting the path will give that error? Have only done it once, but when I did all of the triggers went poof and I never got any kind of error(s) from it.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sat Mar 10, 2007 10:32 pm
Profile ICQ WWW
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Most of the tried and true scripts such as ck's public and combat pack (and oz's planet trader and st_bot) expect to find the other scripts they need in the root of the script directory and the includes below the script directory as in the example below.

\twxproxy\scripts\
\twxproxy\scripts\includes

when you make directories under scripts to sort your script files, it throws
many things slightly off

\twxproxy\scripts\ck

\twxproxy\scripts\oz

etc....

in order for the script call for _ck_buydown.cts (from other scripts) to work the call would need to be changed to '..\_ck_buydown.cts' instead of just '_ck_buydown.cts' which isn't really practical. also any call to an include would need to be changed as well.

Now the swath triggers on the other hand stop working if you make any changes to the names or locations of any script for which a trigger was set.

The simple fix is to just delete the trigger and recreate it.

All in all you should probably put back all the scripts in the script directory and use either the swath.cfg solution or the ph_menu solution for sorting and managing your scripts.

Cerne

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Sat Mar 10, 2007 11:12 pm
Profile ICQ
Commander
User avatar

Joined: Wed May 03, 2006 2:00 am
Posts: 1722
Location: USA
Unread post 
He thinks he has triggers set but he doesnt. I always back up a copy of my swath cfg file so I can replace it if something strange happens. (Learned the hard way twice). His error is that nothing happens which is consistant.
 
Cerne sub directories don't cause a problem.There is a trick to using them in conjunction with swath (virtual)sub menus but I perfer ZOC menus so I dont fool with that much anymore. Im posting a Zoc menu on Navhaz.com its very simple and any non-scripter should have no problem adapting them to there needs.They work in Zoc and Swath so should be good for everyone.
../scripts/cash/need_include_to_work.ts will find the file it needs to compile.


Sun Mar 11, 2007 12:25 am
Profile ICQ YIM
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 
Laff, that menu is the one I came up w/ from zentock's old air support handler. It's pretty handy.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Sun Mar 11, 2007 1:51 am
Profile ICQ WWW
Lieutenant

Joined: Fri Apr 05, 2002 3:00 am
Posts: 580
Location: USA
Unread post 
Singularity wrote:
I use dny_ or dyn_ as a prefix (usually dny). Ram uses ram_, CT uses _vid_ usually, traitor uses _T_, alex is _alexio_, etc, etc. Obviously if you're renaming things then that's a different story... =).


I use 5_Wildstars Personally

_________________
My scripts can be downloaded at http://www.grimytrader.com/.
Ore *****.
Even in my signature it's blocked out.


Mon Mar 12, 2007 1:37 pm
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.