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 - kreibich

Pages: [1]
TNet 3 Support / Re: Channel list name - problem
« on: June 26, 2016, 04:17:01 PM »
It works, thanks a lot!

TNet 3 Support / Channel list name - problem
« on: June 21, 2016, 07:18:01 PM »
 I'm working on online game using TNet 3.0.2 and I have a problem with list of channels.

Before player enterst the channel, I need a table with list of channels, which works great, it shows channel ID, number of players, it says if room has password, but i would like to specify some other things like channel name and channel admin name. So I used channel data, but I cannot view data before I enter the channel. I don't want to enter and leave 100 channels just to read a channel name. Is there any simplier way?

Thank you.

TNet 3 Support / Re: TNet 3 server license
« on: June 16, 2016, 01:56:55 PM »
Perfect. Thank you for your reply.

TNet 3 Support / TNet 3 server license
« on: June 14, 2016, 05:47:24 AM »
Is TNet 3 server (TNServer.exe) a freeware? I ask because I would like players of our game to be able to start their own dedicated server.

Problem solved! I forgot these 2 lines in Disconnect method:

TNManager.onConnect -= OnConnect;
TNManager.onDisconnect -= OnDisconnect;

Now I've got just Empty GameObject called TNet and TNAutoJoin script attached to it. When I connect and then disconnect and connect again this TNet GameObject appears twice. That might be a problem. So I tried to destroy this object after disconnecting, but it did not helped, even that there is only one TNet GameObject now, it does not handle OnConnect event.

Well it started working without TNManager instance now. I don't know what I exactly changed to make it work. But the problem with new connection remains.

Well, then I'm doing it wrong, so is there any step-by-step video tutorial how to do it in new version? It seems that the video tutorial I mentioned above is probably obsolete (TNet v. 2.x?).

I have TNManager script attached to an object in "Connecting" scene only (together with TNAutoJoin script as I saw it in one of your tutorial videos -

I have 4 scenes:
- MENU - no TNet script on any object
- CONNECT - 1 object with TNManager and TNAutoJoin scripts on it
- GAME - One object with TNAutoCreate - there is attached Player object on it
- DISCONNECTED - no TNet script on any object

What do you mean by TNet will create it for me?

Solved - there is a bug in TNet 3.0.1 that does not reset TNManager.mDestroyed to false after disconnecting;

So I quickfixed it adding a new method in TNManager class:

public static void ResetVariables() {
   mDestroyed = false;

... and called it before connecting.

When I tried to connect to a TNet server, then disconnected and connected again (even when destroyed the GameObjects holding the TNet scripts after disconnecting), I'm not getting OnConnect feedback.

Video from Unity:
Connection script attached below.

It seems like some static variables are not reset while reconnecting (TNManager.isPlaying)

Any advice?

Solved! I created folder "Resources", moved the Prefabs folder to this folder and now it works!

 there was Prefab as GameObject reference parameter in TNAutoCreate in old version of TNet (2.x). In TNet 3.0 it was changed from Prefab (GameObject) to Prefab Path (string). I have prefab object in folder in Assets/Prefabs/Player... i tried to fill in Prefab Path this:


... but none of it works and it always throws this exception:

[TNet] Attempting to create a game object that can't be found in the Resources folder:[Assets/Prefabs/Player]

What can I do to make it work?

Thank you.

Misc Archive / Re: Windows version 153
« on: November 10, 2014, 05:54:49 PM »
No, they are not compatible in internet game.
Look at attached picture.

Misc Archive / Windows version 153
« on: November 09, 2014, 02:00:50 PM »
Hi, I wanted to play Starlink online and it says I need version 153. But on your official web is only 152 for Windows. Can you compile 153 version for Windows, please?


Pages: [1]