View unanswered posts | View active topics It is currently Tue Dec 23, 2025 1:55 am



Reply to topic  [ 134 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9  Next
 ability to publish game logs to a blogger account. 
Author Message
Gameop
User avatar

Joined: Wed Jun 15, 2011 1:26 am
Posts: 165
Location: Martensville SK Canada
Unread post Re: ability to publish game logs to a blogger account.
the new blog entries are ready and it is looking good. i rebanged all my games and i am going to have events that show up on the log files end up on the blog. you might notice that i will only play on my server and the servers of those of you guys that play on my server. as a thank you to those who take the time to play on mine. i will do the same for them. (hint hint)

_________________
http://bbs.slother3x.info
http://www.slother3x.info My own website, hosted by myself.

"it only takes one to ruin it for all"
"The promises of our youth will always haunt us in the wisdom of our old age"


Fri Sep 09, 2011 6:47 pm
Profile YIM
Gameop
User avatar

Joined: Sun Aug 28, 2011 2:56 am
Posts: 81
Location: Montana
Unread post Re: ability to publish game logs to a blogger account.
Just thought I would add this also works perfectly on WordPress blogs as well.

The way I'm getting it done is by having a batch file in each game folder that uses your java app to create the log.html file... then a master batch file that calls each of those batch files (Taking a 5 second pause between each one... to give them more than enough time to run)... then I have blat sending the emails (Taking 10 seconds breaks between each sending of email because 1) blat takes longer 2) I want to make sure that the logs get to blog in the same order I'm sending them in.. it takes about 10 seconds for them to appear in my POP3 Inbox), and WordPress takes care of the rest... here's what the batch file looks like.

Code:
@echo off
Echo ***EXTRACTING LOG FOR GAME A***
call c:\twgs\game\gamea\gamea-build-log.bat
NETSH Diag Ping Loopback >nul
echo Game A completed
echo.
echo.

Echo ***EXTRACTING LOG FOR GAME B***
call c:\twgs\game\gameb\gameb-build-log.bat
NETSH Diag Ping Loopback >nul
echo Game B completed
echo.
echo.

Echo ***EXTRACTING LOG FOR GAME C***
call c:\twgs\game\gamec\gamec-build-log.bat
NETSH Diag Ping Loopback >nul
echo Game C completed
echo.
echo.

echo *** ALL GAME LOGS CONVERTED TO HTML ***
echo.

echo.
echo *** STARTING EMAIL PROCESS ***

C:
cd\blat262\full
echo *** EMAILING ALL LOGS TO THE WEBSITE ***
echo.

echo *** EMAILING GAME C LOGS ***
blat c:\twgs\game\gamec\log.html -to secret@email.address.com -subject "Game C - Yesterdays Log" >nul
NETSH Diag Ping Loopback >nul
NETSH Diag Ping Loopback >nul

echo *** EMAILING GAME B LOGS ***
blat c:\twgs\game\gameb\log.html -to secret@email.address.com -subject "Game B - Yesterdays Log" >nul
NETSH Diag Ping Loopback >nul
NETSH Diag Ping Loopback >nul

echo *** EMAILING GAME A LOGS ***
blat c:\twgs\game\gamea\log.html -to secret@email.address.com -subject "Game A - Yesterdays Log" >nul
echo *** ALL LOGS EMAILED TO THE BLOG ***
echo.
NETSH Diag Ping Loopback >nul

echo *** Maintnance complete Server will restart in 5 seconds ***
NETSH Diag Ping Loopback >nul


the NETSH lines are there to simply slow the batch file down (Each of those lines take about 5 seconds)

All in all it takes about 42 Seconds and looks like this:
Image

Just wanted to say thanks!

_________________
ShapeShifter:
Image

Website/Blog: http://www.netcessor.com/topper
TWGS Server: telnet://108.59.108.53:23


Sat Sep 10, 2011 9:26 am
Profile YIM
Gameop
User avatar

