Jump to content
SSForum.net is back!

emileej

Member
  • Posts

    43
  • Joined

  • Last visited

Everything posted by emileej

  1. Thanks for your help I solved the problem which turned out to be in my socket wrapper.
  2. Oh so thats what pack is all about. Now it actualy makes sense My only worry is if I will be able to fill in my values like this: char *cdata=GetExcitingDataFromTheServer(); TEncryptionRequestPacket pdata; memcpy(&pdata,cdata,sizeof(TEncryptionRequestPacket));
  3. Thanks I am experiencing some trouble though. As I understand it, what I want is: #pargma pack(nopack)But that is apparently not supported in gcc. I get the following warning: warning: unknown action 'nopack' for '#pragma pack' - ignored I can reduce the size to 10 by using #pargma pack(1)but that is still not the size I would expect. I could, however, just ignore the extra bytes when sending my packets, but how should I the go about filling a struct with data from an incomming packet? What should I do about the extra bytes in the struct?
  4. Eh... lol! I have never tried to set up a ss server before. I just downloaded the zip from ssdownloads, started the biller and then started the server which connected to the biller. Do I need to configure anything else or is that it? Also - can I connect to it via localhost? (I am behind a firewall so connecting from outside is not an option)
  5. >>Smong It looked like a standard GPL to me, but I was uncertain anyways since the source I am referring to is written by Snrrrub - not Kirk. >>Samapico Uhh... >>Snrrrub Thanks a lot
  6. Here is a thought: Have the lagbot spec those players who have great lag relative to other players - not relative to some defined norm.
  7. My struct: typedef struct SEncryptionRequestPacket{ Uint8 type; //0x00 Uint8 subtype; //0x01 Uint32 key; Uint16 version; //0x0001 }TEncryptionRequestPacket;And its use: void CSSConnection::SendEncryptionRequest(){ Log("SendEncryptionRequest"); ClientPackets::TEncryptionRequestPacket packet; packet.type=0x00; packet.subtype=0x01; packet.key=-(rand() % 0x7FFFFFFF); packet.version=0x0001; //<debug> char buff[11]; Log(((string("Sending ")+itoa(sizeof(ClientPackets::TEncryptionRequestPacket),buff,10))+" bytes").c_str()); //</debug> socket->Send((const char*)&packet,sizeof(ClientPackets::TEncryptionRequestPacket)); }My problem: For some reason sizeof returns 12 rather than the 8 I would expect... Now why is that?
  8. Reading the data right into structs... Sweet idea. Just done implementing it, but for good reasons, as you can read in my other topics, its not tested yet.
  9. Hi. Me again. So far I am only trying to connect my socket to the 17th Parallel server, send an encryption request to the server and listen for replies. I get no winsock errors when connecting or sending, but still I recieve no reply from the server. So I thought it might just be some problem with my conn (I know its far fetched since we're talking UDP datagrams here) and therefore would like some of you to run the damm thing and see if you get any response at all... [edit] The packet I'm sending is: 0x00 0x01 -(rand() % 0x7FFFFFFF) 0x0001 [/edit] some_bot.bot
  10. I have no idea what that is Also I'd like to use the checksum functions if I may?
  11. For my bot core I would like to use the encryption / decryption routines coded by Snrrrub and used in LogicBot. Pretty please?
  12. And the cpp file:CSSPacket.cpp
  13. Yep, I finally got some work done on my never ending project to create a bot core. It has been a while so I downloaded the LogicBot source once more to check for any updates and to refresh my info on the SS protocol. That was when I noticed that it now has a GPL attached to it and as far as I remember that, among other thing, means that modified source is to be shared. Long ago I decided to use midified versions of the basic elements from LogicBot for my core since I didn't see much point in re-inventing them myself, but the core is of my own doing. Yet I have not decided to release the source of the core when it is done. If you have ideas for my version of SSPacket then please reply - I am always open to suggestions CSSPacket.h
  14. Never trust a guy who cant code... Dev is the peoples staff
  15. Heyy! What about some squad?
  16. emileej

    talion

    Not usin same nic? So its like you use it only for messaging me? Where is that thread you keep talkin of?
  17. I vote NO - youll just get back to gunning me down
×
×
  • Create New...