[VB]Starting Example Tool

Iamcoolz Apr 17, 2012

  1. Iamcoolz

    Iamcoolz Global Mod Staff Member XPG Moderator
    0/47

    Joined:
    Mar 30, 2012
    Messages:
    821
    Likes Received:
    305
    Trophy Points:
    145
    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. tEcHN0

    tEcHN0 Gamer Lifetime Gold TeamXPG
    135/188

    Joined:
    Dec 23, 2011
    Messages:
    1,748
    Likes Received:
    727
    Trophy Points:
    135
    Gender:
    Male
    Console:
    Xbox
    Good work Modz! I might try this, just gotta find a game :)
     
  3. Iamcoolz

    Iamcoolz Global Mod Staff Member XPG Moderator
    145/188

    Joined:
    Mar 30, 2012
    Messages:
    821
    Likes Received:
    305
    Trophy Points:
    145
    Gender:
    Male
    Location:
    XPG
    Console:
    Xbox One
    Modz o_O? lol
     
  4. Bullet

    Bullet XPG Original Founder EST 2000 XPG Administrator XPG Founder
    550/564

    Joined:
    Jul 16, 2009
    Messages:
    20,982
    Likes Received:
    7,961
    Trophy Points:
    550
    Gender:
    Male
    Console:
    Xbox
    Nice clean tutorial, thanks.
     
  5. ADDZ

    ADDZ ( * Y * ) Staff Member XPG Founder
    565/752

    Joined:
    Dec 12, 2010
    Messages:
    15,931
    Likes Received:
    6,686
    Trophy Points:
    565
    Location:
    Behind you sniffing your hair!
    Console:
    Playstation 4
    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,078
    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 Global Mod Staff Member XPG Moderator
    145/188

    Joined:
    Mar 30, 2012
    Messages:
    821
    Likes Received:
    305
    Trophy Points:
    145
    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:
    978
    Likes Received:
    255
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Europe
    Console:
    Xbox
    Get lost dude, haven't you done enough already for psko.
     
  11. Wallsch

    Wallsch Lifetime Gold Lifetime Gold
    185/188

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

    Iamcoolz Global Mod Staff Member XPG Moderator
    145/188

    Joined:
    Mar 30, 2012
    Messages:
    821
    Likes Received:
    305
    Trophy Points:
    145
    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:
    978
    Likes Received:
    255
    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 Lifetime Gold Lifetime Gold
    185/188

    Joined:
    Oct 3, 2011
    Messages:
    4,647
    Likes Received:
    528
    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:
    978
    Likes Received:
    255
    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