Hm. A votecount bot could certainly be useful... Perhaps I'll look into it at some point

Forum Index > TL Mafia |
Xatalos
Finland9675 Posts
Hm. A votecount bot could certainly be useful... Perhaps I'll look into it at some point ![]() | ||
Xatalos
Finland9675 Posts
| ||
Xatalos
Finland9675 Posts
| ||
gonzaw
Uruguay4911 Posts
On October 03 2014 17:31 Xatalos wrote: Well, I made the automatic balance tester tool for Mafia setups earlier, although it's not entirely precise... And it's not indeed all that hard to manually balance normal setups. Well, this is also supposed to scale. Yeah, I suppose it's easy to balance a game with only Goons, Cops and GFs. But the more roles you add, the more players you add, the difficulty of balancing an arbitrary setup increases exponentially (for instance, if you want a "normal" that has trackers, watchers, framers, 1-shot-cops, self-aware millers and bus drivers). Apparently there's been some complaints recently about some imbalance in games. This means the current methodology of balancing games isn't perfect, so it could be worth it to investigate some alternatives. On October 03 2014 18:45 Xatalos wrote: Question: I've never created a forum bot before. What would be the best technology to use for that? JavaScript? Are bots even allowed here on TL? Is TL generally bot-friendly in the way that the forum is structured? At least there are those banbots, so I guess it's certainly doable... The forum (and all forums in general) doesn't have a "developer-friendly" API for you to manage your user, see posts, forums, etc, as far as I can tell. So this has to be grunt work. I don't like "bots" for that reason, they are basically HTML scrappers, and those are unmaintainable basically (you have to verify the bot again every single time the site updates, even changing a single "id" tag can fuck up your bot). For me that's tedious. You'd have to handle HTTP headers and cookies and shit on your own I'd pressume, and I hate programming at that low-level lol. Javascript already has some nice DOM-manipulation libraries (JQuery being a prime example). I guess other languages could have similar libraries, I dunno. There may also be some "bot-development libraries" too. | ||
Xatalos
Finland9675 Posts
![]() | ||
gonzaw
Uruguay4911 Posts
In fact, I made a votecount BBCode for OMGUS, where you just post [votecount] and it gives you the votecount from the current thread. Since it's BBCode it couldn't use JQuery (I think) so it's fugly as fuck. But I could give it to you once I get home and you can "tidy" it up if you wanted to (basically port all the ugly "for(int i=0;i<document.getElementById("id").children();i++)" shit to nice Jquery "$.find("#id")" stuff) | ||
Xatalos
Finland9675 Posts
![]() | ||
gonzaw
Uruguay4911 Posts
If that's done, then yeah this stuff can work. Also again, by using javascript, you can just save it as an "votecounte.html" file so people can use it on their own (and not have a bot post in the thread every 10 seconds). Can't do that with python/lua/php/etc. | ||
Xatalos
Finland9675 Posts
| ||
| ||
![]() StarCraft 2 StarCraft: Brood War Britney Dota 2![]() ![]() Larva ![]() Barracks ![]() firebathero ![]() PianO ![]() Dewaltoss ![]() Mind ![]() sSak ![]() Aegong ![]() Counter-Strike Super Smash Bros Heroes of the Storm Other Games FrodaN5760 singsing2239 Mlord651 KnowMe627 B2W.Neo501 Grubby203 ToD180 Sick134 XcaliburYe127 mouzStarbuck106 UpATreeSC53 Trikslyr28 rGuardiaN26 JuggernautJason12 Organizations Other Games StarCraft 2 StarCraft: Brood War
StarCraft 2 • Hupsaiya StarCraft: Brood War![]() • sooper7s • AfreecaTV YouTube • Migwel ![]() • LaughNgamezSOOP • intothetv ![]() • IndyKCrew ![]() • Kozan Dota 2 League of Legends Other Games |
BSL Team Wars
Team Bonyth vs Team Dewalt
Dewalt vs kogeT
JDConan vs Tarson
RaNgeD vs DragOn
StRyKeR vs Bonyth
Aeternum vs Hejek
IPSL
DragOn vs Fear
Radley vs eOnzErG
Replay Cast
Map Test Tournament
PiGosaur Monday
Map Test Tournament
Tenacious Turtle Tussle
The PondCast
Map Test Tournament
Map Test Tournament
[ Show More ] OSC
Korean StarCraft League
CranKy Ducklings
Map Test Tournament
OSC
[BSL 2025] Weekly
Safe House 2
Sparkling Tuna Cup
Map Test Tournament
OSC
|
|