Author Topic: 1.5.0 issue with TNDiscoveryServer - or is it just me?  (Read 8183 times)

danreid70

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 24
    • View Profile
1.5.0 issue with TNDiscoveryServer - or is it just me?
« on: February 18, 2013, 08:23:55 PM »
I've been waiting for a long time for a setup like TNet, and am a HUGE fan (I keep reading through the forums for every post that comes through, to get a better understanding of how it works, and have already started using it for a game I've been playing around with for a long while now. TNet has finally given me what I need to make it multiplayer, and I'm really digging it!). And to look at the highest rated, paid, purchased, etc. on Unity's Asset Store, you'll see the TNet and NGUI both up there in the top 5 of ALL of them... I think that says it all! :) Great job Aren!!!

But,  back to my original reason for posting: I updated to new version of TNet in my project, and got the below errors. I did a quick sanity check, because I jumped the gun last time and found it was something in my project causing errors. So this time I created a brand new blank project, and updated TNet again with nothing else in there - still exact same errors - they all seem to reside in TNDiscoveryServer. Please let me know if it's just me, or are others getting this?

Error log:

Assets/TNet/Server/TNDiscoveryServer.cs(120,39): error CS1501: No overload for method `WriteTo' takes `2' arguments
Assets/TNet/Server/TNDiscoveryServer.cs(156,37): error CS0117: `TNet.Packet' does not contain a definition for `RequestListServers'
Assets/TNet/Server/TNDiscoveryServer.cs(173,47): error CS1061: Type `TNet.Buffer' does not contain a definition for `BeginTcpPacket' and no extension method `BeginTcpPacket' of type `TNet.Buffer' could be found (are you missing a using directive or an assembly reference?)
Assets/TNet/Server/TNDiscoveryServer.cs(183,25): error CS1061: Type `TNet.Buffer' does not contain a definition for `EndTcpPacket' and no extension method `EndTcpPacket' of type `TNet.Buffer' could be found (are you missing a using directive or an assembly reference?)
Assets/TNet/Server/TNDiscoveryServer.cs(195,25): error CS1061: Type `TNet.Buffer' does not contain a definition for `EndTcpPacket' and no extension method `EndTcpPacket' of type `TNet.Buffer' could be found (are you missing a using directive or an assembly reference?)

broknecho

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 33
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #1 on: February 18, 2013, 08:39:15 PM »
Hey danreid70!

I just gave this a go with a brand new fresh no package unity project and it seems to compile fine.  Looking into your errors, TNDiscoveryServer does NOT exist anymore.  I think Aren reworked that portion of TNet:

Quote
NEW: Redesigned the discovery client. There is now several game Lobby server / clients instead.

I used the package I got through email and not the Asset store.  So if you're using the asset store version, it's possible there is something wrong there like a wrong version or yet to be updated.

danreid70

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #2 on: February 18, 2013, 08:44:53 PM »
Can you also run the zipped TNServer.exe? It starts, and gets to where it tells me my internal and external IP address, then Windows says it stopped working and crashes. :(

I REALLY love this TNet package, don't get me wrong - I'm not criticizing it at all - it's my favorite plugin ever for Unity! :D I just want to figure out if it's me doing something wrong or if there's a bug somewhere out there. I'm going to try again with another clean Unity package - the one I used just now to try and find bug was the clean one I tested last time - I just upgraded over the original TNet. I'll delete the entire TNet folder and re-install it and post back what happens (so if anyone else out there is upgrading, and gets these errors, the fix might be do delete old TNet folder and then upgrade(?). Will post back in a bit...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #3 on: February 18, 2013, 08:46:22 PM »
Broknecho is right: discovery server is gone, replaced by the lobby server.

TNServer should start up just fine. Do you have another instance of it running, or perhaps the game set to host on the same ports?

danreid70

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #4 on: February 18, 2013, 09:08:38 PM »
Aren - you know those little "hypothetical" gremlins that pop up and cause weird stuff to happen, and then they just disappear...? Well... I seem to have one in my computer right now. I tested again, in completely blank Unity project, redownloaded and installed TNet, and it ran fine. Reopened my main project, and just deleted that file (not the entire TNet folder because I didn't want to break any connections), and re installed new version of TNet - and the gremlin seems to be sleeping. It started up just fine. Went back to TNServer.exe - ran it, and -- dang gremlin really seems to be snoring away, because it started right up. I swear I didn't have another instance of the server running - I just booted up my PC when I got home, and first thing I did was check your site, log in to asset store to get TNet update, and the rest is history (logged right here for all to see) :D

So - it's working fine! Aren, this friggen rocks! :D Now I just have to make sure I'm actually instantiating my players correctly, (somehow I keep finding "ghosts" of my players left behind when I jump out of and back into channels). Not sure what I'm doing wrong, so I'm kind of experimenting right now. Would love a quick tutorial on best way (with sample code) to start a server, lobby scene (with best practice for using channels), launching a scene, instantiating a character, and then best way to get rid of character when they leave or player inadvertantly shuts down, back into lobby, etc.

I "think" I have it right, but still finding that I'm doing things in "probably" not the best (or correct) way... It "works" and I can get characters into scenes and running around, shooting, damaging each other, etc. via Unity editor and webplayer on another monitor. But would love a great (small!) example of best way to accomplish that for 1st/3rd-person-"shooter" style game. Nothing fancy - just blocks that can join a game and leave correctly, and move around.

I'll keep plugging away. Sorry for rambling on - I'm ecstatic that I got this to work as far as I did, and it's all thanks to your TNet (and by the way, I'm using NGUI - so you have a doubly happy customer here :D ).

Best Regards,
--Dan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #5 on: February 18, 2013, 09:15:05 PM »
Hmm... that example has been on my TODO list for two months now. The issue is, as always, time...

danreid70

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 24
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #6 on: February 18, 2013, 09:26:40 PM »
Hehe - Trust me Aren, there's never enough time... My workload at "real work" seems to increase on a weekly basis, but somehow, the Time.deltatime stays constant... or something like that. :) And any project I accomplish there never seems to be appreciated. :(

One thing that should help keep you going: all this work you've been putting into TNet is GREATLY appreciated by all your customers/fans! :D  And I hope the steadily increasing number of sales proves it! :D AWESOME stuff! Also, don't be deterred by Windward! You've already proven to be one of the biggest names in the Unity developers circle - it's gotta count for something!

(this Hallmark Card reply will self-destruct in 3... 2... 1...) hehe

Deozaan

  • Newbie
  • *
  • Thank You
  • -Given: 44
  • -Receive: 4
  • Posts: 42
    • View Profile
    • Deozaan.com
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #7 on: February 18, 2013, 09:55:23 PM »
Would love a quick tutorial on best way (with sample code) to start a server, lobby scene (with best practice for using channels), launching a scene, instantiating a character, and then best way to get rid of character when they leave or player inadvertantly shuts down, back into lobby, etc.

YES PLEASE! I can tell that TNet is powerful and useful, but I'm so confused as to how to use it. What the heck is a channel? What's the proper way to use one? How do I get a simple character (and only one) to appear for each player? How do I make sure it gets removed from the game when a player leaves/disconnects and so forth?

The documentation is severely lacking. The scripts themselves are very well documented, but how am I supposed to even know what functions/features to look for without reading every single script? I don't want to read every script. If I wanted to understand the inner workings behind TNet then I would learn it all and program something like it myself. I just want to know how to use the tool I bought. I need documentation that tells me how to interact with TNet.

(And please don't take this as insulting/complaining/grumpiness. I'm just really excited to use TNet because as I said, I can tell it's powerful and very useful. I'm just frustrated I can't dive into the documentation and learn how to use it (and leave you alone in peace!) because there isn't really any documentation.)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #8 on: February 19, 2013, 09:01:23 AM »
Well now, there is some documentation aside from the well-commented code! :P

http://www.tasharen.com/?page_id=4523

Deozaan

  • Newbie
  • *
  • Thank You
  • -Given: 44
  • -Receive: 4
  • Posts: 42
    • View Profile
    • Deozaan.com
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #9 on: February 20, 2013, 05:06:35 AM »
Well now, there is some documentation aside from the well-commented code! :P

http://www.tasharen.com/?page_id=4523

Yes, and that's a decent start. But it's not nearly comprehensive enough, IMO. Everything that is in bold on that page should be a link to more specific documentation that tells what it does and how to use it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #10 on: February 20, 2013, 06:42:39 AM »
Give it time. I will add more tutorials soon. :)

blueskined

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: 1.5.0 issue with TNDiscoveryServer - or is it just me?
« Reply #11 on: February 20, 2013, 07:27:34 AM »
We BADLY need more tutorials... ;D