Jump to content
SubSpace Forum Network

Recommended Posts

Posted

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

 

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...