C# Game Region Sele...
 
Notifications
Clear all

C# Game Region Selection Array "Method 1"

Page 1 / 2

KranK
Posts: 336
Topic starter
(@KranK)
Reputable RivalGamer
Joined: 9 years ago

Hey Rival Gamer ! and here is another tutorial 😀

in this tutorial we are going to be focusing on game region selection and array of stored offsets of this game region!

[HIDE]

1st of all make new windows form application or use your tool source

we need 2 RadioButtons in this case Bles/Blus
Drop them to your form
name Blus one BLUSCB
name Bles one BLESCB

otherwise rename them on the code !

and lets get to the coding part

1.add new class to your project and name it Offsets.cs
now select everything on this class and past this code insted

	using System;
	
	internal class Offsets
	{
	    //BLUS
	    public static string Blus_Mod_1 = "01140000"; //your int32 offset as string without 0x
	
	
	    //BLES
	    public static string Bles_Mod_1 = "01120000";
	
	};
	
	

2.include this using to your project

	using System.Globalization;
	

and past this inside your main public partial class of your form , this is going to store offsets from Offsets.cs later

	uint Bles_Mod_1;
	uint Blus_Mod_1;
	

3.double click your Bles RadioButton and past this code , this is going to pars our Offsets.cs for Bles

	if (BLESCB.Checked)
	            {
	                Bles_Mod_1 = uint.Parse(Offsets.Bles_Mod_1, NumberStyles.HexNumber);
	//add Bles_Mod_2 etc dont forget to include offset in Offsets.cs and temp uint offset for it in main partial class
	            }
	

4.double click your Blus RadioButton and past this code , this is going to pars our Offsets.cs for Blus

	if (BLUSCB.Checked)
	            {
	                Blus_Mod_1 = uint.Parse(Offsets.Blus_Mod_1, NumberStyles.HexNumber);
	//add Blus_Mod_2 etc dont forget to include offset in Offsets.cs and temp uint offset for it in main partial class
	            }
	

your main form code should look some thing like this

	using System;
	using System.Collections.Generic;
	using System.ComponentModel;
	using System.Data;
	using System.Drawing;
	using System.Linq;
	using System.Text;
	using System.Threading.Tasks;
	using System.Windows.Forms;
	using System.Globalization;
	
	
	namespace Region_Selector // you main application namespase
	{
	    public partial class Form1 : Form
	    {
	
	        uint Bles_Mod_1;
	        uint Blus_Mod_1;
	
	        public Form1()
	        {
	            InitializeComponent();
	        }
	
	        private void BLESCB_CheckedChanged(object sender, EventArgs e)
	        {
	            if (BLESCB.Checked)
	            {
	                Bles_Mod_1 = uint.Parse(Offsets.Bles_Mod_1, NumberStyles.HexNumber);
	                //add Bles_Mod_2 etc dont forget to include offset in Offsets.cs and temp uint offset for it in main partial class
	            }
	
	        }
	
	        private void BLUSCB_CheckedChanged(object sender, EventArgs e)
	        {
	            if (BLUSCB.Checked)
	            {
	                Blus_Mod_1 = uint.Parse(Offsets.Blus_Mod_1, NumberStyles.HexNumber);
	//add Blus_Mod_2 etc dont forget to include offset in Offsets.cs and temp uint offset for it in main partial class
	            }
	        }
	    }
	}
	

now just by using one RadioButton you have all offsets stored together

write to ps3 like this inside a button

	            byte[] My_Mod1_Bytes = { 0x00, 0x00, 0x00, 0x00 };
	
	            if (BLESCB.Checked) // BLES
	            {
	               PS3.SetMemory(Bles_Mod_1, My_Mod1_Bytes);
	            }
	            if (BLUSCB.Checked) //BLUS
	            {
	               PS3.SetMemory(Blus_Mod_1, My_Mod1_Bytes);
	            }
	

i think everything else is self explanatory!

[/HIDE]

im going to post method 2 soon , actualy way more interesting method

⌘ Note: I do not give permission for these to be posted on any other site ⌘
✌Have fun

Reply
Name of the Video Game, and any other Tags
8 Replies
Cain532
Posts: 1280
(@cain532)
Noble RivalGamer
Joined: 9 years ago

Hmmm interesting option 🙂 But why set it up as a string initally? and also if you are going to have it as a string you could probably just use something like

uint BLUS = Convert.ToUint32(Offsets.Blus_Mod_1, 16); does the same thing 😛

Reply
KranK
Posts: 336
Topic starter
(@KranK)
Reputable RivalGamer
Joined: 9 years ago

Hmmm interesting option 🙂 But why set it up as a string initally? and also if you are going to have it as a string you could probably just use something like

uint BLUS = Convert.ToUint32(Offsets.Blus_Mod_1, 16); does the same thing :p

you are correct but , this solution gives you more options when things get hard with offsets , and on my look it looks way more professional this way

and its always better use strings as of its the most adaptible type on my opinion !

Reply
Cain532
Posts: 1280
(@cain532)
Noble RivalGamer
Joined: 9 years ago

you are correct but , this solution gives you more options when things get hard with offsets , and on my look it looks way more professional this way

Fair enough 😛 Either way, nice release dude!

Reply
Trojan041
Posts: 64
(@Trojan041)
Trusted RivalGamer
Joined: 9 years ago

Very nice Krank! 😀

Reply
Page 1 / 2