PDA

View Full Version : problem when unprotecting UI.dll


Cherry92
11th Jul 2012, 02:21 AM
Unprotect script didn't work for me, and I don't know why, but since I only need "Sims3.UI.ObjectPicker" to be unprotected so I can do it myself (by hands). But it's not efficient and not suitable for a lazy person like me....
And with the most recent patch and I probably have to do it again....... :faceslap:

When I run unprotect script with UI.dll, the output dll is bugged and I cannot use it in visual studio...um..
I don't know how to explain this... :rolleyes:
I know that we usually don't need UI.dll to be unprotected, I only need this class in my mod, so it's important to me...
It's not about making event public that cause another problem, it's the whole dll couldn't used by visual studio...

Cherry92
11th Jul 2012, 03:20 AM
I've recompiled unprotect script and it works suddenly... but then.. I got this in UI.dll

Error 1 'Sims3.UI.Button' does not contain a definition for 'Click' and no extension
method 'Click' accepting a first argument of type 'Sims3.UI.Button' could be found (are you missing
a using directive or an assembly reference?)


I've check, it made the event private, but if I skip the part that change instance from public back to private, I'll get this, which is another problem.. :rolleyes:

Error 1 Ambiguity between 'Sims3.UI.ObjectPicker.RowSelected' and
'Sims3.UI.ObjectPicker.RowSelected'

MDM
11th Jul 2012, 04:04 AM
The same thing happened to me, I had to run UI.dll through the script like 2-3 times before it came out working.

Try using the UI file I attached in the other topic (http://www.modthesims.info/showthread.php?t=480924) and see if that works. It's from the patch 1.34 though.

The new one of the 1.36 patch worked right away when unprotected, in fact I'm using it a lot in the mod I'm working on.

That's all I can think of...

Cherry92
11th Jul 2012, 04:33 AM
The same thing happened to me, I had to run UI.dll through the script like 2-3 times before it came out working.

Try using the UI file I attached in the other topic (http://www.modthesims.info/showthread.php?t=480924) and see if that works. It's from the patch 1.34 though.

The new one of the 1.36 patch worked right away when unprotected, in fact I'm using it a lot in the mod I'm working on.

That's all I can think of...
Yet, it could be fixed easily by modifying UI.il myself and assembly again...
For 1.34, I have a working version too, and I unprotect ObjectPicker class by hands, but it's ridiculous to do it again...it's better to make the script works, for programmers' laziness.

MDM
11th Jul 2012, 05:14 AM
Yet, it could be fixed easily by modifying UI.il myself and assembly again...
For 1.34, I have a working version too, and I unprotect ObjectPicker class by hands, but it's ridiculous to do it again...it's better to make the script works, for programmers' laziness.

Yeah, that's a solution too, with notepad++ is a breeze to do it but still, it takes longer. As I said, try again, maybe reextract the dll from the package. For compiling it shouldn't harm using the 1.34 one though, I think that one wasn't changed at all, it was the same size, while GameplaySystems and another one I can't remember, were bigger.