View unanswered posts | View active topics It is currently Thu Apr 30, 2026 12:35 pm



Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next
 How can you grab game stats to post 
Author Message
Gameop
User avatar

Joined: Thu Aug 24, 2006 2:00 am
Posts: 1737
Location: USA
Unread post 
Well, I gave it a try, but still no results. I got the dos window open and got to the game directory no problem, but when I typed in your command: "tw2002 command=stats data=c:\Program Files\Epic Interactive Stratagy\TWGS\Game\TWA press ENTER" it blinked, and went back to the prompt with no error, but I can't find any file it wrote in the tw folders. My data path is different than yours but I think I interpreted the command line correct, I have TW folders for games A-M all named by alphabet rather than numbers. Made it easier to keep track of what folder went with what game.

_________________
American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them.
http://www.runawayproton.com <-- Expired
telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired
http://www.twsubspace.com <-- Expired
Teamspeak 3 50.23.212.53:4196 <-- Expired
Just a has been now.


Mon Dec 18, 2006 2:29 pm
Profile WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
Runaway Proton wrote:
Well, I gave it a try, but still no results. I got the dos window open and got to the game directory no problem, but when I typed in your command: "tw2002 command=stats data=c:\Program Files\Epic Interactive Stratagy\TWGS\Game\TWA press ENTER" it blinked, and went back to the prompt with no error, but I can't find any file it wrote in the tw folders. My data path is different than yours but I think I interpreted the command line correct, I have TW folders for games A-M all named by alphabet rather than numbers. Made it easier to keep track of what folder went with what game.


After running those commands, there should be an Output folder inside /TWA, TWB, etc. Inside the output dir is the text files of the commands. When you run the commands in the prompt, you should be in:

c:\Program Files\Epic Interactive Stratagy\TWGS\Game>

You don't see anything when you run this. Mine does the same, just sits. Based on your info, I can create and email to you an actual batch file.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Mon Dec 18, 2006 2:50 pm
Profile
Gameop
User avatar

Joined: Thu Aug 24, 2006 2:00 am
Posts: 1737
Location: USA
Unread post 
I hate to put you out, but thanks. It will be helpful. Next I have to work on getting score information on the site, and I'm sure this will help in getting that done. Right now I'm just cutting and pasting from the file into the forums.

_________________
American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them.
http://www.runawayproton.com <-- Expired
telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired
http://www.twsubspace.com <-- Expired
Teamspeak 3 50.23.212.53:4196 <-- Expired
Just a has been now.


Mon Dec 18, 2006 2:55 pm
Profile WWW
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 331
Location: USA
Unread post 
What you are asking for is the crux of Jumpgate. All this data will automatically be posted to the classtw.com website. We just need to finish the beta
Check out jumpgate from the menu. We will make it "pretty" at some time in the future also.
earth.

_________________
ATTAC TCP/IP Helper
http://www.tw-attac.com

TWXSync Server (realtime data synchronization)
http://www.tw-attac.com/twxsync.html


Mon Dec 18, 2006 6:00 pm
Profile ICQ WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
earth wrote:
What you are asking for is the crux of Jumpgate. All this data will automatically be posted to the classtw.com website. We just need to finish the beta
Check out jumpgate from the menu. We will make it "pretty" at some time in the future also.
earth.



Right I forgot about the Jumpgate. Sorry Earth. The way we do it uses the commands in the TWGS and it's just a text file. With Jumpgate there is no real intervention needed as the info is passed to the Portal. I'd hold tight RP until JumpGate comes out. Less stress for you.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Mon Dec 18, 2006 6:40 pm
Profile
Gameop
User avatar

Joined: Thu Aug 24, 2006 2:00 am
Posts: 1737
Location: USA
Unread post 
Well, that's assuming I upgrade to the new version, I most likely will, but I've really not kept up on it much. I don't know when Jumpgate will be done, or when I'll upgrade, but I still need these stats now.

_________________
American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them.
http://www.runawayproton.com <-- Expired
telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired
http://www.twsubspace.com <-- Expired
Teamspeak 3 50.23.212.53:4196 <-- Expired
Just a has been now.


Mon Dec 18, 2006 6:49 pm
Profile WWW
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
Runaway Proton wrote:
Well, that's assuming I upgrade to the new version, I most likely will, but I've really not kept up on it much. I don't know when Jumpgate will be done, or when I'll upgrade, but I still need these stats now.



