My first test of CAW

Date Posted: 3rd Jan 2010 at 1:45 PM

Alright, started my journal!

To explain what I'm doing, after I discovered that CAW was written for .Net, I wanted to see if it was possible to mod it. Turns out you can, but the process is slow as the code has been obfusacated. So, I ran it through ildasm.

Then I changed some code, to see if it is indeeed possible, I changed the folowing code:
Code:
    IL_0169:  ldloc.s    V_6
    IL_016b:  call       string WorldBuilderCS.Localization.Strings::get_kCaption_SaveSuccess()
    IL_0170:  call       class [System.Drawing]System.Drawing.Icon [System.Drawing]System.Drawing.SystemIcons::get_Information()
    IL_0175:  newobj     instance void WorldBuilderCS.MessageForm::.ctor(string,
                                                                         string,
                                                                         class [System.Drawing]System.Drawing.Icon)

With:
Code:
	//First Argument: Contents of Form
    IL_0169:  ldstr "You have just saved using PureCAW!"
	//Second Argument: Title of Form
    IL_016b:  call       string WorldBuilderCS.Localization.Strings::get_kCaption_SaveSuccess()
	//Third Argument: Icon of Form
    IL_0170:  call       class [System.Drawing]System.Drawing.Icon [System.Drawing]System.Drawing.SystemIcons::get_Information()
    IL_0175:  newobj     instance void WorldBuilderCS.MessageForm::.ctor(string,
                                                                         string,
                                                                         class [System.Drawing]System.Drawing.Icon)


This change will change the message shown upon a successful save.

Then run the changed code through ilasm to get an exe that can be ran, it will be exactly the same as CAW.exe, except that it will have a different message on save. I suggest you don't overwrite the original CAW.exe!

This proves that it is indeed possible to mod CAW. Stay tuned for more!
Comments 0
Users Viewing This Journal: 0 (0 members and 0 guests)
vB Journal Version 1.5.0 Beta 3
vB Journal Copyright © Anthony Scudese