Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
CCBZ, CCBJS, Copperlicht.js & CCB APK files

srfstudio
Registered User
Quote
2018-08-26 22:51:54

I’m slowly getting familiar with Copper Cube, there are some good & some bad aspects to it but my overall impression so far is very, very positive.

There are a few things that I can’t get my head around so I was hoping if someone who worked with CC longer could help. I should mention that I’m interested in WebGL exports, the Win export is not priority for me at this time.

1. Difference between ccbjs & ccbz files. I’ve seen that ccbz files are ‘safer’ for artwork and that they are smaller. I’m not so concerned with my artwork, I like the fact that the file is smaller but I’m more interested in speed. Are ccbz files harder to read by the engine and therefore slower in WebGL performance?

2. Difference between copperlicht.js file that Cooper Cube is automatically adding to ‘copperlichtdata’ folder and copperlicht.js that can be downloaded from the ‘Copperlicht open source WebGL 3D library’ page. Should I use the first or the second js file? I’ve noticed that the first file is smaller but the second file could just contain things that are not really relevant for Cooper Cube exports?

3. When I exported my level to APK I was curious about what the file format was (if it was ccbjs or ccbz) so I opened the APK. Inside I found a fully functional ccb file that I could open in Editor :) I’m wondering if that ccb file from APK build is somehow more optimized than the original ccb file? I would gladly use that file if there is some difference in speed or internal structure that could make WebGL exports smoother?


smartbro
Guest
Quote
2018-08-27 03:34:05

1. ccbz files are compress format and only available with html5 target, check the html5 option it's in there 'create smaller compressed files'. It's a common thing now to pack and zipped your html5 assets.

2. theyre pretty much the same, copperlicht also has the same format.

3. except for web, all targets use ccb.


srfstudio
Registered User
Quote
2018-08-27 18:23:09

@smartbro Thank you for reply, I didn't know that all but WebGL targets use CCB in exported data. But is there any difference between CCB project file & CCB exported file?

When I use minify option in other engines they sometimes collide with some plugins or effects, I guess that this is not the case with Cooper Cube but is there any difference in speed of app performance?

When I tested both copperlicht.js files, game seemed to run the same but there is a big difference in file's MBs. Is it better to use larger copperlicht.js file? Is there something that could be beneficial to the game's speed or performance if I use the larger file?


smartbro
Guest
Quote
2018-08-28 01:17:12

np im not exactly sure but it seems that way and there's a difference between saved versions bec. ccb is somehow version restricted, so it's not backwards compatible. if you open a saved cc6 ccb to cc5 it's not going to work. you can upgrade of course your ccb to use newer version ie. cc6, but expect it not to be intact or depending on content.

yes the compress js format loads faster of course.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (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