[PLUGIN] c2i - canvas/base64/screenshot to image

Post your completed addons to share with the community

Post » Sat Apr 14, 2012 6:42 pm

Hi, ive been testing and trying but have trouble making my own custom version or importing it into a project

i have uploaded the demo version and it works
but my simple custom version only saves blank png files

im not sure what i could be doing wrong? any idea?

EDIT: i found the problem, when placing the plugin on the stage, you MUST create a start texture for it, or it wont work!vtrix2012-04-14 21:27:20
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Sat Apr 14, 2012 9:51 pm

in my current project i have trouble making it work

to save > (bottom "extra" tab)

http://www.atmos7.be/test/

it saves the canvas but only the plugin-graphic,

also noticed when zoomed out off screen (the plugin-graphic) it doesnt save at all (scrollwheel is zooming)

//active objects are on the same layer, fullscreen or not is same

could it be, something to do with multilayers? but why does the plugin-grahic gets saved?
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Sun Apr 15, 2012 12:14 am

What do you try to save? Text-objects and objects that are not drawn on the canvas cannot get saved.. sprites on different layers should work-perhaps better with the canvas2d renderer - I suppose but I haven't tried..Joe72012-04-15 00:16:42
B
14
S
6
G
5
Posts: 173
Reputation: 4,742

Post » Sun Apr 15, 2012 1:37 am

when the "c2i-object" is not on screen, the save-function is not executed...(theres no save completed) i just thought that was strange

im would want to save any object besides the c2i-logo,
in my project there are objects you can place with mouseclick, these are on the same layer as the plugin, and also in the canvas, not sure why they dont get saved,

also the hmtl5 logo's that already there dont get saved, any idea why not?
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Sun Apr 15, 2012 2:28 pm

@vtrix: It's difficult to find the bug without knowing your project in details.
I don't know if or how your used library "FileSaver.js" influences the c2 runtime (painting-threads). As far as I've found out during developing this plugin, it's texture has to be "painted" on the construct-canvas (as a blank-image should be possible - the users doesn't see it but it is not "invisible" [in real] ;) ) because some browsers doesn't update the canvas-graphics without a runtime (plugin) redraw. You haven't uploaded the fallback script - so on android-webkit it wont work (but desktop-browsers should have no problem).

Which Construct release have you used? I haven't testet the plugin with the newest beta r86 - it shouldn't have problems with it but I cannot proof it for now.Joe72012-04-15 14:29:59
B
14
S
6
G
5
Posts: 173
Reputation: 4,742

Post » Sun Apr 15, 2012 5:25 pm

hi joe, thanx for looking into it, .. i have a working test version in the latest beta 86, but in my project it still a no go, im now removing everything from the project too see where the problem is, but this far it still generate a blank, i will post the file in the minimal version if it still doesnt generate, maybe you will see the problem..
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Sun Apr 15, 2012 5:51 pm

Still blank save, i have almost completly deleted everything

testproject

edit: i have found by removing the c2i-plugin from the project and redo it, it finaly saves the html icons, but not the other objects grrrr :(vtrix2012-04-15 18:07:07
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Sun Apr 15, 2012 6:17 pm

Objects that are put on the canvas at runtime are not saved to the canvas, is this correct? or should that work?
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Sun Apr 15, 2012 8:42 pm

@vtrix: Yes that's a plugin-bug. I've seen that bug now too.. I'll work on it asop..Joe72012-04-15 21:01:05
B
14
S
6
G
5
Posts: 173
Reputation: 4,742

Post » Thu Apr 19, 2012 1:36 pm

Any news on this Joe7? wondering if you having trouble fixing that bug Would really love to use this plugin, its a must have!
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests