Skip to content

Felix-From/Python-MemoryEdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Private Python version of CheatEngine. Tested on Stardew Valley.

This respository was used for version control.\n

MemWork.py can be imported in your local script and can be used.

main.py is with an Example on how to use it.

(comments/Descriptions are written in german... sorry)

main-lite.py is a simpler version with some English comments

Requirements:
pip install pymem

Functions MemWork:

Process und Module Stuff

Function: getProcessAndModuleFromName(ProcessName,moduleName)

Returns: process, module_base

Pointer Stuff

Function: createPointerAddr(process,module_base,StaticOffset,Offsets)

Returns: Calculated_Address

Infos: to find the StaticOffset and Offsets[] you need to use CheatEngine or something like that and do a Pointerscan.
If you do that you also will know what module_base you need.

Pointer Freezer

Description


Pointer Freezer

pointersToFreeze[i] Array
i=0 Process
1 Address
2 Value - Freezevalue
3 Valuetype - as string typename like "int"
4 state - active True/False
5 lastRead

Functions:

Function: createPointerFreezer(process, address, value, valuetype, state=False)

Returns: none

Function: triggerPointerFreezer(address,state,value=None,valuetype=None)

Returns: none

Function: removePointerFreezer(address)

Return: always false == looks like i planed it to return true if it removes something but i forgot it :x .

LookUp Pointer

Description


LookUp Pointer for changes

pointersToLookUp[i] Array
i=0 process
1 address
2 type
3 triggerName (Print bei Trigger)
4 triggerFunction (pointer)
5 triggerValue (id oder so für selbst benutzung.) 6 lastRead - Letzer Wert seit veränderung.
7 triggerState - active True/False

Functions:

Function: createLookUpAddress(process,address,type,triggerName,triggerFunction,triggerValue, lastRead=-1,triggerState = False)

Returns: none

Function: triggerLookUpAddress(address,state,resetLastRead = False)

Returns: none

Function: removeLookUpAddress(address)

Returns: none

Debug Functions

Variables:

debug = True <--- Turns on Debugprints

debug_freezeloop = False <--- Turns on Debugprints for the FreezeLoop

debug_lookUploop = True <--- Turns on Debugprints for the lookUpLoop


# Examples
**main.py** but it has **German** comments
To understand the functions without comments look into **main-lite.py**

About

Simple CheatEngine Replica in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages