suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 10 forks source link

IL2CPP Support Server + Client #1741

Closed Callepo closed 1 year ago

Callepo commented 2 years ago

i was going to report bout how mapspawnnetwork doesnt work with IL2CPP back end, but i saw its been reported before. is there any updates on this ? https://github.com/suriyun-production/mmorpg-kit-docs/issues/1557

basically Process.Start(startProcessInfo) not working, which makes it impossible to have instances.( u can bypass maps by spawning them manually, but instancing is not gonna be a thing)

also on the Client end of things Ncp dialog Custom Condition, the way the code is invoking the condition makes it not possible to be used with IL2CPP. basically it cant find or invoke the code at runtime, u have to precompile it into the build.

I dont have the actual error message atm of it, i will EDIT it later onto this post when i have it clearify it.

image

These are the only 2 things i found broken with IL2CPP. if these work, we can have proper builds on both Server + Client

Callepo commented 2 years ago

@insthync It needs generate the code on build, not runtime image

Ahead-of-time compile Some platforms do not allow runtime code generation. Therefore, any managed code which depends upon just-in-time (JIT) compilation on the target device will fail. Instead, you must compile all of the managed code ahead-of-time (AOT). Often, this distinction doesn’t matter, but in a few specific cases, AOT platforms require additional consideration.

insthync commented 2 years ago

Any solution?

Callepo commented 2 years ago

https://docs.unity3d.com/Manual/ScriptingRestrictions.html

insthync commented 2 years ago

Is there any library that I can use instead of the current one? (this: https://github.com/Siccity/SerializableCallback)

Callepo commented 2 years ago

i dont know a library which could replace it tbh, we could try have it compile ahead of time. but i been trying to do it. maybe im not doing it right or it doesnt work at all

insthync commented 1 year ago

Custom condition issues fixed in 1.80