Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
CC 6.5 Prefab [BUG]

veganpete
Registered User
Quote
2021-12-16 17:56:43

I opened an old CC 6.4 project and saved an animated character from it as a prefab. It has Idle, Walk, Run, Crouch, Jump (etc.) animations and several textures - all set up and working Properly.

If I then import the prefab to a brand new CC 6.5 project, it performs perfectly. All the predefined animations and textures are there - idle, walk, run crouch etc.

However - if I try to import the same exact same prefab to an old CC v6.4 scene (usingCC v6.5), none of the animations will work - eg: only Run and <Edit> are available. If I select <Edit> (to remake the animations), most of the animation frames are missing.

As I investigated further, I noticed that some of my older CC projects and animated prefab characters (from version 6.4) now don't work properly either. All the animations have disappeared. While some v6.4 projects do work with v6.5, they sometimes produce animation problems when I try to export a scene or prefab. [I can't figure out why it happens]

For example, if I load the project in CC v6.4 and press the "Walk" key, the character will "Walk" properly - but if I open the exact same project in CC v6.5 and press the "Walk" key, the walk animation does not play, it plays random frames instead. When I open the animation editor, the frames are missing and none of the pre-made animations are listed.

Same thing happens if I run CC as Admin and same thing if I export/import the entire scene as a ccb. This appears to have (broken?) all my projects with animated characters.

Any way to fix this? I really need to find a reliable way to be able to import my CC v6.4 animated characters into CC v6.5. As a last resort, I'll have to remake all the models, download and assign all the animations from Mixamo again and import them to Ultimate Unwrap to re-texture and assign the animations ready to export as a model.x to Coppercube again - hopefully that will fix it (ie:remake all the characters from scratch).
~
Thanks.

I figure it may be confusing - so here's a video of what's happening...
Video of Bug... https://streamable.com/jj2brc


VP
Guest
Quote
2021-12-16 19:25:00

After more investigation, it seems that it's only one particular project that the prefabs can't be imported into properly.

Typically it's my Cas-Evac game that I've been working on for a couple of years that doesn' twork.

It looks as though the prefabs import properly to my other projects so it's probably just a bug in that particular file, rather than a global CCB bug.


VP
Guest
Quote
2021-12-16 20:02:28

OK,so I've figured out what's going wrong but still not sure why it's happening and have no idea how to fix it....

Basically if my scene already has an animated character init - ANY prefab characters I try to load into a scene will only import the new model's textures (which are then mapped to the wrong model, instead of loading the model that was saved with the prefab).

So (for example), if I import an animated Spiderman prefab, it clones the soldier in the scene (so there are now 2 soldiers and no Spiderman) it then applies the Spiderman textures to the cloned soldier. None of the Spiderman animations are being loaded either, the cloned soldier animations are there instead.

If I import the Spiderman prefab to an empty scene (with no other animated characters), it loads fine - the Spiderman model, the spiderman textures and the spiderman animations all work perfectly, as expected.

Very strange.


VP
Guest
Quote
2021-12-16 20:22:15

I think I know why it's happening! (possibly, lol).

If I click the Animation editor, the file path for the prefab still points to my desktop (wherever the asset was created).

As each prefab was created on my desktop (and I used common filenames such as "RuN", Walk"), Coppercube is somehow getting confused when I load 2 Prefabs into the same scene. As multiple prefabs have the exact same file-paths in the Animation editor, it appears to cause the previously mentioned conflicts.

If however, I load only one model, it works fine - no conflict.

Somehow coppercube is referencing the original paths in the Animation Editor, rather than the current paths. Any way to fix it without having to remake all the original assets?

Simply renaming the files when making a new prefab (or afterwards) does nothing - coppercube seems determined to remember the original path.


just_in_case
Moderator
Quote
2021-12-17 04:36:16

if you close and reopen your project then the problem might get fixed, a simple restart can fix the issue. I have adressed this before, all of your 3D animated models will still be there in Coppercube even if you delete them from the project, until a restart of the Coppercube editor. they are stored in the memory.

For example if you have loaded a model named "spider" in coppercube and then you deleted the model i Coppercube, and then modified the model in blender and you saved it with the same name as previous "spider", and now if you try to import the modified model in Coppercube with all the new modification. It will still load the same old model with no modification from the memory, while you have actually changed the model completely it will still gonna be load them from memory.

to understand it better, try adding any default animated prefab in the scene. for example "animated man" and open the animation editor window. and now just delete the animated node from the scene. you will still be able to see the mesh in the animation editor, You will also see the name "veteran" for animated man there, and "sleepwalker" if you have added a sleepwalker.
while you have actually deleted them from your scene. all the loaded animations will appear in a dropdown at the top of animation editor.
so even when the node has been deleted just right click in the viewport of animation editor and choose "create an instance"
and it will add the model from memory to the scene.

there are some quickfix for the issue, You can either rename the model in the animation editor which will rename the already loaded model but then you will lose the ability to reload it from the disk. ( which I think is not necessary).

or you can rename the new modified model from where the file is located by simply righ clicking the filename and then rename it . for example changer "spider" to "spidermonkey".

or you can save the project and perform a restart of the coppercube editor that will clear out the memory.

I never tried the "ccbCleanMemory()" command in the editor but maybe using this will clear out the memory too.

hope all this make sense.

Ragrding the issue of prefabs not loading in previous versions of CC, I think there are some prefabs that you have created with CC latest version and you are trying to load them in the previous version. As prefabs are nothing but just coppercube project with a different file extension. and Coppercube projects are not backward compatible that means you can't load prefabs that are created with newer version of coppercube in your old coppercube versions.

hope that also make sense.

Edit:- for me the site on which you posted the video doesn't open.


veganpete
Registered User
Quote
2021-12-18 11:11:48

Thanks just_in_case.

Just to clarify, I'm not trying to load v6.5 projects into v6.4 (I no longer use v6.4 since the update).

What happened was: I opened an old v6.4 project in v6.5. It all worked fine.

I then exported a single model from that project (as a prefab) and tried to import it into another old project.

If I import that model prefab to a v6.5 project, it ill work perfectly as before.

However, using v6.5, when I import the same prefab into an older project (made with v6.4), the prefab then glitches the textures and animations (as described).

What I've tried:
re-starting coppercube.
renaming the prefab,
renaming the animations
remaking the animations (in coppercube)
loading the prefab from different directories
clearing the project memory
restarting my PC.

In the end, I decided to remake the model from scratch (using mixamo and ultimate-unwrap), then imported it as an animated 3Dmodel (not a prefab) into the old project - it worked.

Exporting this new, working model as a prefab from v6.5 still produces the same problems when I import it to the older project. So while I've found a workaround in this instance, the problem is recreatable (in total, it's happened a few times so far with different, older projects).

