Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Vorrtex

Pages: [1]
1
TNet 3 Support / Chat Across Multiple Channels
« on: April 13, 2015, 11:38:37 AM »
I have a game that's split up into multiple floors of a dungeon (each floor is its own scene and channel) but I'd like to have the chat open so that players can talk to one another across all floors/channels.

Is this possible using tnet?

2
TNet 3 Support / Re: Multiple scene networking / channel question(s)
« on: August 01, 2014, 07:20:00 PM »
@Deozaan that makes way more sense! So if there's enemies in a scene and the host leaves, TNet reassigns the host to a remaining player and then the game logic for the enemies' AI/Logic is performed on the new host?

Thanks for clearing that up!

3
TNet 3 Support / Re: Multiple scene networking / channel question(s)
« on: July 23, 2014, 10:57:11 AM »
Let's say I never used TNManager.LoadLevel and had one channel per scene. If P1 is hosting and P2 is in a different scene, in a separate channel, how would the host know to update the scene P2 is in?

Would P2 just have to tell P1 that it's the first/only player in the scene, so it will be taking over the reigns for that specific scene?

4
TNet 3 Support / Multiple scene networking / channel question(s)
« on: July 22, 2014, 01:14:22 PM »
I want to preface that I'm new to network programming and methodologies as a whole, but I've been doing a lot of research on Unity networking solutions and yours seems to be the best fit for me. I've been spiking out which to use and thus, have not bought one yet.

I'm creating a multiplayer adventure game that is client hosted and contains several scenes. One of the biggest hurdles for me is multi-scene games. No example I've come across goes over this and I'm not sure if this is because they aren't possible or if the logic behind them is so simple that no one bothers. I'm looking for clarification.

So I have Player 1 (P1) and Player 2 (P2). P1 creates a game and loads Scene1. P2 joins the game and also loads Scene1. This is as far as most tutorials/examples/etc go. Let me know if any of the following is incorrect:

From here we use channels to divide the network traffic - generally 1 channel per scene and another channel for things like chat. So P1 and P2 are in channel1 together in scene1. P2 wants to go ahead and goes to the "load scene2" trigger, which then makes P2 leave channel1 and join channel2 (for scene2). Now, scene2 has some things that need to be generated on load, like which enemies to spawn - which should be done on the server/host - in this case P1.

Is it possible for P1 to be in scene1 (and channel1) while feeding state information of scene2 (over channel2) to P2? Would this be done through RFC / RPC calls? What's the best way to handle a situation like this?

Pages: [1]