Difference between revisions of "Programming"

From Cheat Engine
Jump to navigation Jump to search
(Flash)
(23 intermediate revisions by 16 users not shown)
Line 1: Line 1:
 +
[[Category:Help]]
 
Most common programming languages used for gamehacking:
 
Most common programming languages used for gamehacking:
 
* C / C++
 
* C / C++
 
* Delphi
 
* Delphi
* Visual Basic
+
* Visual Basic / C#
  
  
Line 12: Line 13:
 
*CreateRemoteThread
 
*CreateRemoteThread
  
 +
== Where do I get started? ==
 +
Programming, in short, is a wonderful world. Computers would be nowhere without it. Programming basically follows three steps for most languages:
 +
 +
*1: Inputting commands into an interpreter
 +
*2: Telling the interpreter to convert those commands into a language the computer understands (machine code)
 +
*3: Finding glitches (things you didn't want to happen, or things that didn't happen at all) and fixing them.
 +
 +
Most programming languages do not allow you to learn them in one night. Some are more straightforward than others, heightening the learning curve.
 +
 +
A good language to start out learning would be Python or Java. Python is very well known, enjoys a large community of support, and is very similar to the once popular VB scripting languages in terms of ease of use and behavior. Or, you can run an IDE such as [http://codelite.org/ codelite] if you want to get into C/C++.
 +
 +
If you are interested in Microsoft, a free download of Visual Studio is available from Microsoft - that is Microsoft's IDE (Integrated Development Environment). Generally it costs several hundred dollars, but for students, there's a place called [http://www.dreamspark.com DreamSpark.] Perfectly legal. Or, you can download the Express version, which will work just fine.
 +
 +
So enjoy your journey of programming, and keep in mind, it will always be changing.
  
 
== Flash ==
 
== Flash ==
 
Programming in flash uses one of two programming languages.
 
Programming in flash uses one of two programming languages.
 
Actionscript 2 or 3.
 
Actionscript 2 or 3.
(Actionscript 2 is a continuation of Actionscript 1, and therefor is the same thing.)
+
(Actionscript 2 is a continuation of Actionscript 1, and therefore shares the same syntax.)<br/>
 
Both are very different and have their own uses.
 
Both are very different and have their own uses.
Although Actionscript 3 is newer, it is not exactly better.
+
 
Actionscript 2 was engineered by Macromedia (Now Adobe) and was entirely logic based.
+
<br/>
In Actionscript 2, you could code using Object Oriented Programming, or whichever way you preferred.
+
Although Actionscript 3 is newer, it is not exactly better.<br/>
After Adobe bought out Macromedia and took over Flash, they released Actionscript 3, a extremely limited programming language.
+
Actionscript 2 was engineered by Macromedia (now Adobe) and was entirely logic based.<br/>
Actionscript 3 does not support OOP and provides little to no flexibility.
+
In Actionscript 2, you couldn't code using Object Oriented Programming, it relied almost entirely on functional programming. This was beneficial to the Flash CS user, however, as it made it easy to add scripts to various MovieClips.
All code must be placed on a frame in the timeline, wheres Actionscript 2 allowed code to be placed inside or on several different types of symbols, such as movie clips, buttons, or even text fields, as well as the timeline.
+
 
Actionscript 3's simplicity allows it to operate faster than Actionscript 2, and it also features new methods to code with, and a expanded mathematical library.
+
After Adobe bought out Macromedia and took over Flash, they released Actionscript 3, a limited OOP programming language.
If not for these few upgrades, it would be pointless altogether.
+
Actionscript 3 enforces OOP style programming, but provides little to no flexibility to the user in Adobe Flash CS<br/>
 +
 
 +
Actionscript 2 allowed code to be placed inside or on several different types of symbols, such as movie clips, buttons, or even text fields,<br/> as well as the timeline.<br/>
 +
 
 +
Actionscript 3 operates similar to a Java program - a Main class is written, whose main method is invoked. All other code is invoked using classes and a package structure.<br/>
 +
 
 +
Actionscript 3's simplicity and improved OOP style allows it to operate faster than Actionscript 2, it also features new methods to code with and an expanded mathematical library.<br/>
 +
 
 +
Many users continued to prefer ActionScript 2 for its simpler style and compatibility with older, proven tools.

Revision as of 14:14, 19 March 2017

Most common programming languages used for gamehacking:

  • C / C++
  • Delphi
  • Visual Basic / C#


Most useful API's:

  • OpenProcess
  • ReadProcessMemory
  • WriteProcessMemory
  • CreateRemoteThread

Where do I get started?

Programming, in short, is a wonderful world. Computers would be nowhere without it. Programming basically follows three steps for most languages:

  • 1: Inputting commands into an interpreter
  • 2: Telling the interpreter to convert those commands into a language the computer understands (machine code)
  • 3: Finding glitches (things you didn't want to happen, or things that didn't happen at all) and fixing them.

Most programming languages do not allow you to learn them in one night. Some are more straightforward than others, heightening the learning curve.

A good language to start out learning would be Python or Java. Python is very well known, enjoys a large community of support, and is very similar to the once popular VB scripting languages in terms of ease of use and behavior. Or, you can run an IDE such as codelite if you want to get into C/C++.

If you are interested in Microsoft, a free download of Visual Studio is available from Microsoft - that is Microsoft's IDE (Integrated Development Environment). Generally it costs several hundred dollars, but for students, there's a place called DreamSpark. Perfectly legal. Or, you can download the Express version, which will work just fine.

So enjoy your journey of programming, and keep in mind, it will always be changing.

Flash

Programming in flash uses one of two programming languages. Actionscript 2 or 3. (Actionscript 2 is a continuation of Actionscript 1, and therefore shares the same syntax.)
Both are very different and have their own uses.


Although Actionscript 3 is newer, it is not exactly better.
Actionscript 2 was engineered by Macromedia (now Adobe) and was entirely logic based.
In Actionscript 2, you couldn't code using Object Oriented Programming, it relied almost entirely on functional programming. This was beneficial to the Flash CS user, however, as it made it easy to add scripts to various MovieClips.

After Adobe bought out Macromedia and took over Flash, they released Actionscript 3, a limited OOP programming language. Actionscript 3 enforces OOP style programming, but provides little to no flexibility to the user in Adobe Flash CS

Actionscript 2 allowed code to be placed inside or on several different types of symbols, such as movie clips, buttons, or even text fields,
as well as the timeline.

Actionscript 3 operates similar to a Java program - a Main class is written, whose main method is invoked. All other code is invoked using classes and a package structure.

Actionscript 3's simplicity and improved OOP style allows it to operate faster than Actionscript 2, it also features new methods to code with and an expanded mathematical library.

Many users continued to prefer ActionScript 2 for its simpler style and compatibility with older, proven tools.