I don't think it'll be a problem with new projects (or if I load the model directly), it seems it will only ever a problem whenever I try to export/import prefabs from older projects into other older projects.

When I think about it, it's probably a v6.4 Bug, rather than a v6.5 bug.

Thanks again for the help. - Here's a new link for the video...
https://sendvid.com/b3ofv5t9
It shows me trying to open the same prefab in 2 different projects (both with v6.5) - in one project, the prefab works fine, in the other project the animations don't work, the animation frame-count is different.


just_in_case
Moderator
Quote
2021-12-18 13:41:39

Can you send me the prefab file that is causing issues, or if you can try renaming the .ccp prefab to .ccb and can try opening it directly, instead of importing it as ccb. just to make sure if the original project got corrupted or not.

What happened was: I opened an old v6.4 project in v6.5. It all worked fine.

I then exported a single model from that project (as a prefab) and tried to import it into another old project.

If I import that model prefab to a v6.5 project, it ill work perfectly as before.

However, using v6.5, when I import the same prefab into an older project (made with v6.4), the prefab then glitches the textures and animations (as described).


As I already stated in my previous post, Coppercube projects are not backward compatible,

So when you opened your old project in coppercube latest version, it opened perfectly, but when you exported one single object as prefab, then it was saved with the newest version, as I said coppercube prefabs are nothing but Coppercube project in itself. That means your single prefab that you created from your old project in latest version of coppercube is a a new coppercube project that has been saved with newer architecture. hence importing that prefab in older version of coppercube will give errors or will have issues.
It completely make sense why you are able to import the model perfectly in new version but have glitches and errors in previous version.

If you have abackup of your project that hasn't been saved with cc 6.5 is lying in your pc. you can try opening that in cc 6.4 and then create the prefab for that single object that you want to use in your other project.

It will then import perfectly in, old 6.4 and newer 6.5 versions of Coppercube.

So everything that I have said in my previous post still makes sense.

What you are doing is you are unknowingly trying to open a project of coppercube that has been saved with newer architecture in older version of coppercube.

Remember CCP prefabs file are coppercube project in itself, so when you are creating a prefab with newer version it will not import correctly in the old version.


VP
Guest
Quote
2021-12-18 23:14:14

I think you're misunderstanding me or perhaps I'm misunderstanding you. Did you watch the video to see what's happening.

Basically my 6.4 prefabs don't work with with my 6.4 projects any more since I updated to 6.5.

When I updated to v6.5, I assumed I'd be able to open my 6.4 projects and continue working on them in 6.5 with all the existing assets in those project. That's not the case.

You're saying that's due to a backward comparability problem - so my 6.4 project will only work with the 6.4 coppercube and not v6.5? That sounds odd to me.

That means I'll have to remake the whole project and assets again in 6.5 to avoid issues?

I thought the whole point of the 6.5 update was to address the bugs I reported in 6.4? I can;t find it in my soul to remake the entire project and assets again for a third time.


VP
Guest
Quote
2021-12-18 23:22:02

To make it perfectly clear, I only have v6.5, I do not have v6.4.

If I open an old project in v6.5, it will not import prefabs properly.
If I create a new project in 6.5, it will import the prefabs fine.


Arcanjo
Guest
Quote
2022-04-21 02:24:57

It's a bug of Coppercube's version.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact