These are chat archives for yasp-dota/yasp

7th
Oct 2015
Aleksandar Bukurecki
@natoshi
Oct 07 2015 00:14
@howardchung does the yasp parser check when a ward is destroyed?
Aleksandar Bukurecki
@natoshi
Oct 07 2015 08:05
@howardchung also how would i go about running this in the background as a service
Howard Chung
@howardchung
Oct 07 2015 09:26
node-dota2 isn't a wrapper of steamkit. SteamKit is .NET and works on windows only. node-dota2 extends node-steam, which fully handles communication with the server.
We are using a fork of node-dota2, based on the 1.0.0-dev branch. I've submitted those upstream changes back to node-dota2 and we're working on getting them merged in. I don't think the vanilla node-dota2 is updated to work with Reborn
I have never used SteamKit. You probably want something that builds on it for more Dota-specific functionality. @paralin has built something that does that, I believe
Since our backend is basically all Node.js it makes sense for us to use node-dota2, but both can probably do what you need. It's a matter of your own tech choice.
Howard Chung
@howardchung
Oct 07 2015 09:31
Re: ward destruction. In my current implementation it does not. You may want to talk to @spheenik for more details (he is the author of clarity), but basically we can detect entities leaving the game, but no concrete way to get context (why it left, expired or killed by unit). You could probably try to guess based on surrounding events but that probably won't have 100% accuracy.
Re: service, YASP is modular and composed of a whole bunch of services. I'm not sure which one you're referring to, but they should all be capable of running as daemons.
If you're talking about the actual Java parser, I designed that to be a simple binary that reads from stdin and writes to stdout. parser.js is the file in charge of running the webserver, invoking the parser and combining the output into a JSON blob.
Howard Chung
@howardchung
Oct 07 2015 09:43
@Decoud may know something about ward destruction, I believe datdota lists ward destruction with reason.
Ryusen
@Ryusen
Oct 07 2015 13:21
@howardchung do you actually detect when a tower is destroyed by another unit except the heroes? (like enemy creeps / catapult)
Howard Chung
@howardchung
Oct 07 2015 16:51
No, I'm just watching for the ChatEvent that fires when a tower is destroyed. It doesn't seem to tell us what tower it was, or what unit destroyed it (if it was a player it gives a slot number, which is what I'm using now)