Author Topic: TNet 3 ChannelData  (Read 5310 times)

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
TNet 3 ChannelData
« on: February 08, 2016, 08:59:31 AM »
I've actually found tnet 3 channeldata problem, can't load it but save/load

HELP!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 3 ChannelData
« Reply #1 on: February 08, 2016, 09:11:42 AM »
I'm not sure what you mean... Also which version of TNet 3?

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet 3 ChannelData
« Reply #2 on: February 08, 2016, 10:25:19 AM »
Hm, I saved some data/ loaded but it says "guest14: kills: 1|deaths: 0|score: 10" and how to parse it?!

Version of TNet 3 - 1 feb.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 3 ChannelData
« Reply #3 on: February 08, 2016, 10:41:37 AM »
TNet 3 stores channel data as DataNode. You set it using:
  1. TNManager.SetChannelData("name", value);
For example:
  1. TNManager.SetChannelData("kills", 1);
  2. TNManager.SetChannelData("deaths", 0);
  3. TNManager.SetChannelData("score", 10);
You can then retrieve it using:
  1. int kills = TNManager.GetChannelData<int>("kills");
  2. int deaths = TNManager.GetChannelData<int>("deaths");
  3. int score = TNManager.GetChannelData<int>("score");
That's with the Feb 8th version. With Feb 1st I believe it was called SetChannelOption rather than SetChannelData, and retrieval was via TNManager.channelData.GetChild<int>("score") etc.

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet 3 ChannelData
« Reply #4 on: February 09, 2016, 05:40:38 AM »
Cool, it worked pretty nice! I saw new update you could send me it to my email: bliz.omar@mail.ru

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 3 ChannelData
« Reply #5 on: February 09, 2016, 09:33:17 AM »
You'll need to email me with your OR#, then sure.

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet 3 ChannelData
« Reply #6 on: February 10, 2016, 06:05:17 PM »
You'll need to email me with your OR#, then sure.
yep, time ago i've sent that, and now latest version is new so needs update.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 3 ChannelData
« Reply #7 on: February 10, 2016, 06:07:03 PM »
I had a lot of people email me, I don't know which one is you so please re-send the email.

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet 3 ChannelData
« Reply #8 on: February 11, 2016, 08:16:29 AM »
Aw, My google account isn't mine now at all to see the OR#, Ohh man, what to do now? :( I was trying to backup it like a recovery of password but it's hacked or idk what's wrong :(

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet 3 ChannelData
« Reply #9 on: February 12, 2016, 04:36:09 PM »
U don't go help me man?

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: TNet 3 ChannelData
« Reply #10 on: February 12, 2016, 05:48:10 PM »
fix yer email account or buy a new copy :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 3 ChannelData
« Reply #11 on: February 12, 2016, 07:42:15 PM »
We had this conversation via email. I looked you up, and I told you the same thing there. No invoice means I can't send you any updates.

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet 3 ChannelData
« Reply #12 on: February 14, 2016, 02:27:09 AM »
I can get them but, I want officially by you cuz I purchased a time ago :/

Bliz

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: TNet 3 ChannelData
« Reply #13 on: February 17, 2016, 05:26:57 AM »
what u gonna do man, that means I lost my money for nothing?  :-\

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TNet 3 ChannelData
« Reply #14 on: February 17, 2016, 08:02:26 AM »
Why would I help you? So you can again put it up on the Asset Store as "Atom Networking"? Spare me your bullshit.