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 Counter-Strike Heroes of the Storm Other Games Grubby3882 FrodaN2024 B2W.Neo687 DeMusliM191 RotterdaM180 mouzStarbuck176 C9.Mang092 KnowMe80 Trikslyr59 SteadfastSC41 ZombieGrub23 OptimusSC23 Organizations
StarCraft 2 • sitaska21 StarCraft: Brood War• Adnapsc2 • intothetv • Kozan • sooper7s • AfreecaTV YouTube • Migwel • LaughNgamezSOOP • IndyKCrew Dota 2 League of Legends Other Games |
|
RSL Revival
Classic vs MaxPax
SHIN vs Reynor
herO vs Maru
WardiTV Korean Royale
SC Evo League
IPSL
Julia vs Artosis
JDConan vs DragOn
OSC
BSL 21
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
Wardi Open
IPSL
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
StRyKeR vs Artosis
OyAji vs KameZerg
[ Show More ] OSC
OSC
Monday Night Weeklies
OSC
Wardi Open
Replay Cast
Wardi Open
Tenacious Turtle Tussle
The PondCast
Replay Cast
LAN Event
|
|
|