|
Post by FlávioF on Jan 27, 2016 12:47:42 GMT
Hi, i just got the Asset and when i import i got this erros:
Error CS0117 System.IO.File do not contain a definition for 'ReadAllBytes"
Can anyone help me please?
|
|
|
Post by khash on Jan 27, 2016 14:33:10 GMT
What platform do you use? Does it have rights to read/write to drive?
|
|
|
Post by FlávioF on Jan 27, 2016 14:51:56 GMT
I intend to use for windows, just installed and already gave this error.
using Unity 5.3.1f1 and DX11
|
|
|
Post by FlávioF on Jan 27, 2016 14:55:46 GMT
I do not intend to use in Mobile projects.
|
|
|
Post by khash on Jan 27, 2016 17:46:40 GMT
can you check if in build project you are not set to "web" or something? I'm worried that Unity did some changes we didn't planned for, which leads to this issue. Have you tried in older versions of unity?
|
|
|
Post by FlávioF on Jan 27, 2016 18:30:28 GMT
Yah, solved! Thanks!
|
|
|
Post by khash on Jan 28, 2016 19:30:58 GMT
Cool
|
|
|
Post by scottsummers on Feb 3, 2016 22:18:54 GMT
I'm also getting the same error in the latest Unity version (5.3.2f1). (I'm on Windows 7.)
"Assets/HoneyFramework/Scripts/DB/MHDatabase.cs(178,39): error CS0117: `System.IO.File' does not contain a definition for `ReadAllBytes'"
Is this something that can be easily fixed? I'm hoping my project won't need to be locked to an old version of Unity.
I'm loving Honey Hex, thank you!
|
|
|
Post by scottsummers on Feb 3, 2016 23:08:43 GMT
In case it's useful, the compilation error no longer comes up when the line is changed.
Original: return System.IO.File.ReadAllBytes(path);
New with no errors: return null;
|
|
|
Post by scottsummers on Feb 3, 2016 23:52:15 GMT
(But that causes a series of other errors once it's running.)
|
|
|
Post by khash on Feb 4, 2016 13:08:32 GMT
can you check if you are not running it in web mode? You need access to files, you cannot simply comment it out
|
|
|
Post by scottsummers on Feb 6, 2016 3:30:19 GMT
Thanks, you're right! When I installed the latest Unity update, I must have missed checking the box for installing the pc/mac modules. So I downloaded the Unity installer and re-installed only those modules. (More info here if anybody else is having the same problem.)
|
|