2D Toolkit Forum

2D Toolkit => Releases => Topic started by: unikronsoftware on June 01, 2013, 12:30:32 am

Title: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 01, 2013, 12:30:32 am
Please read the migration guide before updating. 2D Toolkit 2.0 is not API compatible with 1.x.
http://unikronsoftware.com/2dtoolkit/docs/2.00/migration_guide.html

Documentation available at:
http://unikronsoftware.com/2dtoolkit/docs/2.00


What's new

Bug fixes and improvements
Title: Re: 2D Toolkit 2.0 final
Post by: drmrboyc on June 01, 2013, 04:48:57 am
Awesome!!!

Not sure if it's something I did wrong or if it was intentionally left this way, but the tk2dTileMap_demo folder is empty after I imported the Unity Package?
Title: Re: 2D Toolkit 2.0 final
Post by: Arges on June 01, 2013, 09:20:53 am
Something I'd noticed on the pre-release and forgot to comment: the clips listed on tk2dSpriteAnimator are sorted on whatever order they were created, but for large libraries it would be useful to have them sorted by name. While this is something we can change on the editor class ourselves, it'd be ideal if the next release has it already to avoid having to do manual merges.

Thanks!
Title: Re: 2D Toolkit 2.0 final
Post by: TekuStudios on June 01, 2013, 10:02:57 am
Nice! So, the anchoring system goes to 2.1, right? We are waiting for that before updating our current project.
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 01, 2013, 10:32:40 am
Awesome!!!

Not sure if it's something I did wrong or if it was intentionally left this way, but the tk2dTileMap_demo folder is empty after I imported the Unity Package?

That is empty - by some mistake I included it in the build. 2.1 will have a new tilemap demo and its meant for that.
Also we're trying to keep all the subprojects separate so someone who doesn't need them can delete the ones they don't want.
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 01, 2013, 10:49:00 am
Something I'd noticed on the pre-release and forgot to comment: the clips listed on tk2dSpriteAnimator are sorted on whatever order they were created, but for large libraries it would be useful to have them sorted by name. While this is something we can change on the editor class ourselves, it'd be ideal if the next release has it already to avoid having to do manual merges.

Thanks!

Apologies, this should have been done a long time ago. I think I botched it during the merge :( I've re-added and will be in the next release. If you fancy adding it to yours drop an email to support and I'll give you the file to replace.
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 01, 2013, 10:50:31 am
Nice! So, the anchoring system goes to 2.1, right? We are waiting for that before updating our current project.

I believe so unless something crops up.
Title: Re: 2D Toolkit 2.0 final
Post by: TekuStudios on June 01, 2013, 11:00:05 am
Nice! So, the anchoring system goes to 2.1, right? We are waiting for that before updating our current project.

I believe so unless something crops up.

Good to hear that :)
Title: Re: 2D Toolkit 2.0 final
Post by: Izitmee on June 01, 2013, 02:42:52 pm
Fantastic!!! Hooray for V2 :)
Title: Re: 2D Toolkit 2.0 final
Post by: Izitmee on June 01, 2013, 02:44:18 pm
P.S. not to mention: thanks a lot for releasing V2 for free for existing users. That is truly awesome :)
Title: Re: 2D Toolkit 2.0 final
Post by: ryf9059 on June 01, 2013, 06:08:11 pm
Unity crushed immediately after double clicking .unitypackage, it shows decompressing package for a second and then crushed.

In fact, that's not the only time it happened, unity seems to like to randomly crush with pakcage import, I have suffer this for quite a bit. Truly annoying for this aspect of unity
Title: Re: 2D Toolkit 2.0 final
Post by: TekuStudios on June 01, 2013, 06:11:44 pm
Unity crushed immediately after double clicking .unitypackage, it shows decompressing package for a second and then crushed.

In fact, that's not the only time it happened, unity seems to like to randomly crush with pakcage import, I have suffer this for quite a bit. Truly annoying for this aspect of unity

