Server Help

Misc User Apps - SubSpace API

k0zy - Sun Apr 08, 2007 1:49 pm
Post subject: SubSpace API
I was trying to code an implementation of the subspace core protocol.

While browsing the LogicBot++ source I found the following:
http://sourceforge.net/projects/daccel

Snrrrub did an open source implementation of the subspace protocol! icon_smile.gif

I was playing around with it.
First move to get it to work is moving stub.cpp out of the "SubSpace API" directory, otherwise it'll be merged into the library.

I'm not so sure about how to get it to work after that.
stub.cpp seems to be an example.
But I think
Code: Show/Hide
   SSOptionList optList;

   optList.Insert("Server.IP", "216.34.65.183");
has to be
Code: Show/Hide
   SSOptions optList;

   optList.SetString("Server.IP", "216.34.65.183");


I tried it with ASSS in Linux and it logs in fine (at least ASSS told me so), but the stub program just keeps looping and flooding stdout with "Logging in...".
Same in Windows, but subgame tells me "Login request from billing server ignored" or something like that.

Does anybody have experience with this "SubSpace API"?
Did you even know it existed?

EDIT: The CVS repository seems to be a better resource. It's newer and there's a bigger example app.
D1st0rt - Sun Apr 08, 2007 3:31 pm
Post subject:
I remember seeing this a while ago and using it to figure something out for TWCore, but had completely forgotten about it
Smong - Sun Apr 08, 2007 4:13 pm
Post subject:
I have tried it before, the files seemed to be out of sync causing all sorts of compile errors.
k0zy - Sun Apr 08, 2007 6:19 pm
Post subject:
Smong wrote:
I have tried it before, the files seemed to be out of sync causing all sorts of compile errors.


Yeah, I fixed all the errors on the chat example.
There were only three: "SS_" missing, . instead of -> and OptionList instead of Options.

Still doesn't seem to work. I'm getting a segmentation fault everytime, because m_Players->GetSelf() returns a nil pointer.
I'll give it another try tomorrow.
k0zy - Mon Apr 09, 2007 3:47 am
Post subject:
Here's the fixed LinuxChat.cpp.

It works when compiled under Cygwin and conncecting to subgame.
My guess is it already worked yesterday in Linux but I was using 127.0.0.1 instead of localhost in subbill.ini

So this stuff is actually working icon_smile.gif
At least with subgame, but it crashes when connecting to ASSS.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group