View unanswered posts | View active topics It is currently Tue Apr 21, 2026 12:41 am



Reply to topic  [ 4 posts ] 
 TWX Burst Limit... 
Author Message
Ensign
User avatar

Joined: Mon Jul 23, 2007 6:20 pm
Posts: 288
Location: United Kingdom
Unread post 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

_________________
Gul D'Tek (The Cardassian Hitman)
ICQ - 446445340

I'm a TW and #SD# ing you was my idea!

Very funny, Scotty. Now beam down my clothes.~ J.T.Kirk


Thu Feb 14, 2008 7:03 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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.

_________________
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


Thu Feb 14, 2008 8:56 pm
Profile ICQ WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1401
Location: Canada
Unread post 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"

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.


Fri Feb 15, 2008 6:31 am
Profile ICQ YIM
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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).

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Fri Feb 15, 2008 12:58 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

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