You should update every asset via "Assets > Import Package...", otherwise it tends to crash.
Title: Re: 2D Toolkit 2.0 final
Post by: ryf9059 on June 01, 2013, 06:45:02 pm

You should update every asset via "Assets > Import Package...", otherwise it tends to crash.

No use. Crush as always...
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 01, 2013, 08:24:36 pm
Try importing into a new project. The download could've failed?
Title: Re: 2D Toolkit 2.0 final
Post by: vitosflash on June 03, 2013, 07:45:44 am
I get a bunch of errors in newly created project when trying to add tk2dSprite script to an existing empty Game Object. Unity 4.1.3. Could you please test it?
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 03, 2013, 11:10:35 am
Are you using Create > tk2d > Sprite, or creating an empty gameobject, and then adding a component?
Edit: I've found the issue - only happened when adding a sprite component to an empty gameobject. Fixed and reposted 2.0 with this fix in. It was small enough that it didn't warrant being its own release. Redownload the unitypackage and import, and it should fix the issue.
Title: Re: 2D Toolkit 2.0 final
Post by: Dajuice on June 03, 2013, 01:17:06 pm
Nice! Hey I wonder, is the memory management/ manual atlas unloading still a work in progress?
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 03, 2013, 01:23:27 pm
There is a tk2dSpriteCollectionData.UnloadTextures you can use... YMMV with this though.
Title: Re: 2D Toolkit 2.0 final
Post by: vitosflash on June 03, 2013, 03:40:47 pm
Hi, thanks for fast fix! Now it works perfect.
One more issue with the last package - I got this error on import of tk2d into empty project with the only default Main Camera object:

> PPtr cast failed when dereferencing! Casting from Shader to Camera!
> UnityEditor.AssetPreviewUpdater:CreatePreviewForAsset(Object, Object[], String)
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 03, 2013, 04:04:32 pm
I can't say I've ever seen that error.
Could be something to do with the package import stuff in Unity, I've had it do some pretty dodgy things :(

I take it it only happens once and then stops?
Title: Re: 2D Toolkit 2.0 final
Post by: collectivemass on June 04, 2013, 12:13:59 am
Thanks so much for the quick turn around from purchase to download access, much appreciated!
Title: Re: 2D Toolkit 2.0 final
Post by: jacky on June 04, 2013, 12:43:41 am
FYI, I had the same error (PPtr cast failed...) and it did in fact only happen once.
Title: Re: 2D Toolkit 2.0 final
Post by: vitosflash on June 04, 2013, 04:28:16 am
I tried to import the package several times - every time I see this error only once. It seems that all other things is ok after that, but I`m not sure.
Title: Re: 2D Toolkit 2.0 final
Post by: vitosflash on June 04, 2013, 09:57:13 am
I got one more error.

I`ve just added a tk2dSprite (manually, as a component) on an empty Game Object. And I got this one:

> Destroying assets is not permitted to avoid data loss.
> If you really want to remove an asset use DestroyImmediate (theObject, true);
> UnityEngine.Object:DestroyImmediate(Object)
> tk2dSpriteFromTexture:DestroyInternal() (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dSpriteFromTexture.cs:92)
> tk2dSpriteFromTexture:Create(tk2dSpriteCollectionSize, Texture, Anchor) (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dSpriteFromTexture.cs:47)
> tk2dSpriteFromTexture:Awake() (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dSpriteFromTexture.cs:28)

