These are chat archives for Nethereum/Nethereum

1st
Jul 2018
Juan Blanco
@juanfranblanco
Jul 01 2018 05:19
Nethereum uses a "patched" version already for AOT + Unity3d (is it the same? or a new one)
PropertyInfo.GetValue will make it incompatible in other areas (not just newtownsoft)
what about webgl?
dimonkov
@dimonkov
Jul 01 2018 06:49
A new one.
Old one fails under 4.5 but works under 3.5
As far as webgl - I'm just experimenting right now, so it's not that big of a deal if it doesn't work
Juan Blanco
@juanfranblanco
Jul 01 2018 06:51
sure :)
it will be nice that the people that have done the patch will actually push it to the 3.5 aot
what errors you get with the old one?
i dont like the idea of having some closed source newtonsoft around
dimonkov
@dimonkov
Jul 01 2018 06:57
ExecutionEngineException: Attempting to call method 'System.Reflection.MonoProperty::GetterAdapterFrame' for which no ahead of time (AOT) code was generated.

  at System.Reflection.MonoProperty+GetterAdapter.Invoke (System.Object _this) [0x00000] in <00000000000000000000000000000000>:0

  at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in <00000000000000000000000000000000>:0
This error.
Also - here is the link for the discussion (it is an old topic, that's why it says Unity 5 in the title, but the latest comments are for the new version unity):
https://forum.unity.com/threads/unity-5-0-3f2-il2cpp-problem-attempting-to-call-method-system-reflection-monoproperty-getteradapt.332335/page-3
so this is the one
but also it mentions the thread that they are patching it anyway
dimonkov
@dimonkov
Jul 01 2018 07:05
I think, the only thing that the guy that I got this patched version from did is he replaced PropertyInfo.GetValue
with PropertyInfo.GetGetMethod
Juan Blanco
@juanfranblanco
Jul 01 2018 07:05
yeah
but I meant that Josh is trying to fix it :)
dimonkov
@dimonkov
Jul 01 2018 07:07
Yeah, saw that.
Commented on that ussue in May, and the response was "soon".
So now I've decided to try to fix it myself.
Juan Blanco
@juanfranblanco
Jul 01 2018 07:07
actually the latest post was Monday?
dimonkov
@dimonkov
Jul 01 2018 07:09
Yes,
they are still figuring this out.
I think that they forgot to implement that method when moving to a new version of runtime.
Juan Blanco
@juanfranblanco
Jul 01 2018 07:11
In an ideal world you should be able to do the same as in Xamarin
you don't use specific features of Json.Net
so the rest should work correctly
for AOT
and i think they are heading that way
dimonkov
@dimonkov
Jul 01 2018 07:12
Okay, I'll look into that.
Juan Blanco
@juanfranblanco
Jul 01 2018 07:13
on the Nethereum side for 4.6
i will also build the Unity project to that level
so you can use UnityWebRequest IEnumerator functionality
or Task based
dimonkov
@dimonkov
Jul 01 2018 07:14
Okay, thank you.
I'll look into the Xamarin example of Nethereum.
Juan Blanco
@juanfranblanco
Jul 01 2018 07:15
that just uses normal json.net
dimonkov
@dimonkov
Jul 01 2018 07:15
Ah, ok.
Juan Blanco
@juanfranblanco
Jul 01 2018 07:15
so that is kind of the point
that it should work out of the box in unity too
dimonkov
@dimonkov
Jul 01 2018 07:16
Got it :)
Stef Heyenrath
@StefH
Jul 01 2018 09:15
Maybe a simple question : but why would you want to build an Ethereum app using Unity? What are the scenarios or projects in this area?
Juan Blanco
@juanfranblanco
Jul 01 2018 09:30
If you ignore all the gaming space
You do have all the vr / mr
Ar
Juan Blanco
@juanfranblanco
Jul 01 2018 09:35
Also you can actually create cross platform apps if you think about it in .net
But that is another story with the GUI in unity
p0isoN
@p0isoNz_twitter
Jul 01 2018 19:47
dApp games
Like this