You will need to use JetBrains dotPeek 1.1 to decompile
Item class. To decompile everything else I used ILSpy.
During compiling fix the errors as follows:
Operator '??' cannot be applied to operands of type 'int' and 'int'
Example:
Change:
Code:
int num61 = num56 ?? -1;
To:
Code:
int num61 = (num56 != null) ? num56 : -1;
Only assignment, call, increment, decrement, and new object expressions can be used as a statement
Comment out the line that the error is on:
Code:
// this.velocity != value2;
Cannot implicitly convert type 'int' to 'short'. An explicit conversion exists (are you missing a cast?)
Example:
Change:
Code:
Main.tile[num3 + 1, num].frameX = num2 + 18;
To:
Code:
Main.tile[num3 + 1, num].frameX = (short)(num2 + 18);
Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?)
Example:
Change:
Code:
color.R = Main.mouseTextColor / 2;
To:
Code:
color.R = (byte)(Main.mouseTextColor / 2);
For error with Steam:
In
Program.cs comment out the following lines as shown (make sure you don't comment out
main.Run();:
Code:
//Steam.Init();
//if (Steam.SteamInit)
//{
main.Run();
//}
//else
//{
// MessageBox.Show("Please launch the game from your Steam client.", "Error");
//}
In Mian.cs comment out
Steam.Kill(); in the
QuitGame function:
Code:
protected void QuitGame()
{
//Steam.Kill();
base.Exit();
}
Last thing is do not forget to copy the files in the Content folder from the game into the Content folder where the project files reside in
<location of your project folder>bin/x86/debug folder. (You may need to first compile the program in order for the folder to be created first before you locate it.