Author Topic: UI Starter Kit: Starlink (NGUI + TNet)  (Read 106814 times)

brianbraatz

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #45 on: July 10, 2013, 12:18:26 PM »
"
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #44 on: Today at 12:11:57 PM »
Quote
Did you import TNet and the tnet_integration package that comes inside the Starlink UI kit?
"
YES!

The direct connection WORKS- if I failed to import the package correctly- I would expect that to NOT work


Here is the functionality I need:

1- a computer on the local network hosts a game (Ip is assigned by local network)
2- other users can go to a lobby screen to find any games being hosted on the local network
3- users can click on the game they found in the lobby to join the game- local network only

********** with the package I purchased ****** ON MY COMPUTER THE FOLLOWING IS WHAT WORKS AND WHAT DOESNT
***********************************

1- the direct connect works between two computers (yeah!) but they have to type in an IP
and
2- the lobby screen works for broadcasting servers with games (yeah!) - but that screen does not allow users to join the server they selected (*********code appears to be incomplete, or broken?? or doesnt run on my computer?**************)


My main question is:

"Should the lobby screen WORK? (in the video it does) Or is that intentionally not complete?"

-=----------
since I wrote above- I have figured out that the lobby is using UDP
and the direct is using TCP

so michael,

in your video the udp lobby WORKS-

in the code that I bought from the unity store- it does NOT work


brianbraatz

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #46 on: July 10, 2013, 12:19:50 PM »
Michael,

I believe the package that gets downloaded from the Unity store on purchase is either broken or incomplete for the UDP lobby.

I believe this because in your video it works- but in the code I have - there does not appear to be any code to join nor to fire off the join screen when the user clicks on the server

MAKE SENSE???


LightSky

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 56
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #47 on: July 10, 2013, 12:27:47 PM »
There does not appear to be any code to join nor to fire off the join screen when the user clicks on the server

MAKE SENSE???

When joining a server from the list:
The code is located in "UIServerListItem".
When joining a game from the list:
The code to join a game that is hosted is located in "UIChannelListItem".

brianbraatz

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #48 on: July 10, 2013, 12:54:29 PM »
Update-
Ok lightsky has shared some info with me-

for HIM the UDP lobby works..

hmm.. ok Michael- so its something on my end

Thank you ALOT Lightsky- this gives me some fundamental info that I can use to further debug

*********
what MIGHT be an issue?

Michael, the code for discovery of the internal IP for the nic card- doesnt work on BOTH mac laptops I have - both of them have vmware installed- I think its grabbing the vmware IP
i have a fix for this if you are interested

I am WONDERING though- if my 'fix' for that problem is what is driving the UDP lobby not working..

thanks to lightsky though- I at least have verification that the UDP part works for someone else off the same package

after work today- time for more digging..

My current theory:
* the network code in the package has a bug in that it doesnt grab the correct IP address when you have vmware installed on mac os (I think its' vm ware thats doing it)

* My fix for that- I think it might have broken the udp support- ? then maybe?

this is what I will dig on after work- I will report here what I learn

thanks guys!

Brian




ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #49 on: July 10, 2013, 01:09:29 PM »
Virtual networks will do that, yes.

As far as I know there is no clear way of differentiating between a real network and a fake network. I remember there being a thread on this many months ago.

brianbraatz

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #50 on: July 11, 2013, 08:06:10 AM »
I have figured out some code that does work- basically it boils down to reading the routing table to see who has an outbound route , that should be your network card for the network-

this is made all the more complicated by the fact that - i found- mono on mac- the networkcard information API is incomplete- so - on mac- you dont have enough info to figure this out- so I am - just on mac - reading the routing table- and that seems to work...

Now, if you have wireless and wired ethernet and or dial up networking active etc- you will have multiple outbound Ips..

so the code I have just picks the first one=- which is not ideal..


brianbraatz

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #51 on: July 11, 2013, 08:09:15 AM »
Update-

I worked on this issue some more this evening.. I am still not able to get the UDP lobby working right :(

I normaly use mac- but I setup a VM with unity on it and windows- and tried testing there

I still have a failure trying to use the UDP lobby


BUT- at least now I have an error message:

see here:

https://dl.dropboxusercontent.com/u/46532640/tnetissues.png

"UPnP Discovery Failed"

hm....

well.. hmm..

I have tried 2 mac machines and now a windows vm... I must have gremlins :(....


brianbraatz

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #52 on: July 11, 2013, 10:00:18 AM »
Update:

thinking - my VM is xp-  I recall XP has extra stuff you have to do to enable upnp- thats probably where my error is coming from ....

what I think RIGHT NOW:
1- The package has some issues with vmware adapters + mac os (mostly this is a mono issue- its just a problem in mono breaks the cross platform code in the package)- I implemented some mac specific logic (in c#) to fix this problem- on my mac I can now reliably get the ip address of my local outbound nic card

2- There is an additional issue with mac os + Upnp which is likely made worse by having vmware installed -> this is my working theory at the moment

my PLAN:

I am going to try a windows 7 machine running - hopefully the udp lobby will work on that

once I have the UDP lobby actually running- I can compare the working code's behavior against the non-working code-  from there I should be able to narrow in on the problem..

I am hoping to figure this out soon :)

thanks everyone for your help!

Brian
:)


sicga123

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #53 on: July 28, 2013, 12:32:04 PM »
Hi just a quick question, probably rather simple and I should know the answer. is it essential that the Layers 8 and 9 are used for Starlink UI? - I'm already uisng them. Or could I use the next 2 layers down?

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #54 on: July 28, 2013, 04:33:44 PM »
Nope, it's certainly not essential. I just needed one layer for 3D UI and another for the 2D UI. You can change them, but don't forget to update the culling mask and even mask on the cameras.

sicga123

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #55 on: July 29, 2013, 02:26:37 AM »
Thanks for the quick reply.

sloopernine

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 47
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #56 on: August 06, 2013, 12:33:28 AM »
Really wish this package was included in the summer sale campaign at unity asset store! :D

EDIT/ Btw does this include the register/login part of the menu aswell to be able to see how you did it?
« Last Edit: August 06, 2013, 12:42:12 AM by sloopernine »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #57 on: August 07, 2013, 04:33:02 AM »
Register/login? There is no registration in Starlink, only Windward.

velsthinez

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #58 on: August 20, 2013, 03:46:38 AM »
I've bought this kit and have spend a few days reading and learning the scripts.

One thing I noticed was that there's no animation Component on the Panel for the transition.
I hunt it down and see that the 'magic' is done in the buttons, under the UIWindowButton Script.
But I see it again and there's no animation component hooked up anywhere.

Could someone kindly guide me on how to utilize this ? It's create a very clean structure,
sometime which my own scene is lacking. I am currently using NGUI's Button Play Animation script, but there's so many panels, it's not elegant at all.

Hope to get some advice on this.


Nevermind, I finally found out it basically is doing a Scale tween. Feel like a noob.  :-[

Thanks!
« Last Edit: August 20, 2013, 04:31:57 AM by velsthinez »

aidji

  • Guest
Re: UI Starter Kit: Starlink (NGUI + TNet)
« Reply #59 on: September 10, 2013, 08:07:42 AM »
Hello, I have a question: does the feature "Direct Connect" work over internet ? or its only limited to lan?
when i click on "Play" >> "Direct" it show: your internal IP and Your External IP they a re both same and 10.xx.xx.xx (LAN address)

what should i change ?