Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - NeilM

Pages: [1] 2
1
NGUI 3 Support / Re: TweenLetters ignores Shadow opacity
« on: August 03, 2017, 09:40:52 AM »
What effect are you attempting to create by not playing the first frame during the delay?  If that happens then the text will appear as a normal label, then snap to the first frame of animation.

2
NGUI 3 Support / Re: TweenLetters ignores Shadow opacity
« on: August 03, 2017, 09:33:57 AM »
The quick fix for the alpha is to change line 154 of TweenLetters.cs to
  1. c.a *= lerpAlpha;

It was missing the multiplication.

3
TNet 3 Support / Re: Use a password?
« on: June 30, 2016, 09:40:31 AM »
Are you now able to see the hasPassword bool in the Channel.Info list?

4
TNet 3 Support / Re: Use a password?
« on: June 30, 2016, 09:20:18 AM »
Where are you calling TNManager.GetChannelList from?


5
TNet 3 Support / Re: TNet 3 Tutorials
« 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


6
TNet 3 Support / Re: TNet Tutorials
« on: February 22, 2016, 02:49:28 PM »
  • Added a new DataNode document

7
TNet 3 Support / Re: TNet Tutorials
« on: February 17, 2016, 05:22:10 PM »
* Example AutoJoin - has been added.
* Example AutoSync - has been added.
* 0. Menu - has been added and details how to start a lobby server.
* 5. Movement - has been rewritten as the scripts have changed.
* 6. Multiple Channels - has been rewritten as the scripts have changed.

8
TNet 3 Support / Re: TNet 3 (Feb 11) OnNetworkConnect not firing?
« on: February 12, 2016, 07:25:22 PM »
Yes, the broadcasts were replaced with callbacks.

void OnEnable()
{
     TNManager.onConnect += OnNetworkConnect;
}

void OnDisable()
{
     TNManager.onConnect -= OnNetworkConnect;
}

Take a look in TNEventReceiver.cs for more details on which functions changed.

9
TNet 3 Support / Re: TNet Tutorials
« on: February 12, 2016, 05:01:01 PM »
- Adjusted all of the tutorials to use the new callback functionality now that broadcasts have been removed.
- Added an in-depth review of the Chat example.
- Added an in-depth review of the Movement example.

10
TNet 3 Support / Re: TNet Tutorials
« on: February 10, 2016, 05:00:40 PM »
Just to clarify the delegate a little more:

  1. void OnSetPlayerData(Player p, string path, DataNode node)

p is the player and it contains all of the dataNodes associated with this player.
path is the path to the one variable which was set.  In the example it's "Color", but it could be "my/custom/path/Color"
node is the one dataNode which changed.  eg. Color = (1.0, 0.0, 1.0, 1.0)

The example ignores the second two variables, but the node could have just as easily been used in conjunction with a case/if statement if there was more than one potential value to be set.

11
TNet 3 Support / Re: TNet Tutorials
« on: February 09, 2016, 12:35:02 PM »
@phoenix - The dataNodes are demonstrated in the "Synchronizing and Saving Player Data" tutorial.  It passes a single Color variable across the network using dataNodes.

12
TNet 3 Support / Re: TNet Tutorials
« on: February 09, 2016, 12:30:50 PM »
@devomage - There is a new car driving example in TNet (called Movement) which demonstrates how to frequently send player inputs, and once and a while update the exact transform and rigidbody of a character.

As for animations, syncing animations can be done by following the "Synchronizing and Saving Player Data" tutorial and instead of setting a materials colour, set a trigger/int/float on the animator.

13
TNet 3 Support / Re: TNet Tutorials
« on: February 09, 2016, 12:30:06 PM »
Feb 9th 2016 Changes:

- "Synchronizing and Saving Player Data" has been updated to use the new TNManager.SetPlayerData function.
- "Custom Channel Data" has been updated to use the new TNManager.SetChannelData function.

14
TNet 3 Support / TNet 3 Tutorials
« on: February 04, 2016, 05:13:05 PM »
Hi, I'm the new guy here at Tasharen and over the past little while I've been writing tutorials for the latest version of TNet.

I would be interested in any feedback that you guys might have on the existing ones and if you have any tutorials you would like to see, please let me know.

Overview

Examples Overview

In-Depth

Example AutoJoin
Example AutoSync
0. Menu
1. RFCs
2. Object Creation
3. Frequent Packets
4. Chat
5. Movement
6. Multiple Channels

Other Tutorials

Instantiating Objects With Parameters
Synchronizing and Saving Player Data
Custom Channel Data
Using the DataNode structure
Executing Runtime C# Code
Runtime C# Behaviours
Worker Thread class -- offloading the processing onto other CPU cores the easy way

Beginner's Video Tutorial: https://www.youtube.com/watch?v=7oBhEwAHU5w
Class Documentation: http://www.tasharen.com/tnet/docs/

Frequently Asked

Channel Discovery

15
NGUI 3 Support / Re: Events not bubbling up properly
« on: December 10, 2014, 09:03:37 AM »
Ok.  I've hacked around it by putting an invisible rectangle over top that detects clicks first.  It's not ideal, but "good enough.".

Pages: [1] 2