Author Topic: TNet 3 Tutorials  (Read 7237 times)

NeilM

  • Global Moderator
  • Newbie
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 7
  • Posts: 14
    • View Profile
Re: TNet 3 Tutorials
« Reply #15 on: February 26, 2016, 03:03:01 PM »
We've added some more advanced tutorials on how to inject C# code into your game at runtime.  This is useful for enabling modding of your game.

  • Added Executing Runtime C# Code
  • Added Runtime C# Behaviours


devomage

  • Full Member
  • ***
  • Thank You
  • -Given: 5
  • -Receive: 58
  • Posts: 213
    • View Profile
Re: TNet Tutorials
« Reply #16 on: March 11, 2016, 05:13:50 AM »
  • Added a new DataNode document

It would be great if you could extend this to include Enum, Struct or a custom class.  For example, what if TNet.Packet was a variable in a Datanode?

Great job on the tutorials!  Very thorough.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 254
  • -Receive: 1112
  • Posts: 21,707
  • Toronto, Canada
    • View Profile
Re: TNet 3 Tutorials
« Reply #17 on: March 11, 2016, 07:52:42 AM »
DataNode can serialize all enums, structs and custom classes natively just by using reflection. You can add IBinarySerializable to your class to create a more custom version of the serialization code and control what gets serialized (or just mark fields with [IgnoredByTNet]). You can also create extension methods for classes you can't extend. Look at TNUnitySerializers.cs -- Serialize/Deserialize functions for a bunch of Unity classes in there such as MeshFilter and Renderer.

MrSkyhenge

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 2
    • View Profile
Re: TNet 3 Tutorials
« Reply #18 on: March 23, 2016, 03:41:08 AM »
Are there any plans for future tutorials and examples? Just checking since there doesn't seem to have been any movement on this topic in a while.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 254
  • -Receive: 1112
  • Posts: 21,707
  • Toronto, Canada
    • View Profile
Re: TNet 3 Tutorials
« Reply #19 on: March 24, 2016, 03:11:15 AM »
Is there anything in particular you would like to see / know more about?

Bradamante3D

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 77
    • View Profile
Re: TNet 3 Tutorials
« Reply #20 on: March 27, 2016, 03:57:08 PM »
Executing Runtime C# Code
Runtime C# Behaviours

Hm, downloading TNet 3 from the Asset Store these two documents are not included in PDF form. They will be included in the future?
#301224014, #301432336, #302399130

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 254
  • -Receive: 1112
  • Posts: 21,707
  • Toronto, Canada
    • View Profile
Re: TNet 3 Tutorials
« Reply #21 on: March 27, 2016, 06:16:34 PM »
Yup, I will add them.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 254
  • -Receive: 1112
  • Posts: 21,707
  • Toronto, Canada
    • View Profile
Re: TNet 3 Tutorials
« Reply #22 on: April 09, 2016, 09:00:25 AM »
Well, a reason to update then ;)

tstack

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: TNet 3 Tutorials
« Reply #23 on: April 29, 2016, 08:52:11 AM »
Getting back to the tutorial input, is there any chance that either the Space Game or Ship Game Starter Kits would be updated for TNet 3 and made available again?

http://www.tasharen.com/?page_id=53
http://www.tasharen.com/?page_id=62

I feel that a lot of what I stumble on is probably pretty close to what is / was in these kits, and they'd prove a better example for what I am working on.

Alternatively - is it possible still to buy the old version anywhere? Updating 2->3 code is also a great way to learn.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 254
  • -Receive: 1112
  • Posts: 21,707
  • Toronto, Canada
    • View Profile
Re: TNet 3 Tutorials
« Reply #24 on: April 29, 2016, 12:28:25 PM »
@xzkmxd: I don't understand what you're asking, but I am pretty sure it has nothing to do with tutorials. Please start a new thread instead of cluttering this one.

@tstack: I'll be releasing a Space Game Starter Kit 2, featuring planetary terrain generation and atmospheric rendering I covered in the dev blog. I currently don't have plans to update the ship starter kit, and it never supported TNet anyway. Starlink UI was already updated with TNet 3 support.