Huge thanks to dazzabo who figured this out!! :) For those wondering how it can be fixed: I simply used dnSpy, and changed every instance of ("Money" to ("HUD/Money" Basically just add HUD/ inside the quotes, just before Money.
And I am sorry but I cannot upload the .dll without express permission from the mod author.
@everyone I recommend downloading dnSpy and doing the fix yourselves, nothing more I can do to help :(
P.S. I am clearly stating that I didnt figure this out myself. Another user did, and I am giving them full credit for this.
Anyone got any idea how to do this? Messed with this program all night and cannot figure it out. Can anyone email the fixed file please? Its ridiculous
Thanks for the dnspy tip it worked after some trial and error. If it helps anyone else I had to change the drop down menu on the top from 'C+' to 'IL' then starting at UI_Mover @02000002 i right-clicked the word "Money" and selected 'Edit IL Instructions' then i was able to edit and replace. Thirst is also misspelled.
First of all, I do not have explicit permission from the mod author to upload their file, and you can see why here, by clicking "Permissions and credits" in the description of this mod file: Permissions and credits:
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Thus, as you can understand, there is no way that I will violate this, I do not have permission, so dont even bother asking again. Plenty of others have asked me about this, some in private messages as well.
However, the above permissions do not prohibit me from helping others modify this file for personal use. In terms of personal use, we are allowed to do anything we want with other people's mods, as long as it is in private and for personal use only. Please keep that in mind. Respect the mod author and their work, do not upload anything or make anything public without their express consent and permission.
That being said, it doesnt mean I dont want to help others. I do.
So here is what you need to do, to fix UI Mover, instructions below.
1. Download dnSpy, it is free software.
2. Once you open dnSpy, open UI_Mover.dll with it, check that it loaded and is in the list to the left.
3. UI_Mover.dll, being a mod of My Summer Car, has certain dependencies, basically other .dll files are required, because it references them, and dnSpy needs to have those loaded as well, so that it knows what to do with the loaded UI_Mover.dll that you opened.
4. I do not recall all of the dependencies, but I will try to tell you which ones are these, but I might be forgetting something right now, so please excuse me. Loaded dependencies should be:
Assembly-CSharp.dll
UnityEngine.dll
PlayMaker.dll
mscorlib.dll
MSCLoader.dll
cInput.dll
UnityEngine.UI.dll
Now, all of these .dll files should be loaded from the game only, not from other sources. The path to those files is "....\My Summer Car\mysummercar_Data\Managed\UnityEngine.dll" All those other .dll files should be in there. Load them all the same way you loaded UI_Mover.dll, by simply pressing File > Open within dnSpy.
5. Once all the above is done, now you need to actually begin fixing the mod. The goal is simple: search for every instance of "Money" and you change it to "HUD/Money". (Simple goal, though not so easy to actually do, but dont worry, if you follow this little guide, it will be easy for you.) You need to find and edit Adjustment, GetInitialValues and RestoreInitialValues. Use my screenshots to see where they are. Once you have located them, go to step 6.
6. dnSpy will probably give you grief if you try to use Edit Method (C#) or any similar options involving C#. I do not know why this happens exactly, I am not a programmer, someone here probably does. But in any case, to edit the above values (Adjustment, GetInitialValues and RestoreInitialValues), you need to use "Edit IL Instructions". This will actually work. See my screenshot for reference.
7. Once you click "Edit IL Instructions", you need to actually change "Money" to "HUD/Money". Basically you just add "HUD/" just before the "Money" part, but inside the quotes.
8. Once this is done for all 3 values (Adjustment, GetInitialValues and RestoreInitialValues), you need to save the changes. Simply click File > Save Module.
And voila, you're done. UI Mover should now be fixed. Copy the fixed .dll over to your mods folder, and you're all done.
P.S. Remember this is for your own personal use only. DO NOT upload this modified file anywhere. DO NOT SHARE. You dont have permission from the mod author to upload/share this file. P.P.S. Do NOT ask me for the modified file. You're wasting your time.
Great mod, never understood why the HUD was never fixed in the base game, dev must still live in the 90's with his 4:3 VGA monitor. Only problem that I'm having is that HUD element added by the health mod isn't affected, so it ends up staying where the HUD used to be while the rest of the HUD has moved, any chance you'd be able to add some compatibility?
13 comments
https://ibb.co/3CfcgpS
Huge thanks to dazzabo who figured this out!! :)
For those wondering how it can be fixed:
I simply used dnSpy, and changed every instance of ("Money" to ("HUD/Money"
Basically just add HUD/ inside the quotes, just before Money.
And I am sorry but I cannot upload the .dll without express permission from the mod author.
@everyone
I recommend downloading dnSpy and doing the fix yourselves, nothing more I can do to help :(
P.S. I am clearly stating that I didnt figure this out myself. Another user did, and I am giving them full credit for this.
Its ridiculous
First of all, I do not have explicit permission from the mod author to upload their file, and you can see why here, by clicking "Permissions and credits" in the description of this mod file:
Permissions and credits:
Thus, as you can understand, there is no way that I will violate this, I do not have permission, so dont even bother asking again. Plenty of others have asked me about this, some in private messages as well.
However, the above permissions do not prohibit me from helping others modify this file for personal use.
In terms of personal use, we are allowed to do anything we want with other people's mods, as long as it is in private and for personal use only. Please keep that in mind.
Respect the mod author and their work, do not upload anything or make anything public without their express consent and permission.
That being said, it doesnt mean I dont want to help others. I do.
So here is what you need to do, to fix UI Mover, instructions below.
1. Download dnSpy, it is free software.
2. Once you open dnSpy, open UI_Mover.dll with it, check that it loaded and is in the list to the left.
3. UI_Mover.dll, being a mod of My Summer Car, has certain dependencies, basically other .dll files are required, because it references them, and dnSpy needs to have those loaded as well, so that it knows what to do with the loaded UI_Mover.dll that you opened.
4. I do not recall all of the dependencies, but I will try to tell you which ones are these, but I might be forgetting something right now, so please excuse me. Loaded dependencies should be:
- Assembly-CSharp.dll
- UnityEngine.dll
- PlayMaker.dll
- mscorlib.dll
- MSCLoader.dll
- cInput.dll
- UnityEngine.UI.dll
Now, all of these .dll files should be loaded from the game only, not from other sources. The path to those files is "....\My Summer Car\mysummercar_Data\Managed\UnityEngine.dll"All those other .dll files should be in there. Load them all the same way you loaded UI_Mover.dll, by simply pressing File > Open within dnSpy.
5. Once all the above is done, now you need to actually begin fixing the mod. The goal is simple: search for every instance of "Money" and you change it to "HUD/Money".
(Simple goal, though not so easy to actually do, but dont worry, if you follow this little guide, it will be easy for you.)
You need to find and edit Adjustment, GetInitialValues and RestoreInitialValues.
Use my screenshots to see where they are. Once you have located them, go to step 6.
6. dnSpy will probably give you grief if you try to use Edit Method (C#) or any similar options involving C#. I do not know why this happens exactly, I am not a programmer, someone here probably does.
But in any case, to edit the above values (Adjustment, GetInitialValues and RestoreInitialValues), you need to use "Edit IL Instructions".
This will actually work. See my screenshot for reference.
7. Once you click "Edit IL Instructions", you need to actually change "Money" to "HUD/Money". Basically you just add "HUD/" just before the "Money" part, but inside the quotes.
8. Once this is done for all 3 values (Adjustment, GetInitialValues and RestoreInitialValues), you need to save the changes.
Simply click File > Save Module.
And voila, you're done. UI Mover should now be fixed. Copy the fixed .dll over to your mods folder, and you're all done.
P.S. Remember this is for your own personal use only. DO NOT upload this modified file anywhere. DO NOT SHARE. You dont have permission from the mod author to upload/share this file.
P.P.S. Do NOT ask me for the modified file. You're wasting your time.
Love the mod!
Only it doesn't move my Money with the rest.
I have no other mods installed.