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

[CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser
http://www.dswp.de/old/forum-gameserver-support/dswpmapvote-0-0-2-vote-for-map-cycle-w-o-browser-t3455.html
Page 1 of 1

Author:  Pirat [ 04.24.11 ]
Post subject:  [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

(This page will be continuously edited upon each release)

If you don't have Linux, you can vote for the map cycle on


Otherwise, this script can do that for you.


This is a simple script for casting votes for the map cycle on the DSWP TDM server (dswp.de:22222) without using a browser.

Not as thoroughly tested as dswp.de/postdemo (*cough*), as you can vote only once per week, but it seems to work anyway. :-}

ADVANTAGES:
  • Once you are satisfied with your map selection, you can save it
    to a file and load it from there on future map votes.

DISADVANTAGES:
  • No map screenshots/images are shown. You need to know
    the maps behind the map names.

NEEDS:
  • GNU/Linux incl. bash and php
  • You need to install and run http://dswp.de/postdemo once, then edit DSWPUSER and DSWPPASS in "~/.postdemo/config" to match your forum credentials. Yeah, quick hack, I know. :-}

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

DOWNLOAD: See attachment.

INSTALLATION and INVOCATION
  • download and save as "dswpmapvote.gz"
  • gunzip dswpmapvote.gz
  • chmod a+rx dswpmapvote
  • ./dswpmapvote -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:
  • dswpmapvote -h
  • Section containing DSWPUSER and DSWPPASS in $HOME/.postdemo/config (created after first run of postdemo)


ChangeLog:
0.0.2
- add: Implemented batch mode.
- add: Implemented map arguments.
- add: Implemented showing current votes.
- imp: Map list sorted alphabetically
- add: Parameter "--force" to ignore (some) errors.
- chg: After casting a vote, current votes are shown.
- chg: Make --simulate create the files necessary for casting vote.
- FIX: Wrong map count (always 0).
- FIX: Forgot to re-get map page before final analysis.

0.0.1
- First simple, but functional version.

Attachments:
File comment: *** LATEST VERSION ***
dswpmapvote-0.0.2.gz [10.14 KiB]
Downloaded 797 times

Author:  wurst [ 04.27.11 ]
Post subject:  Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

wow pirat...

Author:  Gimmly [ 04.28.11 ]
Post subject:  Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

I am a Windows user (embarrassing :D ) ... so this isn't important for me, but it seems like that you did a great job, Pirat! ;)

Author:  Pirat [ 04.28.11 ]
Post subject:  Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

Thanks for your moral support, guys! :-)

--
Posted using postdemo 0.0.9.12wip

Author:  natirips [ 04.28.11 ]
Post subject:  Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

When is apt repository for that stuff coming up? :D

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