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
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 SSC Distension OwnerSSCU Trench Wars Developer3:JabJabJab> sometimes i feel like when im in this mood im like a productive form of CheeseDr Brain> Pretty much everything you said was wrong. Except where you called me a lazy jerk with no time. That was true.3:KrynetiX> do you ever open your web browser and type ?go google5:Ceiu> Wow. My colon decided that was a good time to evacuate itself.
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now