| www.ClassicTW.com http://classictw.com/ |
|
| Anyone else seen this odd behavior between SWATH & TWX? http://classictw.com/viewtopic.php?f=15&t=34702 |
Page 1 of 1 |
| Author: | SteveH_66 [ Wed Sep 23, 2015 9:48 am ] |
| Post subject: | Anyone else seen this odd behavior between SWATH & TWX? |
I am working on a no-experience port upgrade script on my local game server. It seems to be running fine so far in testing, but the TWX "Script Terminated" message is ending up on screen in SWATH way before it finishes the last of the upgrade cycles on the screen in SWATH, like after 7 cycles with 6 cycles to go when upgrading ore. Like I said, it finishes all the cycles and seems to be working fine --- I am just finding this unnerving. I am not getting any "script errors" from TWX. Like I said just unnerving when you go to upgrade all 3 categories on the port and TWX is sending the script terminated message right after fuel and organics are upgraded and it still has all 17 cycles to upgrade the equipment 50 units. But it still does all 17 upgrade cycles for equipment and quits from the port upgrade routine in the game back to the command prompt. Is this fairly common behavior? Is it like just because TWX is much faster than SWATH, so the screen output in SWATH is having to catch up? Is it something I should be worried about with other scripts? Should I put some WAITON's in the script, to keep it from outrunning SWATH or another Telnet program? Thanks |
|
| Author: | Vid Kid [ Wed Sep 23, 2015 10:03 am ] |
| Post subject: | Re: Anyone else seen this odd behavior between SWATH & TWX? |
SteveH_66 wrote: I am working on a no-experience port upgrade script on my local game server. It seems to be running fine so far in testing, but the TWX "Script Terminated" message is ending up on screen in SWATH way before it finishes the last of the upgrade cycles on the screen in SWATH, like after 7 cycles with 6 cycles to go when upgrading ore. Like I said, it finishes all the cycles and seems to be working fine --- I am just finding this unnerving. I am not getting any "script errors" from TWX. Like I said just unnerving when you go to upgrade all 3 categories on the port and TWX is sending the script terminated message right after fuel and organics are upgraded and it still has all 17 cycles to upgrade the equipment 50 units. But it still does all 17 upgrade cycles for equipment and quits from the port upgrade routine in the game back to the command prompt. Is this fairly common behavior? Is it like just because TWX is much faster than SWATH, so the screen output in SWATH is having to catch up? Is it something I should be worried about with other scripts? Should I put some WAITON's in the script, to keep it from outrunning SWATH or another Telnet program? Thanks What you experiencing is a run away effect .. due to pacing. If you are like me , you might want that script terminated message when everything was done for real. I tend to like the ding sound when done as well .. just so I know to launch next script quickly. But the short answer is its normal. to make that message appear at the end of your loop just add a line like this : Send "/*" WaitOn "hip" WaitOn "] (?=Help)?" and all will be as it should. Vid |
|
| Author: | CBYNot [ Wed Sep 23, 2015 9:32 pm ] |
| Post subject: | Re: Anyone else seen this odd behavior between SWATH & TWX? |
SteveH_66 wrote: I am working on a no-experience port upgrade script on my local game server. It seems to be running fine so far in testing, but the TWX "Script Terminated" message is ending up on screen in SWATH way before it finishes the last of the upgrade cycles on the screen in SWATH, like after 7 cycles with 6 cycles to go when upgrading ore. Like I said, it finishes all the cycles and seems to be working fine --- I am just finding this unnerving. I am not getting any "script errors" from TWX. Like I said just unnerving when you go to upgrade all 3 categories on the port and TWX is sending the script terminated message right after fuel and organics are upgraded and it still has all 17 cycles to upgrade the equipment 50 units. But it still does all 17 upgrade cycles for equipment and quits from the port upgrade routine in the game back to the command prompt. Is this fairly common behavior? Is it like just because TWX is much faster than SWATH, so the screen output in SWATH is having to catch up? Is it something I should be worried about with other scripts? Should I put some WAITON's in the script, to keep it from outrunning SWATH or another Telnet program? Thanks If you're testing I'd recommend forgoing SWATH altogether and just using TWX + a telnet client such as ZOC. The random errors introduced by SWATH's presence are pretty common and frankly unavoidable, no matter how well you've tuned the settings between the two. Easier to just leave SWATH out of it so you know the errors are in fact with your script, not with SWATH. |
|
| Author: | SteveH_66 [ Thu Sep 24, 2015 9:01 am ] |
| Post subject: | Re: Anyone else seen this odd behavior between SWATH & TWX? |
Thanks for the reassurance Vid, like I said kind of unnerving to see your script get out ahead of the Telnet client and quit halfway before it's done CBYNot wrote: If you're testing I'd recommend forgoing SWATH altogether and just using TWX + a telnet client such as ZOC. The random errors introduced by SWATH's presence are pretty common and frankly unavoidable, no matter how well you've tuned the settings between the two. Easier to just leave SWATH out of it so you know the errors are in fact with your script, not with SWATH. Thanks for the tip CBYNot, with my scripting skills (or lack thereof? |
|
| Author: | Micro [ Thu Sep 24, 2015 2:13 pm ] |
| Post subject: | Re: Anyone else seen this odd behavior between SWATH & TWX? |
Like Vid said, this is normal. For instance, if your script only has a send command: send "clvq" The script will exit immediately after the send command, and before the response is actually received from the server. adding "waiton" or "textrigger" commands as vid suggested will prevent the script from exiting prematurely. Sometimes you will see "zn" added to the end of a macro. The script did that so it could wait on the "Instructions?" prompt to know when the macro finished. |
|
| Author: | SteveH_66 [ Thu Sep 24, 2015 3:19 pm ] |
| Post subject: | Re: Anyone else seen this odd behavior between SWATH & TWX? |
Micro wrote: Like Vid said, this is normal. For instance, if your script only has a send command: send "clvq" The script will exit immediately after the send command, and before the response is actually received from the server. adding "waiton" or "textrigger" commands as vid suggested will prevent the script from exiting prematurely. Sometimes you will see "zn" added to the end of a macro. The script did that so it could wait on the "Instructions?" prompt to know when the macro finished. Thanks for that information Micro. I was just unnerved to see it finishing up that fast. Somehow I messed that one up and had to rewrite the whole script, I did a couple of versions. One of them has some waiton's in it that kind of slows it down, the faster one has less of them and it goes pretty quick. I'm sure it could be optimized to run even faster, could probably even be written in a totally different way than what I did. Mine is just an amateur creation. I think I'll post them to another post, so anyone that wants to use them can download them if they want. Or you pro's could even download them for a few chuckles. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|