View unanswered posts | View active topics It is currently Tue Aug 11, 2020 2:07 pm

Reply to topic  [ 3 posts ] 
 SWATH UserDefinedCommand 
Author Message
Warrant Officer

Joined: Thu Aug 21, 2003 2:00 am
Posts: 75
Location: USA
Unread post SWATH UserDefinedCommand
The conversation last week around SWATH vs TWX performance prompted me to check into something I had never used before. In SWATH everything is Java, which means everything is a Class. All the scripts I have ever seen are built on (inherit from) the UserDefinedScript class, but this weekend I finally built something using the UserDefinedCommand class. The functionality is quite different and you have access to the actual text buffer coming from the game. The performance improvement is really noticeable, and the text search and parse functionality is very powerful. If you have ever used regular expressions in Java, it's pretty clear they just wrapped this in their own functions and it would be easy to bypass those wrappers altogether if it made a difference.

Anyone else ever used this approach? I'm really curious now about how much improvement this would be. Would anyone care to suggest a good TWX script to benchmark against and how to carry out a test?

Sun Jul 08, 2018 9:55 am
Profile ICQ
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 3965
Location: USA
Unread post Re: SWATH UserDefinedCommand
Go into SK's game H. Try to mow figs without getting photoned by Xanos.


BOTE 1198 Champs: Team Fament
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
HHT 2018 Champs: Rock Stars
Big Game 2019 Champs: Draft Team

Classic Style Games Here:

Web page from 1990's:
Blog with current server info:

Sun Jul 08, 2018 3:15 pm
Profile ICQ WWW
Warrant Officer

Joined: Thu Aug 21, 2003 2:00 am
Posts: 75
Location: USA
Unread post Re: SWATH UserDefinedCommand
This is one of those times when you wish you could see the expression on someone's face as they write. How far do you expect me to get?

Let's see, Game H... Oh, here we go. There you are Ms C. Looks like Xanos has things pretty well in hand. Only 9 days in and 2.1 million figs, wow.

But I take it from this that the lawnmower script is the real test for speed. I would have guessed the same too. More to avoiding getting hit than just straight line speed, though. I know that much. Anyone want to help out with the finer points of gridding? A high performance grid tool for SWATH would be a big help to the noobs and less advanced players.

Sun Jul 08, 2018 3:55 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 3 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.