playMaker

Author Topic: Wwwobject texture bug  (Read 2575 times)

Maart

  • Junior Playmaker
  • **
  • Posts: 88
Wwwobject texture bug
« on: January 05, 2013, 09:12:31 AM »
Hi I need some help with this project to see what goes wrong.

Because of the klack of database support I use a simple textfile stored on dropbox
my project reads this textfile wich then is split in an aray.
it contains 3 items of data per row
songnumber- songtitle and an url to a texture.

the first time I use the url to download and assign the texture all goes well
the second time I do this no image is downloaded and a red questionmark is shown

get my project files here: http://db.tt/4EUTlJTb

my text file looks like this:
1*dit is een test*http://dl.dropbox.com/u/20740921/text_asset/12-10-22.jpg
*2*test2*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg''
'
I use the *sign to make a split in the textfile

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Wwwobject texture bug
« Reply #1 on: January 07, 2013, 03:18:36 AM »
Hi,

 Can you export your scene as a package? otherwise we can't really work out frmo a zipped file, Unity has some special way to reference assets.

1: Select your scene
2: Unity Menu: "Assets/Export Package"
3: take out the playmaker dll ( as you are not allowed to redistribute it)
4: send the generated file

Bye,

 Jean

Maart

  • Junior Playmaker
  • **
  • Posts: 88
Re: Wwwobject texture bug
« Reply #2 on: January 07, 2013, 06:05:31 PM »
EDIT: *REMOVE*
link to unity package
« Last Edit: January 10, 2013, 05:47:21 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Wwwobject texture bug
« Reply #3 on: January 10, 2013, 05:48:37 AM »
Hi,

 Don't include the playmaker folder when you share package, this is not allowed. I am looking at your problem right now, if you want to resend the package, simply export it again, and simply uncheck the playmaker folder.

 bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Wwwobject texture bug
« Reply #4 on: January 10, 2013, 06:25:11 AM »
Hi,

 Ok, this is not a bug with www texture, what happens is that you have a return character at the end of the url... so that's why it fails. this is a nasty bug, and I agree with you, it's definitly not obvious :) you have to have had this problem before to spot that quickly ( I did :) so don't worry, I have scratch my head on this quite a lot already )

 On your text:

"1*this is the first test*http://dl.dropbox.com/u/20740921/text_asset/12-10-22.jpg
*2*test number 2*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg
*3*test numeber three*http://dl.dropbox.com/u/20740921/text_asset/star.jpg
*4*test number 4*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg
"

if you split using "*", you are still left with the return char so you end up with

"http://dl.dropbox.com/u/20740921/text_asset/12-10-22.jpg
"
 notice the quote character is next line. so this is not not a valid url and will fail

Simply use the following with just splitting with newlines option
"1
this is the first test
http://dl.dropbox.com/u/20740921/text_asset/12-10-22.jpg
2
test number 2*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg
3
test numeber three*http://dl.dropbox.com/u/20740921/text_asset/star.jpg
4
test number 4*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg"

or remove the returns

"1*this is the first test*http://dl.dropbox.com/u/20740921/text_asset/12-10-22.jpg*2*test number 2*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg*3*test numeber three*http://dl.dropbox.com/u/20740921/text_asset/star.jpg*4*test number 4*http://dl.dropbox.com/u/20740921/text_asset/593a62569f47212963995fb119e59971.jpg"


Also, database support is coming "soon", I am currently working when I can on dataMaker, a solution to work with sqlite frameworks and access data very easily, using a wizard that will generate the actions you need for your particular database structure and needs.

http://hutonggames.com/playmakerforum/index.php?topic=2599.0

also, you could use xml too for this right now:

http://hutonggames.com/playmakerforum/index.php?topic=2583.0

or parse:
http://hutonggames.com/playmakerforum/index.php?topic=2336.0

Bye,

 Jean