Author Topic: TN2.x ->> TN3 ??  (Read 1527 times)

danfoo

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 93
    • View Profile
TN2.x ->> TN3 ??
« on: July 08, 2017, 06:58:30 AM »
Hi.

Apologies if this has been covered elsewhere. Did a quick search and came up short.

How compatible is TN3 with TN2? Is the upgrade process similar to the usual (i.e.. delete all related assets and do a clean import)? Or has there been major restructuring requiring a new approach?

Thanks in advance for any links or clarification!
Best,
Dan

cmifwdll

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 149
  • Posts: 285
  • TNet Alchemist
    • View Profile
Re: TN2.x ->> TN3 ??
« Reply #1 on: July 08, 2017, 05:31:58 PM »
A few functions might've been renamed. I think the only major thing that might impact your code is the expanded channel system. A player can be in more than one channel now, so a lot of functions now require a channelID.
Also, the OnNetworkConnect, OnJoinChannel, etc messages no longer fire automatically. You have to subscribe to these events manually through TNManager. Just do this in each script's Start (if it needs to).
Other than that I think it's mostly improvements: ridiculously thorough serialization that supports literally everything, no longer having to register RCCs, full singleplayer support, and a bunch of other things.

You can check the changelog here: http://www.tasharen.com/forum/index.php?topic=2650.msg61799#msg61799
And it might be a good idea to skim through the (new) tutorials: http://www.tasharen.com/forum/index.php?topic=13953.0