Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
SubSpace API

 
Post new topic   Reply to topic Printable version
 View previous topic  New Version of skinedit Post :: Post naap  View next topic  
Author Message
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Apr 08, 2007 1:49 pm    Post subject: SubSpace API Reply to topic Reply with quote

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.
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:36
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Sun Apr 08, 2007 3:31 pm    Post subject: Reply to topic Reply with quote

I remember seeing this a while ago and using it to figure something out for TWCore, but had completely forgotten about it
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sun Apr 08, 2007 4:13 pm    Post subject: Reply to topic Reply with quote

I have tried it before, the files seemed to be out of sync causing all sorts of compile errors.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Sun Apr 08, 2007 6:19 pm    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Mon Apr 09, 2007 3:47 am    Post subject: Reply to topic Reply with quote

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.




LinuxChat.cpp - 14.07 KB
File downloaded or viewed 38 time(s)
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Misc User Apps All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 654 page(s) served in previous 5 minutes.

phpBB Created this page in 0.427062 seconds : 32 queries executed (93.0%): GZIP compression disabled