dswp.de
http://www.dswp.de/old/

[CODE] postdemo 0.0.9.12, post demos w/o browser
http://www.dswp.de/old/forum-gameserver-support/postdemo-0-0-9-12-post-demos-w-o-browser-t2770.html
Page 1 of 2

Author:  Pirat [ 10.23.10 ]
Post subject:  [CODE] postdemo 0.0.9.12, post demos w/o browser

(This page will be continuously edited upon each release)

If you don't have Linux, you can just post the demo of the suspected cheater on


Otherwise, this script can do that for you.

Since using a web interface makes me mad, I wrote this little
shell script that makes it possible to report cheaters (incl.
sending demos) without using a browser.

As with many programs, it's an evolved hack, so don't
expect a cleanly structured, robust and formally correct
script. But -- at least for me -- it works. I hope it does so
for you, too.

ADVANTAGES:
  • If you have access to in-game commands "!id" and "!lt" and use this
    script, you're making it easier for admins to prolong the ban.
  • It's much faster than posting a demo via web browser.
  • You can use the editor of your choice for creating the message.

NEEDS: GNU/Linux incl. bash and php (Debian pkg: php5-cli).

KNOWN LIMITATIONS: See list "TODOs" in the script.

DOWNLOAD: See attachment. Send PM for older versions.

INSTALLATION and INVOCATION
  • download and save as "postdemo.gz"
  • gunzip postdemo.gz
  • chmod a+rx postdemo
  • ./postdemo -h

SUPPORT: There is no guaranteed support of any kind, but if you have
problems, questions or suggestions, you can reply to this
post and hope for someone answering -- after reading the following:
  • postdemo -h
  • $HOME/.postdemo/config (created after first run)


ChangeLog:
0.0.9.12
- FIX: !lt syntax parsing now compatible with B3 1.50

0.0.9.11
- FIX: Replaced groups of "Cookie:" header lines with a single
"Cookie:" header line, as those groups made problems
with "map_voting.php" in the script "dswpmapvote".
- add: Made config file selectable per --config option.
- FIX: Anchor (#p1234) at end of URL led to problems in printing
final post/edit/quote/... URLs.

0.0.9.10
- FIX: Don't treat unknown options as URL.
- FIX: Improve detection of failed subnet retrieval.
- FIX: Didn't overwrite postfix file for each demo attached, but append
to it instead. A miracle that this script ever worked. %-}
- FIX: Could not get topic id and/or posting id when posting in
"Internal Stuffs" and in a few other places.
- FIX: When re-selecting demos, the selection got added, not edited.

0.0.9.9
- chg: Sped up posting page analyzation a lot.
- chg: Print tmpdir before aborting program (in cases where it makes sense)
- add: Added automatic detection of local charset.
- FIX: Hopefully, all possible local/remote charset combinations work now,
at least with the HTML fallback.
- chg: For "Too few characters" server message, added hint about
possibly incorrect local charset configuration.
- chg: (Use of) URL shortener configurable (URL_SHORTENER). Default: none.
- chg: Will also accept shortened URLs as parameter (except for preview links).
- FIX: Added 'recode' to list of required programs.

0.0.9.8
- FIX: If traditional netcat was installed (instead of OpenBSD-netcat),
it took at least 15 seconds to send data to the server. Fixed
with "-q" parameter of netcat.

0.0.9.7
- FIX: Classical off-by-1-error: Last message line wasn't quoted.
- add: Editing (at least your own) posts is now supported, incl.
adding demos, but w/o ability to delete demos.
- chg: Documentation fix: It must read: ioUrbanTerror.i386 2> uterror.log
Thanks, Draik!

0.0.9.6
- chg: on.to/postdemo replaced with dswp.de/postdemo because on.to
inserted an advertisement frame. Also using different font size
for the signature to make it more distinguishable.
- chg: Subject and message will not show at the beginning, except if
that makes sense.
- chg: Small doc changes.

0.0.9.5
- FIX: Not accepting "deflate" anymore when sending server requests, as
they don't get handled.
- add: Creation of short URLs via is.gd.

0.0.9.4
- FIX: Converts charsets for subject and message, if necessary.
New variable 'local_charset' for that purpose. Add that to
your config. See source for comment.

