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 Stormgate Dota 2 League of Legends Heroes of the Storm Other Games Organizations Other Games StarCraft 2 Other Games StarCraft 2 StarCraft: Brood War
StarCraft 2 • Berry_CruncH137 StarCraft: Brood War• printf ![]() • tFFMrPink ![]() ![]() • iHatsuTV ![]() • davetesta8 • Migwel ![]() • sooper7s • AfreecaTV YouTube • intothetv ![]() • Kozan • IndyKCrew ![]() • LaughNgamezSOOP Dota 2 League of Legends Other Games |
RSL Revival
Clem vs Classic
SHIN vs Cure
FEL
WardiTV European League
BSL: ProLeague
Dewalt vs Bonyth
Replay Cast
Sparkling Tuna Cup
WardiTV European League
The PondCast
Replay Cast
RSL Revival
[ Show More ] Replay Cast
RSL Revival
FEL
RSL Revival
FEL
FEL
|
|