Jump to content

EasyEdit


Recommended Posts

EasyEdit

 

This library makes it easy to hook into the San Andreas process and manipulate it's memory values using the C# programming language (any .NET language should be ok though). It has various read/write functions along with a few other helpfull ones such as capturing key presses or editing files, they are all explained using intellisense and are pretty straight forward.

 

The zip contains a readme, the xml file with the explinations for the functions and the EasyEdit library itself, the readme explains how to use the library but I've also provided an example below.

 

Download(s)

 

2Shared

MediaFire

GTAGarage page

 

Changelog

 

1.3 - (12/12/2010):

 

Removed the executable name requirement for the constructors path parameter

Added "GetPlayerPointer" and "GetPlayerVehilePointer" functions for ease of use

Corrected some of the constant names to reflect the value more clearly

 

 

1.2 - (08/12/2010):

 

Added quite a few constants containing either a base or an offset for usefull addresses

 

1.1 - (07/12/2010):

 

Added "StopSanAndreas" - Kills the San Andreas process

Added "AreKeysPressed" - Checks if two keys are currently pressed, a wrapper around "IsKeyPressed" for ease of use

Added "WriteScmInt, WriteScmSingle, ReadScmInt, ReadScmSingle" - read/write global variable values from/to the SCM

Added a second constructor method which allows a path to be passed for applications outside the SA root folder

Updated all string functions with a boolean encoding setting

Updated the intellisense to include return types in all none void functions

Updated the intellisense to reflect the changes in 1.1

 

Example

 

An example console application which changes the players money value when pressing the keys or stops San Andreas:

 

 

using System;                   using System.Threading;         using System.Windows.Forms;     using EasyEdit;namespace z{   class Program   {       static void Main(string[] args)       {           Easy ee = new Easy();           int money = Easy.ADDRESS_PLAYER_MONEY;           while (true)           {               if (ee.GetPlayerPointer() != 0)               {                   if (ee.IsKeyPressed(Keys.F5)) ee.WriteInt(money, 55555);                   else if (ee.IsKeyPressed(Keys.F6)) ee.WriteInt(money, 1);                   else if (ee.IsKeyPressed(Keys.F7))                   {                       if (ee.StopSanAndreas())                       {                           Thread.Sleep(6000);                           break;                       }                   }               }               Thread.Sleep(1000);           }                   }   }}

 

 

The above is a standard console appliation I made in Microsoft Visual C# 2010 Express, the references were like so:

 

 

EasyEditSystemSystem.CoreSystem.DataSystem.Windows.FormsSystem.Xml

 

 

Please feel free to leave a comment, report any issues you come across, give feedback or suggest a feature etc.

 

Enjoy.

 

Edit:

 

@Mods and anyone wondering:

 

I've attempted to block EasyEdit while in multiplayer, I don't support cheating incase you wonder, this is aimed at singleplayer.

Edited by Donny78
Link to comment
https://gtaforums.com/topic/464621-easyedit/
Share on other sites

This looks really interesting.

 

I recommend you to upload this to GTAGarage.com, under Tools section. That link will never expire, and you can check how many downloads it has. Its also a rule in this forum. tounge.gif

 

And for better feedback this could be moved to Tools section or III Coding in III Era Modding.

Link to comment
https://gtaforums.com/topic/464621-easyedit/#findComment-1060234726
Share on other sites

 

This looks really interesting.

 

I recommend you to upload this to GTAGarage.com, under Tools section. That link will never expire, and you can check how many downloads it has. Its also a rule in this forum. tounge.gif

 

And for better feedback this could be moved to Tools section or III Coding in III Era Modding.

 

I've just uploaded it to GTAGarage under the tools section (didn't know that rule, my bad), was a good idea that for sure. I didn't know where to upload it here so I chose coding as it's used for that but I agree tools would of been a choice also.

 

Thanks for your input.

Link to comment
https://gtaforums.com/topic/464621-easyedit/#findComment-1060234734
Share on other sites

Bump.

 

It's version 1.2 now, I added the changes in the first post but this version without internal stuff is really just the constants, access them by using "Easy.ADDRESS*******".

 

Again any features or addresses you would like to have just let me know and I'll do my best to add them.

 

Edit:

 

Now version 1.3, changes are listed again in the first post.

Edited by Donny78
Link to comment
https://gtaforums.com/topic/464621-easyedit/#findComment-1060237268
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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