Creating batch file now. E-mail me your email address. Or hit me up on ICQ # 209782543.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Mon Dec 18, 2006 7:17 pm
Profile
Lance Corporal

Joined: Thu Feb 17, 2005 3:00 am
Posts: 4
Location: USA
Unread post 
Fellow SYSOPS,
I also have tried to run the tw2002.exe from a dos prompt with the arguments set to get the output from each game I am running. The executable tells me I have a gold game with too many sectors (which is of course not so for my game A). Anyone know of a tool to run (say hourly) on the server that will export the current game standings/stats for use in posting on a web server? (better yet, one that is dynamic, i.e - at runtime) I know ASP very well, so reading the file into the web site will not be an issue.
Thanks in advance for any pointers.

_________________
>Taersious<


Mon Apr 02, 2007 6:16 pm
Profile ICQ YIM WWW
Gameop

Joined: Fri May 25, 2007 9:25 am
Posts: 34
Unread post 
Hello all, this is my first post. I figured I would help the community some.. Here is a batch file to create all the stats you need, you will have to move them somewhere manually. I may be working on a web interface for this so you can have it take this information and put it on a web site.
------------------------------
@ECHO OFF
:START
SET TW=C:\PROGRA~1\EIS\TWGS

:TW1
SET DIR=TW1
SET GAME=GAME\%DIR%
IF NOT EXIST %TW%\%GAME%\TWMAP.DAT GOTO TW2
ECHO FOUND %DIR%
IF NOT EXIST %TW%\%GAME%\OUTPUT\. MD %TW%\%GAME%\OUTPUT
%TW%\GAME\TW2002 COMMAND=STATS DATA=%TW%\%GAME%
%TW%\GAME\TW2002 COMMAND=RANKS DATA=%TW%\%GAME%
ECHO INSERT SOMETHING HERE TO PROCESS THE FILES!
:TW2
SET DIR=TW2
SET GAME=GAME\%DIR%
IF NOT EXIST %TW%\%GAME%\TWMAP.DAT GOTO TW3
ECHO FOUND %DIR%
IF NOT EXIST %TW%\%GAME%\OUTPUT\. MD %TW%\%GAME%\OUTPUT
%TW%\GAME\TW2002 COMMAND=STATS DATA=%TW%\%GAME%
%TW%\GAME\TW2002 COMMAND=RANKS DATA=%TW%\%GAME%
ECHO INSERT SOMETHING HERE TO PROCESS THE FILES!
:TW3
SET DIR=TW3
SET GAME=GAME\%DIR%
IF NOT EXIST %TW%\%GAME%\TWMAP.DAT GOTO TW4
ECHO FOUND %DIR%
IF NOT EXIST %TW%\%GAME%\OUTPUT\. MD %TW%\%GAME%\OUTPUT
%TW%\GAME\TW2002 COMMAND=STATS DATA=%TW%\%GAME%
%TW%\GAME\TW2002 COMMAND=RANKS DATA=%TW%\%GAME%
ECHO INSERT SOMETHING HERE TO PROCESS THE FILES!
:TW4
SET DIR=TW4
SET GAME=GAME\%DIR%
IF NOT EXIST %TW%\%GAME%\TWMAP.DAT GOTO TW5
ECHO FOUND %DIR%
IF NOT EXIST %TW%\%GAME%\OUTPUT\. MD %TW%\%GAME%\OUTPUT
%TW%\GAME\TW2002 COMMAND=STATS DATA=%TW%\%GAME%
%TW%\GAME\TW2002 COMMAND=RANKS DATA=%TW%\%GAME%
ECHO INSERT SOMETHING HERE TO PROCESS THE FILES!
:TW5
SET DIR=TW5
SET GAME=GAME\%DIR%
IF NOT EXIST %TW%\%GAME%\TWMAP.DAT GOTO END
ECHO FOUND %DIR%
IF NOT EXIST %TW%\%GAME%\OUTPUT\. MD %TW%\%GAME%\OUTPUT
%TW%\GAME\TW2002 COMMAND=STATS DATA=%TW%\%GAME%
%TW%\GAME\TW2002 COMMAND=RANKS DATA=%TW%\%GAME%
ECHO INSERT SOMETHING HERE TO PROCESS THE FILES!
:END
------------------------------

Note, the command have to be in UPERCASE. hope this helps someone.

EDIT: I have updated the script slightly. Also you can edit and add more TW? to the list and process more that just 5 games. You will also have to "do" something with the files you make so be creative.


