Connexion
S'inscrire
Actualités
Quoi de neuf
Activités générales
Auteurs
Forums
Nouveaux messages
Rechercher un forum
Quoi de neuf
Nouveaux messages
Nouveaux messages de profil
Activités générales
Membres
Membres inscrits
Visiteurs actuels
Nouveaux messages de profil
Rechercher dans les messages des profils
Teams
Créé ton équipe
Quoi de neuf ?
Nouveaux messages
Rechercher un forum
Menu
Connexion
S'inscrire
Install the app
Install
Forums
Forums généraux
Informatique
Développement
Questions, aides et recherches
Résolus
Je recherche quelqu'un pouvant m'aider à créer un change name class
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Vous utilisez un navigateur non à jour ou ancien. Il ne peut pas afficher ce site ou d'autres sites correctement.
Vous devez le mettre à jour ou utiliser un
navigateur alternatif
.
Répondre à la discussion
Message
<blockquote data-quote="Melvin' SEC" data-source="post: 6887598" data-attributes="member: 384425"><p>Salut,</p><p></p><p>Tien : ( je l'ai mis au niveau du : InitializeComponent();</p><p></p><p>[CODE]public void SetClass(uint offset, string input)</p><p> {</p><p> PS3.SetMemory(offset, new byte[16]);</p><p> byte[] Multiplier = new byte[] { 0x04 };</p><p> byte[] inputBytes = Encoding.ASCII.GetBytes(input);</p><p> PS3.SetMemory(offset, BO2Classes.Multiply(inputBytes, Multiplier));</p><p> }</p><p></p><p> uint Class1Offset = 0x02707AC7;[/CODE]</p><p></p><p>Ensuite tu crée un class.cs nommé : BO2Classes.cs et tu ajoutes ceci dedans :</p><p></p><p>[CODE]using System.Collections.Generic;</p><p>public static class BO2Classes</p><p>{</p><p> public static byte[] Multiply(this byte[] A, byte[] B)</p><p> {</p><p> List<byte> ans = new List<byte>();</p><p></p><p> byte ov, res;</p><p> int idx = 0;</p><p> for (int i = 0; i < A.Length; i++)</p><p> {</p><p> ov = 0;</p><p> for (int j = 0; j < B.Length; j++)</p><p> {</p><p> short result = (short)(A[i] * B[j] + ov);</p><p> ov = (byte)(result >> 8);</p><p> res = (byte)result;</p><p> idx = i + j;</p><p> if (idx < (ans.Count))</p><p> ans = _add_(ans, res, idx);</p><p> else ans.Add(res);</p><p> }</p><p> if (ov > 0)</p><p> if (idx + 1 < (ans.Count))</p><p> ans = _add_(ans, ov, idx + 1);</p><p> else ans.Add(ov);</p><p> }</p><p></p><p> return ans.ToArray();</p><p> }</p><p> private static List<byte> _add_(List<byte> A, byte b, int idx = 0, byte rem = 0)</p><p> {</p><p> short sample = 0;</p><p> if (idx < A.Count)</p><p> {</p><p> sample = (short)((short)A[idx] + (short)b);</p><p> A[idx] = (byte)(sample % 256);</p><p> rem = (byte)((sample - A[idx]) % 255);</p><p> if (rem > 0)</p><p> return _add_(A, (byte)rem, idx + 1);</p><p> }</p><p> else A.Add(b);</p><p></p><p> return A;</p><p> }</p><p>}</p><p>[/CODE]</p><p></p><p>Preset name :</p><p></p><p>[CODE]this.textEdit4.Text = "^1" + this.textEdit3.Text;</p><p> this.textEdit5.Text = "^2" + this.textEdit3.Text;</p><p> this.textEdit6.Text = "^3" + this.textEdit3.Text;</p><p> this.textEdit7.Text = "^4" + this.textEdit3.Text;</p><p> this.textEdit8.Text = "^5" + this.textEdit3.Text;</p><p> this.textEdit9.Text = "^6" + this.textEdit3.Text;</p><p> this.textEdit10.Text = "^1" + this.textEdit3.Text;</p><p> this.textEdit11.Text = "^2" + this.textEdit3.Text;</p><p> this.textEdit12.Text = "^3" + this.textEdit3.Text;</p><p> this.textEdit13.Text = "^4" + this.textEdit3.Text;[/CODE]</p><p></p><p>Send All classes :</p><p></p><p>[CODE]SetClass(Class1Offset, textEdit4.Text);</p><p> SetClass(Class1Offset + 0x10, textEdit5.Text);</p><p> SetClass(Class1Offset + 0x20, textEdit6.Text);</p><p> SetClass(Class1Offset + 0x30, textEdit7.Text);</p><p> SetClass(Class1Offset + 0x40, textEdit8.Text);</p><p> SetClass(Class1Offset + 0x50, textEdit9.Text);</p><p> SetClass(Class1Offset + 0x60, textEdit10.Text);</p><p> SetClass(Class1Offset + 0x70, textEdit11.Text);</p><p> SetClass(Class1Offset + 0x80, textEdit12.Text);</p><p> SetClass(Class1Offset + 0x90, textEdit13.Text);[/CODE]</p></blockquote><p></p>
[QUOTE="Melvin' SEC, post: 6887598, member: 384425"] Salut, Tien : ( je l'ai mis au niveau du : InitializeComponent(); [CODE]public void SetClass(uint offset, string input) { PS3.SetMemory(offset, new byte[16]); byte[] Multiplier = new byte[] { 0x04 }; byte[] inputBytes = Encoding.ASCII.GetBytes(input); PS3.SetMemory(offset, BO2Classes.Multiply(inputBytes, Multiplier)); } uint Class1Offset = 0x02707AC7;[/CODE] Ensuite tu crée un class.cs nommé : BO2Classes.cs et tu ajoutes ceci dedans : [CODE]using System.Collections.Generic; public static class BO2Classes { public static byte[] Multiply(this byte[] A, byte[] B) { List<byte> ans = new List<byte>(); byte ov, res; int idx = 0; for (int i = 0; i < A.Length; i++) { ov = 0; for (int j = 0; j < B.Length; j++) { short result = (short)(A[i] * B[j] + ov); ov = (byte)(result >> 8); res = (byte)result; idx = i + j; if (idx < (ans.Count)) ans = _add_(ans, res, idx); else ans.Add(res); } if (ov > 0) if (idx + 1 < (ans.Count)) ans = _add_(ans, ov, idx + 1); else ans.Add(ov); } return ans.ToArray(); } private static List<byte> _add_(List<byte> A, byte b, int idx = 0, byte rem = 0) { short sample = 0; if (idx < A.Count) { sample = (short)((short)A[idx] + (short)b); A[idx] = (byte)(sample % 256); rem = (byte)((sample - A[idx]) % 255); if (rem > 0) return _add_(A, (byte)rem, idx + 1); } else A.Add(b); return A; } } [/CODE] Preset name : [CODE]this.textEdit4.Text = "^1" + this.textEdit3.Text; this.textEdit5.Text = "^2" + this.textEdit3.Text; this.textEdit6.Text = "^3" + this.textEdit3.Text; this.textEdit7.Text = "^4" + this.textEdit3.Text; this.textEdit8.Text = "^5" + this.textEdit3.Text; this.textEdit9.Text = "^6" + this.textEdit3.Text; this.textEdit10.Text = "^1" + this.textEdit3.Text; this.textEdit11.Text = "^2" + this.textEdit3.Text; this.textEdit12.Text = "^3" + this.textEdit3.Text; this.textEdit13.Text = "^4" + this.textEdit3.Text;[/CODE] Send All classes : [CODE]SetClass(Class1Offset, textEdit4.Text); SetClass(Class1Offset + 0x10, textEdit5.Text); SetClass(Class1Offset + 0x20, textEdit6.Text); SetClass(Class1Offset + 0x30, textEdit7.Text); SetClass(Class1Offset + 0x40, textEdit8.Text); SetClass(Class1Offset + 0x50, textEdit9.Text); SetClass(Class1Offset + 0x60, textEdit10.Text); SetClass(Class1Offset + 0x70, textEdit11.Text); SetClass(Class1Offset + 0x80, textEdit12.Text); SetClass(Class1Offset + 0x90, textEdit13.Text);[/CODE] [/QUOTE]
Insérer les citations…
Vérification
Publier la réponse
Forums
Forums généraux
Informatique
Développement
Questions, aides et recherches
Résolus
Je recherche quelqu'un pouvant m'aider à créer un change name class
Ce site utilise des cookies. En continuant à utiliser ce site, vous acceptez l'utilisation des cookies.
Acceptez
En savoir plus.…
Haut