I`ve removed the sprite, but the error message is still there.

There are two scenes in the project, I`m switching between them and get the message every time I`m in the scene with that sprite (or where that sprite was before I deleted it).

Could you please look into this also?
Title: Re: 2D Toolkit 2.0 final
Post by: vitosflash on June 04, 2013, 10:25:27 am
One remark. I see that the error itself relates to tk2dSpriteFromTexture (I have a separate backgrounds as a tk2dSpriteFromTexture in each scene). But it started to appear when I added empty Game Object and tk2dSprite on it. All was alright with tk2dSpriteFromTexture components before, there was no any errors. Hope it could help.
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 04, 2013, 10:54:39 am
Do you have exact steps to reproduce it? It looks very much like your SpriteFromTexture object isn't set up correctly, and has a link to an asset. If you saved the scene after it complained, it should fix it.

We normally just use the GameObject > Create Other > tk2d > Sprite to create a sprite. Any particular reason you prefer to add components instead?
Title: Re: 2D Toolkit 2.0 final
Post by: vitosflash on June 04, 2013, 11:56:24 am
I just recreated objects with tk2dSpriteFromTexture and all seems to be ok now. Perhaps it was related to previous reimport of the package or something like this.

> We normally just use the GameObject > Create Other > tk2d > Sprite to create a sprite. Any particular reason you prefer to add components instead?

It`s quite useful when prototyping. At some point I can have a Game Object with some other scripts and don`t want to recreate it from scratch or create a separate child for Sprite.
Anyway it should work this way I think :) As it was in 1.xx

I`m starting a project from scratch and was worried a little as I never saw any errors from 1.xx . But I definitely want to start with 2.00 at least just not to have migration issues in future, when the project will be much bigger. And of course as it have some new great features.

Btw, great product, great support. Good luck in development!
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 04, 2013, 12:02:59 pm
Fair enough. Just wanted to know what that's all :)
I suggest creating a thread in the support forum if you find any bugs relating to this so it doesn't get lost in the mix. Its not how we use it here, but just report anything you find and we'll fix it :)
Title: Re: 2D Toolkit 2.0 final
Post by: DannyB on June 04, 2013, 05:28:01 pm
I saw someone mentioning the same earlier in this thread, but didn't catch a solution.

After importing, I have these empty folders
tk2dTileMap
tk2dTileMap \ Code
tk2dTileMap \ Editor
tk2dTileMap_demo

Is there a problem with the package?

And also - I like the fact that subsystems are now separated - can I delete the TileMap and UI folders, if I am not using them?


Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 04, 2013, 05:39:55 pm
tk2dTileMap is empty? The usual reason for that is Unity doesn't move files which already exist in your project.
The demo folder is sadly empty, as the tilemap project hasn't been merged yet :)

Yup, the reason behind separating these out is to make it easier to delete if you're not using em.
Title: Re: 2D Toolkit 2.0 final
Post by: DannyB on June 04, 2013, 05:45:34 pm
Oh, that makes sense now.
Yes - tk2dTileMap is empty.

I am guessing that the equivalent in 1.9x folder structure is tk2d \ Editor \ TileMap and tk2d \ Code \ TileMap right?
So I can delete those, and re-import, and have the new 2.0 folder structure. Correct? (or delete them altogether, without re-importing, if not using them).

Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 04, 2013, 05:55:11 pm
Yup.
Title: Re: 2D Toolkit 2.0 final
Post by: DannyB on June 04, 2013, 06:01:24 pm
Ok, done and working.

Just know that the (now integrated-) integrity checker complains about the missing TileMap files. So if the new approach is to allow deleting subsystems, maybe the integrity checker should take that into account.
Title: Re: 2D Toolkit 2.0 final
Post by: Kirb on June 08, 2013, 11:19:40 pm
Looking forward to the big Tilemap update in 2.1! Keep up the great work.
Title: Re: 2D Toolkit 2.0 final
Post by: Izitmee on June 11, 2013, 12:07:53 pm
Wonderful! I updated Goscurry (http://www.goscurry.com/) (my current game) to V2, and it works perfectly. As soon as I updated I got a "PPtr cast failed when dereferencing!" message. But then I closed and restarted Unity, as the upgrade instructions told to, and everything worked great :)
Title: Re: 2D Toolkit 2.0 final
Post by: unikronsoftware on June 13, 2013, 11:01:10 am
@Izitmee - I moved the discussion out of here.
http://unikronsoftware.com/2dtoolkit/forum/index.php/topic,1898.msg9346.html#new