View unanswered posts | View active topics It is currently Sat Apr 25, 2026 10:10 pm



Reply to topic  [ 12 posts ] 
 more fun 
Author Message
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Troubleshooting anyone?
When running I get this.
Script run-time error in 'ANOTHER_GRID.TS': Trigger already exists: 'VOID', line 11

Script terminated:

So heres the script
Code:
:top
getinput $next "What sector do you want to start with?"
getinput $cmnd "Extra commands?"
send "v"
waitfor "StarDock is located"
getword CURRENTLINE $dock 7
striptext $dock "."
:move
send "m" $next "*"
:prompt
settexttrigger void :void "DANGER! You have marked sector"
settexttrigger twarp :twarp "engage the TransWarp"
settexttrigger ewarp :ewarp "Engage the Autopilot"
settexttrigger figs :figs "Your fighters:"
settexttrigger mines :mines "Mined Sector:"
settexttrigger stop :stop "Stop in this sector"
settexttrigger dest :dest "]:[" & $next & "] (?=Help)"
pause
   :twarp
   killalltriggers
   send "n"
   goto :prompt
   :ewarp
   killalltriggers
   send "s"
   goto :prompt
   :dest
   killalltriggers
   :figs
   killalltriggers
   send "a9999*"
   goto :prompt
   :mines
   killalltriggers
   send "n"
   goto :prompt
   :stop
   send "yd"
   waitfor "Sector  : "
   getword CURRENTLINE $crnt 3
   if ($crnt > "10") or ($crnt <> $dock)
   send "f1*cd" $cmnd
   else
   goto :move
   end
   goto :move
   :dest
   killalltriggers
   setvar $next ($next + 1)
   goto :move


Wed Apr 14, 2004 9:08 pm
Profile ICQ YIM WWW
Chief Warrant Officer
User avatar

Joined: Sun Mar 30, 2003 3:00 am
Posts: 186
Location: USA
Unread post 
that code has a couple issues

beyond the initial settrigger code
:dest appears twice
:void doesnt appear at all

you're getting that error cause a trigger isnt being killed - take care of the above two glitches and the VOID trigger will probably straighten itself out
if that fails try inserting a 'killalltriggers' at :prompt before setting the trig's


Wed Apr 14, 2004 10:10 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
Typhoon is right, and those need to be fixed. The cause of this particular error though is that no triggers are killed in the :stop header. You have killAllTriggers in each of the others, but you missed it for :stop. So make the corrections Typhoon pointed out, and add the killAllTriggers and you should be set... or at least you shouldn't get that error.

+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Wed Apr 14, 2004 10:27 pm
Profile WWW
Gameop

Joined: Thu Jun 06, 2002 2:00 am
Posts: 2371
Location: USA
Unread post 
elder 2 things
1) do you know you are the man?
2) if i make a perma would u join? u dont have to play with the perma, or even admit to being in it or knowing who i am, just write a few scripts for me :) heh

Slim

_________________
Ask Slim!

--==[The Outfit]==--


Thu Apr 15, 2004 2:29 am
Profile ICQ WWW
Lieutenant

Joined: Fri Apr 05, 2002 3:00 am
Posts: 580
Location: USA
Unread post 
EP is the man.Typhoon is pretty cool too.I wish I had this kind of help when I started.But I was lucky.I was able to get help from Alexio,cherokee and Xide once in a while.The true masters.Since I am a 2nd generation scripter.gues I suck to the 2nd power lol.
Good call about the script.But I have a suggestion.
Try eliminateing some triggers.They take time.use waitfor and while and ones like that.Less reaction time.
Also if you hit $st you can look at your active triggers and $sv to look at active variables.YOu can eliminte probles that way too.
G/L

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


Thu Apr 15, 2004 9:41 am
Profile ICQ YIM
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Ok guys that was some dumb mistakes and I fixed it and it works good. I even trimmed it up a little bit. Now ive discovered a new problem though. Zyrain busted my Butt for trying to lay a fig at dock. Any ideas how to make that part work? For now I have told it to avoid the dock sector but I would rather not have to do that. Here is the revised code.
Code:
:top
getinput $next "What sector do you want to start with?"
getinput $cmnd "Extra commands?"
send "v"
waitfor "StarDock is located"
getword CURRENTLINE $dock 7
striptext $dock "."
send "cv" $dock "*q"
:move
send "m" $next "*"
:prompt
settexttrigger void :no "DANGER! You have marked sector"
settexttrigger twarp :no "engage the TransWarp"
settexttrigger ewarp :ewarp "Engage the Autopilot"
settexttrigger figs :figs "Your fighters:"
settexttrigger mines :no "Mined Sector:"
settexttrigger stop :stop "Stop in this sector"
settexttrigger dest :dest "]:[" & $next & "] (?=Help)"
pause
   :no
   killalltriggers
   send "n "
   goto :prompt
   :ewarp
   killalltriggers
   send "s"
   goto :prompt
   :figs
   killalltriggers
   send "a 9999* "
   goto :prompt
   :stop
   killalltriggers
   send "yd"
   waitfor "Sector  : "
   getword CURRENTLINE $crnt 3
   if ($crnt > "10") or ($crnt <> $dock)
   send "f 1* c d " $cmnd
   else
   goto :move
   end
   goto :move
   :dest
   killalltriggers
   setvar $next ($next + 1)
   goto :move


Thu Apr 15, 2004 12:16 pm
Profile ICQ YIM WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Ok so I fixed another thing too

:void
killalltriggers
send "n"
goto :dest


Thu Apr 15, 2004 1:09 pm
Profile ICQ YIM WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Everything is fixed now..thanks guys.


Thu Apr 15, 2004 3:22 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
Heh, thanks... I thought I was already on that Perma.

Now that it's working, don't forget to delete the part where you void Stardock.

+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Thu Apr 15, 2004 11:08 pm
Profile WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Ahh no I didn't forget that part. Its very nice now. I even come up with some improvements to speed it up. That'l be $50 if anyone would like to buy this script. [:P] For those of you who aided me you get .25 % each. Not that you weren't a great help...im just greedy.


Thu Apr 15, 2004 11:13 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
Incidently, if this is a gridding script, you can make it significantly more efficient by using the database... and fig refresh... and CIM reports. If you'll elaborate on the script, you'll get better input.

+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Thu Apr 15, 2004 11:21 pm
Profile WWW
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
It is a gridding script but it is only meant to traverse sectors in sequence starting with user specified sector and dropping figs as it goes and can add in some other commands along with. Is not meant to only go to sectors that havent already been figged or explored. Yes that would be more efficient if it did do that but I have yet to learn how to pull data from the DB or save/pull from txt files. I have seen one example of a surround sector script that did it (for twx202) and it just doesn't make any sense to me....yet.


Thu Apr 15, 2004 11:36 pm
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

Users browsing this forum: No registered users and 56 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.