ROM Hack Save Game Editor help

omarrrio

Well-Known Member
OP
Member
Joined
Feb 18, 2010
Messages
634
Trophies
1
Location
nowhere
XP
517
Country
Macau
hi, i need some help, it's for a save game editor i'm making, for an NDS game, but i don't know these things:

1- how to open the save file in decimal for a special adress
2- how to save the changes on the same .sav file (already open) without opening a dialog window (File browser)

i use: visual studio (especially Visual Basic)

thank you
 

BlueFlame90

Well-Known Member
Member
Joined
Aug 7, 2008
Messages
162
Trophies
1
Age
33
Website
Visit site
XP
212
Country
Gambia, The
I never used vb before but it should be similar to C#.
So here is the answer of you first question:

This is for opening a file to write in it!
Code:
'// First the filestream
Dim fs As FileStream = File.Create("C:\testfile.bin")
Dim utf8 As New UTF8Encoding() '// The encoding (can be change if needed)

'// now open the filestream with binarywriter
Dim bw As New BinaryWriter(fs, utf8)

Next go to a specefic position!
Code:
'// Using the seek() method to go to the position (in this case 500d)
bw.Seek(500, SeekOrigin.Current)


Parameters of Seek(): Seek(offset, origin)

offset
Type: System.Int32
A byte offset relative to origin.

origin
Type: System.IO.SeekOrigin
A field of SeekOrigin indicating the reference point from which the new position is to be obtained.


I hope this helps you, if you have questions feel free to ask.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty65 @ Xdqwerty65:
    in latin america it was announced as BY THE PRODUCERS OF THE SIMPSONS
  • Xdqwerty65 @ Xdqwerty65:
    the commercials were too annoying
  • K3N1 @ K3N1:
    Most isps track you easier because of additional files in torrents people just leave in folders and never delete
  • BigOnYa @ BigOnYa:
    i seen first one of duncanville, I didn't think that funny
  • Xdqwerty65 @ Xdqwerty65:
    thats why i prefer streaming
  • Xdqwerty65 @ Xdqwerty65:
    or downloading the mp4 files
  • Xdqwerty65 @ Xdqwerty65:
    with something like idm
  • K3N1 @ K3N1:
    Stremio doesn't download anything onto your drives it's just streaming
  • Xdqwerty65 @ Xdqwerty65:
    im gonna be honest
  • Xdqwerty65 @ Xdqwerty65:
    i will not use it bc i dont know the passwords of my streaming accounts
  • Xdqwerty65 @ Xdqwerty65:
    cuz i have netflix but i dont use it and my uncle is the one with the star+ account
  • Xdqwerty65 @ Xdqwerty65:
    and he has disney+ too
  • Xdqwerty65 @ Xdqwerty65:
    dunno why the Fox stuff isnt in disney+ latam
  • BigOnYa @ BigOnYa:
    cause fox has its own "Fox+" streaming service you pay for
  • Xdqwerty65 @ Xdqwerty65:
    oh yea
  • Xdqwerty65 @ Xdqwerty65:
    i forgot
  • Xdqwerty65 @ Xdqwerty65:
    speaking of fox
  • Xdqwerty65 @ Xdqwerty65:
    dunno why people say the simpsons characters were flanderized and changed for the worse
  • Xdqwerty65 @ Xdqwerty65:
    i think they have always been the same
  • Xdqwerty65 @ Xdqwerty65:
    not even being exagerated
  • BigOnYa @ BigOnYa:
    "Bob's Burgers" is ok but I cringe everytime I hear that Mothers voice. Its horrible
  • Xdqwerty65 @ Xdqwerty65:
    I heard the latam dub is worse
    +1
  • Xdqwerty65 @ Xdqwerty65:
    and i love futurama
    +1
  • Xdqwerty65 @ Xdqwerty65:
    hello
    Xdqwerty65 @ Xdqwerty65: hello