Multiplayer Top Down Shooter Prototype - Need people to help test the netcode!

DEDICATED SERVER NOW ONLINE!!!

I finally got my VPS up and running from www.jvds.com, loaded the game up in batchmode and got a sweet dedicated server running. Its located in Los Angeles so anyone on the westcoast of the US should be getting good pings. If you play let me know your experiences with it, and where your located. Also if you for some reason can’t connect I’d like to know because this is on a public IP now so everyone should be able to connect!

Have Fun!

Update 1-16-10

-Added P90 and Shotgun weapons.

I’m hosting a dedicated server from my house today, but when the VPS I ordered goes online tomorrow hopefully, I’ll set up a real dedicated server that should fix any issues people are having with connecting to games.

Update 1-15-10

HUGE UPDATE!!!

-Rewrote the entire server-side shooting simulation code. It turns out that although I was correctly simulating player positions in the past, colliders that were attached to the players did not get updated immediately, so raycasts were hitting players where they are at the server at that time, not where the players should be when the shooter shot at them. This caused players to seem like they were hitting other players but the server did not agree. Hopefully now this should be resolved! (I hope. If you really seem like you should be hitting someone and hits aren’t registering a moment after they should then let me know)

-4 NEW GUNS. I took some free gun models off turbo squid, stole some sounds from a counter-strike sound pack on the net and added them in. Keys 1-5 should switch and each has different strength, rate of fire, accuracy and sounds. Hooray!

-Press tab now to see scores,deaths,pings of all players in the server. Now it feels more like a game!

-Other fixes!

I’ll be hosting a game for a bit tonight if anyone wants to play. I’d like to hear your inputs on how the game feels now!


I am working on a Multiplayer Top-Down Shooter that will be for Desktop and iOS. I’ve created what seems to be pretty good netcode but I need people in random places to help test it in real world conditions.

The game is completely authoritative right now and using Unity Networking. The client simply sends inputs to the server and the server sends client states back. The client side prediction is based on some papers I found from the creators of Half-life, quake and others.
This a rough prototype, so its using the Soldier from the bootcamp demo for the character, and the level is just some Cubes and Planes, I haven’t even started working with someone for art or art direction.

Please if you can test and know anyone you can play with over the internet (I can test lan, and its working really well) I would really like to hear how it works for people. I’ll be hosting a server as much as I can, but if no one is hosting a server currently, just click ‘Start Server’.

How to Play:

Click ‘Refresh Servers’ to see a list of current servers registered with Master Server, if there isn’t one you can host your own by clicking ‘Start Server’. To join a server just click button with the name of the game once it appears below the start server button.

Controls:

Move: W,S,A,D
Reload: R
Aim Fire: Mouse and Left Mouse Button

Guns Press:

1: mp5
2:m4
3: Scar-l
4: m249
5: ump
6: shotgun
7: p90

Known Bugs:
Its possible to spawn on someone, but it shouldn’t affect much.

The gun does not currently aim and shoot directly where your mouse pointer is located. This is because the characters gun is not directly in the center of the character, so at times he will be aiming directly at your mouse, at times not depending on where your mouse is.

Web Player Link:

Web Player

Very nice game, i had fun!

As for bugs everything was nice, the only thing was that i couldn´t join rooms but i could successfully host a game.

Yeah NAT punchthrough seems to be very on and off for people. I can’t seem to get anyone to join a game I host on my laptop at home, but at work through my laptop people are able to get through.

However at home if I host a game through my iPhone on the same wifi network, people are able to join my games.

I didn’t see any bugs and the shooting mechanic worked quite well for me, I only wish I had been in a server with other people.
The only thing that bothered me was that the laser pointer pointed straight through the wall.

haha not bad i am seeing some lagging, and spawn points are kinda easy to camp

Location: UK
Avg Ping: 140 - 180ms

One player was hopping all over the place for me but otherwise really good!
Mind if I ask who you host your servers with?

There’s been four of us connected and it worked fine, except my ping was over 260 so there was considerable lag.

I think the server is lagging as me and another guy were just firing at each other with no HP lose

Currents the games are hosted by players. I think I will eventually get a VPN and host a few dedicated servers to play from.

I experienced some lag and jerky movements with a ping that ranged from 260-600! Probably because I’m all the way in Malaysia. Pretty good though :slight_smile: I’ll need to do some testing on my own network code too(it’s horrendous).

Update 1-13-10

-Added sweet new office style map!

-Your gun now has ammo and requires you to reload with the ‘R’ button. Should stop players from just spamming forever.

-Purdy new lobby system allows you to browse/create games easier. You can also name your player and see other players now.

-Very basic hud with life and ammo

-Fixed bug which caused shots to be simulated incorrectly on the server. Even with high ping shots should be accurately simulated on the server.

-Fixed bug which caused players with over 200ms ping to experience jerky movement and warping. Added new lag compensation which will increase a clients interpolation time as their ping increases. Movement should now be smoother even for clients with up to 600 ping! (hopefully…I can’t compensate for high packet loss)

Found a small bug. I tried to connect to a player and i got the error “NATTargetNotConnected” but the “close” button does not work on the error popup forcing me to refresh the page

I can’t join games…

EDIT: After trying twice more I got in. Nice game. Needs weapon pickups and grenades.

Ugh made a typo, so if you were playing and having trouble shooting people that should be fixed now.

you should have it auto reload when you are out of ammo… instead of having to press r

Update 1-15-10

HUGE UPDATE!!!

-Rewrote the entire server-side shooting simulation code. It turns out that although I was correctly simulating player positions in the past, colliders that were attached to the players did not get updated immediately, so raycasts were hitting players where they are at the server at that time, not where the players should be when the shooter shot at them. This caused players to seem like they were hitting other players but the server did not agree. Hopefully now this should be resolved! (I hope. If you really seem like you should be hitting someone and hits aren’t registering a moment after they should then let me know)

-4 NEW GUNS. I took some free gun models off turbo squid, stole some sounds from a counter-strike sound pack on the net and added them in. Keys 1-5 should switch and each has different strength, rate of fire, accuracy and sounds. Hooray!

-Press tab now to see scores,deaths,pings of all players in the server. Now it feels more like a game!

-Other fixes!

I’ll be hosting a game for a bit tonight if anyone wants to play. I’d like to hear your inputs on how the game feels now!

Nice work mate, here’s a list of things you could add pretty quickly to make it more of a game.

-crouching (for those boxes everywhere)
-melee attack
-grenades
-chat
-random ammo pickups
-armor
-ragdolls (apply velocity from last bullet or nade xplosion)

Just added chatting. Press enter to start chat, then click the send button to send it.

I’ve been considering crouching as something that could be in the game. However the game will be targeted at iOS players as well as desktop, and with iOS I have to limit what the player can interact with on screen to a minimum. If I can find a good iOS method to implement crouching I may add it.

Next up is grenades and shotguns! Those 2 are going to be more difficult than the previous weapons though.

Update 1-16-10

-Added P90 and Shotgun weapons.

I’m hosting a dedicated server from my house today, but when the VPS I ordered goes online tomorrow hopefully, I’ll set up a real dedicated server that should fix any issues people are having with connecting to games.

I found that when i switch quickly between one gun and back to the original I can avoid reloading but continuously fire. Press 2 then 1 very quickly over and over again for example.

The view is a little short so people jump on you fast.

Like the style so far.