Hello Guest

Author Topic: 2D Toolkit 1.80 beta 1  (Read 14049 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
2D Toolkit 1.80 beta 1
« on: October 07, 2012, 10:57:51 pm »
THIS IS A BETA RELEASE. BACK UP YOUR PROJECT BEFORE INSTALLING THIS.

It is safe to base your project around this. Any further changes will be backwards compatible.

Features and changelist Changes in this update in italics
Unity 3.5 and above only
Renamed collider types (ForceNone instead of None, UserDefined instead of Unset). Makes a lot more sense.
All mesh leaks plugged, hopefully.
Sprite collection settings page tidied up, added a lot more texture options.
Massive memory saving with large animations (there was a constant overhead, which is now fixed).
New tk2dSystem feature, manages platforms and resources.
Sprite collection can be made loadable - this uses the tk2dSystem resource loading feature, and doesn't need files moved to different locations. The sprite collection can also be loaded by GUID at runtime.
Sprite collections are sorted by name in inspector
Internal data upgrade, slowly moving away from legacy cruft (hopefully still backwards compatible). A message is printed out when sprite collections are upgraded.
Animated sprite bugfix, calling play from an event works.
Runtime sprite collection stuff integrated, use tk2dSprite.CreateFromTexture or tk2dSpriteCollectionData.CreateFromTexture
Switch platfroms in editor in the preferences page. Sprite collections and fonts which have platform data will switch when this is changed.
Sprite collections don't use mipmaps by default.
And loads more small fixes
Unity 4 fixes. Should now work properly with no warnings.
Auto build fixed, and also work for sprite collections with platform specific data. Only the affected sprite collection is rebuilt.
Formatted text implementation, now as it should be. This isn't 100% compatible with the previous version if text is entered in the interface, line breaks may be incorrect, but should be 100% compatible if updated using code.
Fonts in sprite collections try to pick up texture name from bmfont file
Font builder works correctly without requiring renamed textures - it automatically picks up the correct file from the bmfont
Materials are shared properly between sprite collections and fonts, batching should work as expected.
Platform data requirement code should be a lot more stable under weird conditions imposed by Unitys unpredictable script execution order
Fonts switch correctly when changing platform
Material overrides work, but need to be set up in the interface (i.e. new ones will work with platforms)
Fonts in sprite collections can be set up to use overriden materials
Support for gradients for fonts in sprite collection - needs a bit of manual set-up, but works
Rebuilding index will rebuild the tk2dSystem object - none of the resources should be checked in to version control
OrthoSize/texelSize set up properly for text meshes
Tilemaps work, but inefficient when switching platforms - it is vastly more efficient for now to switch platform in editor, load original scene and save scene as @2x, etc, and load the appropriate scene at runtime. Simply loading and saving in editor is sufficient.
Custom sprite geometry & custom colliders work properly.


Limits, bugs and incomplete features
Platforms are limited to 1x and 2x for now. This can be fully customised, but no interface exists right now.

Thanks for the bugreports and help so far folks! The rest of 1.80 will just be bugfixing, documentation and catching all those combinations which haven't been tested.
I'll be starting a new branch (1.81) to merge in all other features.

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit 1.80 beta 1
« Reply #1 on: October 07, 2012, 11:12:17 pm »
Congratulations unikron. A really important milestone and and excellent list of changes.
( And another reason for celebration, I was just promoted to Full Member. Milk all around... )
« Last Edit: October 07, 2012, 11:14:15 pm by DannyB »

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit 1.80 beta 1
« Reply #2 on: October 08, 2012, 12:55:19 pm »
Error (probably insignificant):

Happened on the first time I clicked the 2D Toolkit menu > Preference

ArgumentException: Getting control 0's position in a group with only 0 controls when doing Repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/GUILayoutUtility.cs:417)
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type LayoutType) (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/GUILayoutUtility.cs:156)
UnityEngine.GUILayout.BeginVertical (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/GUILayout.cs:192)
UnityEngine.GUILayout.BeginVertical (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/BuildAgent/work/14194e8ce88cdf47/Runtime/ExportGenerated/Editor/GUILayout.cs:186)
UnityEditor.HostView.OnGUI () (at C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/GUI/DockArea.cs:114)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #3 on: October 12, 2012, 11:08:11 am »
@DannyB - Thanks for posting that. I'll try to get that sorted for the next release.

Its been awfully quiet so far. Does that mean everything is working properly for everyone who's downloaded it?

DannyB

  • 2D Toolkit
  • Hero Member
  • *
  • Posts: 609
    • View Profile
    • Chicks Ahead
Re: 2D Toolkit 1.80 beta 1
« Reply #4 on: October 12, 2012, 11:35:33 am »
I can say that it is working fine for me, yes.
I did not yet thoroughly played with the multiplatform aspects, but I focused on testing that nothing is broken.

FootprintGames

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #5 on: October 12, 2012, 04:20:09 pm »
Hi. I'm getting three strange errors:


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #6 on: October 12, 2012, 04:46:08 pm »
Have you run "Setup for JS" after reinstalling? Actually come to think of it I mightn't have updated that properly... Let me know if it fixes it.

FootprintGames

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #7 on: October 12, 2012, 05:25:44 pm »
As I told you by email, "Setup For JS" didn't fix my problem

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #8 on: October 12, 2012, 06:55:59 pm »
Here is a fixed "Setup for JS". After importing the package, restart Unity, and run "Setup for JS" again. That should fix it...

FootprintGames

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #9 on: October 13, 2012, 01:42:06 pm »
Worked!
Thank you Unikron!

willrmiller

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #10 on: October 13, 2012, 06:51:55 pm »
What exactly should and should not be source controlled after this release?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 1.80 beta 1
« Reply #11 on: October 13, 2012, 07:02:50 pm »
None of the extra stuff should be version controlled.
The system rebuilds everything (including the stuff in resources) when you rebuild the index.

I'm still writing up the docs - I'll be sure to mention this.