Joe's Receiver Multiplayer Implementation

The place to discuss all things Receiver.
bassgojoe
Posts: 8
Joined: Tue Feb 18, 2014 12:34 am

Joe's Receiver Multiplayer Implementation

Post by bassgojoe » Tue Feb 18, 2014 12:49 am

Howdy! I forked the receiver git repository and added simple multiplayer. I'm not sure what the protocol is for releasing mods for receiver is, but it seems like people generally just fork the repo and make their changes, then point others to their repo. If this is incorrect, let me know.

My fork lives here:
https://github.com/joevenzon/7DFPS

To be able to build it, you'll need Unity. If you can't already build the original master repo (https://github.com/David20321/7dfps) then I can't help you, as I am a Unity noob. However, it's entirely possible I didn't check in all the files I needed to, or didn't configure my Unity project correctly, so if you can build the master David20321 project but can't build mine, let me know!

Once you have it built, run it and host a server, then have a client connect to your IP.

You can probably also run it directly inside the unity editor, by opening the splashscreen.unity scene in the splash_screen folder and hitting the play button.

Notes:
  • Clients are pretty authoritative, which means that as a client you aren't exposed to much lag but the price is that it's totally insecure against cheating
  • The player model is just the plain white physics capsule
  • You share the same game world, when you die you simply respawn, loot spawns in the same locations for each player but you each get your own loot (i.e. if I pick up bullets, there will still be bullets there for my friend to pick up), I added a "sector" indicator to the top right UI so you can communicate with other players about where you are, you all spawn in the same sector
  • When the server goes to the win screen by collecting all the tapes, all of the clients get left in a state with a zombie world; I'd love to improve this, but it didn't get in the way of my enjoyment
  • Clients don't get some of the ambient turret and hover bot sounds because I didn't bother to sync them
  • I didn't test more than 2 players, so that may not work
  • I added a new NetworkManager script, modified many of the existing scripts to handle multiplayer synchronization, and adjusted prefabs/assets to contain networking components where they didn't before
  • This is my first experience with Unity and I'm not great with javascript, so apologies for the messy code
Last edited by bassgojoe on Sun Nov 02, 2014 12:03 pm, edited 1 time in total.

User avatar
Thomason1005
Posts: 713
Joined: Sat Apr 20, 2013 9:44 am
Location: GerMany

Re: Joe's Receiver Multiplayer Implementation

Post by Thomason1005 » Tue Feb 18, 2014 4:18 am

Image

i can only run it by loading the winscreen scene, when loading the normal scene theres an object null reference

bassgojoe
Posts: 8
Joined: Tue Feb 18, 2014 12:34 am

Re: Joe's Receiver Multiplayer Implementation

Post by bassgojoe » Tue Feb 18, 2014 11:56 am

You need to start it using the splashscreen.unity scene in the splash_screen folder. That's the one that has the network manager and the main menu that lets you host/join or start single player*. If you start that one does it work, or do you still get a null exception? If the latter, do you have the ability to run the code in the debugger and break on the exception?

*single player may or may not work

User avatar
Thomason1005
Posts: 713
Joined: Sat Apr 20, 2013 9:44 am
Location: GerMany

Re: Joe's Receiver Multiplayer Implementation

Post by Thomason1005 » Tue Feb 18, 2014 2:55 pm

Yeah now it works. Thx

Aim392
Posts: 1
Joined: Sat Jun 22, 2013 2:19 pm

Re: Joe's Receiver Multiplayer Implementation

Post by Aim392 » Tue Feb 18, 2014 8:23 pm

This is great; Thanks for putting the time into creating something like this, I hope it doesn't die like some other multiplayer mods have, Please continue to update it!

dabay55
Posts: 1
Joined: Tue Feb 18, 2014 8:22 pm

Re: Joe's Receiver Multiplayer Implementation

Post by dabay55 » Tue Feb 18, 2014 8:25 pm

Thank you so much for doing this! Receiver has so much potential, it's nice to see that people are still adding to it.

User avatar
AmorphousGamer
Posts: 832
Joined: Sat Jul 06, 2013 2:41 am
Location: Montgomery, Alabama

Re: Joe's Receiver Multiplayer Implementation

Post by AmorphousGamer » Wed Feb 19, 2014 5:39 am

Aim392 wrote:This is great; Thanks for putting the time into creating something like this, I hope it doesn't die like some other multiplayer mods have, Please continue to update it!
Why would it need updating? Receiver isn't being updated.

User avatar
Thomason1005
Posts: 713
Joined: Sat Apr 20, 2013 9:44 am
Location: GerMany

Re: Joe's Receiver Multiplayer Implementation

Post by Thomason1005 » Wed Feb 19, 2014 10:10 am

AmorphousGamer wrote:
Aim392 wrote:This is great; Thanks for putting the time into creating something like this, I hope it doesn't die like some other multiplayer mods have, Please continue to update it!
Why would it need updating? Receiver isn't being updated.
well turret and taser bot sounds for the client would be nice

and a player model though that would mean an animation system :shock: and animations and well a model for the player

WMan22
Posts: 5
Joined: Mon Feb 21, 2011 8:07 pm

Re: Joe's Receiver Multiplayer Implementation

Post by WMan22 » Tue Mar 04, 2014 3:37 am

Dramatization of Reciever PvP (Minus the clown masks):

http://www.youtube.com/watch?v=e8CMPB03-pw&#t=1m14s

robly18
Posts: 1
Joined: Thu Mar 06, 2014 3:58 pm

Re: Joe's Receiver Multiplayer Implementation

Post by robly18 » Thu Mar 06, 2014 3:59 pm

Right, uh...
How do I install this again?

bassgojoe
Posts: 8
Joined: Tue Feb 18, 2014 12:34 am

Re: Joe's Receiver Multiplayer Implementation

Post by bassgojoe » Fri Mar 07, 2014 11:36 am

Right now there's just a github link to the unity project, so you'd have to get the source and build it yourself. I'd like to provide easy to install binaries but I'm not sure what the devs allow.

bassgojoe
Posts: 8
Joined: Tue Feb 18, 2014 12:34 am

Re: Joe's Receiver Multiplayer Implementation

Post by bassgojoe » Fri Mar 07, 2014 11:41 am

WMan22 wrote:Dramatization of Reciever PvP
Hah! Another: http://youtu.be/E2p6c8fXuaU?t=2m14s

willtell
Posts: 5
Joined: Wed Apr 16, 2014 12:02 pm

Re: Joe's Receiver Multiplayer Implementation

Post by willtell » Wed Apr 16, 2014 1:09 pm

So this looks great!
But there's one problem, The turret's lights don't show up on the walls, and that keeps getting me killed. Any way to fix that?

AbeRavenclaw
Posts: 6
Joined: Mon Jan 27, 2014 8:55 am

Re: Joe's Receiver Multiplayer Implementation

Post by AbeRavenclaw » Fri May 02, 2014 5:20 pm

can you make a video of how to install it?

bassgojoe
Posts: 8
Joined: Tue Feb 18, 2014 12:34 am

Re: Joe's Receiver Multiplayer Implementation

Post by bassgojoe » Sat May 03, 2014 12:58 pm

The basic steps are to download Unity from its website, download the mod from github (https://github.com/joevenzon/7DFPS), open the Unity editor and use it to open splashscreen.unity in the splash_screen folder, then hit play (or build & run from the menus). That'd be great if someone wants to do a video detailing those steps.

Post Reply