Post: How to make a Modding tool for ANY game!
11-13-2013, 06:55 AM #1
Ace
Former Staff Member
(adsbygoogle = window.adsbygoogle || []).push({});
Since Enstone just released Cex/Dex CCAPI . There will be a lot of people making tools for Ghost, MW3 , ect.


STEP BY STEP Tutorial!
This tool is for Dead Rising 2.



Step 1.
Open Visual Studio and create a new form.



Step 2.
Add Package IO as a reference
You must login or register to view this content.



Step 3.
Add 2 labels, 2 Textboxes, And 2 Buttons
Make the text of label 1: Current Level
Make the text of label 2: Mod Level to
Make the text of button 1: Open
Make the text of button 2: Save
Now your form should look like this
You must login or register to view this content.
Ignore the dotnetbar Enzo

(For Connecting / Attaching just put " Connect & Attatch)



Step 4.
Import Package IO to your form.
-----
View More View even More View Less Select All View Plain
Imports Package IO




Step 5.
Now lets DIM some stuff.
------
View More View even More View Less Select All View Plain
Dim X As String
Dim projectdata As Object




Step 6.
Lets add the read function for Package IO
You must login or register to view this content.
View More View even More View Less Select All View Plain
Public Sub ReadFile(ByVal X As String)
Dim reader As New PackageIO.Reader(X, Endian.Big, 0)
reader.Position = &HEEC2
Me.TextBoxX1.Text = (reader.ReadInt32)
End Sub
*Notes* When reading or writing to an offset always put &H and then the offset.
In this case our offset is EEC2



Step 7.
Lets code the Open button
You must login or register to view this content.
View More View even More View Less Select All View Plain
Dim open As New OpenFileDialog
open.Filter = "All Files (*.*)|*.*"
If open.ShowDialog = Windows.Forms.DialogResult.OK Then
Try
X = open.FileName
ReadFile(X)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
End Try
End If




Step 8.
Now lets code the write function for Package IO
You must login or register to view this content.
View More View even More View Less Select All View Plain
Public Sub WriteFile(ByVal X As String)
Dim writer As New PackageIO.Writer(X, Endian.Big, 0)
writer.Position = &HEEC2
writer.WriteInt32(Me.TextBoxX2.Text)
End Sub




Step 9.
Now lets code the save button.
-----
View More View even More View Less Select All View Plain
Try
Me.ReadFile(Me.X)
Me.WriteFile(Me.X)
Interaction.MsgBox("File Saved!", MsgBoxStyle.Information, "")
Catch ex As Exception
projectdata.SetProjectError(ex)
Dim exception As Exception = ex
Interaction.MsgBox("Error", MsgBoxStyle.Critical, "")
projectdata.ClearProjectError()
End Try
End Sub
>You must login or register to view this content.



Step 10.
Make a nice GUI and test it. Smile all done! (This is the easiest way to make a tool, easy example to follow!)

Credits: Sega, FMT Enstone , an me Drack
(adsbygoogle = window.adsbygoogle || []).push({});

The following 13 users say thank you to Ace for this useful post:

ϟ c0rruption ϟ, BaSs_HaXoR, uome68, Harry, ImSooCool, Bichote, TheMightyMoJo, Mango_Knife, ModdersOnly-, Pseudo_Soldier, RealTimeEditz, snipper9, Leal
11-13-2013, 06:58 AM #2
Leal
Pepe #1 Fan
Originally posted by Tazory View Post
Since Enstone just released Cex/Dex CCAPI . There will be a lot of people making tools for Ghost, MW3 , ect.


STEP BY STEP Tutorial!
This tool is for Dead Rising 2.



Step 1.
Open Visual Studio and create a new form.



Step 2.
Add Package IO as a reference
You must login or register to view this content.



Step 3.
Add 2 labels, 2 Textboxes, And 2 Buttons
Make the text of label 1: Current Level
Make the text of label 2: Mod Level to
Make the text of button 1: Open
Make the text of button 2: Save
Now your form should look like this
You must login or register to view this content.
Ignore the dotnetbar Enzo

(For Connecting / Attaching just put " Connect & Attatch)



Step 4.
Import Package IO to your form.
-----
View More View even More View Less Select All View Plain
Imports Package IO




Step 5.
Now lets DIM some stuff.
------
View More View even More View Less Select All View Plain
Dim X As String
Dim projectdata As Object




Step 6.
Lets add the read function for Package IO
You must login or register to view this content.
View More View even More View Less Select All View Plain
Public Sub ReadFile(ByVal X As String)
Dim reader As New PackageIO.Reader(X, Endian.Big, 0)
reader.Position = &HEEC2
Me.TextBoxX1.Text = (reader.ReadInt32)
End Sub
*Notes* When reading or writing to an offset always put &H and then the offset.
In this case our offset is EEC2



Step 7.
Lets code the Open button
You must login or register to view this content.
View More View even More View Less Select All View Plain
Dim open As New OpenFileDialog
open.Filter = "All Files (*.*)|*.*"
If open.ShowDialog = Windows.Forms.DialogResult.OK Then
Try
X = open.FileName
ReadFile(X)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
End Try
End If




Step 8.
Now lets code the write function for Package IO
You must login or register to view this content.
View More View even More View Less Select All View Plain
Public Sub WriteFile(ByVal X As String)
Dim writer As New PackageIO.Writer(X, Endian.Big, 0)
writer.Position = &HEEC2
writer.WriteInt32(Me.TextBoxX2.Text)
End Sub




Step 9.
Now lets code the save button.
-----
View More View even More View Less Select All View Plain
Try
Me.ReadFile(Me.X)
Me.WriteFile(Me.X)
Interaction.MsgBox("File Saved!", MsgBoxStyle.Information, "")
Catch ex As Exception
projectdata.SetProjectError(ex)
Dim exception As Exception = ex
Interaction.MsgBox("Error", MsgBoxStyle.Critical, "")
projectdata.ClearProjectError()
End Try
End Sub
>You must login or register to view this content.



Step 10.
Make a nice GUI and test it. Smile all done! (This is the easiest way to make a tool, easy example to follow!)

Credits: Sega, FMT Enstone , an me Drack


i dont have a cfw :ha!: good work btw :luv:
11-13-2013, 07:00 AM #3
Good Stuff. Good and Easy Tutorial :luv: Keep it up
11-13-2013, 02:22 PM #4
Ace
Former Staff Member
Originally posted by MoJo17017 View Post
Good Stuff. Good and Easy Tutorial :luv: Keep it up


Thank you :wub:
11-13-2013, 02:32 PM #5
PackageIO is ghetto bro... PM me for a good IO that I made specifically for my save editors Winky Winky
11-13-2013, 02:49 PM #6
JATOCH
Bounty hunter
How would you use this i didnt see connect and attach on CCAPI yet,
And for open and save explain it to me, This looks more like its a tutorial for a save editor
11-13-2013, 02:58 PM #7
Bichote
Former Staff
Thanks for sharing Happy
11-13-2013, 03:06 PM #8
Ace
Former Staff Member
Originally posted by JATOCH View Post
How would you use this i didnt see connect and attach on CCAPI yet,
And for open and save explain it to me, This looks more like its a tutorial for a save editor


If you need help just message meSmile
11-13-2013, 05:02 PM #9
Harry
Former Staff
Good tutorial, thanks Smile
11-14-2013, 06:13 PM #10
flynhigh09
Little One
Nice TUT but I use C#, can u make one with that be cool just some commands are different I believe.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo