View unanswered posts | View active topics It is currently Sun Oct 20, 2019 12:14 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
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 see I overlooked the color code for traders being awarded a Federal commission. That'll be easy to figure out.

Your blog looks good, Slother!

Still not sure why the formatting's getting messed up on yours, Topper. I'm seeing all kinds of weird stuff when I view the source, like <span> tags being split in half, and the brackets around some tags (but not others) being converted into HTML entities like &gt;.

Could you try manually editing my program's HTML output and see if you can find a solution that works with Wordpress? If you figure out something that works, I'll incorporate it into the program.


I'll work on it... its odd that it only breaks on 2 of them... but the others are fine. If I can figure it out, I'll let you know.

_________________
ShapeShifter:
Image

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


Fri Sep 16, 2011 9:35 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.
Well.. they are easy to clean up, but its kind of weird, an exclamation point appears randomly followed by a CR:

Code:
<span style="c!
olor:#ff
5555;"> --</span>

_________________
ShapeShifter:
Image

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


Fri Sep 16, 2011 9:44 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'm wondering...

I took a look at the output of the .jar, it outputs to a single line... The breaks that occure on the blog happen at exactly 2040 characters.

Any chance you could have the output of the .jar linebreak somewhere safe? Like maybe after a Date/time stamp?

_________________
ShapeShifter:
Image

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


Fri Sep 16, 2011 9:53 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.
Sure... I'll just put in a line break after every log record.

_________________
Suddenly you're Busted!


Fri Sep 16, 2011 9:55 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.
Just checked the mailbox that the logs are sent to... they are broken up... I don't know if the problem is with Blat... or with my email provider, but at least now I know its not a problem with wordpress. [whew]

And just to be sure, I copied the text from the inbox, and posted it... it posts broken.. in the exact same places.

so... I can pretty much confirm that the problem will be fixed with the solution you're working on.

_________________
ShapeShifter:
Image

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


Fri Sep 16, 2011 10:10 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.
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 177 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
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 5 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 STSoftware.