Joined: Wed Jun 15, 2011 1:26 am
Posts: 165
Location: Martensville SK Canada
Unread post Re: ability to publish game logs to a blogger account.
thank you for showing me how to make pauses between emails as i have made the change to my Email.bat file. but just because i wanted to make it possible to post each days logs from a single "generic" batch file, that would be called from TWGS it's self, (since it has an ability to run programs in it's scheduler.) i made only the create logs batch file as a generic file. but i took your batch file for the emailing process as a single batch file that gets run 10 minutes after the create logs batch file is run for each game. and again thank you for your contribution topper. it helps me allot. see you in game.

_________________
http://bbs.slother3x.info
http://www.slother3x.info My own website, hosted by myself.

"it only takes one to ruin it for all"
"The promises of our youth will always haunt us in the wisdom of our old age"


Sat Sep 10, 2011 9:55 pm
Profile YIM
Gameop
User avatar

Joined: Sun Aug 28, 2011 2:56 am
Posts: 81
Location: Montana
Unread post Re: ability to publish game logs to a blogger account.
slother3x wrote:
thank you for showing me how to make pauses between emails as i have made the change to my Email.bat file. but just because i wanted to make it possible to post each days logs from a single "generic" batch file, that would be called from TWGS it's self, (since it has an ability to run programs in it's scheduler.) i made only the create logs batch file as a generic file. but i took your batch file for the emailing process as a single batch file that gets run 10 minutes after the create logs batch file is run for each game. and again thank you for your contribution topper. it helps me allot. see you in game.


Just a quick note (for you, and anyone else)

NETSH is for Windows XP PROFESSIONAL

For any other version.. I'm not sure NETSH will work... but this will:

PING 127.0.0.1 -n 6

Its pretty much the same command, and has the same results.

_________________
ShapeShifter:
Image

Website/Blog: http://www.netcessor.com/topper
TWGS Server: telnet://108.59.108.53:23


Sat Sep 10, 2011 10:04 pm
Profile YIM
Gameop
User avatar

Joined: Wed Jun 15, 2011 1:26 am
Posts: 165
Location: Martensville SK Canada
Unread post Re: ability to publish game logs to a blogger account.
topper4125 wrote:

Just a quick note (for you, and anyone else)

NETSH is for Windows XP PROFESSIONAL

For any other version.. I'm not sure NETSH will work... but this will:

PING 127.0.0.1 -n 6

Its pretty much the same command, and has the same results.



ok made the changes. as i will know if i am successful in my changes tonight.

_________________
http://bbs.slother3x.info
http://www.slother3x.info My own website, hosted by myself.

"it only takes one to ruin it for all"
"The promises of our youth will always haunt us in the wisdom of our old age"


Sat Sep 10, 2011 10:45 pm
Profile YIM
Gameop
User avatar

Joined: Sun Aug 28, 2011 2:56 am
Posts: 81
Location: Montana
Unread post Re: ability to publish game logs to a blogger account.
I got an error on one of my logs

'unexpected tilde code: ~90'

Image

It looks fine on the blog... except one of the players name is grey, and the 'thing they did' is on a new line.

http://www.netcessor.com/topper/2011/09 ... ays-log-3/

_________________
ShapeShifter:
Image

Website/Blog: http://www.netcessor.com/topper
TWGS Server: telnet://108.59.108.53:23


Sun Sep 11, 2011 1:19 am
Profile YIM
Gameop
User avatar

Joined: Wed Jun 15, 2011 1:26 am
Posts: 165
Location: Martensville SK Canada
Unread post Re: ability to publish game logs to a blogger account.
hey Mongoose. i have not heard back from you in a while. are you still distracted. :wink: or has something else caught your attention? :D how's that new jar file coming :?: it looks like it was useful to not only just me. right topper?

_________________
http://bbs.slother3x.info
http://www.slother3x.info My own website, hosted by myself.

"it only takes one to ruin it for all"
"The promises of our youth will always haunt us in the wisdom of our old age"


Sun Sep 11, 2011 6:38 am
Profile YIM
Gameop
User avatar

Joined: Sun Aug 28, 2011 2:56 am
Posts: 81
Location: Montana
Unread post Re: ability to publish game logs to a blogger account.
slother3x wrote:
hey Mongoose. i have not heard back from you in a while. are you still distracted. :wink: or has something else caught your attention? :D how's that new jar file coming :?: it looks like it was useful to not only just me. right topper?


