playMaker

Author Topic: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]  (Read 4608 times)

ergin

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #15 on: December 23, 2015, 02:46:21 PM »
Hello dudebxl,

I mean; when you have an array which contains "a" at index 0 and "b" at index 1. how can you make a combined string out of this array.(serialization) Normally if you have two strings which is sa = "a" and sb = "b" you can use build string which basically + these strings together. (sc = sa + "," + sb) What I need is (sc = a(0).ToString + separator + a(1).ToString) or (+ all)

Thanks!

dudebxl

  • Hero Member
  • *****
  • Posts: 588
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #16 on: December 23, 2015, 02:52:47 PM »
ah.. ok thanks for the explanation  :).. you could always build the action for this purpose, should be easy.

ergin

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #17 on: December 23, 2015, 04:04:42 PM »
Thanks dudebxl!

dudebxl

  • Hero Member
  • *****
  • Posts: 588
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #18 on: January 05, 2016, 12:48:16 PM »
I was reading this: https://www.facebook.com/gaddygames/photos/a.549523828427899.1073741827.294549080592043/991991537514457/?type=3&theater

... so I converted to playmaker actions:
- ConvertIntToStringFast
- BuildStringFast
- ArrayListBuildStringFast
- ConvertFloatToStringFast

I have not modified the code so it should be as quick as he says (ref: Cstring).


on ecosystem or https://snipt.net/dudebxl/
« Last Edit: January 05, 2016, 01:14:05 PM by dudebxl »

ergin

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #19 on: January 05, 2016, 02:55:48 PM »
Thank you for your great interest dudebxl!

ArrayListBuildStringFast works great and is exactly what I needed!

Thanks Again!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11388
    • View Profile
    • Email
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #20 on: January 12, 2016, 11:48:44 PM »
Hi,

 when you have issues with building, please paste the errors you get else we won't be able to held you.

 in the case of DataMaker, It could be that you need to switch to ".Net 2.0" int he player settings, instead of ".Net 2.0 subset". have you tried this?

 Bye,

 Jean

ergin

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #21 on: January 13, 2016, 12:15:04 AM »
Hello and Thanks for Great Support.

I removed datamaker and made working version with arraymaker only, which works fine inside unityeditor and builds into MSVSS project for windows phone 8. But when I deploy project into the phone, from the Development Console I get the error "The fsmVar value <System.Single> doesn't match the value <System.String> on stateSTATENAME on fsm:FSM on Gameobject:OBJNAME"

stateSTATENAME is the state where only "Split Text into Array List" is present and I both tried it with .txt and string variable with different types of seperators(new line, char).

everything else seems to work fine but I can't turn my text into array inside the phone.

Edit:
I tried ".Net 2.0", instead of ".Net 2.0 subset", didn't solve the problem.

Thanks again.
« Last Edit: January 13, 2016, 12:30:46 AM by ergin »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11388
    • View Profile
    • Email
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #22 on: January 13, 2016, 12:34:15 AM »
Hi,

can you try to use the custom action "GetStringWithoutBOM" on your string before using it with datamaker and arrayMaker? this action should be in your project shipped with ArrayMaker.

Bye,

 Jean

ergin

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #23 on: January 13, 2016, 03:42:54 AM »
Hello,

I tried it with GetStringWithoutBOM, error message didn't change.

Thanks again.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11388
    • View Profile
    • Email
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #24 on: January 13, 2016, 06:19:45 AM »
Hi,

 ok, so basically the problem is as follow, in that state, you have an action that points to an FsmInt and it should actually be an FsmString. Can you paste a screenshot of the stack of actions you have on that state: OBJNAME/STATENAME/FSM?

Bye,

 Jean

ergin

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #25 on: January 13, 2016, 09:30:40 AM »
Hello,

most right is a direct screen capture from the phone.

Thank you!


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11388
    • View Profile
    • Email
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #26 on: January 13, 2016, 10:51:04 AM »
Hi,

 ok, and what's the content of the text you split? can you give a sample?

 Bye,

 Jean

ergin

  • Junior Playmaker
  • **
  • Posts: 86
    • View Profile
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #27 on: January 13, 2016, 11:18:03 AM »
Hello and thanks for great support.

mytext is utf8 text with turkish chs in it but it doesn't split "any text" such as: text1,text2,text3 (with no special chars in it)
or
text1,t1option1,t1option2;text2,t2option1,t2option2

"split text to array" works great under unity editor or android or windows 8

but fails at windows phone 8.

other arraymaker actions work fine such as array list add, array list get

BuildStringFast doesn't work as well...

Thanks.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 11388
    • View Profile
    • Email
Re: Failed to build for windows phone, [DATAMAKER INCOMPATIBLE]
« Reply #28 on: January 13, 2016, 01:17:29 PM »
Hi,
 
uhm, interesting indeed. Can you pm me with a real extract, even if I don't understand turkish, I think the problem may lie in the character encoding.

 what I would do on your side, is to output the content of the string you try to split on your device screen, just to triple check that indeed you are parsing what you expect.

I would also search in general forum for potential issues with turkish encoding and windows phone specifically. I don't see why it work everywhere else but on one device, if that's the case, surely, you are not the only one to have faced this issue. and so I woudl look outside the Unity workd, and certainly in .NET in general.


Bye,

 Jean