playMaker

Author Topic: wwwobject download image [SOLVED] ... because ALEX is the BOSS  (Read 5440 times)

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Greetings , nand congrats for this AWESOME asset , getting into my problem fast because time is ticking fast....

i just cant get wwwobject to work...

I want to download an image and set it as texture to a material.

Can someone please send me a working example i can open in unity and see.

I really need this , its for a working project.

Best regards

M.

Here is my FSM

https://www.dropbox.com/s/07e675mt40s651w/wwwfms.jpg
« Last Edit: July 06, 2014, 07:51:48 PM by Michaelb »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: wwwobject download image
« Reply #1 on: July 06, 2014, 06:48:58 PM »
Remove the Next Frame Event that sends FINISHED. When WWW Object has finished downloading the texture it will send the FINISHED event. Right now you're using Set Material Texture before the texture is downloaded...

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image
« Reply #2 on: July 06, 2014, 06:54:27 PM »
YOU ARE THE BEST , kindly allow me 10 minutes to test and reply back , it cant be so easy LOL

Again thank you very very much.
« Last Edit: July 06, 2014, 06:57:35 PM by Michaelb »

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image
« Reply #3 on: July 06, 2014, 07:12:25 PM »
Yes , it seems that this correction will work.

Unfortunately Unity gives this error

https://www.dropbox.com/s/m4v6vgok65vatnc/error.jpg

Movie playback is only possible in Unity pro , strange think is that i used texture and not movie playback.

Also on the downloaded image it gives a question mark , is something wrong with the image?

Can you please help on this?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: wwwobject download image
« Reply #4 on: July 06, 2014, 07:23:24 PM »
What is the error? Can you take a screenshot of the unity console...

The question mark image means there was an error downloading the texture. Make a string variable called error and put it in the Error String slot to see what the error was...
« Last Edit: July 06, 2014, 07:28:59 PM by Alex Chouls »

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image
« Reply #5 on: July 06, 2014, 07:26:22 PM »
Thank you so much for replying back again.

I have a link in the previous message , i re post it here

https://www.dropbox.com/s/m4v6vgok65vatnc/error.jpg

I am adding the string variable as you suggested right now.

Will post back in 5.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: wwwobject download image
« Reply #6 on: July 06, 2014, 07:29:40 PM »
The screenshot doesn't show the Unity console, just the Playmaker window...

That action should probably check for Unity Pro. For now you can edit the script and delete this line:

storeMovieTexture.Value = wwwObject.movie;

To edit an action click the settings gear and select Edit Script...

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image
« Reply #7 on: July 06, 2014, 07:38:42 PM »
Here is the console.


https://www.dropbox.com/s/r8recjnixne5qqa/console_after_adding_string.jpg

I am also removing the line right now Alex.

Will post back in 5

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image
« Reply #8 on: July 06, 2014, 07:42:54 PM »
We are on the good path.

No error after i removed the line.

Now , only the question mark is left....

I am very positive that we will nail this.

Here is the image i want to download

https://www.dropbox.com/s/vdsgmhv66qe84en/card1.jpg

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image
« Reply #9 on: July 06, 2014, 07:50:45 PM »
IT WORKS WITH A DIFFERENT IMAGE

Thank you very very much Alex , from this point on , you are not obligated in any way (not that you were before , and thank you for helping out) to find out why my first image is not working.

AGAIN THANK YOU VERY MUCH FROM HEART

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image [SOLVED] ... because ALEX is the BOSS
« Reply #10 on: July 06, 2014, 08:01:48 PM »
For the record , same image that worked before , is not working (giving a question mark) when uploaded to dropbox.

So it has to be a dropbox issue.

String returns nothing on dropbox cases , on other sites (when there is an issue) it returns the problem.

Hope all this , helps someone , as it helped me .

Alex , once more , thank you very very much.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: wwwobject download image [SOLVED] ... because ALEX is the BOSS
« Reply #11 on: July 06, 2014, 08:08:40 PM »
Try http:// instead of https:// on drop box images
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Michaelb

  • Beta Group
  • Junior Playmaker
  • *
  • Posts: 53
Re: wwwobject download image [SOLVED] ... because ALEX is the BOSS
« Reply #12 on: July 07, 2014, 03:45:49 AM »
Greetings Lane , and thank you for your support as well.

When http:// is used instead of https:// it gives the question mark on the image and www is not ready downloading yet.

Tested inside a folder and in dropbox main root.

I think that we will drop , dropbox this time  :P