Yup very useful... Still looking for something to post the highscores... If I find one I'll be sure to let you know.

_________________
ShapeShifter:
Image

Website/Blog: http://www.netcessor.com/topper
TWGS Server: telnet://108.59.108.53:23


Sun Sep 11, 2011 8:15 am
Profile YIM
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: ability to publish game logs to a blogger account.
That "unexpected tilde code" error is mostly harmless. I was able to figure out all the color codes used for ship types by looking at the Gold ship editor. But there's a different type of color code used in other parts of the log messages, and I had to figure those out by looking at the logs and then displaying the logs in the game to see what color they're supposed to be. It looks like ~Z (ASCII 90) is a common one that I missed. Those entries will still show up, but the text will be black on gray. This is one of the things I'm going to fix in the next version.

_________________
Suddenly you're Busted!


Sun Sep 11, 2011 4:34 pm
Profile WWW
Gameop
User avatar

Joined: Sun Aug 28, 2011 2:56 am
Posts: 81
Location: Montana
Unread post Re: ability to publish game logs to a blogger account.
Mongoose wrote:
That "unexpected tilde code" error is mostly harmless. I was able to figure out all the color codes used for ship types by looking at the Gold ship editor. But there's a different type of color code used in other parts of the log messages, and I had to figure those out by looking at the logs and then displaying the logs in the game to see what color they're supposed to be. It looks like ~Z (ASCII 90) is a common one that I missed. Those entries will still show up, but the text will be black on gray. This is one of the things I'm going to fix in the next version.


I figured it was just an unknown color code... and the log posted (Which is nice that it didn't just abort on the error).

_________________
ShapeShifter:
Image

Website/Blog: http://www.netcessor.com/topper
TWGS Server: telnet://108.59.108.53:23


Sun Sep 11, 2011 10:06 pm
Profile YIM
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: ability to publish game logs to a blogger account.
Could one of you guys post a TWOPENG.DAT in which that unrecognized color code appears? I'm having trouble getting my TWGS to generate it, and I'm getting weird results when I try to edit the codes in my existing log file.

_________________
Suddenly you're Busted!


Mon Sep 12, 2011 7:34 pm
Profile WWW
Gameop
User avatar

Joined: Sun Aug 28, 2011 2:56 am
Posts: 81
Location: Montana
Unread post Re: ability to publish game logs to a blogger account.
Mongoose wrote:
Could one of you guys post a TWOPENG.DAT in which that unrecognized color code appears? I'm having trouble getting my TWGS to generate it, and I'm getting weird results when I try to edit the codes in my existing log file.



http://aar.im/u/TWOPE-5a

The file host I use renamed it... but that link will get it.

Its my "B" game.. happened last night and the night before.

_________________
ShapeShifter:
Image

Website/Blog: http://www.netcessor.com/topper
TWGS Server: telnet://108.59.108.53:23


Mon Sep 12, 2011 7:46 pm
Profile YIM
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: ability to publish game logs to a blogger account.
That doesn't appear to be the right file.

_________________
Suddenly you're Busted!


Tue Sep 13, 2011 8:43 am
Profile WWW
Gameop
User avatar

Joined: Wed Jun 15, 2011 1:26 am
Posts: 165
Location: Martensville SK Canada
Unread post Re: ability to publish game logs to a blogger account.
is there a way when someone puts a URL in the Announce that the script will recognize it and make the appropriate URL link HTML code added to the URL of such announcements?

as i noticed that when some one did it killed the whole entry.

_________________
http://bbs.slother3x.info
http://www.slother3x.info My own website, hosted by myself.

"it only takes one to ruin it for all"
"The promises of our youth will always haunt us in the wisdom of our old age"


Wed Sep 14, 2011 12:38 am
Profile YIM
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: ability to publish game logs to a blogger account.
slother3x wrote:
as i noticed that when some one did it killed the whole entry.


What do you mean by that?

_________________
Suddenly you're Busted!


Wed Sep 14, 2011 1:34 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 134 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9  Next

Who is online

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