2D Toolkit Forum

2D Toolkit => Releases => Topic started by: unikronsoftware on March 26, 2013, 12:45:22 am

Title: 2D Toolkit 1.92 final
Post by: unikronsoftware 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.

Title: Re: 2D Toolkit 1.92 final
Post by: fsadeq 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.
Title: Re: 2D Toolkit 1.92 final
Post by: paulhocker on March 26, 2013, 04:54:46 am
I have had no issue -- still running Unity 4.1.04f -- what version are you using?
Title: Re: 2D Toolkit 1.92 final
Post by: Martin 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!
Title: Re: 2D Toolkit 1.92 final
Post by: Izitmee 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
Title: Re: 2D Toolkit 1.92 final
Post by: m4ko on March 26, 2013, 11:43:20 am
Upgraded fine for me.

Unity: 4.0
Upgrade: 1.92 Beta 2 -> final
Title: Re: 2D Toolkit 1.92 final
Post by: TekuStudios 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.
Title: Re: 2D Toolkit 1.92 final
Post by: fsadeq on March 26, 2013, 07:00:46 pm
Why am I the only one that had problems?   ???
Title: Re: 2D Toolkit 1.92 final
Post by: Zeitcatcher 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.
Title: Re: 2D Toolkit 1.92 final
Post by: fsadeq 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.
Title: Re: 2D Toolkit 1.92 final
Post by: paulhocker 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 --

:)
Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware 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?
Title: Re: 2D Toolkit 1.92 final
Post by: paulhocker 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
Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware 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.
Title: Re: 2D Toolkit 1.92 final
Post by: paulhocker 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!!!
Title: Re: 2D Toolkit 1.92 final
Post by: Smartphoneware on April 04, 2013, 01:37:46 pm
Hi, here is one issue with Sliced Sprite.

It works properly if created via Hierarchy - Create - Tk2d - Sliced sprite.
In other cases (add component, Menu Component - ...) it doesn't. The problem is in incorrect state of "tk2dSlicedSprite.legacyMode".
Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware on April 04, 2013, 10:38:27 pm
That is indeed true. You can safely change the default from true to false. Legacy mode will be removed in 2D Toolkit 2.0
Title: Re: 2D Toolkit 1.92 final
Post by: wtg on April 05, 2013, 01:53:43 pm
As an avid user of 2D Tool Kit, I would have to advise against DLLs. My company purchased the plugin to convert our existing games into Unity and since then it has been a wonderful process for both Art and Programming. The Artist enjoy all the great features it has such as Dicing and previewing animations. The programmers enjoy the plugin because it's open source and they've been able to extend it for our specific needs. For instance, I began researching how to "mask" or "clip" sprites and I didn't like the hard edge solution that I found on the private forum. So our programmers wrote a Shader base clipper that allows "soft edges". They stated that if this was all DLLs then it would've made life much more difficult and we wouldn't have purchased it. You still have to consider that people will need to customize and extend the plugin according to their needs.

I also have 2 more questions:

1. When we do upgrade, whats the best procedure to do so? Once again our programming department extended the plugin and we don't want to lose any of the scripts they've written.

2. Where's the best place to submit suggestions for additional features? As the Art Director I have an extensive background using After Effects and the I'd like to see some of the standard Time Line features, such as scrubbing, added to the Sprite Animation window. There's a few other suggestions I'd like to make that would greatly improve the workflow, but I want to submit it to the right place.

Thank You.

 
Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware on April 06, 2013, 09:36:22 pm
There shouldn't be any issues wrt customizing the plugin, even when distributed with DLLs - the intention is to include a zip of the complete source code within the distribution, so you will still be able to customize it any way you like. The only difference is that instead of directly using the source as is being done now, it will need to be compiled back into the dll.

1. Your programming guys will have to merge the changes in manually, I'm afraid. This is a result of Unity blindly replacing all files when a package is imported.
2. Feel free to post any suggestions in the private support forum, or email support. I'd prefer the forum, as we will at least get feedback from others using the product.

Title: Re: 2D Toolkit 1.92 final
Post by: paulhocker on April 07, 2013, 01:58:04 am
wtg -- I understand wanting the source. Indeed looking at well written code, and seeing how it works from the inside out is beneficial. I think that the suggestion of distributing both source and dll solves that problem.

my needs are a little more selfish, i want to use 2dtk for contests like ludum dare, and using the source is not an option -- having a dll lets me use it as a developer

i suppose i could try to compile the source into a dll myself, but that would probably violate something on the 2dtk side of things

anyway -- my $.02

Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware on April 07, 2013, 12:37:52 pm
@paul - you can't compile to a dll, unless you do it in a brand new project. You can't transition from one -> another. If you need an exception to distribute the runtime code as a DLL, we can certainly work something out there but it won't be compatible with "normal" tk2d code, as in you won't be able to swap versions.
Title: Re: 2D Toolkit 1.92 final
Post by: gogogodeng on April 17, 2013, 03:16:33 pm
how to download
Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware on April 17, 2013, 03:26:44 pm
You will need to register your copy to download from the forum.
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,34.0.html
Title: Re: 2D Toolkit 1.92 final
Post by: kremedved on July 23, 2013, 11:06:07 am
After unity3d had been upgraded to the version 4.2, pressing buttons do not work :<
Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware on July 23, 2013, 11:08:18 am
After unity3d had been upgraded to the version 4.2, pressing buttons do not work :<

Looks like a bug in Unity 4.2. Details and fix here.
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,1682.msg10957.html#msg10957
Title: Re: 2D Toolkit 1.92 final
Post by: apbilyk on August 21, 2013, 06:35:21 pm
I'm still using 1.92 final, as I'm VERY close to release and don't want to risk breaking things beforehand.

I'm using an older version of Unity as well (4.1.2f1), but I would like to upgrade to current (4.1.5f1) if you believe that's a safe thing to do.  Can you advise, Unikron?  Thanks!
Title: Re: 2D Toolkit 1.92 final
Post by: unikronsoftware on August 21, 2013, 07:41:10 pm
I don't think there were any issues introduced between 4.1.2 and 4.1.5, but as always make a backup of the project :)
Title: Re: 2D Toolkit 1.92 final
Post by: apbilyk on August 21, 2013, 08:09:15 pm
I don't think there were any issues introduced between 4.1.2 and 4.1.5, but as always make a backup of the project :)

Will do -- SVN is my friend!  :)  Just figured I'd ask beforehand, in case there were any subtle problems you knew of.  Thanks!