Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Its possible to run x64 dll on arm64?

Discussion in 'Scripting' started by alekseeynko, Aug 15, 2022.

Thread Status:
Not open for further replies.
  1. alekseeynko

    alekseeynko

    Joined:
    Mar 26, 2020
    Posts:
    8
    I have a x64 dll and i cant edit source code (I am not the developer of this library) . Possible run this dll on arm64 with unity? Logs from not suitable platform:
    DllNotFoundException: Unable to load DLL 'UnityUWE': The specified module could not be found.
    at UnityUWE.Return123Test () [0x00000] in <00000000000000000000000000000000>:0
    at StartScreen+<Start>d__13.MoveNext () [0x00000] in <00000000000000000000000000000000>:0
    at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0
    (Filename: currently not available on il2cpp Line: -1)
     
  2. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,384
    What is UnityUWE?

    If this is some native library, no, no you can not.

    If this is a .net managed dll (as in it uses CIL internally that is jitted at runtime)... maybe, it depends on the dependencies and target .net version of the dll.
     
  3. alekseeynko

    alekseeynko

    Joined:
    Mar 26, 2020
    Posts:
    8
    unfortunately, this is a native library, this library was made by the developers (game studio) unknown worlds entertainment for the game subnautica. I looked on the internet and found an x64 emulator, box64 can run x64 applications on arm64, but I do not know if it is possible to embed this into the unity project.
     
  4. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,384
    I don't know box64, but there is a chance it sandboxes its emulation from the actual system. Meaning it'll be difficult/not possible to communicate from your game to it.

    With that said... what is this thing? You said it's from the company who made Subnautica... did you rip it out of the install location of Subnautica? Do you have permission to integrate it into your game? What does it do that you need it in your game that couldn't otherwise be done in some alternate manner?
     
  5. alekseeynko

    alekseeynko

    Joined:
    Mar 26, 2020
    Posts:
    8
    I decompiled this game and turned it into a unity project, I'm porting it to android (I didn't ask for permission, but until I get permission, I won't distribute it in any way). This library, as I understand it, is a voxel world generator, without it, important objects are not created on the stage already at the menu stage. And as you can see, this is the "voxel world" (Photo)
     

    Attached Files:

  6. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,003
    I feel like this thread is probably mad illegal all of a sudden.
     
    lordofduct and hippocoder like this.
  7. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Hi, this isn't really the forum or place for reverse engineering. I do not think I will let that sort of thing continue because it's really not game or app development in Unity. It's just reverse engineering, which is against the EULA if I'm not mistaken.

    Please don't post again for this specific topic, or anything illegal.
     
Thread Status:
Not open for further replies.