Creating an NRaas project Conversion App

Talk nerdy to us here.
Post Reply
User avatar
Sydserious
Reactions:
Posts: 147
Joined: May 1st, 2013, 6:00 pm

Conversion App

Post by Sydserious » January 17th, 2014, 1:03 pm

There is no hurry on this but when things calm down somewhat could someone share a little of their knowledge about the conversion app? What is it, why is it there and when it should be used? I think I'm gaining on my understanding of the suite but completely baffled by this.

Thanks in advance.

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 17th, 2014, 3:52 pm

Basically it does what Peter's Unprotector does, except it makes use of the IL files, so you have to first disassemble the DLL with ildasm, and it has different stages, depending on which DLL you are unprotecting.

So far, I know you use Convert first and then apply one or more stages. The MainForm class inside the project will tell you what each stage is unprotecting. That's all we have so far, I don't know if Chain figured out some more about it, but I guess it's just trial and error and see what level of unprotection a DLL requires in order to compile the mod assembly properly :)

User avatar
Sydserious
Reactions:
Posts: 147
Joined: May 1st, 2013, 6:00 pm

Post by Sydserious » January 17th, 2014, 4:03 pm

Thank you JunJay. As it relates to Peter's program - does that not work for NRaas mods? I guess I'm confused as to why we would need the conversion part if what Peter's program does is basically the same...I think. I do understand wanting to replicate exactly what Twallan did but if both processes result in the same end result, why would we need the conversion app.?

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 17th, 2014, 4:26 pm

Because, as I explained, it allows to apply selective unprotection to DLLs. While Peter's completely unprotects a DLL, the Conversion app allows you to unprotect only specific parts. Some of Twallan's mods require that, which is why he created it in the first place. You would encounter a similar problem with my mods, for example, cos I manually unprotect UI.dll. If you use Peter's and try to compile one of my mods, you'll get compile errors. Same here with Twallan's mods.

User avatar
Sydserious
Reactions:
Posts: 147
Joined: May 1st, 2013, 6:00 pm

Post by Sydserious » January 17th, 2014, 6:07 pm

Oh thank you JunJay....it finally sunk in : )

User avatar
JunJayMdM
Reactions:
Posts: 262
Joined: April 2nd, 2012, 6:00 pm

Post by JunJayMdM » January 17th, 2014, 6:16 pm

You're welcome, I'm sure in time we'll be able to fully understand how Twallan used it, still too early now :)

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7619
Joined: December 30th, 2011, 6:00 pm
Answers: 82
Contact:

Post by Chain_Reaction » January 18th, 2014, 12:28 am

Yeah I figured out the conversion program. So much for thinking it was for patching ErrorTrap. I figured it out quickly when the unprotector program failed and I needed a working set of DLL's quickly. If you use the convert button it applies all the steps at once. Unfortunately even that doesn't prevent you from needing to make manual edits to SimIFace and UI. The only reason I haven't released the rest of the mods patched is UI is being a dweeb and MC depends heavily on it for the CAS stuff.You can't unprotect the entire thing because certain events are declared both public and private in there and you end up with a mess. So I'm having to manually figure out which these mods need unprotected.

Post Reply