Cantr transcript reversing program

General out-of-character discussion among players of Cantr II.

Moderators: Players Department, Public Relations Department

The Industriallist
Posts: 1862
Joined: Fri Aug 29, 2003 7:25 pm

Cantr transcript reversing program

Postby The Industriallist » Wed Jul 21, 2004 10:48 pm

I've just finished a program which seems to be reliably capable of correctly changing Cantr transcripts from bottom-up order to top-down. I would be happy to make this available, but I don't have a server to make it accessable from. It's an executable JAR file, so it ought to be usable on any computer (provided you have java...)

If people want I might be able to make an applet out of it instead. I'm not to sure about that. Certainly not until the weekend.
"If I can be a good crackhead, I can be a good Christian"

-A subway preacher
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Wed Jul 21, 2004 11:33 pm

What's the input it needs? Do you c/p events into a textfield that your application provides, and another textfield shows the lines in reversed order? What exactly does it do?
The Industriallist
Posts: 1862
Joined: Fri Aug 29, 2003 7:25 pm

Postby The Industriallist » Thu Jul 22, 2004 1:26 am

If I made it an applet, it would do that, but it will take me some time to get there. As it is it takes from one text file and saves to another. First an "open file" dialog box for the input, then a "save" dialog box for the output, then it does its work with no interface whatsoever.

It knows how to identify the first line of a cantr event (by its datestamp, incidentally) and uses that to split the input into events, which it then outputs in the opposite of the direction it read them in.
"If I can be a good crackhead, I can be a good Christian"



-A subway preacher
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Thu Jul 22, 2004 1:28 am

Just checking for CR/LF doesn't do the job? :)
The Industriallist
Posts: 1862
Joined: Fri Aug 29, 2003 7:25 pm

Postby The Industriallist » Thu Jul 22, 2004 1:31 am

Multiline events aren't supposed to have their lines reversed :lol:

That part of it had me stumped a few months ago.

Then I was going to use the blank lines between events as a marker. But there are no such blank lines in email event reports.

ooh, I forgot to test it on those... It ought to work, but I have to check...
"If I can be a good crackhead, I can be a good Christian"



-A subway preacher
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Thu Jul 22, 2004 1:36 am

E-Mail reports are in the top-to-bottom order already, no?

And technically, there aren't any multiline events. Events are one line, where the end of the line is denoted by a CR/LF character.

It might be, though, that the editor you c/p it to adds such characters.

How would your application treat an event like this?

253-6: You say: "That's what I want to happen around 254-6: I want to talk about something important."
The Industriallist
Posts: 1862
Joined: Fri Aug 29, 2003 7:25 pm

Postby The Industriallist » Thu Jul 22, 2004 1:48 am

:oops: I just noticed that about email reports. Never really looked at them, I guess.

Your example would only cause a glitch if the second datestamp was right at the beginning of a line. If it were it would be regarded as a second event...

As for the multilining, if it is artificial on my end it could come from my browser or my OS, but I don't think from my editor. Could be wrong, I guess. Single line events handle fine too.
"If I can be a good crackhead, I can be a good Christian"



-A subway preacher
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Thu Jul 22, 2004 1:53 am

It's a nice gadget you developed, no matter whether it works with newline characters or with other measures to identify single events.

Some people might find it useful for quotes and such.

Good work. ;)
The Industriallist
Posts: 1862
Joined: Fri Aug 29, 2003 7:25 pm

Postby The Industriallist » Thu Jul 22, 2004 1:59 am

But no one can use it. :(

Except me. Actually, I needed it for personal use anyway... one of my characters has pages of unreversed transcripts.

It's only 2 kb. 8)
"If I can be a good crackhead, I can be a good Christian"



-A subway preacher
west
Posts: 4649
Joined: Mon Aug 25, 2003 5:23 pm

Postby west » Thu Jul 22, 2004 2:18 am

You could post it to the 'files' section of the old Yahoo! board...if you can wade through all the porn bots.
I'm not dead; I'm dormant.
The Industriallist
Posts: 1862
Joined: Fri Aug 29, 2003 7:25 pm

Postby The Industriallist » Thu Jul 22, 2004 2:28 am

If that is a good idea, and it won't actually try to kill my computer, I could try it.

I don't know where it is, though.
"If I can be a good crackhead, I can be a good Christian"



-A subway preacher
west
Posts: 4649
Joined: Mon Aug 25, 2003 5:23 pm

Postby west » Thu Jul 22, 2004 2:38 am

I'm not dead; I'm dormant.
The Industriallist
Posts: 1862
Joined: Fri Aug 29, 2003 7:25 pm

Postby The Industriallist » Thu Jul 22, 2004 2:54 am

It's there. Going to be a pain for people who don't use AOL (like me, normally) to get to, though.
"If I can be a good crackhead, I can be a good Christian"



-A subway preacher
User avatar
The Hunter
Posts: 1470
Joined: Sat Aug 16, 2003 12:59 pm
Location: In my cave, making bombs.
Contact:

Postby The Hunter » Thu Jul 22, 2004 8:23 am

Ummmm... Yahoo boards? :?

Send the file to me. I can host it.
Life is fun. Play naked with Psycho-Pixie.

"Our enemies are resourceful and innovative".
"and so are we..."
They never stop thinking about new ways to harm our country and people"
"and neither do we"
~G.W Bush
User avatar
The Hunter
Posts: 1470
Joined: Sat Aug 16, 2003 12:59 pm
Location: In my cave, making bombs.
Contact:

Postby The Hunter » Tue Jul 27, 2004 7:54 pm

Done.

http://home.wanadoo.nl/macs/overige/Tra ... verser.jar

:)

//edit: How does it actually work? (Noob :oops).
Life is fun. Play naked with Psycho-Pixie.



"Our enemies are resourceful and innovative".

"and so are we..."

They never stop thinking about new ways to harm our country and people"

"and neither do we"

~G.W Bush

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest