View unanswered posts | View active topics It is currently Tue May 19, 2026 2:35 pm



Reply to topic  [ 134 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9  Next
 ability to publish game logs to a blogger account. 
Author Message
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.
Changes in this version:

Recognizes ~B (bright red) and ~C (bright green)
Outputs a newline (CR+LF) after every record


Attachments:
File comment: Rename this .zip to .jar
TWOPENG2.zip [17.41 KiB]
Downloaded 871 times

_________________
Suddenly you're Busted!
Fri Sep 16, 2011 10:29 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:
Changes in this version:

Recognizes ~B (bright red) and ~C (bright green)
Outputs a newline (CR+LF) after every record


That cured it. Its not as tight as it was (The new lines appear after each entry, like double spaced), but at least the visual errors, and code breaks are gone.

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

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

EDIT: I might be able to fix that with a bit of editing to the Wordpress Theme. I'll look into it.

It works for me. Thanks!

_________________
ShapeShifter:
Image

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


Fri Sep 16, 2011 10:43 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.
I could give it a command line option to use HTML break tags, CR+LF line breaks, or both after each record. Let me know if that would be useful.

_________________
Suddenly you're Busted!


Fri Sep 16, 2011 11:01 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:
I could give it a command line option to use HTML break tags, CR+LF line breaks, or both after each record. Let me know if that would be useful.


It might help... not sure.

As long as the output of each line is less than 2000'ish characters, they'll be able to post with out breaking.

I think the problem visually right now is the amount of space (Padding) that happens when it comes across a hard return. I *Should* be able to fix it by adjusting the CSS of the theme I'm using. Problem now is that I didn't write this theme, and the CSS is about 800 lines, and not commented, or organized very well.

_________________
ShapeShifter:
Image

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


Fri Sep 16, 2011 11:23 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 have another request... this one might seem a little odd.

the daily log for game "M" on my server is is pretty long (One of the players likes creating and blowing up a LOT of planets...) I got this error:

Code:
The process tried to write to a nonexistent pipe.


A quick google search says that error appears when Java tries to end before its done writing to the output file.

so... any chance you could add a .5 - 2 second pause to the jar file after its done processing so the output file has a chance to catch up and close?

Seems that your app is fast... REAL fast, which is usually a good thing :D

_________________
ShapeShifter:
Image

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


Wed Sep 21, 2011 1:09 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.
topper4125 wrote:
(One of the players likes creating and blowing up a LOT of planets...)


perhaps he is a serial planet killer? as someone has done the same thing on my Trade wars game server a few days ago.

i think it is a way for his alignment to decrease drastically. or he just does not like planets that he creates. be it a girl instead of a boy. you kill the girls till you get that boy you want since it is as you know in that one child policy. or in this case a 5 planet or so policy :lol:

_________________
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 21, 2011 1:27 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.
topper4125 wrote:
A quick google search says that error appears when Java tries to end before its done writing to the output file.


That doesn't seem right. My program doesn't write to a file; it writes to a pipe that belongs to your shell. I think the problem is on the other end: my program is prematurely detecting the end of the input and shutting down, while the type command is still trying to write to the pipe that my program was reading.

The simplest solution might be to change how many bytes your shell can buffer in a pipe. (And I have no idea how to do that.) But a better solution might be for me to come up with a more reliable way of detecting the end of the input...

I'll think about it.

_________________
Suddenly you're Busted!


Wed Sep 21, 2011 1:14 pm
Profile WWW
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.
Ohhhhhh... I know what's happening!

My program abruptly exits when it detects a log entry that's after the date range it's supposed to be converting. If there are a large number of log entries after this, and the type command has not already written them to the pipe when my program ends, then you will see this error.

If my theory is correct, you should find that the output is complete for the date range you wanted. Is that the case?

_________________
Suddenly you're Busted!


Wed Sep 21, 2011 1:36 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.
It *did* write the entire log for the date. It seemed to work just as it should, but just kicked out that error.

If that's what you mean.. then ya.. yer right.

_________________
ShapeShifter:
Image

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


Wed Sep 21, 2011 2:39 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.
Yeah. It's actually the type command printing that error.

I could make my program always read through the rest of the input, even though it knows it's done...

_________________
Suddenly you're Busted!


Wed Sep 21, 2011 3:04 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:
Yeah. It's actually the type command printing that error.

I could make my program always read through the rest of the input, even though it knows it's done...


That would probably work :D

_________________
ShapeShifter:
Image

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


Wed Sep 21, 2011 4:08 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.
just noticed that "yesterday's" logs are a few days old. like in the snapshot.

not sure if it is my bat file or my automation. but just in case here they are.

Code:
echo.
echo *** STARTING EMAIL PROCESS ***

C:
cd\blat262\full

echo *** EMAILING ALL LOGS TO THE WEBSITE ***
echo.


echo *** EMAILING GAME G LOGS ***
blat "C:\Program Files\EIS\TWGS\Game\GAMEG\log.html" -to ***EMAILADDRESSREMOVED**** -subject "Game Eta - Yesterdays Log"
PING 127.0.0.1 -n 6
PING 127.0.0.1 -n 6

echo *** EMAILING GAME F LOGS ***
blat "C:\Program Files\EIS\TWGS\Game\GAMEF\log.html" -to ***EMAILADDRESSREMOVED**** -subject "Game Zeta - Yesterdays Log"
PING 127.0.0.1 -n 6
PING 127.0.0.1 -n 6


echo *** EMAILING GAME E LOGS ***
blat "C:\Program Files\EIS\TWGS\Game\GAMEE\log.html" -to ***EMAILADDRESSREMOVED*** -subject "Game Epsilon - Yesterdays Log"
PING 127.0.0.1 -n 6
PING 127.0.0.1 -n 6

echo *** EMAILING GAME D LOGS ***
blat "C:\Program Files\EIS\TWGS\Game\GAMED\log.html" -to ***EMAILADDRESSREMOVED*** -subject "Game Delta - Yesterdays Log"
PING 127.0.0.1 -n 6
PING 127.0.0.1 -n 6

echo *** EMAILING GAME C LOGS ***
blat "C:\Program Files\EIS\TWGS\Game\GAMEC\log.html" -to ***EMIALADDRESSREMOVED*** -subject "Game Gamma - Yesterdays Log"
PING 127.0.0.1 -n 6
PING 127.0.0.1 -n 6

echo *** EMAILING GAME B LOGS ***
blat "C:\Program Files\EIS\TWGS\Game\GAMEB\log.html" -to ***EMAILADDRESSREMOVED**** -subject "Game Beta - Yesterdays Log"
PING 127.0.0.1 -n 6
PING 127.0.0.1 -n 6

echo *** EMAILING GAME A LOGS ***
blat "C:\Program Files\EIS\TWGS\Game\GAMEA\log.html" -to ***EMAILADDRESSREMOVED*** -subject "Game Alpha - Yesterdays Log"
echo *** ALL LOGS EMAILED TO THE BLOG ***
echo.
PING 127.0.0.1 -n 6

echo *** Maintnance complete Server will restart in 5 seconds ***
PING 127.0.0.1 -n 6


and here is the batch i use for making the logfiles.

Code:
type %1\TWOPENG.DAT | java -jar TWOPENG2.jar yesterday 1> %1\log.html 2> %1\errorlog.html


Attachments:
email.jpg
email.jpg [ 45.52 KiB | Viewed 22460 times ]
auto batch.jpg
auto batch.jpg [ 49.73 KiB | Viewed 22460 times ]
logfiles.jpg
logfiles.jpg [ 62.21 KiB | Viewed 22460 times ]

_________________
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 28, 2011 8:06 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.
my mistake. it was still only off by 2 days not one as when i looked at the other posts it was correctly posting them. *PHEW* sorry about the false alarm. but apparently yesterday was 2 days ago. according to the log files.

_________________
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 28, 2011 9:08 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.
So the same computer is running TWGS and my log converter?

_________________
Suddenly you're Busted!


Wed Sep 28, 2011 9:16 pm
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.
Mongoose wrote:
So the same computer is running TWGS and my log converter?

yep

_________________
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 28, 2011 9:35 pm
Profile YIM
Display posts from previous:  Sort by  
Reply to topic   [ 134 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9  Next

Who is online

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