CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 43 of 43
  1. #31
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Server and C++ client skeleton code -- BETA

    It sure is

    I have been watching this project since long time, and I was thinking of joining but when I started seeing problems reagrding managing time for this project. I think same will happen with me, so decided not to commit anything.
    Regards,
    Ramkrishna Pawar

  2. #32
    Join Date
    May 2007
    Posts
    1

    Re: Server and C++ client skeleton code -- BETA

    This seemed like a really cool project. Where does it stand currently?

  3. #33
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19

    Re: Server and C++ client skeleton code -- BETA

    Quote Originally Posted by Nexeh
    This seemed like a really cool project. Where does it stand currently?
    You are right about this: the project is cool indeed.
    I have made a client and a server application implementing the basics (based on Gabriel's code). And that's about it. Nothing more has been done since then...
    "GOTO's make your co-workers laugh at you"

  4. #34
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Server and C++ client skeleton code -- BETA

    And what do this server and client do ?
    Regards,
    Ramkrishna Pawar

  5. #35
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19

    Re: Server and C++ client skeleton code -- BETA

    Quote Originally Posted by Krishnaa
    And what do this server and client do ?
    As far as I remember correctly the client and the server exchange positions (of clients of corz) and some basic actions.
    So you can connect with two clients to the same server and walk around. I think I even implemented eating and fighting as basic actions. Eating could be done when you (as a client) were walking into a square with food properties. And fighting could be done when another "robot" was nearby.

    I had (lucky me) some time left afterwards and I have played around with Direct3D. On the server application I have added a 3D view of the "arena" and you could see the clients walking around.
    "GOTO's make your co-workers laugh at you"

  6. #36
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Server and C++ client skeleton code -- BETA

    Okay, I tried connecting 2 clients to server, I dont see them walking, where are they summoned after connecting ?
    Last edited by Krishnaa; May 7th, 2007 at 07:33 AM.
    Regards,
    Ramkrishna Pawar

  7. #37
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19

    Re: Server and C++ client skeleton code -- BETA

    Quote Originally Posted by Krishnaa
    Okay, I tried connecting 2 clients to server, I dont see them walking, where are they summoned after connecting ?
    I thought I saw some compiling errors...
    I guess that was fixed easily and you have edited your post

    Anyway, the "see" part was done after I had posted the client and server. I had some time left afterwards and I added the Direct3D view. This "add-on" was never posted though (as far as I remember; and I can't check it right now). You can only see the clients connecting if you are debugging the server.

    The posted client and server are a working framework with just basic functionality. For this point on, you can add more functionality. The biggest and most attractive part is always the graphical part. And this is non-existing at the moment...
    "GOTO's make your co-workers laugh at you"

  8. #38
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Server and C++ client skeleton code -- BETA

    I see some part of yellow grid in the right top on server, if I move mouse it moves and disapears.
    Regards,
    Ramkrishna Pawar

  9. #39
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19

    Re: Server and C++ client skeleton code -- BETA

    Quote Originally Posted by Krishnaa
    I see some part of yellow grid in the right top on server, if I move mouse it moves and disapears.
    Serously? Then the 3D part was added. Forgive my brain, it's getting old

    I wasn't able to get the start position of the camera right. So you will have to move around in 3D using the mouse until you get to see the "arena".
    Try something like click-and-hold the left or the right mouse button and move left/right/forward/backward. This will change your position in 3D. You should be able to move in any direction in 3D.
    "GOTO's make your co-workers laugh at you"

  10. #40
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19

    Re: Server and C++ client skeleton code -- BETA

    Quote Originally Posted by Krishnaa
    I see some part of yellow grid in the right top on server, ...
    If I look at the downloaded server app, I can trace back what the colours mean:

    Code:
    switch( square->getType() )
    {
        case Square::Empty:  box->setColor( 1.0f, 1.0f, 0.0f ); break; // Yellow
        case Square::Border: box->setColor( 1.0f, 1.0f, 1.0f ); break; // White
        case Square::Food:   box->setColor( 0.0f, 1.0f, 0.0f ); break; // Green
        case Square::Life:   box->setColor( 0.0f, 0.0f, 1.0f ); break; // Blue
    }
    "GOTO's make your co-workers laugh at you"

  11. #41
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Server and C++ client skeleton code -- BETA

    Thats ok, but why the grid is not laid in middle of the screen ? Is it by design that it apears in the top right ?
    Regards,
    Ramkrishna Pawar

  12. #42
    Join Date
    Jul 2003
    Location
    Belgium
    Posts
    19

    Re: Server and C++ client skeleton code -- BETA

    Quote Originally Posted by Krishnaa
    Thats ok, but why the grid is not laid in middle of the screen ? Is it by design that it apears in the top right ?
    The camera position needs to be adjusted but I never took the time to correct it.
    If you would happen to know what needs to be changed, please let me know.
    "GOTO's make your co-workers laugh at you"

  13. #43
    Join Date
    Dec 2009
    Posts
    596

    Re: Server and C++ client skeleton code -- BETA

    Hello all. In the original post I read that the server and C++ client was done with MFC. What is or are the alternative approach or approaches in C++ besides MFC? Just curious.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured