Quantcast

Jump to content

» «
Photo

[GTASA] Cheat Strings Loader

9 replies to this topic
fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#1

Posted 11 September 2011 - 11:57 AM Edited by fastman92, 25 October 2011 - 07:13 PM.

***** Cheat Strings loader by Fastman92

Ever wanted to modify cheat strings you enter in GTA SA? Or wanted to disable at least one cheat?
If yes, then this mod is for you.
As the name implies, a long CLEO script with function written in Assembly will load cheat strings from .dat file.
So that you can invent your own cheat strings and share the .dat file along with .cs base.

Fully compatible with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE & GTA: San Andreas v1.01 [EURO] No-CD/Fixed EXE
- - - - - - - - - - - - - - - - -

***** Installation
- Copy CLEO and data directory from an archive to your GTA San Andreas root dir.

***** Configuration of your own cheat strings
- Open data\CheatStrings.dat
- Edit cheat strings only.
- Don`t modify IDs

***** Changes:
- NULL or UNDEFINED cheat strings are reserved; They disable cheat.
- completely rewritten from zero and now ASM code is much better

***** License
- You are allowed to share your own .dat file with new cheats, but link to base of my mod (.cs loader) instead of merging it together.
- You shouldn`t share .cs file, because there might be a new version of the mod in the future.

***** Thanks to: *****
seggaeman - for attribution of original strings to cheats in cheatStrings.dat file.
Rockstar Games team who created such a good game

***** Informations:
Author: fastman92
Version: 2.0
For: GTA San Andreas
Email: [email protected]
Visit fastman92.tk

Revolution-Designes
  • Revolution-Designes

    AKA JopperX9

  • Members
  • Joined: 28 Dec 2008
  • None
  • Best Mission 2012 [Left 4 Theft San Andreas]

#2

Posted 11 September 2011 - 12:03 PM

That's some neat stuff man. Gonna try this out soon, keep it up!

GamerShotgun
  • GamerShotgun

    The main protagonist.

  • Members
  • Joined: 03 Oct 2005

#3

Posted 12 September 2011 - 10:09 AM

Would you be able to do such thing for Vice City and GTA III? It would help out lots of modders here.

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#4

Posted 12 September 2011 - 03:23 PM

I`m currently decoding _testCheat function in GTA Vice City. In contrast to GTA SA where cheat strings are hashed and we don`t have original strings in memory anymore, there are cheat strings, not hashes in GTA Vice City. Though they are encrypted and i need to know an algorithm how it works.

BLlTZ
  • BLlTZ

    Typical behaviour for someone with your condition.

  • Members
  • Joined: 04 Apr 2008
  • None
  • Best Texture/Model 2013 "SRt3 2012 Mipmap Edition"

#5

Posted 12 September 2011 - 03:27 PM

I would wish to you inform of erasing the e-mail for not getting spam, junk and scam e-mails or hacking into your own account. You still can keep it in the readme for authentication of the original author of this mod as you.

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#6

Posted 12 September 2011 - 04:12 PM

I understood algorithm used to encrypt cheat strings in GTA Vice City and have written a class with function to encrypt decrypt strings.
Currently for PHP only.

CODE
<?php
class GTAVC_cheat_encryption
{
// function GTAVC_encrypt_cheat_string ($string)

private $movement_table = Array(
 0 =>  3,
 1 =>  5,
 2 =>  7,
 3 =>  1,
 4 => 13,
 5 => 27,
 6 =>  3,
 7 =>  7,
 8 =>  1,
 9 => 11,
10 => 13,
11 =>  8,
12 =>  7,
13 => 32,
14 => 13,
15 =>  6,
16 => 28,
17 => 19,
18 => 10,
19 =>  3,
20 =>  3,
21 =>  5,
22 =>  7,
23 =>  1,
24 => 13,
25 => 27,
26 =>  3,
27 =>  7
);

function encrypt_string($string){
$string = strrev($string);
$string_length = strlen($string);
 for($i = 0; $i < $string_length; $i++)
 {
 $string{$i} = chr(ord($string{$i}) + $this -> movement_table[$i]);
 }
return $string;
}

function decrypt_string($string){
$string_length = strlen($string);
 for($i = 0; $i < $string_length; $i++)
 {
 $string{$i} = chr(ord($string{$i}) - $this -> movement_table[$i]);
 }
return strrev($string);
}
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

<title>GTA SA handling line into GTA SA line converter</title>

<meta name="keywords" content="" />

<meta name="description" content="" />

<style type="text/css">

body

{

background-image:url('http://aaphpg.bay.livefilestore.com/y1pki_UNrdVvlr9EgLrTN18PYfK3NFnNFhLs83dbWhteP4X62C9lplnt0PLwL2M0bv0lcLYLmZx7TA7eCoTbQ-gkyGpZhP0td6U/40.jpg');

}

</style>

</head>

<body>

<form method="post" action="">
<div>
<input type="text" <?php if(isset($_POST['unecrypted'])) echo 'value="'.htmlspecialchars($_POST['unecrypted']).'"' ?>  name="unecrypted" />
<input type="submit" />
</div>
</form>
<div>
<?php
$encryption = new GTAVC_cheat_encryption();
 if(isset($_POST['unecrypted']))
 {
 echo htmlspecialchars($encryption -> encrypt_string($_POST['unecrypted']));
 }
?>
</div>
</body>
</html>

Spider-Vice
  • Spider-Vice

    Let's Bounce

  • Zaibatsu
  • Joined: 09 Oct 2006
  • Portugal
  • Contribution Award [GTA V]

#7

Posted 12 September 2011 - 04:29 PM

QUOTE (-BLITZ- @ Monday, Sep 12 2011, 16:27)
I would wish to you inform of erasing the e-mail for not getting spam, junk and scam e-mails or hacking into your own account. You still can keep it in the readme for authentication of the original author of this mod as you.

Actually, putting it in [ CODE] tags is enough as search engine bots don't decode them, and the email is safe inside. fastman, nice job as always, very good mod, I'll sure try it! smile.gif


And posting that on GTAG, no? xD

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#8

Posted 12 September 2011 - 05:09 PM

QUOTE
Actually, putting it in [ CODE] tags is enough as search engine bots don't decode them

Don`t regard a page as it is displayed. You gotta check what is HTML and how the pages work. Open source of page, bots which collect e-mail addresses scan pages and search for strings by e-mail pattern. They search for links too.

GamerShotgun
  • GamerShotgun

    The main protagonist.

  • Members
  • Joined: 03 Oct 2005

#9

Posted 13 September 2011 - 06:50 AM

What should I do with that PHP code? smile.gif

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#10

Posted 13 September 2011 - 04:40 PM Edited by fastman92, 15 January 2012 - 12:17 PM.

Download XAMPP, install, run xamp-control.exe, start Apache.
Open htdocs folder, remove index.php, index.html because they are default pages, what makes a trouble.
Create new file e.g gtavc_encryption.php and save in htdocs\
Go to http://localhost on your internet browser and choose previously created PHP file.
You`ll see working encrypter, form text field to enter a text and "Submit" button.

Cheat disabler

http://www.mediafire...wxqd81bkoa59jjc




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users