[PLUGIN] Network v0.3a update***

Post and try out addons that are currently in development.

Post » Tue Jul 26, 2011 6:32 pm

This is what I did:
I opened cmd and got my ip, pasted it in the ip editbox and entered a name, and hosted the game.
Then i started a second instance of the application and pressed join after having inserted a ip adress and a name and it does not work.
B
18
S
4
G
1
Posts: 413
Reputation: 2,512

Post » Wed Jul 27, 2011 12:59 am

@Lucid - Yes, I'll add adding the RoundTripTime to first thing for 0.2 build.

@Urled - To host a server you simply click "Host Server". After the server starts it will show you what IP it is listening on in the chat box. If you are on a Lan that is the IP you need to connect to ( if on local machine you can just use 127.0.0.1). If not see below.

You need two client instances to play the game. Put in the IP address of the server and your name and click "connect client" button. You should see the client "waiting for other player to join".

NOTE:   If you are playing over the internet then you need to enable port forwarding to port 5000 on that same server IP on your router. The router IP is then the one that the clients connect to.

Are you playing on LAN, local computer, or Internet?
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Thu Jul 28, 2011 10:54 pm

I used with hamachi. It works great. Thank you. Superb plugin.
B
7
S
1
G
1
Posts: 76
Reputation: 904

Post » Mon Aug 01, 2011 12:05 am

Was just poking around at enet.bespin.org, and didn't see anything about multicasting. So I guess that's not possible?
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Mon Aug 01, 2011 2:13 am

[QUOTE=newt] Was just poking around at enet.bespin.org, and didn't see anything about multicasting. So I guess that's not possible?[/QUOTE]

True, Enet by itself doesn't support it. But I could probably implement it separate from Enet if only a simple server discovery was required..

Are you looking to just discover which servers are on the LAN without knowing the IP address? So basically, the client could send out a broadcast and the server would constantly be listening and then respond with its own broadcast to tell the client (and anybody else) that it is ready for a game (IP, port).

Where would multicast come into play?
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Mon Aug 01, 2011 2:57 am

Im kinda new to the whole idea, but yeah that's pretty much it.
From what little I've read about it, it sounds ideal for that scenario, but there's also a lot of negative feedback, network support, etc.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Mon Aug 01, 2011 8:11 pm

It worked now! Looks very promising!
B
18
S
4
G
1
Posts: 413
Reputation: 2,512

Post » Thu Aug 04, 2011 5:21 am

Minor update...

Added expression "RoundTripTime" to get ping from client to server and back. Also, added a "On connect" condition to the client (only the server had support before).

Readme and example .cap update to show new additions.
B
8
S
3
G
7
Posts: 835
Reputation: 5,313

Post » Sun Aug 07, 2011 8:52 pm

I can't get this to work T _T

I enabled port forwarding to 5000

I started netshooter, clicked HOST, it gave me an IP in the chatbox.

I started 2 more clients, entered that IP, names, and clicked play client on both.

Afterwards, both client apps disappear, the host app quits responding, then crashes.

Derp?
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Aug 07, 2011 10:03 pm

wow incredible but... how do i use it, i have no idea how network programming work.A tutorial would be really usefull.

I'll take a look at the cap and try to find it myself until a tutorial is written...

edit: found some info on the readme...thoughtzone2011-08-07 22:05:44
B
3
S
2
G
2
Posts: 136
Reputation: 1,347

PreviousNext

Return to Work-in-progress addons

Who is online

Users browsing this forum: No registered users and 0 guests