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 Mini Dota 2Soma firebathero Soulkey Hyun Aegong ProTech47 Barracks Sexy Rock [ Show more ] Counter-Strike Super Smash Bros Heroes of the Storm Other Games Grubby3030 FrodaN1455 B2W.Neo740 ArmadaUGS285 RotterdaM230 KnowMe166 QueenE127 Sick114 crisheroes113 C9.Mang093 Trikslyr64 Organizations Dota 2 Other Games StarCraft 2 StarCraft: Brood War
StarCraft 2 • StrangeGG StarCraft: Brood War• Dystopia_ • AfreecaTV YouTube • sooper7s • intothetv • Migwel • Kozan • IndyKCrew • LaughNgamezSOOP • Azhi_Dahaki27 Dota 2• HerbMon • 80smullet • FirePhoenix5 • Michael_bg • STPLYoutube • ZZZeroYoutube • BSLYoutube Counter-Strike Other Games |
|
Replay Cast
Escore
RSL Revival
Replay Cast
WardiTV Map Contest Tou…
Universe Titan Cup
Rogue vs Percival
Ladder Legends
uThermal 2v2 Circuit
BSL
Sparkling Tuna Cup
[ Show More ] WardiTV Map Contest Tou…
Ladder Legends
BSL
CranKy Ducklings
Replay Cast
Wardi Open
Afreeca Starleague
Soma vs hero
Monday Night Weeklies
Replay Cast
Replay Cast
Afreeca Starleague
Leta vs YSC
Replay Cast
The PondCast
|
|
|