0.0.9.3
- FIX: Checking for vital programs was done too late.
- Add: Result of login process is now evaluated.
- Add: Prompt for username/password if one of them is not set in config file.

0.0.9.2
- FIX: when !id line was not available, subject wasn't set properly

0.0.9.1
- go.to/postdemo replaced with on.to/postdemo, as I have trouble with go.to.

Attachments:
File comment: ****** LATEST VERSION ******
postdemo-0.0.9.12.gz [17.11 KiB]
Downloaded 1150 times

Author:  eXtr33m [ 10.23.10 ]
Post subject:  Re: [CODE] postdemo, script for posting demos w/o browser

WoW :shock:

Now just hope with UrT 4.2 you could link it together and post demos from ingame :):)

Author:  Rylius [ 10.23.10 ]
Post subject:  Re: [CODE] postdemo, script for posting demos w/o browser

Quote:
/tmp/Z5XlSkGX.bin.part could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.

:o :o

Author:  Pirat [ 10.23.10 ]
Post subject:  Re: [CODE] postdemo, script for posting demos w/o browser

Rylius wrote:
Quote:
/tmp/Z5XlSkGX.bin.part could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.

:o :o

Hm, works perfectly here. I'd say: "Contact the server administrator". :-)

Author:  Pirat [ 10.23.10 ]
Post subject:  Re: [CODE] postdemo, script for posting demos w/o browser

Pirat wrote:
Rylius wrote:
Quote:
/tmp/Z5XlSkGX.bin.part could not be saved, because the source file could not be read.

Try again later, or contact the server administrator.

:o :o

Hm, works perfectly here. I'd say: "Contact the server administrator". :-)

Or use this:

http://pastebin.com/Zez5WWPD

Click on "DOWNLOAD" and save it as "postdemo.gz", then
run "gunzip postdemo.gz" on it.

Author:  Rylius [ 10.23.10 ]
Post subject:  Re: [CODE] postdemo, script for posting demos w/o browser

Didn't restart Firefox after update, that borked downloads :?

Woah, that script is awesome, just looked through it real quick.
Guess I even learned quite a bit from it :P

Quote:
function dont___damn_does_not_help() {
:D :D

Author:  Pirat [ 10.23.10 ]
Post subject:  Re: [CODE] postdemo, script for posting demos w/o browser

Rylius wrote:
Woah, that script is awesome, just looked through it real quick.
Guess I even learned quite a bit from it :P

<ZOIDBERG>Hooray, I am useful! I'm having a wonderful time!</ZOIDBERG> :-)

Rylius wrote:
Quote:
function dont___damn_does_not_help() {
:D :D

|-) Yeah, those session timeouts are hard to come by ... thought
that re-login just before posting the actual data would help, but
no, it didn't. As I didn't want to further delay the release of this
script, and as this limitation is in most cases irrelevant, I posted
it in this state. :-}

Author:  SKracht [ 10.25.10 ]
Post subject:  Re: [CODE] postdemo 0.0.9.1, posts demos w/o browser

Chapeau!

Author:  Ana [ 11.01.10 ]
Post subject:  Re: [CODE] postdemo 0.0.9.5, post demos w/o browser

so:
Cant u make "Posted using postdemo 0.0.9.6wip" in other(bit darker color or smaller, dunno if it would be unreadable then, but je maybe other color than standard) since now it looks like the part of the post and it in fact isnt :). confuses me a bit. :P i dunno if such is possible at all. just an idea

and what kind of link is that with google adds? cant u let normal link there?

Author:  Pirat [ 11.01.10 ]
Post subject:  Re: [CODE] postdemo 0.0.9.5, post demos w/o browser

Ana wrote:
so:
Cant u make "Posted using postdemo 0.0.9.6wip" in other(bit darker color or smaller, dunno if it would be unreadable then, but je maybe other color than standard) since now it looks like the part of the post and it in fact isnt :). confuses me a bit. :P i dunno if such is possible at all. just an idea

and what kind of link is that with google adds? cant u let normal link there?

Issues fixed/improved in version 0.0.9.6 as discussed on mumble.
See dswp.de/postdemo.

Page 1 of 2 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/