I am only a beginner at this, i hope this lil app will be a good practice for me.
The app would look something like this (nothing fancy)
I just quickly made this in MS visual studio 08 - pro, but the problem is obviuosly in coding it.
Let my start-off by saying i have no clue on how actually this gamesave-editing should work, tho i do have a guess other apps like this change the hex value at a certain address to a wanted-one is that about right ?
I've found a very similar application to what i want to achieve - exept for a dif game (prototype)
Where Dakote Provided a code for it
Imports System.IO Imports System.Text Public Class Form1 Public fileName Private Sub btnOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click Dim ofd As New OpenFileDialog If ofd.ShowDialog() = DialogResult.OK Then fileName = ofd.FileName Dim fs As New FileStream(ofd.FileName, FileMode.Open) Dim br As New BinaryReader(fs) Dim length As Long = fs.Length br.BaseStream.Position = &H666 'HeX Offset Dim EP As Byte() = br.ReadBytes(666) 'lengh of EP allowed txtEP.Text = ASCIIEncoding.ASCII.GetString(EP) End If End Sub Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim bw As New BinaryWriter(New FileStream(fileName, FileMode.Open)) bw.BaseStream.Position = &H666 'EP Offset Dim EP As Byte() = ASCIIEncoding.ASCII.GetBytes(txtEP.Text) bw.Write(EP) End Sub End Class
And i was wondering if i could modify this so that it would work for me. Could any one highlight to what i should be paying attention?
Sorry for noob'ish questions - im new to programing and this forum
P.s Please excuse my english grammar - it isn't my first lang.
P.p.s Manual hex editing for this game works i allready tested it out.