Post: (C#) tutorial how to make a dataGridView ( most easy way possible!)
04-06-2014, 04:01 AM #1
PS3|ModdingTeam
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); So i thought i would do this cause i know a lot of people want this probably but have no clue how to do this so yeaTustin

Lets start add this anywhere:

public string GetName(int client)
{
byte[] buffer = new byte[20];
PS3.GetMemory(///name address here/// + 0X3980 * (uint)client, buffer);
string names = Encoding.ASCII.GetString(buffer);
names = names.Replace("\0", "");
return names;
}

Next you need to make your get name (or what ever you named it) button and add this into it and a timer (its been a while i dont remeber if its also needed in a timer i do just to be safe):

dataGridView1.Enabled = true; dataGridView1.RowCount = 18;
for (int i = 0; i < 18; i++)
{
dataGridView1.Update();
dataGridView1.Rows.Cells[0].Value = i;
dataGridView1.Rows.Cells[1].Value = GetName(i);


}

NOTE: The number 18 is how many rows itll count so say it were ghost your using this for you would change the number 18 to 12 get it its simple.

The name offset for mw3 i have added i do not have the other offsets sorry.

Get names Offset = 0x0110D694

So now that you have your datagridview there and coded we can add mods.
Your probably like i know how to do this but you really dont.
Add a context menu strip to your project & click this little arrow on the datagridview: You must login or register to view this content.
Now go to edit colums and of course choose the client names and add a context menu strip to it: You must login or register to view this content. its not in the pic but thats where you will add it to the datagridview.

So now were done you can add mods with the codes below:
use this for mods say you add god mode to your client list you would double click the mod and add this code or this 1 either 1 works

PS3.SetMemory((0xE03CAA + (uint)dataGridView1.CurrentRow.Index * 0x3700), new byte[] { 0xFF, 0xFF });

OR

byte[] godmode = new byte[] { 0xFF, 0xFF }; PS3.SetMemory((0xE03CAA + (uint)dataGridView1.CurrentRow.Index * 0x3700), godmode);

use this for a name changer in the context menu strip:

int Client = dataGridView1.CurrentRow.Index;
string a = Interaction.InputBox("New name: ", "Name Change", GetName(Client), -1, -1);
byte[] NewName = Encoding.ASCII.GetBytes(a + "\0");
SetMemory0x0110D694 + (uint)Client * 0X3980, NewName);

Enjoy btw i do not take credit for this all credits go to: jwm614

The following 2 users say thank you to PS3|ModdingTeam for this useful post:

makeabce

The following 2 users groaned at PS3|ModdingTeam for this awful post:

ByteSource, kiwi_modz
04-09-2014, 07:06 PM #11
jimmymc12
Who’s Jim Erased?
Originally posted by jwm614 View Post
you have to add this ass a references You must login or register to view this content.

and add it to your form

You must login or register to view this content.


the dll is on your computer i wont post a link for it

The InputBox from your source and this thread still comes up as there is no reference i even tryed adding MetroFramework.dll
04-09-2014, 08:59 PM #12
jwm614
NextGenUpdate Elite
Originally posted by jimmymc12 View Post
The InputBox from your source and this thread still comes up as there is no reference i even tryed adding MetroFramework.dll


its microsoft.visualbasics.dll
04-10-2014, 08:05 AM #13
kiwi_modz
I defeated!
Originally posted by ModdingTeam View Post
So i thought i would do this cause i know a lot of people want this probably but have no clue how to do this so yeaTustin

Lets start add this anywhere:

