View unanswered posts | View active topics It is currently Mon Apr 20, 2026 2:08 am



Reply to topic  [ 11 posts ] 
 Script waiting for prompts that have passed on low latency 
Author Message
Gunnery Sergeant

Joined: Thu Sep 13, 2007 1:40 pm
Posts: 20
Unread post Script waiting for prompts that have passed on low latency
I am playing in a game on Y-City where the games Latency emulation is set to 100ms but ProPing.ts says my ping is several times that 400-500. (Immediately logoff and on to Microblaster.net ping is 200)

Some Pack2 and mombot scripts are just sitting waiting for things like command prompts from TWGS which have already passed, is this because of the ping difference? Normally my ping is much lower than this <200 and I wonder if this server has a poor ping + latency setting are the problem....

Anything I can do about this? Anyone else see this with new TWGS?


Wed Jun 22, 2011 9:16 am
Profile
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Re: Script waiting for prompts that have passed on low laten
Ping scripts send information to the TWGS and wait for it to show back up. The wait is timed in ms. The ping rate you have should result in a laggy feeling on the game. The ping rate "shouldn't" have an effect on the script activation esp since they are coming in slow.

You might check your All Keys setting and make sure it is set to space if you haven't already.

_________________
               / Promethius / Enigma / Wolfen /

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


Wed Jun 22, 2011 12:03 pm
Profile ICQ
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post Re: Script waiting for prompts that have passed on low laten
Can you do a network ping to the Y-City server so we can compare the actual network ping to the in-game ping you're measuring? For Windows, you can use PING.EXE to get a measurement. I'd like to see two measurements taken at the same time, one from a ping program and one from your script.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Wed Jun 22, 2011 1:17 pm
Profile WWW
Gunnery Sergeant

Joined: Thu Sep 13, 2007 1:40 pm
Posts: 20
Unread post Re: Script waiting for prompts that have passed on low laten
ProPing avg: 482
ping : 156 ms
ping : 532 ms
ping : 468 ms
ping : 469 ms
ping : 500 ms
ping : 485 ms
ping : 500 ms
ping : 500 ms
ping : 500 ms
ping : 437 ms
(Strangely first one is always low <200 then rest are around 500ms)

Windows Ping avg: 153


Wed Jun 22, 2011 11:15 pm
Profile
Gunnery Sergeant

Joined: Thu Sep 13, 2007 1:40 pm
Posts: 20
Unread post Re: Script waiting for prompts that have passed on low laten
Just happened again running mombot wsst on first steal cycle here is game log:
<Thievery>

Docking
[Pause]

(R)ob this port, (S)teal product or (Q)uit (?=Help) S


Which product? (1)Fuel Ore, (2)Organics or (3)Equipment (Q=Quit) ? 3


How many holds of Equipment to swipe? [255] 255
You start your droids loading the cargo and...
Command [TL=00:00:00]:[12445] (?=Help)? : X

<I> Ship details

Choose which ship to beam to (Q=Quit) 10
Security code accepted, engaging transporter control.
<I> Ship details

Choose which ship to beam to (Q=Quit)


Command [TL=00:00:00]:[3179] (?=Help)? :

DUMPED Triggers in twxproxy are waiting for success or bust message from TW which does not appear in log, so not transmitted or received?

ProPing script Avg right after 500 (nearly all were exactly 500)
Windows Ping Avg. 156


Wed Jun 22, 2011 11:53 pm
Profile
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post Re: Script waiting for prompts that have passed on low laten
Looking at the output for robbing ports, I noticed that the "success" is being written at the start of the line, not at the end where it should be. So something has changed there. I wonder if that change is what's causing the trigger to miss? Or is this just a coincidence?

Either way, I'm going to try to figure out why that output changed and get it cleaned up. The ping issue may be a separate issue, and I'm looking into that as well.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Thu Jun 23, 2011 12:03 am
Profile WWW
Gunnery Sergeant

Joined: Thu Sep 13, 2007 1:40 pm
Posts: 20
Unread post Re: Script waiting for prompts that have passed on low laten
I heard there were changes to actually abort display of the xport list verus prior calculation of all the distances of ships. Since this is so close to that and this script macros that part I believe could it be aborting display of part of the rob in addition to the xport that happens right after? Probably not helpful since I know very little about programming but it came to mind.

Also this might be pertinent, there is a 2s Rob/Steal delay set in this game.


Thu Jun 23, 2011 12:07 am
Profile
Commander

Joined: Thu Oct 17, 2002 2:00 am
Posts: 1159
Unread post Re: Script waiting for prompts that have passed on low laten
If your running wsst or turbo sst those long delays are screwing with the scripts. While that delay is happening the script is still shooting out the information....


Thu Jun 23, 2011 12:36 am
Profile
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post Re: Script waiting for prompts that have passed on low laten
You know what, I bet that's it. It does look like the output was aborted. If I go in manually to steal product and I get the "loading the cargo and..." prompt, then press space during the 2 second delay, I don't see the "success" output and it drops to the command prompt without a line between the "loading cargo" line and the command line, exactly as you show in your output.

I can fix it so that space doesn't abort this output. And we can address any other problems like this as we see them.

I'm almost certain this is the cause. I'll upload a fix on twgs.classictw.com and hopefully you can test it out there.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Thu Jun 23, 2011 12:36 am
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Script waiting for prompts that have passed on low laten
Is this related to the abort thing? Is the trigger ever actually coming? We had a problem where the "Success!" line was being aborted.

_________________
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 Jun 23, 2011 6:01 am
Profile ICQ WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post Re: Script waiting for prompts that have passed on low laten
Yeah, it's both. I'll fix it.

I made a change intended to allow the game to continue to process events during delays like the 2 second rob/steal delay. These events can include record updates or a change in the state of the player (for example, the port gets blown up). What you're seeing is a side-effect of this change, but it's not a necessary side-effect. I'll clean it up.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Thu Jun 23, 2011 10:36 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

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