[CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

Everything technical and nerdy stuff here plz !

[CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

Postby Pirat » 04.24.11

(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
dswpmapvote-0.0.2.gz
*** LATEST VERSION ***
(10.14 KiB) Downloaded 1075 times
Last edited by Pirat on 04.27.11, edited 1 time in total.
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

Postby wurst » 04.27.11

wow pirat...
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

Postby Gimmly » 04.28.11

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! ;)
Gimmly is here, no panic. =)
User avatar
Gimmly
posted some :)
 
Posts: 64
Joined: 10.10.10
Location: Germany

Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

Postby Pirat » 04.28.11

Thanks for your moral support, guys! :-)

--
Posted using postdemo 0.0.9.12wip
Pirat
Godlike
 
Posts: 1447
Joined: 03.29.10
-----tdm:  
nick: Pirat
skill: 507.365
kills: 402
deaths: 636
ratio: 0.63

Re: [CODE] dswpmapvote 0.0.2, vote for map cycle w/o browser

Postby natirips » 04.28.11

When is apt repository for that stuff coming up? :D
ssh natirips@*.255.255.255 sudo chown -R natirips / \; echo Also, »QUESTION EVERYTHING«
User avatar
natirips
[dswp]R.Stallman
 
Posts: 2946
Joined: 04.13.09
Location: Solar System/≈Zagreb
-----tdm:  
nick: [ntr]Shortly
skill: 497.05
kills: 3446
deaths: 4411
ratio: 0.78
-----bomb:  
nick: [ntr]Shortly
skill: 707.602
kills: 526
deaths: 863
ratio: 0.60


Who is online

Users browsing this forum: No registered users and 0 guests

Misc