View unanswered posts | View active topics It is currently Fri Mar 29, 2024 12:10 am



Reply to topic  [ 6 posts ] 
 2.07 small scripting bug 
Author Message
Gameop
User avatar

Joined: Mon Apr 16, 2001 2:00 am
Posts: 419
Location: Denver Colorado
Unread post 2.07 small scripting bug
I don't know if this is the game or the scripts I'm using but I get random failures for not being at the correct prompt:


Command [TL=00:00:00]:[

[Move] Not at correct prompt

14246] (?=Help)? :

<<< Connection closed >>>

Looks like the game is moving a little fast for the code?

_________________
twarbase.com:23


Mon Jul 25, 2011 10:25 pm
Profile ICQ WWW
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1837
Location: Guam USA
Unread post Re: 2.07 small scripting bug
The new servers are moving too fast for the way scripts were written back in the day (2 yrs ago or more).

I have been going through scripts Butt I find them and fix them.
One of the main ones I come across , is where triggers or waits are written
to catch "Command" or "Computer command"
The change was to trigger or waiton ")? :"
after the words or numbers that were/are needed.

Remember most scripts now need to trigger or waiton after the needed text or
values to catch them.

I hope this helps.

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://vkworld.ddns.net:2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Image
Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Tue Jul 26, 2011 12:13 am
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: 2.07 small scripting bug
We need a waitForLine command, don't we?

_________________
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


Tue Jul 26, 2011 12:49 am
Profile ICQ WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: 2.07 small scripting bug
Woudln't that be waitfor("\r"); or waitfor("^M");

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Tue Jul 26, 2011 1:34 am
Profile ICQ YIM WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: 2.07 small scripting bug
I don't believe you can do either in TWXproxy. You might be able to waitFor #13 or #11 tho. Will have to test that when I get time.

_________________
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


Tue Jul 26, 2011 8:31 am
Profile ICQ WWW
Gameop
User avatar

Joined: Mon Apr 16, 2001 2:00 am
Posts: 419
Location: Denver Colorado
Unread post Re: 2.07 small scripting bug
Vid Kid wrote:
The new servers are moving too fast for the way scripts were written back in the day (2 yrs ago or more).

I have been going through scripts Butt I find them and fix them.
One of the main ones I come across , is where triggers or waits are written
to catch "Command" or "Computer command"
The change was to trigger or waiton ")? :"
after the words or numbers that were/are needed.

Remember most scripts now need to trigger or waiton after the needed text or
values to catch them.

I hope this helps.


Yes, thanks buddy. That helps alot. those are changes I can make easily. It's weird though, i can world trade (either with the stock script in Swath or Vitos) and I'll do 75 million before the error pops up and other times, it will happen almost immediately. It's reading it so fast it's actually sending the move command before the game can finish sending the line. that's just amazing speed if you ask me.

_________________
twarbase.com:23


Tue Jul 26, 2011 3:43 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

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