[VB]Starting Example Tool

Iamcoolz Apr 17, 2012

  1. Iamcoolz

    Iamcoolz Forum Administrator Staff Member XPG Administrator
    0/47

    Joined:
    Mar 30, 2012
    Messages:
    1,233
    Likes Received:
    509
    Trophy Points:
    205
    Gender:
    Male
    Location:
    XPG
    Console:
    Xbox One
    Basically, what this is? It is a starting point for people who want to make their own mod tool. But it does the following..
    • Opens files
    • Saves files
    • Has information message box when clicking the 'about' button.
    Picture of the tool:
    [​IMG]

    [​IMG]

    Explanation of the code:
    Open Button:
    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    		Dim Open As New OpenFileDialog
    		Open.Filter = "Gamesave (*.*)|*.*"
    		Open.Title = "Open Ze Gamesave"
    		If Open.ShowDialog = Windows.Forms.DialogResult.OK Then
    			FilePath = Open.FileName
    			ReadFile(FilePath)
    		Else
    			Return
    		End If
    	End Sub
    Open.Filter = "Gamesave (*.*)|*.*" - Allows them to open a file with the .gamesave extension or any other extensions, except EXE and so on.

    Open.Title = "Open Ze Gamesave" - This is the title of the window that is launched when you click open.

    Reader Position:
    Code:
    Public Sub ReadFile(ByVal FilePath As String)
    		Dim Reader As New PackageIO.Reader(FilePath, PackageIO.Endian.Big)
    		Reader.Position = &HD032
    		NumericUpDown1.Text = Reader.ReadInt32
    	End Sub
    Reader.Position = &HD032 - Reads the hex offset of D032

    Writer Position:
    Code:
    Public Sub WriteFile(ByVal FilePath As String)
    		Dim Writer As New PackageIO.Writer(FilePath, PackageIO.Endian.Big)
    		Writer.Position = &HD032
    		Writer.WriteInt32((NumericUpDown1.Text))
    	End Sub
    Writer.Position = &HD032 - Writes what you input in the numericupdown bar into that specific hex offset of D032

    Save Button:
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Try
    WriteFile(FilePath)
    MsgBox(("File is now saved. *Rehash and Resign it now*"))
    ReadFile(FilePath)
    Dim Reader As New PackageIO.Reader(FilePath, PackageIO.Endian.Big)
    Reader.Position = &H430
    NumericUpDown1.Text = Reader.ReadInt32
    Catch ex As Exception
    MsgBox("Error, while writing the file. Try again.", MsgBoxStyle.Critical, "")
    End Try
    End Sub

    MsgBox("Error, while writing the file. Try again.", MsgBoxStyle.Critical, "") - In case of an error, this is the message it will put out.

    MsgBox(("File is now saved. *Rehash and Resign it now")) - This is the message it will put out if it was a success and no issues occured.

    About Button:
    Code:
    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    		MsgBox("Made by Iamcoolz" & vbCrLf & "http://www.xpgamesaves.com")
    	End Sub
    MsgBox("Made by Iamcoolz" & vbCrLf & "http://www.xpgamesaves.com") - Message displayed when clicking the about button.


    Things highled in red are the places where you can edit

    Now again, this is just a starter position for those who want to honestly make their own mod tool. Feel free to edit it around and everything.

    Virus Scan:
    http://virusscan.jotti.org/en/scanresult/4c10779a199124c6bab30ab9711cb252df2296d1

    Download:
    http://adf.ly/7VE5y

    Rar Password:
    xpgamesaves.com

    Enjoy XPG'ers<3
    -Iamcoolz
     
    • Like Like x 4
  2. tE

    tEcHN0 Guest

    Good work Modz! I might try this, just gotta find a game :)
     
  3. Iamcoolz

    Iamcoolz Forum Administrator Staff Member XPG Administrator
    205/282

    Joined:
    Mar 30, 2012
    Messages:
    1,233
    Likes Received:
    509
    Trophy Points:
    205
    Gender:
    Male
    Location:
    XPG
    Console:
    Xbox One
    Modz o_O? lol
     
  4. Bu

    Bullet Guest

    Nice clean tutorial, thanks.
     
  5. AD

    ADDZ Guest

    Very nice, thanks for the share coolz
     
  6. ccaveman84

    ccaveman84 XPG Mod Freak XPG Developer
    0/47

    Joined:
    Sep 18, 2011
    Messages:
    4,308
    Likes Received:
    1,084
    Trophy Points:
    0
    Gender:
    Male
    Location:
    UK
    Console:
    Xbox
    Awesome tutorial mate this would have been so helpful to me about a week ago as I was just starting out with editors myself
    I am sue this will help many people :p
    +Rep

    Also I have moved this to the VB section
    as we now have a place for tutorials and such like this ;)
     
  7. Warmonger

    Warmonger Newbie BANNED
    0/47

    Joined:
    Jun 19, 2012
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    0
    Console:
    Other
  8. Iamcoolz

    Iamcoolz Forum Administrator Staff Member XPG Administrator
    205/282

    Joined:
    Mar 30, 2012
    Messages:
    1,233
    Likes Received:
    509
    Trophy Points:
    205
    Gender:
    Male
    Location:
    XPG
    Console:
    Xbox One
    No one is impressed, scurry along to a different forum to get banned from.
     
  9. Warmonger

    Warmonger Newbie BANNED
    0/47

    Joined:
    Jun 19, 2012
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    0
    Console:
    Other
    I may just stay, and create some fine tools for these good people.
     
  10. BinaryX

    BinaryX Lifetime Gold XPG Developer Lifetime Gold
    0/47

    Joined:
    May 21, 2011
    Messages:
    976
    Likes Received:
    257
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Europe
    Console:
    Xbox
    Get lost dude, haven't you done enough already for psko.
     
  11. Wallsch

    Wallsch Gold Member Gold Subscriber Lifetime Gold
    185/188

    Joined:
    Oct 3, 2011
    Messages:
    4,651
    Likes Received:
    527
    Trophy Points:
    185
    Gender:
    Male
    Location:
    Wausau, Wi
    Console:
    Computer
    Why grave dig a year old topic?
     
  12. Iamcoolz

    Iamcoolz Forum Administrator Staff Member XPG Administrator
    205/282

    Joined:
    Mar 30, 2012
    Messages:
    1,233
    Likes Received:
    509
    Trophy Points:
    205
    Gender:
    Male
    Location:
    XPG
    Console:
    Xbox One
    This is what he does, follows me around to forums, finds me on the topic list and then replies with "OMG I AM SO PRO". Welcome to the life of Warmonger.
     
  13. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    People aren't going to learn anything by looking at Visual Basic codes.
     
  14. BinaryX

    BinaryX Lifetime Gold XPG Developer Lifetime Gold
    0/47

    Joined:
    May 21, 2011
    Messages:
    976
    Likes Received:
    257
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Europe
    Console:
    Xbox
    Some do, depends on their level of common sense so to speak.
     
  15. XPGProgrammer

    XPGProgrammer Newbie
    0/47

    Joined:
    Jan 2, 2013
    Messages:
    802
    Likes Received:
    214
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Canada
    Console:
    Xbox
    If I was someone who is starting, I would start with C++ or C#. Much better.
     
  16. Wallsch

    Wallsch Gold Member Gold Subscriber Lifetime Gold
    185/188

    Joined:
    Oct 3, 2011
    Messages:
    4,651
    Likes Received:
    527
    Trophy Points:
    185
    Gender:
    Male
    Location:
    Wausau, Wi
    Console:
    Computer
    Agreed. I think C# is the best atm. I also like Java.
     
  17. BinaryX

    BinaryX Lifetime Gold XPG Developer Lifetime Gold
    0/47

    Joined:
    May 21, 2011
    Messages:
    976
    Likes Received:
    257
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Europe
    Console:
    Xbox
    C++ is great but challenging to master, C# & Java are similar and alot easier too.
     
  18. Warmonger

    Warmonger Newbie BANNED
    0/47

    Joined:
    Jun 19, 2012
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    0
    Console:
    Other
    Yea, welcome to the life of Iamcoolz. Copy and paste a few lines of code, gives a very brief (horrible) explanation of what it does. And expects everyone to bow down to him like he's some programming god. Notice how you do it here, but not on other sites *cough cough*.

    Indeed, here's a snippet of code now go learn how to use it. Nothing more than what I would expect from Iamcoolz.
     

Share This Page

Close