Sat May 26, 2007 11:41 am
Profile
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
Thank you DarkNight. That is prety much what we use on our site and it works great. Good idea to post it. Others using this will have to remember to alter it to reflect their installation location under the :start label of the batch file.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sat May 26, 2007 11:46 am
Profile
Gameop
User avatar

Joined: Fri Sep 03, 2004 2:00 am
Posts: 2041
Location: Acworth, Georgis USA
Unread post 
Good work on helping the community DarkNight, I think all will finally get how it is done, also it may help to let all know where to reside the batch file as well. Thrawn you got something good started for the community and the others that are following in helping is going good, thanks to all for their input and help here, we need the community to band together and work as one again, I am glad it is starting to work now.

My hats off to all. RP you also have a good project going and I hope it does great when done.

Now on the jumpgate, we are hoping to get the last set of bugs out before trying it again, we just have to wait for JP to get back with us on it. He has been extra busy lately on other things, but has promised to help finish the jumpgate when the other things are where he can take a break in them.

_________________
Vulcan's Forge
v1 TWGS telnet://vulcansforge.homeip.net:2002
v2 TWGS telnet://vulcansforge.homeip.net:23
Forum and site down for now.
my Email is vulcan219@comcast.net now


Sat May 26, 2007 12:46 pm
Profile ICQ YIM
Gameop

Joined: Fri May 25, 2007 9:25 am
Posts: 34
Unread post 
Glad I could help, the 2 main things I noticed when working with this process was the need to already have an OUTPUT folder created as tw2002 does not create one when ran, and that the commands had to be all uppercase?

I am writting a CGI program for webmasters so they can parse the info in those files and display them on a website. Combine this with the above batch file and incoperate a batch to auto FTP the text files to the site you would have near realtime updates of game settings and ranks.. I should have it done by tomorrow and will post it on a site for you all to look at. I currently only have a registed version of tw2002 and no gold features. My TWGS is also in tial mode, but everyone will be welcome to play and check out the program on the site.


Sat May 26, 2007 11:40 pm
Profile
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post 
DarkNight wrote:
Glad I could help, the 2 main things I noticed when working with this process was the need to already have an OUTPUT folder created as tw2002 does not create one when ran, and that the commands had to be all uppercase?

I am writting a CGI program for webmasters so they can parse the info in those files and display them on a website. Combine this with the above batch file and incoperate a batch to auto FTP the text files to the site you would have near realtime updates of game settings and ranks.. I should have it done by tomorrow and will post it on a site for you all to look at. I currently only have a registed version of tw2002 and no gold features. My TWGS is also in tial mode, but everyone will be welcome to play and check out the program on the site.


What would be nice is to have the stats post in color.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sun May 27, 2007 3:43 am
Profile
Gameop
User avatar

Joined: Thu Aug 24, 2006 2:00 am
Posts: 1737
Location: USA
Unread post 
I agree thrawn, and also the ability to filter out certain stats if you post them as well.  My site http://runawayproton.darkstarbase.com/W ... l&nbsp;has 4 items listed per game.  Traders, corps, logs, and game settings.  My settings are generated using the STATS command but I have to edit the output because I don't really feel like advertising the sectors for Class 0's and Ferrengal.  I remove the random factor used also, and I'm sure there are a few other things,  I remove the user data such as game figs, users and corps in game cause it's not real time.  If something would remove certain lines of the output I could put this up as realtime also.  That would be nice.
 
 

_________________
American soldiers don't fight because they hate what's in front of them...they fight because they love what's behind them.
http://www.runawayproton.com <-- Expired
telnet://runawayproton.dyndns.org:223 V2.20b Games <-- Expired
http://www.twsubspace.com <-- Expired
Teamspeak 3 50.23.212.53:4196 <-- Expired
Just a has been now.


Sun May 27, 2007 9:58 am
Profile WWW
Gameop
User avatar

Joined: Fri Sep 03, 2004 2:00 am
Posts: 2041
Location: Acworth, Georgis USA
Unread post 
Hey RP like the new forum layout too.

_________________
Vulcan's Forge
v1 TWGS telnet://vulcansforge.homeip.net:2002
v2 TWGS telnet://vulcansforge.homeip.net:23
Forum and site down for now.
my Email is vulcan219@comcast.net now


Sun May 27, 2007 12:25 pm
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 32 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

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