- Joined
- Feb 18, 2012
- Messages
- 101
- Reaction score
- 10
I want to simplify the leveling in the game Jade Dynasty.
Using the hex editor I'm looking for the starting address of the table experience "no reborn".
I found him. Lets move on... to code with my comments.
Now I can quickly pump my character.
I hope that helped newcomers.
Using the hex editor I'm looking for the starting address of the table experience "no reborn".
![hex - [C#] Editing binary file on a real example - RaGEZONE Forums hex - [C#] Editing binary file on a real example - RaGEZONE Forums](https://forum.ragezone.com/data/attachments/100/100151-2edd634338944d40863e538b7d671a0b.jpg?hash=nr9L1UibCJ)
I found him. Lets move on... to code with my comments.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace чтение
{
class Program
{
static void Main(string[] args)
{
double[] levels = new double[150]; //Create an array of double (150 lvl - maximum)
string filename = @"G:\Games\Jade Dynasty\element\data\elements.data"; //path to file
BinaryReader binr = new BinaryReader(File.OpenRead(filename), Encoding.Default); //create reader
binr.BaseStream.Seek(18893719, SeekOrigin.Begin); //Move to your address
for (int i = 0; i < levels.Length; i++) // Until the end of the array elements
{
levels[i] = binr.ReadDouble(); // Read double
levels[i] =levels[i]/5; // Editing values
}
binr.Close(); // Reading completed
FileStream fs=new FileStream(filename, FileMode.Open,FileAccess.ReadWrite); //Create new filestream
BinaryWriter bw = new BinaryWriter(fs, Encoding.Default); //Create new binarywriter
bw.BaseStream.Seek(18893719, SeekOrigin.Begin); //Move to your address
for (int i = 0; i < levels.Length; i++) // Until the end of the array elements
{
bw.Write(levels[i]); //Write double
Console.WriteLine("Written "+i+" value."); //info
}
Console.WriteLine("Done!"); //info
}
}
}
![hex - [C#] Editing binary file on a real example - RaGEZONE Forums hex - [C#] Editing binary file on a real example - RaGEZONE Forums](https://forum.ragezone.com/data/attachments/100/100170-38a2ff7b6d32129544fa6ae63c749536.jpg?hash=01YLPTNBd-)
I hope that helped newcomers.