Hello Guest

Author Topic: 2D Toolkit 1.92 final  (Read 34135 times)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
2D Toolkit 1.92 final
« on: March 26, 2013, 12:45:22 am »
As with all upgrades, exercise caution when upgrading. Make sure you have a back up!

This is the last in the 1.x family.
The next update will be 2.0.

Features:
- Full undo/redo support & multi-edit support in all scene instances
- Runtime TexturePacker import
    o tk2dSpriteCollectionData.CreateFromTexturePacker, non-XML/JSON simple format, can be written so it doesn't allocate any memory
    o TexturePacker 2D Toolkit exporter is in "tk2d/Goodies/TexturePacker"
    o Sliced/clipped/tiled sprites now supported
- Clipped sprite - a hard clipped sprite implementation, now part of the distribution (based of Clipped Sprite Sample)
- Tiled sprite - tiles the same sprite multiple times to fill given dimensions
- Use color32 instead of color, should require a lot less memory
- Sliced sprite "Draw Border Only" mode, just draws the sliced border only omitting the filled middle.
- Sliced / Clipped / Tiled sprite have a "Create box collider" option which creates a tight fitting box collider, regardless of sprite collection setting.
- Demo scene #13, runtime sprite collection & texture packer import
- tk2dRuntime.SpriteCollectionSize is now tk2dSpriteCollectionSize. The old class is still there for reference, and still works, but namespaces don't work properly when in the Plugins folder.


Bugfixes and improvements:
- tk2dCamera doesn't update matrix unless it has changed.
- Added a (disabled by default) hack for Unity 4.x building with platform specific sprite collections.
- Upgraded meta files for the whole project. Upgrading should (hopefully) crash a lot less often, as Unity isn't trying to upgrade while importing. Also, you can now deselect folders in the Import Package dialog box.


fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #1 on: March 26, 2013, 03:14:20 am »
Thanks for the update. Unfortunately, the Unity crashing actually seems to be worse in this one. I couldn't get it to import at all, tried like 10 times and it would crash Unity each time during the "compiling scripts" part of the import. I then tried importing my last version (beta 3) and that wouldn't import either, kept crashing. The only way I managed to get it to work was to manually delete the tk2d folder outside of Unity, then import.
« Last Edit: March 26, 2013, 04:07:24 am by fsadeq »

paulhocker

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
    • SpockerDotNet LLC
Re: 2D Toolkit 1.92 final
« Reply #2 on: March 26, 2013, 04:54:46 am »
I have had no issue -- still running Unity 4.1.04f -- what version are you using?

Martin

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #3 on: March 26, 2013, 06:39:34 am »
Updated and compiled for Android with no issues so far (Unity 4.1). Thanks for the update!
« Last Edit: March 26, 2013, 05:54:58 pm by Martin »

Izitmee

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 99
    • View Profile
    • Holoville Games
Re: 2D Toolkit 1.92 final
« Reply #4 on: March 26, 2013, 10:32:23 am »
Wohooo! Awesome! Gonna upgrade today :) And good work for the v2!

By  the way, any chance you'll make v2 into a DLL, so it can be used from external libraries? :)

EDIT: no issues updating from v1.91 final (on Unity 4.1.0), and the "create box collider" button works like a charm
« Last Edit: March 26, 2013, 11:51:14 am by Izitmee »

m4ko

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 75
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #5 on: March 26, 2013, 11:43:20 am »
Upgraded fine for me.

Unity: 4.0
Upgrade: 1.92 Beta 2 -> final

TekuStudios

  • 2D Toolkit
  • Full Member
  • *
  • Posts: 177
    • View Profile
    • Teku Studios
Re: 2D Toolkit 1.92 final
« Reply #6 on: March 26, 2013, 03:17:23 pm »
I'm using Unity 4.1.1f4 and I've upgraded from 1.91 + patch 1. Everything's going allright for now, no issues.
« Last Edit: March 26, 2013, 03:47:37 pm by TekuStudios »
We are an Indie videogame developer located in Teruel, Spain. A small 6-people team which is currently working on the upcoming 'Candle'.

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #7 on: March 26, 2013, 07:00:46 pm »
Why am I the only one that had problems?   ???

Zeitcatcher

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #8 on: March 26, 2013, 10:15:29 pm »
Thanks for the update. Unfortunately, the Unity crashing actually seems to be worse in this one. I couldn't get it to import at all, tried like 10 times and it would crash Unity each time during the "compiling scripts" part of the import. I then tried importing my last version (beta 3) and that wouldn't import either, kept crashing. The only way I managed to get it to work was to manually delete the tk2d folder outside of Unity, then import.

I've been having this issue with any Asset Store package since Unity 4.0 came out. I don't think it's 2D Toolkit issue, since this happens with each of a dozen third-party packages that we use. Are you on a Mac by any chance? It seems like a Unity problem specific to OS X platform.

Also, at least in my case, after the crash the imported package should work fine. It does crash on initial "compiling scripts" stage, but after you restart Unity, the new files should all be in place and compile nicely.

I'm currently having an email conversation with Unity support regarding those crashes, they seem to be putting blame on the packages not being Mac-compatible, but I find it hard to believe that some of the best-selling and popular packages don't have that compatibility.

fsadeq

  • 2D Toolkit
  • Sr. Member
  • *
  • Posts: 353
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #9 on: March 26, 2013, 11:55:22 pm »
Yep, I am indeed on OS X (Mountain Lion). That is good to hear. I had a suspicion it was a general Unity thing, and not 2DTK. Please let me know how your correspondence with Unity support goes.

paulhocker

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
    • SpockerDotNet LLC
Re: 2D Toolkit 1.92 final
« Reply #10 on: March 27, 2013, 12:46:44 am »
Wohooo! Awesome! Gonna upgrade today :) And good work for the v2!

By  the way, any chance you'll make v2 into a DLL, so it can be used from external libraries? :)

EDIT: no issues updating from v1.91 final (on Unity 4.1.0), and the "create box collider" button works like a charm

+1 on this -- I would like to use this for the Ludum Dare contest --

:)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #11 on: March 27, 2013, 10:18:53 am »
I would very much like to make it a DLL and it would save a lot of bother, but it would no longer be backwards compatible. I'd like to change a LOT more underlying stuff if I was going to break backwards compatibility, though.

Any ideas?

paulhocker

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
    • SpockerDotNet LLC
Re: 2D Toolkit 1.92 final
« Reply #12 on: March 28, 2013, 04:46:43 pm »
What are the challenges you see on backwards compatibility and using DLL's? The guys at uScript and Playmaker have been able to do it quite successfully.

I think if you do a clean break with 2.0 that would be your opportunity as many of us are already expecting some extra work with that upgrade.

paul

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: 2D Toolkit 1.92 final
« Reply #13 on: March 29, 2013, 12:22:18 am »
The biggest issue is that without a careful strategy, it will be impossible to be backwards compatible. It'll be fine if it started off as a DLL, but there is no way to switch the scripts to be sourced from a DLL and still be backwards compatible - the scirpts in the DLL will be identified differently anyway. I can't break backwards compatibility in 2.0, but the plan is to gradually add a side by side upgrade path over the course of the 2.0 life cycle, and the current scripts, while still present, will be deprecated.

paulhocker

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
    • SpockerDotNet LLC
Re: 2D Toolkit 1.92 final
« Reply #14 on: March 29, 2013, 05:17:37 pm »
I like that -- gives people options until at some point in the future you say "okay, this is it" no more script -- just dlls

looking forward to 2.0 -- although I am not sure how you can make this much better!!!