Client/Server testing

Formerly: Game name that I havent decided yet.
non trek themed game in development.

Moderator: Crook

User avatar
Texas Ranger
Posts: 2006
Joined: Mon May 28, 2001 12:00 pm
Location: Johnstone, Renfrewshire Scotland
Contact:

Post by Texas Ranger » Mon Jun 04, 2007 10:38 am

error remote IP not reachable :(

User avatar
Crook
Posts: 3900
Joined: Thu Nov 02, 2000 1:00 pm
Location: Oxfordshire, UK
Contact:

Post by Crook » Mon Jun 04, 2007 4:50 pm

Yep, been waiting all day to get home as I tried from work an it didn't work :) I forgot to port forward the new setup didn't I? El Stoopido me.

Now that 62.56.75.119 calls on ports 11000 are routed to 192.168.1.4 it should work. Fingers crossed for the next try.

This setup brings with it the possibility of multiple players on the same IP, I'll just get the client to send the port it's working on, and the server can resond to that port on that IP, and leave it to the client to forward the ports properly. This is a game for geeks after all :D

Edit. Whos 82.3.111.153, and is there any ony out there?. There is!
<a href="http://www.andrewcrook.co.uk/empire/Empire_home.shtml" target="_blank">Empire - an online multiverse game</a>


<a href="http://www.c-digital-art.co.uk" target="_blank">www.c-digital-art.co.uk</a>
<img src="http://www.andrewcrook.co.uk/images/c-d ... _trans.gif" border="0" alt="" />

User avatar
Texas Ranger
Posts: 2006
Joined: Mon May 28, 2001 12:00 pm
Location: Johnstone, Renfrewshire Scotland
Contact:

Post by Texas Ranger » Mon Jun 04, 2007 5:00 pm

just tried no error but no response either

User avatar
Crook
Posts: 3900
Joined: Thu Nov 02, 2000 1:00 pm
Location: Oxfordshire, UK
Contact:

Post by Crook » Mon Jun 04, 2007 5:02 pm

well I certainly got something then. Odd that it didn't respond - maybe you need to port forward port 11000 to your internal NAT IP. For expandabilty I forwarded 11000 - 11010, although this might expand in the near future. (oh, forward TCP)


Looks like it works to some degree. Thanks again Tex. Now, just need to think properly about a comms package. It only needs to send small ish strings of data - quite easy - but the dll I'm using allows for quite easy file transfers. Wondering what that can be used for, but that can be for later.

First step then - get a more robust client/server setup.
Check it works with multiple people at the same time (difficult just to coordinate)
Help set up a port forward for the end user. With a million routers I can't do it for them but should be able to point them in the right direction.

Then I've just got to code it into a client that displays a system and ship, and have a server serve the systems to the client as it requests them. Phew. Thats a LOT just for something so simple! But once done then players can join the universe and fly around it to explore. But to bolt onto this framework should be a lot easier so other commands other than move shouldn't be so hard.
<a href="http://www.andrewcrook.co.uk/empire/Empire_home.shtml" target="_blank">Empire - an online multiverse game</a>


<a href="http://www.c-digital-art.co.uk" target="_blank">www.c-digital-art.co.uk</a>
<img src="http://www.andrewcrook.co.uk/images/c-d ... _trans.gif" border="0" alt="" />

User avatar
Crook
Posts: 3900
Joined: Thu Nov 02, 2000 1:00 pm
Location: Oxfordshire, UK
Contact:

Post by Crook » Sat Jun 23, 2007 3:17 pm

Ok, it's been a while but here I am back at a testing phase again. I've (hopefully) got a working chat client here. It should support multiple users on different IP's (obviously) and send chat messages from client to server, then back out to all clients logged on.

It should also update the client list on the fly as it pings all clients and if a client doesn't responds after 4 pings it removes them from the list. It will tell you if you're not logged on when you try to send a message.

So this is what I want confirming. This will be hard to do with TGU's dwindling userbase and this forum being a sub section of that. What I need is a few users logged on all at once, chatting to each other for a bit. I'll leave the server on for the weekend and longer maybe to see who's up for it. If I'm fiddling with it it'll say so in the server IP box.

Small download, 22k. Should have all the libraries that you need for it included as long as you've got .net 2.0 installed.

Note on firewalls and routers. This app will require port forwarding if you're on an internal network. The client is locked on port 11005 for now, bu it will be editable in the future.

So IF you're on a router you'll have to set up port forwarding to 192.168.2.X on port 11005 for the PC you're on.



Again, many thanks for trying if you try.
Attachments
wip_1.jpg
Game_client_v000_1.zip
(21.91 KiB) Downloaded 65 times

User avatar
Kai_Undead_Assassin
Posts: 572
Joined: Mon Apr 02, 2001 12:00 am
Location: Earth
Contact:

Post by Kai_Undead_Assassin » Sat Jun 23, 2007 3:46 pm

I'm up for testing it out. Not like I tend to have anything better to do most times anyways.
Image

User avatar
Crook
Posts: 3900
Joined: Thu Nov 02, 2000 1:00 pm
Location: Oxfordshire, UK
Contact:

Post by Crook » Sat Jun 23, 2007 9:50 pm

Thanks again for the testing. Be nice to rope a few more people to try it simultaneously but that's asking a lot. I was impressed at how well it worked as a chat client straight off the bat. I've included whispering now on the server side of things and improved a few things on the client, like to whisper you can click on the name in the players list to do it quickly. The basic format is:

*Kai*Whispered message


With the coms system I'm using it will be capable of downloading/uploading files so I might be able to have an avatar/spray based system too that all players can access. silently uploads your image to the server which distributes it to the players.
<a href="http://www.andrewcrook.co.uk/empire/Empire_home.shtml" target="_blank">Empire - an online multiverse game</a>


<a href="http://www.c-digital-art.co.uk" target="_blank">www.c-digital-art.co.uk</a>
<img src="http://www.andrewcrook.co.uk/images/c-d ... _trans.gif" border="0" alt="" />

Locked

Return to “Empire”