www.ClassicTW.com
https://mail.black-squirrel.com/

TWX Burst Limit...
https://mail.black-squirrel.com/viewtopic.php?f=15&t=20338
Page 1 of 1

Author:  NjoY [ Thu Feb 14, 2008 7:03 pm ]
Post subject:  TWX Burst Limit...

Hiya all,
Whats the max length of text i can send as a burst??
Is it unlimited??

I'm sure i've read the answer here before, but cant find it when i need to know.
If it is unlimited then i got a major problem somewhere else.
It would be good to know so i know where to start looking.

Thanx in advance.

NjoY

Author:  Singularity [ Thu Feb 14, 2008 8:56 pm ]
Post subject:  Re: TWX Burst Limit...

Probably 255 chars... at least that'd be my guess. But then again there might not be one, I don't know how the datatype is set.

Author:  LoneStar [ Fri Feb 15, 2008 6:31 am ]
Post subject:  Re: TWX Burst Limit...

There may be a limit in terms of how long TWX waits before processing the next line in a script, such that you can have two successive Send commands where the second command may be 'ignored' if the first sent 'burst' is too long.

I have a couple scripts that generate Macro strings that can be hundreds, if not thousands, of characters in length and those scripts send it all in one Send-command. In cases similar to large Macro-string-bursts its necessary to add a 'waitstate' to the end, otherwise TWX will carry on with the script while the large burst is still being sent.

What I usually do is:
Code:
setVar $i 0
setVar $s ""
while ($i <= 20000)
  setVar $s ($s & " t n t 1* q l 2* t n l 1* q l 3* ")
  add $i 1
end
send ($s & "'Done Moving Stuff*")
waitfor "Done Moving Stuff"


If I'm not mistaken... Without the Waitfor, twx would send the burst and probably only wait a very short amount of time and then continue on with the rest of the script.

When using a SS-msg is not a preferable 'waitstate', I sometime use:
Code:
send ($s & "^Q")
waitfor ": ENDINTERROG"

Author:  Promethius [ Fri Feb 15, 2008 12:58 pm ]
Post subject:  Re: TWX Burst Limit...

LoneStar wrote:
There may be a limit in terms of how long TWX waits before processing the next line in a script, such that you can have two successive Send commands where the second command may be 'ignored' if the first sent 'burst' is too long.

I have a couple scripts that generate Macro strings that can be hundreds, if not thousands, of characters in length and those scripts send it all in one Send-command. In cases similar to large Macro-string-bursts its necessary to add a 'waitstate' to the end, otherwise TWX will carry on with the script while the large burst is still being sent.

What I usually do is:
Code:
setVar $i 0
setVar $s ""
while ($i <= 20000)
  setVar $s ($s & " t n t 1* q l 2* t n l 1* q l 3* ")
  add $i 1
end
send ($s & "'Done Moving Stuff*")
waitfor "Done Moving Stuff"


If I'm not mistaken... Without the Waitfor, twx would send the burst and probably only wait a very short amount of time and then continue on with the rest of the script.

When using a SS-msg is not a preferable 'waitstate', I sometime use:
Code:
send ($s & "^Q")
waitfor ": ENDINTERROG"


I don't think it is TWX that is waiting on anything from what I have seen. TWX processes everything and just bursts it out. The use of wait and setting triggers makes TWX wait. If anyone uses the colonizing script I released they can see (if quick) this in action.

When the script runs in BTTW mode (B to the Wall) it does not wait on anything - triggers are not set. You will see the script window run/update/close and the script is over with and you are watching the text scroll from the TWGS server. What the script has done is calculate the trips/ore/cols to product types/planet number, and then sent something like "pt*33*0* 0* m 1* l 1*t*m 1234* l 18* snl1*q" maybe a few thousand times for multiple planets (unlim game).

One thing about the script is that it tries to estimate the time required - in BTTW mode the script might tell you it moved 300k cols in 2 seconds, but that is actually how long it took the script to process everything - you will be sitting and watching for a few minutes while TWGS and the Internet catch up (and also hoping that no one moves a planet or kills your base fig).

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