public string GetName(int client)
{
byte[] buffer = new byte[20];
PS3.GetMemory(///name address here/// + 0X3980 * (uint)client, buffer);
string names = Encoding.ASCII.GetString(buffer);
names = names.Replace("\0", "");
return names;
}

Next you need to make your get name (or what ever you named it) button and add this into it and a timer (its been a while i dont remeber if its also needed in a timer i do just to be safe):

dataGridView1.Enabled = true; dataGridView1.RowCount = 18;
for (int i = 0; i < 18; i++)
{
dataGridView1.Update();
dataGridView1.Rows.Cells[0].Value = i;
dataGridView1.Rows.Cells[1].Value = GetName(i);


}

NOTE: The number 18 is how many rows itll count so say it were ghost your using this for you would change the number 18 to 12 get it its simple.

The name offset for mw3 i have added i do not have the other offsets sorry.

Get names Offset = 0x0110D694

So now that you have your datagridview there and coded we can add mods.
Your probably like i know how to do this but you really dont.
Add a context menu strip to your project & click this little arrow on the datagridview: You must login or register to view this content.
Now go to edit colums and of course choose the client names and add a context menu strip to it: You must login or register to view this content. its not in the pic but thats where you will add it to the datagridview.

So now were done you can add mods with the codes below:
use this for mods say you add god mode to your client list you would double click the mod and add this code or this 1 either 1 works

PS3.SetMemory((0xE03CAA + (uint)dataGridView1.CurrentRow.Index * 0x3700), new byte[] { 0xFF, 0xFF });

OR

byte[] godmode = new byte[] { 0xFF, 0xFF }; PS3.SetMemory((0xE03CAA + (uint)dataGridView1.CurrentRow.Index * 0x3700), godmode);

use this for a name changer in the context menu strip:

int Client = dataGridView1.CurrentRow.Index;
string a = Interaction.InputBox("New name: ", "Name Change", GetName(Client), -1, -1);
byte[] NewName = Encoding.ASCII.GetBytes(a + "\0");
SetMemory0x0110D694 + (uint)Client * 0X3980, NewName);

Enjoy btw i do not take credit for this all credits go to: jwm614


worse fucking tut. this is so bad the guy you're giving credit to. made and linked us all to his open source.... you fail. #fishing for rep much cuz all i see is your rep go down hahaha
Last edited by kiwi_modz ; 04-10-2014 at 08:08 AM.

The following user thanked kiwi_modz for this useful post:

jwm614
04-10-2014, 06:36 PM #14
PS3|ModdingTeam
Do a barrel roll!
cool just cause i posted a tutorial some guy made im all of the sudden a terrible person? all i did was post the codes with what to do with them and the guy who made it i thought it was good cause i used these codes for my mw3 tool. Also i was unaware there was an open source sorry. That really was on me mybad guys!
Last edited by PS3|ModdingTeam ; 04-10-2014 at 06:47 PM.
04-10-2014, 06:41 PM #15
PS3|ModdingTeam
Do a barrel roll!
Originally posted by kiwi
worse fucking tut. this is so bad the guy you're giving credit to. made and linked us all to his open source.... you fail. #fishing for rep much cuz all i see is your rep go down hahaha



So what i made a bad tut not really tho i just told them how to use it its not even my tut i reposted it pretty much but do you have ac130 walking code for mw3? i hate using the bins all the time.
04-10-2014, 10:09 PM #16
jwm614
NextGenUpdate Elite
Originally posted by ModdingTeam View Post
So what i made a bad tut not really tho i just told them how to use it its not even my tut i reposted it pretty much but do you have ac130 walking code for mw3? i hate using the bins all the time.


I suggest to use the search button everything you need is on the site
04-11-2014, 12:34 AM #17
PS3|ModdingTeam
Do a barrel roll!
Originally posted by jwm614 View Post
I suggest to use the search button everything you need is on the site


ok thanks im not exactly sure how to use this site that well you know? ill pm you on here i need to ask you somthing if you dont mind?
04-11-2014, 07:45 PM #18
jwm614
NextGenUpdate Elite
Originally posted by ModdingTeam View Post
ok thanks im not exactly sure how to use this site that well you know? ill pm you on here i need to ask you somthing if you dont mind?



ok...


just go to whatever section your looking for and in the right side youll see
You must login or register to view this content.
Last edited by jwm614 ; 04-11-2014 at 08:02 PM.
04-12-2014, 12:09 AM #19
PS3|ModdingTeam
Do a barrel roll!
Originally posted by jwm614 View Post
ok...


just go to whatever section your looking for and in the right side youll see
You must login or register to view this content.


Thanks alot

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo