Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
fastman92

[GTASA] Cheat Strings Loader

Recommended Posts

fastman92

***** 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

Edited by fastman92

Share this post


Link to post
Share on other sites
Revolution-Designes

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

Share this post


Link to post
Share on other sites
GamerShotgun

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

Share this post


Link to post
Share on other sites
fastman92

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.

Share this post


Link to post
Share on other sites
BLlTZ

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.

Share this post


Link to post
Share on other sites
fastman92

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.

 

 

<?phpclass 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>

 

Share this post


Link to post
Share on other sites
Spider-Vice

 

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

Share this post


Link to post
Share on other sites
fastman92

 

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.

Share this post


Link to post
Share on other sites
GamerShotgun

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

Share this post


Link to post
Share on other sites
fastman92

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.com/?wxqd81bkoa59jjc

Edited by fastman92

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.