Fixing the scripts (by stealing from PO?)

Discussion in 'Pokemon Online' started by Antar, Nov 21, 2011.

  1. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,845
    As some of you may know, we've been having some issues with the scripts on our PO server. Namely, the Drizzle+SwSw ban is inconsistently enforced and the scripts that are supposed to blanket-ban Moody and ban Drought in UU and below do not work (for these latter two, I've implemented a workaround that involves making Moody an "unreleased DW ability"--sucks for DW players and Drought unreleased on Vulpix.

    Now, SmashPass has been voted banned from RU (and below), and the ban is going to need to be implemented.

    So how are we gonna fix the scripts and implement a SmashPass ban?

    I *hope*, by stealing from PO.

    Here is a link to our scripts: https://github.com/sarenji/poserver/blob/master/scripts.js

    Here is a link to PO's "scripts" forum: http://pokemon-online.eu/forums/forumdisplay.php?13-Scripts

    The OP in the "current scripts" thread was last updated in March, so I'm not sure how useful it is.

    Basically, this is how this is gonna work: propose a revised script or a new script altogether by posting it here. When I get back from vacation (on 11/26), I will implement the revised scripts on a "testing" server, and we'll see what works and what doesn't. Then, anything that works, we implement on the main Smogon PO server. This ensures a minimum of downtime of the Smogon PO server and the fewest possible interruptions.



    Oh, finally, if you want to propose a skarmpiss-blocking script, be my guest.
  2. Eos

    Eos Do It With A DON!
    is a Battle Server Moderator

    Joined:
    Jan 17, 2011
    Messages:
    741
    Alright, so this is perfect timing.
    Show Hide
    Quote:
    Originally Posted by Fat Eos
    Hey BK! I just sent this to Aldaron yesterday in hope of him responding asap, but he didn't, so I thought I'd send this to you even though you're taking a little break. At the very least, do you think you could talk it over with the right people? Thanks in advance for looking over the following message. :)


    Hey Aldaron, we (meaning the server mods and I) have been talking today about reducing the character length per post since skarmpiss and other trolls take advantage of having the ability to say something that can take up the entire chat. I was talking with IFM and he said that PO uses this to control these messages and it seems to me like a great idea.

    Or maybe a secret mute kind of thing? Personally I think it might work, and it would be better than nothing for sure, but the character restriction would be better. Unless I'm missing something, do you think you could implement this/these?

    If you could, that would be really helpful. :)


    BK's response:

    Seems like a good idea to me. Incidentally, Antar just posted this thread, and I'm sure he'd love to hear about your idea.

    Thanks for the message. :)
  3. Lady Salamence

    Lady Salamence is a three-dimensional retard.
    is a Forum Moderator Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnus

    Joined:
    Aug 4, 2010
    Messages:
    3,471
    On the topic of Skarmpiss...

    I googled Skarmpiss hoping for pastebins of his usual spam, to see if they were greater than 250 characters (i wouldn't be surprised) and found this:

    http://pastebin.com/TJKVNdCb

    Would this work?
  4. prem

    prem failed abortion
    is a Community Contributoris a Tiering Contributoris a Contributor to Smogonis a Battle Server Moderator
    Mentor

    Joined:
    Mar 25, 2011
    Messages:
    1,625
    just going to say this, but sarenji stole the drizzle swim script from po already and that has been failing.
  5. Yamata no Orochi

    Yamata no Orochi capes are cool
    is a Battle Server Moderator

    Joined:
    May 15, 2011
    Messages:
    258
    Ah, I went to that server, it is completely Skarmpiss free
  6. idiotfrommars

    idiotfrommars schemes and plots are the same thing
    is a Smogon Media Contributoris a Tiering Contributoris a Tutor Alumnusis a World Cup of Pokemon defending champion

    Joined:
    Jun 30, 2010
    Messages:
    1,110
    http://pokemon-online.eu/scripts.js

    Those should be up to date as far as I can tell.

    Unfortunately all the scripters are offline at the moment so I can't get a 100% confirmation, but things added as recently as today are in it so it should be correct. If you need anything specific that isn't in there I can most likely get it.
  7. Steamroll

    Steamroll resident PS fascist
    is a Smogon IRC AOPis a Battle Server Moderator

    Joined:
    Jan 1, 2011
    Messages:
    2,319
    Yeah confirming with prem. The PO script is failing since I already have 2 reports of Swift Swim and Drizzle today.
  8. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,845
    I like it, as long as it has the approval of the Smogon PO mods. I think we should decide on what the limit should be, though. 250 seems a bit long to me.

    This would block Skarmpiss from going by the name Skarmpiss (already done through a ban), but Skarmpiss has built himself a custom client that reports a different IP address every time he logs in (or so he claims), so banning the IP addresses would be pointless.

    Drizzle+SwSw used to work, back before I upgraded the server to 1.0.30, didn't it? So he probably stole the script from when PO was running 1.0.23. Hopefully, the PO people have come up with a new script since.

    You rock!
  9. prem

    prem failed abortion
    is a Community Contributoris a Tiering Contributoris a Contributor to Smogonis a Battle Server Moderator
    Mentor

    Joined:
    Mar 25, 2011
    Messages:
    1,625
    no the scripts have always been failing ever since we moved from dusk to bk's server
  10. iDunno

    iDunno

    Joined:
    Aug 15, 2009
    Messages:
    1,139
    To expand on that "if there are x amount of characters ban the guy thing", how about instead of banning, you just make the text invisible to everyone except for the guy who is typing it (maybe except for mods). Instead of banning him, for which he probably has a script that executes another login from a different ip address, why not just let him have his fun and make obnoxious posts without knowing that nobody can see them?
  11. Lady Salamence

    Lady Salamence is a three-dimensional retard.
    is a Forum Moderator Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnus

    Joined:
    Aug 4, 2010
    Messages:
    3,471
    because he knows people respond when he does it
  12. prem

    prem failed abortion
    is a Community Contributoris a Tiering Contributoris a Contributor to Smogonis a Battle Server Moderator
    Mentor

    Joined:
    Mar 25, 2011
    Messages:
    1,625
    thats actually how po deals with skarmpiss. it invisible mutes it so only he can see it while in the staff channel they get a message saying _________ is spamming. so they can have moderative action
  13. iDunno

    iDunno

    Joined:
    Aug 15, 2009
    Messages:
    1,139
    That's true, but he would have a tough time making an autologin script if he doesn't know when the blind mute kicks in. It could be executed by a combination of post length/posts per second or just lines per second so he would have a hard time flooding the chat before he is muted.

    some smart peeps over there at PO
  14. Lesser Smaug

    Lesser Smaug

    Joined:
    Nov 1, 2011
    Messages:
    145
    Why exactly are we stealing scripts from Pokemon Online's server?
  15. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,845
    Because we also "stole" their simulator. This isn't "stealing" as in robbery--it's more like "stealing" as in "a glance at their code."
  16. Woodchuck

    Woodchuck <kryptonite intensifies>
    is a Battle Server Administratoris a Smogon IRC AOPis a Forum Moderator
    Moderator

    Joined:
    May 25, 2010
    Messages:
    2,036
    because ours are inadequate
  17. Rising_Dusk

    Rising_Dusk
    is a Site Staff Alumnusis a Team Rater Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Super Moderator Alumnusis a CAP Contributor Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnus

    Joined:
    Dec 27, 2009
    Messages:
    4,759
    Rather, because their code is open source, which means it is free to use and not stealing at all. It exists to be used as a point of reference, or even directly, by other servers.
  18. Blue Kirby

    Blue Kirby Never back down.
    is a Tutor Alumnusis a Site Staff Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Smogon IRC SOp Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnusis an Administrator Alumnusis a Past SPL + WCoP Winner

    Joined:
    Nov 1, 2007
    Messages:
    2,837
    (Our scripts are open source too!)
  19. udhayako

    udhayako

    Joined:
    Nov 22, 2011
    Messages:
    3
    Absolutely right bro. We couldn't say it is "stealing" while they are open source scripts.
  20. verbatim

    verbatim Surprise when they find out that a warrior'l soon run wild
    is a Battle Server Administratoris a Smogon IRC AOPis a Forum Moderator
    Moderator

    Joined:
    Jun 11, 2011
    Messages:
    1,239
    To be fair, he tends to spam his message until the chat gets locked, maybe we could use an edit of that code where he sees (moderator that is online) locked the chat. Also, I haven't seen him use his "official" log recently, but I have seen many people claim to be him. How hard is it to evade P.O.'s defenses? If you look at my sig, the dude clearly manages to evade the ban, but I'm not quite sure it was him.
  21. Lady Salamence

    Lady Salamence is a three-dimensional retard.
    is a Forum Moderator Alumnusis a Smogon Media Contributor Alumnusis a Contributor Alumnus

    Joined:
    Aug 4, 2010
    Messages:
    3,471
    Are you sure "aososi2" is the real aososi?
  22. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,845
    I was really hoping the focus of this thread could be fixing the tiering scripts and implementing the new SmashPass ban.

    ::sigh::

    If I wanted that to be the goal, I really should never have mentioned Skarmpiss...
  23. New World Order

    New World Order Licks Toads
    is a Team Rater Alumnusis a Contributor Alumnus

    Joined:
    Jul 15, 2009
    Messages:
    2,130
    Is there perhaps a way to ban every user with both "Skarm" and "Piss" in their names? I think the reason Skarmpiss keeps spamming over and over again is because everybody knows its him. If a script could be made to make that name unavailable, it would certainly ruin Skarmpiss' fun if not stop his spamming. The again, Skarmpiss could make a name like Sk4rmpi$$ or something, so its probably futile. Still worth a shot though.
  24. Lesser Smaug

    Lesser Smaug

    Joined:
    Nov 1, 2011
    Messages:
    145
    New World Order, in order for that to even work, the scripts need to match strings or patterns (regular expressions). As far as I know, JavaScript (the language the scripts are based on IIRC) doesn't support regular expressions.

    Scripts are not "pour in your random idea here", you know.
  25. Antar

    Antar That's Dr. Antar to you
    is a Battle Server Administratoris a Programmeris a Super Moderatoris a Community Contributor
    Official Data Miner

    Joined:
    Feb 17, 2010
    Messages:
    2,845
    Pretty sure JavaScript *does* support regex. Even if it doesn't, there's always a way to hard-code that stuff in.

    I've seen plenty of instances where he's spammed using a username in no way related to "skarmpiss" (everyone knows it's him not from his name but from what he spams).

Users Viewing Thread (Users: 0, Guests: 0)