| Author |
Message |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: ability to publish game logs to a blogger account.
I've got it looking pretty much exactly like the logs in the game. The main difference is the HTML lacks the TWGS version banner across the top, which doesn't come from the log file.
The byte I thought was a message type ID is actually a Pascal-style string length. Duh! That simplifies things a bit.
Here's the latest binary. Once again, rename it to jar. I'll post the source once I'm satisfied that everything is working properly.
Attachments:
File comment: Rename this file from .zip to .jar
TWOPENG2.zip [17.09 KiB]
Downloaded 554 times
_________________ Suddenly you're Busted!
|
| Sat Sep 03, 2011 1:31 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 Re: ability to publish game logs to a blogger account.
i am currently out of town and my server is at home. i most likely will not be back in town till Monday or Tuesday. but in the mean time i will have to just let my computer coast with out me. so play on it while you still can as it might go down in a few hours like it always does. after running it for days on end it has the tendency to kick people out of the game. JP already knows about this so don't bomb-bard him with emails. i will reset the game and use the new jar file when i get home.
_________________ 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 03, 2011 7:04 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 Re: ability to publish game logs to a blogger account.
i have returned. and i was able to upgrade to 2.08 and was able to find the reason for those "empty" entries on my blog and have rectified the problem. i was also able to download the latest .jar file you posted Mongoose. and hopefully it will show up on my blog tonight. but i had a long weekend and i might not stay up to see if my editions worked. i will be able to see it after work tomorrow.
_________________ 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"
|
| Tue Sep 06, 2011 8:36 pm |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: ability to publish game logs to a blogger account.
Cool. I'll look at your blog and see how it looks.
There's supposed to be one blank line when extern runs. In the game, it prints a timestamp, then a blank line, then the banner that says daily log for stardate whatever. The last jar I posted renders that correctly.
I still don't know why the output looks fine in Firefox but it's screwed up in Safari. I want to find out if it looks right in some other browsers.
_________________ Suddenly you're Busted!
|
| Tue Sep 06, 2011 9:40 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 Re: ability to publish game logs to a blogger account.
since i noticed that your on blogger, i was wondering if you wanted joint custody of my tradewars blog? or at least posting rights Mongoose?
_________________ 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 07, 2011 5:07 pm |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: ability to publish game logs to a blogger account.
No thanks. I'm not sure what I'd do with it. Have you run into any problems with the latest version of my converter program? Logged any error messages? I'm going to fix the following things and post a new version in a day or two. - Fix the color for Federation bounty messages - Figure out why everything looks right in Firefox but not Safari - Make it output a message when there are no matching log entries, so you don't end up with empty posts. I'm wondering why you have so many empty posts. Shouldn't there at least be messages that extern has run? Either your extern isn't running, or something is wrong with your mailer script, or something is wrong with my program. I want to get to the bottom of it. 
_________________ Suddenly you're Busted!
|
| Wed Sep 07, 2011 7:00 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 Re: ability to publish game logs to a blogger account.
Mongoose wrote: Have you run into any problems with the latest version of my converter program? Logged any error messages? I'm going to fix the following things and post a new version in a day or two.
yesterdays entry was done with the latest program. Mongoose wrote: No thanks. I'm not sure what I'd do with it. you can see the posted Html in the post editor. it would also help me report errors to you
_________________ 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 07, 2011 7:45 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 Re: ability to publish game logs to a blogger account.
Mongoose wrote: Logged any error messages? come to think of it Game A's error log had this: Code: Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90 Unexpected tilde code: ~90
_________________ 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 07, 2011 8:06 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 Re: ability to publish game logs to a blogger account.
Mongoose wrote: I'm wondering why you have so many empty posts. Shouldn't there at least be messages that extern has run? Either your extern isn't running, or something is wrong with your mailer script, or something is wrong with my program. I want to get to the bottom of it.  Extern runs and the files get sent via blogger there is Html code in the posts but it just that when i look at the posts in the html editor it just has this code Code: <div style="font-family:monospace, fixed; background-color:#000000"> </div> and nothing else.
_________________ 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 07, 2011 8:25 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 Re: ability to publish game logs to a blogger account.
i split the posting times to 1 game to every 10 minutes. and i noticed that all of the games posted this time so it appears that was the problem. having each game it's own time to post via blogger's email. witch kinda sucks because i have to wait 10 minutes between each post. but i guess that is a problem with Blat and not your program Mongoose. but take a look.
_________________ 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"
|
| Thu Sep 08, 2011 10:42 am |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: ability to publish game logs to a blogger account.
Hey, cool. I still need to make it recognize the ~Z color code. I'll do that... soon. 
_________________ Suddenly you're Busted!
|
| Thu Sep 08, 2011 1:38 pm |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 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 |
|
 |
|
topper4125
Gameop
Joined: Sun Aug 28, 2011 2:56 am Posts: 81 Location: Montana
|
 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:  Just wanted to say thanks!
_________________ ShapeShifter:

Website/Blog: http://www.netcessor.com/topper TWGS Server: telnet://108.59.108.53:23
|
| Sat Sep 10, 2011 9:26 am |
|
 |
|
slother3x
Gameop
Joined: Wed Jun 15, 2011 1:26 am Posts: 165 Location: Martensville SK Canada
|
 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 |
|
 |
|
topper4125
Gameop
Joined: Sun Aug 28, 2011 2:56 am Posts: 81 Location: Montana
|
 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:

Website/Blog: http://www.netcessor.com/topper TWGS Server: telnet://108.59.108.53:23
|
| Sat Sep 10, 2011 10:04 pm |
|
 |
|