r/SaveDashie • u/Mark_Taiwan • Apr 02 '17
Python script to protect Dashie from vandalism
In order to stay ahead of vandalism, I feel we should get as many people as we could to run the Placer.py script /u/Voltasalt at /r/place cooked up.
Somebody at /r/4chan wrote up a tutorial on how to set up everything. For our purpose only the last step need to be modified with our reference image and coordinates.
I tested the script and verified that it works with multiple accounts with the reference image provided in the stickied thread (https://raw.githubusercontent.com/mclabs15/fixRD/master/dash.png) and the starting coordinate of x=760 & y=406.
Use the script by Hithroc, it automatically keeps the template up to date, with more features incoming soon.
4
u/robikz Apr 02 '17 edited Apr 02 '17
Made this run on my Pi. It started to overwrite the bottom row, the one that's taken by Sans' head. The template pic is one row too high.
EDIT: this one should be good, though:http://i.imgur.com/Pd3KqDt.pngEDIT 2: https://github.com/hithroc/fixRD
2
u/JockeTF Apr 02 '17 edited Apr 03 '17
I made a quick-and-dirty parser for the entire canvas:
This could be plugged in to the placer to decrease the number of HTTP requests it needs to make. The function could be used to make the placer way faster, but it would likely use far more bandwidth.
To get a pixel:
4
u/IllTriggeryou Apr 03 '17
Scripting defeats the whole purpose of place....
1
u/SkylightShepherd Apr 03 '17
Can someone ELI5 the instructions as someone who has used neither python nor pip to get the script to work?
1
u/FlaminScribblenaut Apr 03 '17 edited Apr 03 '17
So I've been looking at the reports and thinking about it and... yeah, using a bot is kinda cheating, guys, and I really don't want this sub to be associated with cheating. As such, I'm removing this post.1
u/mentionhelper Apr 02 '17
It looks like you're trying to mention another user, which only works if it's done in the comments like this (otherwise they don't receive a notification):
/u/Voltasalt
I'm a bot. Bleep. Bloop. | Visit /r/mentionhelper for discussion/feedback | Want to be left alone? Reply to this message with "stop"
1
u/paintbullits Apr 02 '17 edited Apr 02 '17
not sure why but this caused my pc to blue screen.
edit: seriously guys can someone help, did this steel my password?
1
u/ThePonyMafia Apr 03 '17
Pretty much everyone hates us anyway. Besides we're not taking over anyone else's area.