JoWie Posted April 6, 2014 Report Posted April 6, 2014 I came across this module I made in 2011 right before I quit working on ASSS.Maybe someone will find it interesting. It is an RPC (function calls over a socket) module that lets you write bots/modules. The intention is that you run your thrift application on the same machine as the server. It supports java, c++, c#, python, php, perl and node.js.If your application crashes, the module will try to clean up after you and ASSS should remain stable. It also demonstrates how you can make C++ modules for ASSS. http://welcome-to-the-machine.com/ss/asss-thrift-517.zip Quote
Cheese Posted April 7, 2014 Report Posted April 7, 2014 wouldnt there be a large overhead or performance cost for sending every function through a socket Quote
JoWie Posted April 7, 2014 Author Report Posted April 7, 2014 Compared to calling a function from C, the overhead is indeed large. However this module is not intended for doing low level stuff like rewriting packets. For example, your thrift client must keep its own state about players. Think of it as an alternative, more powerful API for bots. e.g. your "bot" is not bound to a single arena, does not require a player to be present, etc.The idea is that if you need to do something low level (like, rewrite lvl 3 bomb to lvl 4 bomb), you write the rewriting portion in a C module, and you explose an API using thrift to configure that module (like, enable bomb rewrite on player X) Look at the .thrift files to see what kind of calls you can make, and what kind of events you receive. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.