| Author |
Message |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
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 |
|
 |
|
typh00n
Chief Warrant Officer
Joined: Sun Mar 30, 2003 3:00 am Posts: 186 Location: USA
|
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 |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
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 |
|
 |
|
Slim Shady
Gameop
Joined: Thu Jun 06, 2002 2:00 am Posts: 2371 Location: USA
|
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 |
|
 |
|
Wildstar
Lieutenant
Joined: Fri Apr 05, 2002 3:00 am Posts: 580 Location: USA
|
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 |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
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 |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
Ok so I fixed another thing too
:void
killalltriggers
send "n"
goto :dest
|
| Thu Apr 15, 2004 1:09 pm |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
Everything is fixed now..thanks guys.
|
| Thu Apr 15, 2004 3:22 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
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 |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
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 |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
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 |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
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 |
|
 |
|