aevitas / unity-patch

Dark theme patch for any version of Unity for Windows, MacOS and Linux.
279 stars 39 forks source link

Error: Could not find the theme offset in the specified executable! #42

Open chbin12 opened 4 years ago

chbin12 commented 4 years ago

MacBook-Pro:$ sudo ./Patcher -e=/Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity --mac -t=dark -v=2019.3 Applying Patch for 2019.3 Opening Unity executable from /Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity... Creating backup... Searching for theme offset... Error: Could not find the theme offset in the specified executable!

aevitas commented 4 years ago

Is this a fresh unity install?

On Sat, 6 Jun 2020, 17:40 chbin12, notifications@github.com wrote:

MacBook-Pro:$ sudo ./Patcher -e=/Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity --mac -t=dark -v=2019.3 Applying Patch for 2019.3 Opening Unity executable from /Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity... Creating backup... Searching for theme offset... Error: Could not find the theme offset in the specified executable!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aevitas/unity-patch/issues/42, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABE7AVXQLERTKWZ2QKTJGTRVJPPTANCNFSM4NWDKEFQ .

chbin12 commented 4 years ago

Is this a fresh unity install? not fresh

maximilianmaihoefner commented 4 years ago

@chbin12 Could you please run the following commands and provide the Output: shasum /Applications/Unity/Hub/Editor/2019.3.14f1/Unity/Unity.app/Contents/MacOS/Unity Should Output: cea4972a61eda7b5dd4624924893f7286f3664ea /Applications/Unity/Hub/Editor/2019.3.14f1/Unity/Unity.app/Contents/MacOS/Unity

ls -la /Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS Should Output something like: -rwxr-xr-x 1 xxx xxx 165325520 Jun 7 12:47 Unity

maximilianmaihoefner commented 4 years ago

Alternatively you could also try what I described here: https://github.com/aevitas/unity-patch/issues/39#issuecomment-636181118 And see if that works out for you.

chbin12 commented 4 years ago

@maximilianmaihoefner Thanks for your reply.

% shasum /Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity 505edc2edc9646d53b5c803f33cbd684cdcbdc5d /Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity@MacBook-Pro ~ % ls -all /Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity -rwxrwxrwx 1 xxxxx xxxxx 165417840 5 30 16:17 /Applications/Unity/Hub/Editor/2019.3.14f1/Unity.app/Contents/MacOS/Unity chenbin@MacBook-Pro ~ % cd Documents/working/tools/untiyPatcher/osx-64

and I tried replace hex use your commant in #39 #22, Unity change to dark success, but exe patcher also get the Error: Could not find the theme offset in the specified executable!

maximilianmaihoefner commented 4 years ago

@chbin12 This is so confusing... Why do you also get a different Unity Executable?! Would you mind answering some more questions, so I might be able to figure this out? Do you also have your Unity Hub language set to Traditional Chinese? Did you install Unity via Hub or via a different method? Is there anything special you did when installing Unity or anything when installing something Unity related?

Line-r commented 4 years ago

Also getting the same error on a fresh install, (2019.3.15f1, Linux)

Edit: Tested on 2018 LTS too, same issue.

chbin12 commented 4 years ago

@chbin12 This is so confusing... Why do you also get a different Unity Executable?! Would you mind answering some more questions, so I might be able to figure this out? Do you also have your Unity Hub language set to Traditional Chinese? Did you install Unity via Hub or via a different method? Is there anything special you did when installing Unity or anything when installing something Unity related?

I install unity var Hub from https://unity.cn which is unity's chinese website.

maximilianmaihoefner commented 4 years ago

@Line-r The Linux support is currently only available in the master, there is no release including the changes just yet. You will either have to wait for @aevitas to create a new release or checkout the Repo and compile it yourself.

@chbin12 Apparently the Unity Team is releasing different executables to the Chinese Market. I can't use my unity.com Account to Login to the Chinese Site and can therefor not download the Chinese executables. Which makes supporting them quite difficult. I will think about how we could handle this and talk to @aevitas if we want to pick up the additional work it would be to patch two different executables for all releases and Operating Systems.

Dvrkstvr commented 4 years ago

I got the same issue. Clean install of Unity 2020.1.0b16 and UnityHub 2.3.2

O:\Desktop\win-x64>Patcher.exe --e=O:\Documents\Unity\Editors\2020.1.0b16\Editor\Unity.exe --t=dark --v=2020.1 Applying Patch for 2020.1 Opening Unity executable from O:\Documents\Unity\Editors\2020.1.0b16\Editor\Unity.exe... Creating backup... Backup 'Unity.exe.bak' created. Searching for theme offset... Error: Could not find the theme offset in the specified executable!

junwatu commented 4 years ago

I have the same issue with @Dvrkstvr

Unity 2020.1.0f1 Unity Hub 2.4.0-beta.2 Windows 10