-
June 5th, 2006, 07:02 AM
#31
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
-
May 6th, 2007, 07:08 PM
#32
Re: Server and C++ client skeleton code -- BETA
This seemed like a really cool project. Where does it stand currently?
-
May 7th, 2007, 04:55 AM
#33
Re: Server and C++ client skeleton code -- BETA
 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"
-
May 7th, 2007, 05:16 AM
#34
Re: Server and C++ client skeleton code -- BETA
And what do this server and client do ?
Regards,
Ramkrishna Pawar
-
May 7th, 2007, 06:30 AM
#35
Re: Server and C++ client skeleton code -- BETA
 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"
-
May 7th, 2007, 07:20 AM
#36
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
-
May 7th, 2007, 07:45 AM
#37
Re: Server and C++ client skeleton code -- BETA
 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"
-
May 7th, 2007, 07:49 AM
#38
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
-
May 7th, 2007, 08:37 AM
#39
Re: Server and C++ client skeleton code -- BETA
 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"
-
May 7th, 2007, 08:48 AM
#40
Re: Server and C++ client skeleton code -- BETA
 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"
-
May 7th, 2007, 09:31 AM
#41
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
-
May 7th, 2007, 11:29 AM
#42
Re: Server and C++ client skeleton code -- BETA
 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"
-
July 14th, 2010, 09:49 AM
#43
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|