| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| How can you grab game stats to post https://mail.black-squirrel.com/viewtopic.php?f=1&t=18241 |
Page 1 of 3 |
| Author: | Runaway Proton [ Sat Dec 16, 2006 7:02 pm ] |
| Post subject: | |
There has to be a way to grab all those nitty gritty details of the game to post like max corps, planets, alien details, all those things that come up in tedit menus g,h,& i, or the command center game stats. You can't cut and paste from those windows. I need to know this so Chairman doesn't have to message me every time I bang a game for details. If anybody knows how, please help me out. |
|
| Author: | RexxCrow [ Sat Dec 16, 2006 7:55 pm ] |
| Post subject: | |
There is Xentropy's Game Settings Exporter... Click to Download |
|
| Author: | Thrawn [ Sat Dec 16, 2006 8:40 pm ] |
| Post subject: | |
There is the command line via the TWGS. Let me explain. In the /TWGS/game dir there is a tw2002.exe file. You can use this to generate txt format of stats and scores. So here is an example of my batch file I run: --- :start e: cd\twgs\game goto scores :scores tw2002 command=ranks data=e:\twgs\game\tw1 tw2002 command=stats data=e:\twgs\game\tw1 cd tw1\output copy *.txt w:\kfws\htdocs\outpost-4\tradewars\twgs\scores\game_a\ e: cd\twgs\game tw2002 command=ranks data=e:\twgs\game\tw2 tw2002 command=stats data=e:\twgs\game\tw2 cd tw2\output copy *.txt w:\kfws\htdocs\outpost-4\tradewars\twgs\scores\game_b\ e: cd\twgs\game --- You can do this for each game dir you have. I just posted the first two dir to give an example. By the above batch, I have it running the ranks and stats command. What happens is in the /tw1 dir it creates an Output dir, which is where the files are that I want to post. I then have it copied by my ScoreKeeper to the website. If you go to our page (http://www.outpost-4.com/tradewars) and look at our Game Listing page, I have a column that has these stats for each game. In our Scores/Logs link, the scores are posted there. I only post the txt files, not the ans files. If you have to, you can copy from the text file and paste in the forum. There is the method Rexx mentioned too, and mine is more for those that want to post on their own site. You have to be familiar with forums and codes to effectively post without hassel. If you need further clarification, I am willing to help out. Darkstar also showed me this and is familiar with the process, as I am sure other SysOps are. I like it because I can run it in a batch anytime to keep my stats/scores current. Ours run every 15 mins. |
|
| Author: | Zentock [ Sat Dec 16, 2006 9:20 pm ] |
| Post subject: | |
or u can run zoc twx to telnet into the admin port and build ur games from there. this gives you access to you scroll back buffer and you can highlight stuff to paste to a txt file. |
|
| Author: | Runaway Proton [ Sat Dec 16, 2006 11:05 pm ] |
| Post subject: | |
Well, Rexx had the fix that worked for me. I like Thrawn's idea, but I can't seem to get that TW2002 file to run. I'm sure I'm doing something wrong, but for now I got the data I needed for my site. Now maybe Chairman has the data he needs to trade up from a Pod to a Scout |
|
| Author: | Runaway Proton [ Sat Dec 16, 2006 11:53 pm ] |
| Post subject: | |
Hmm, new development. I'd like to be able to get the gold planet, alien, and ship stats to post as well. Any way to do this? |
|
| Author: | Thrawn [ Sun Dec 17, 2006 5:31 am ] |
| Post subject: | |
Runaway Proton wrote: Well, Rexx had the fix that worked for me. I like Thrawn's idea, but I can't seem to get that TW2002 file to run. I'm sure I'm doing something wrong, but for now I got the data I needed for my site. Now maybe Chairman has the data he needs to trade up from a Pod to a Scout When you run the command I listed, you must be in the /twgs/game directory. After it runs in a dos prompt window, check to see if there is an /output dir in each tw# you have run it under. |
|
| Author: | Thrawn [ Sun Dec 17, 2006 5:32 am ] |
| Post subject: | |
Runaway Proton wrote: Hmm, new development. I'd like to be able to get the gold planet, alien, and ship stats to post as well. Any way to do this? Nothing that I am aware of does this. You would have to add manually. |
|
| Author: | Vulcan [ Sun Dec 17, 2006 7:21 am ] |
| Post subject: | |
There is a way to set up a file for the twgs to automatically post the scores to, but have to look at it again, but you will have to manually put that file into the website. |
|
| Author: | Runaway Proton [ Sun Dec 17, 2006 1:08 pm ] |
| Post subject: | |
Thrawn wrote: Runaway Proton wrote: Well, Rexx had the fix that worked for me. I like Thrawn's idea, but I can't seem to get that TW2002 file to run. I'm sure I'm doing something wrong, but for now I got the data I needed for my site. Now maybe Chairman has the data he needs to trade up from a Pod to a Scout When you run the command I listed, you must be in the /twgs/game directory. After it runs in a dos prompt window, check to see if there is an /output dir in each tw# you have run it under. Well, I can't seem to get into a dos window from the TWGS/game directory. So I can't trigger your batch file. I go to the game directory, find the tw2002 icon and click it, but nothing happens. |
|
| Author: | Thrawn [ Sun Dec 17, 2006 4:00 pm ] |
| Post subject: | |
Runaway Proton wrote: Thrawn wrote: Runaway Proton wrote: Well, Rexx had the fix that worked for me. I like Thrawn's idea, but I can't seem to get that TW2002 file to run. I'm sure I'm doing something wrong, but for now I got the data I needed for my site. Now maybe Chairman has the data he needs to trade up from a Pod to a Scout When you run the command I listed, you must be in the /twgs/game directory. After it runs in a dos prompt window, check to see if there is an /output dir in each tw# you have run it under. Well, I can't seem to get into a dos window from the TWGS/game directory. So I can't trigger your batch file. I go to the game directory, find the tw2002 icon and click it, but nothing happens. Ok you need to be in a DOS window to run the batch. Are you running Windows? By clicking the tw2002.exe will not do anything unless you have the commands to follow it. |
|
| Author: | Vulcan [ Sun Dec 17, 2006 4:36 pm ] |
| Post subject: | |
Thrawn, I think he wants to know how to get the dos in the right place to make the batch work, I think you have hinted at it in the previous post, I think he wants to know how to get to the right place in the dos window to execute the batch. |
|
| Author: | Runaway Proton [ Sun Dec 17, 2006 5:34 pm ] |
| Post subject: | |
yep, that would be correct. I can't even get the dos window open. |
|
| Author: | Thrawn [ Sun Dec 17, 2006 7:04 pm ] |
| Post subject: | |
Runaway Proton wrote: Thrawn wrote: Runaway Proton wrote: Well, Rexx had the fix that worked for me. I like Thrawn's idea, but I can't seem to get that TW2002 file to run. I'm sure I'm doing something wrong, but for now I got the data I needed for my site. Now maybe Chairman has the data he needs to trade up from a Pod to a Scout When you run the command I listed, you must be in the /twgs/game directory. After it runs in a dos prompt window, check to see if there is an /output dir in each tw# you have run it under. Well, I can't seem to get into a dos window from the TWGS/game directory. So I can't trigger your batch file. I go to the game directory, find the tw2002 icon and click it, but nothing happens. Ok first step- What OS are you running? Windows XP, 98? If you are running Windows XP, click Start, Run and type cmd and click OK. That takes you to the DOS window. A little DOS knowledge is needed for the next steps. You have to change directory to where your TWGS is located. This is done at the prompt c:> cd e:\twgs\game is my location. Yours may be different. You want to be at: c:\twgs\game> or whatever your drive letter and directory structure is. Then you type the following: tw2002 command=ranks data=e:\twgs\game\tw1 press ENTER. This gives the scores or ranks in the /tw1/output directory. tw2002 command=stats data=e:\twgs\game\tw1 press ENTER. This gives the game stats in the /tw1/output directory. If you are unfamiliar with DOS, I could create you a batch file. I would need to know the following: * your TWGS directory and drive letter * how many games you run (look to see how many TW# dir's you have. I have /tw26, which is 25 game slots. * directory location you want the scores and ranks copied to. For example in my batch file I copy the text files to my website directory which is in w:\blahblahblah. |
|
| Author: | Runaway Proton [ Sun Dec 17, 2006 8:41 pm ] |
| Post subject: | |
OK, I'll try that. Sounds like I can do it. I was just trying ot hit the icon, expecting a DOS window to open. Didn't happen. |
|
| Page 1 of 3 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|