TouchScript / TouchScript

Complete multi-touch solution for Unity: iOS, Android, Windows, TUIO.
Other
1.67k stars 364 forks source link

Windows Phone error System.Text.Encoding::get_ASCII()` doesn't exist on build & run #63

Closed jalemanyf closed 10 years ago

jalemanyf commented 10 years ago

Hi,

I'm testing this interesting Unity Asset. I have imported the plugin and Works fine on the simulator. Also it seems to work well if I build it for other platforms (I have tested iOS) but, when I try to "build and run" for Windows Phone Platform with the device connected I obtain this error:

Error building Player: Exception: Error: method System.Text.Encoding System.Text.Encoding::get_ASCII() doesn't exist in target framework. It is referenced from OSCsharp.dll at T OSCsharp.Data.OscPacket::ValueFromByteArray(System.Byte[],System.Int32&).

Any ideas will be welcome,

Best Regards,

Josep Alemany

valyard commented 10 years ago

Yes, as FAQ (http://interactivelab.github.io/TouchScript/#faq) says "You need to delete all DLLs from TouchScript/Plugins folder except TouchScript.dll. Other DLLs refer API restricted on these platforms."

jalemanyf commented 10 years ago

Thanks for the quick response. Sorry for not read the FAQ but I have arrived from another way to this page and I didn't find a way to search common problems...

In any case, I have solved the first error (thanks you!) but I still can't deploy the samples on the device... Now I have the Console Message: "Script attached to 'TouchScript' in scene 'Assets/TouchScript/Examples/Basic/Basic.unity' is missing or no valid script is attached. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()"

Regards,

Josep Alemany

valyard commented 10 years ago

Hm. Might be TUIOInput. I guess I need to describe it somewhere too, but for a mobile device you need MobileInput and no other inputs added. So you should remove TUIOInput (which is missing anyway) and MouseInput. After that add MobileInput.

jalemanyf commented 10 years ago

No, it is 'Mono Behaviour'. I have removed the component but now does all the normal process and, when it has to start on the device, goes out and do... Nothing! No messages, no problems, but did'nt work anything :(

valyard commented 10 years ago

So, you are running Basic scene and your TouchScript gameobject looks like this, right? And it doesn't appear to work on Windows Phone?

52df949b38d38725c0cfb7ae

jalemanyf commented 10 years ago

I have looked on the device: the icon of the App exists. So, it is created and installed but, when I click to open it, does... nothing (it no appairs the "Unity powered" Logo), only goes directly to the main tiles screen and That's all.

I have generated the first Basic example scene to be as simple as possible. I wanna test the asset to decide if I use it on a new Project for Windows Phone.

Thanks

jalemanyf commented 10 years ago

Yes,

This is my TouchScript Game Object

captura1

I'm doing the tests with a Nokia 820 from the oficial development kid for developers.

valyard commented 10 years ago

Well, so the problem is that the app doesn't work at all? In this case this shouldn't be a TouchScript issue. Try to get to logs in device and see what's going on.

jalemanyf commented 10 years ago

If TouchScript said it is compatible with Windows Phone and it is impossible to compile the first and most simple sample, I think it is a TouchScript issue...

The project is completely clean, only imported TouchScript and I have not changed a letter on the sample code.

I compiled a lot of other Windows Phone samples and worked without problems.

Please, say me if I'm doing anything wrong, to correct it.

Thanks

valyard commented 10 years ago

When you are running it in debug mode you should see error log in Unity or Visual Studio if device is connected. Can you copy it to me? There might be a bug and I'd appreciate if you helped me fix it since I don't have a windows phone at the moment.

jalemanyf commented 10 years ago

Ok,

I tell you my impressions:

1.-When I debug from Unity, the error is: "Error: Framework 'Mono / .NET 3.5' not installed. (Assembly-CSharp)"

2.-When I do it from Visual Studio the messages are:

'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: DefaultDomain): Loaded 'C:\windows\system32\mscorlib.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.RuntimeHost.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Windows.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Net.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\windows\system32\System.Xml.ni.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'TaskHost.exe' (CLR C:\windows\system32\coreclr.dll: Silverlight AppDomain): Loaded 'C:\Data\Programs{F9487E42-FA3A-464F-82CE-8BEDAEE13D6A}\Install\TouchScript.DLL'. Symbols loaded. The program '[5276] TaskHost.exe' has exited with code 0 (0x0).

It seems it don't detect well the current framework...

I'm working with a Windows 8.1 but I went to the Microsoft official page to be sure I have installed the last one and when I tried to download the last one (4.5) saids me the next message:

 "Microsoft .NET Framework 4.5 forma parte ya de este sistema operativo. No es necesario instalar el paquete      redistribuible de .NET Framework 4.5."

(This framework is part of the operating system. Is not necessary to install...)

In my "c:\Windows\Microsoft.NET\Framework\" folder, there is not 3.5 Folder: v1.0.3705, v1.1.4322, v2.0.50727, and v4.0.303. Probably you are looking here for another version...

Feel free to ask me anything that can helps. If you need I send some files or folders... only have to say it to me.

and if you want I help you to test the current and next versions with a original Windows phone developer device, I will help you.

Regards,

Josep Alemany

valyard commented 10 years ago

I googled a bit this problem and found this:

"I'm guessing that the people having this problem are running windows 8. In which case the problem is caused by win8 not having the .net 3.5 libraries installed by default. Simply install the libraries by following these instructions here and everything should be working fine." - http://forum.unity3d.com/threads/175391-Problem-with-Framework-Mono-NET-3-5

And it links to: http://msdn.microsoft.com/en-us/library/hh506443.aspx I have Windows 7 and I have 3.5 framework installed, just checked.

Can you follow the instructions and post if it helps?

jalemanyf commented 10 years ago

Ok, I'm goint to try it and response to you ;)

2014/1/22 Valentin Simonov notifications@github.com

I googled a bit this problem and found this:

"I'm guessing that the people having this problem are running windows 8. In which case the problem is caused by win8 not having the .net 3.5 libraries installed by default. Simply install the libraries by following these instructions here and everything should be working fine." - http://forum.unity3d.com/threads/175391-Problem-with-Framework-Mono-NET-3-5

And it links to: http://msdn.microsoft.com/en-us/library/hh506443.aspx I have Windows 7 and I have 3.5 framework installed, just checked.

Can you follow the instructions and post if it helps?

— Reply to this email directly or view it on GitHubhttps://github.com/InteractiveLab/TouchScript/issues/63#issuecomment-33024959 .

Atentamente,

Josep Alemany Fruitós

Micrópolis Soluciones

jalemanyf commented 10 years ago

I have installed Net Framework 3.5, reset the machine (it is windows...) and try it with Unity. When I do the build and Run, it shows me this error:

Error building Player: IOException: Temp\StagingArea\TouchScript.pdb already exists

valyard commented 10 years ago

Unfortunately in this case I don't know what's going on and can't debug it since I don't have a Windows based phone. You probably should ask on the forums what this error might mean. If you get past it or turns out it is something going on with TouchScript I will continue investigating.

And please post here what you find.

valyard commented 10 years ago

hi have you had any luck resolving this issue?

jalemanyf commented 10 years ago

I have seen now that you have interested on this… I’m sorry! I don’t know why I have not received the message before. In any case, we are doing now with another tool. If I have time, I will test another time in the future.

Best Regards!

El 10/03/2014, a las 11:20, Valentin Simonov notifications@github.com escribió:

Closed #63.

— Reply to this email directly or view it on GitHub.