| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| homerorf How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 24 Oct 2019
 Posts: 4
 
 
 | 
			
				|  Posted: Thu Oct 24, 2019 2:13 pm    Post subject: I'm looking for a programmer to help me |   |  
				| 
 |  
				| Hi, 
 I'm Python programmer and I'm doing a study where I collect some information in FIFA 19/20 screenshot like:
 
 - players positions at screen.
 - ball position at screen.
 - score.
 - command used (which commands was sent by me and my adversary)
 
 Then I try to understand if my last move was successful.
 
 By "successful" I mean:
 
 - if have any goal.
 - if my team still with the ball.
 - if my team take the ball.
 
 But it's have been very difficult since Python doesn't have good libraries to do that.
 
 My main goal here is to compare these information with a real information, in a real game to see how accurate is FIFA.
 
 Do you guys think this is more easy to do that using cheat engine?
 
 If so, I would like to pay someone to help me on that. At least help me to find the memory address where can I find these information.
 
 Please let me know if you are interested.
 
 Thank you!
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| atom0s Moderator
 
  Reputation: 205 
 Joined: 25 Jan 2006
 Posts: 8587
 Location: 127.0.0.1
 
 | 
			
				|  Posted: Thu Oct 24, 2019 11:35 pm    Post subject: |   |  
				| 
 |  
				| Is it possible with CE? Sure, but no it will be more work than using an actual programming language vs. using CE or CE's Lua engine. You'll have better luck doing this in Python. 
 OCR libraries exist for all languages, you just need to find one that suits your needs. Otherwise, you need to make your own image recognition set up to look for specifics of the image. Python has full access to Win32 API which offers several methods of reading screen data, reading pixel information, dumping/screenshotting the entire screen etc.
 _________________
 
 - Retired. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| homerorf How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 24 Oct 2019
 Posts: 4
 
 
 | 
			
				|  Posted: Fri Oct 25, 2019 7:41 am    Post subject: |   |  
				| 
 |  
				| Thank you for your reply atom0s! 
 Actually has been very difficult.
 
 First because OCR is not very good to extract FIFA pixels. Also its more difficult to get control/keyboard commands and other information.
 
 While using CE, if I understood corretly, its just pick up the right memory address for the right information.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| atom0s Moderator
 
  Reputation: 205 
 Joined: 25 Jan 2006
 Posts: 8587
 Location: 127.0.0.1
 
 | 
			
				|  Posted: Fri Oct 25, 2019 5:12 pm    Post subject: |   |  
				| 
 |  
				| If you wish to ditch the image scanning part yes, you can just rely solely on memory-based information. 
 You can pull the position of players on the field, ball location, ball ownership based on how the game assumes whos in control of it and so on. Then do any needed work on the collected data. You can do this in Python as well as Python can access another process's memory via Win32 API.
 _________________
 
 - Retired. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| homerorf How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 24 Oct 2019
 Posts: 4
 
 
 | 
			
				|  Posted: Sun Oct 27, 2019 6:40 am    Post subject: |   |  
				| 
 |  
				| Yes, its seems easy to do ball and players position using CE. 
 The most difficult part it seems to be reading controller/keyboard commands. Mostly if I am playing against machine instead a human.
 
 Do you have any idea how to do that using CE?
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| atom0s Moderator
 
  Reputation: 205 
 Joined: 25 Jan 2006
 Posts: 8587
 Location: 127.0.0.1
 
 | 
			
				|  Posted: Sun Oct 27, 2019 11:10 pm    Post subject: |   |  
				| 
 |  
				| That would depend on how the game is handling input. There are a lot of ways to handle input in a game, so the approach differs for each one. 
 Some methods you can look into:
 - DirectInput
 - Raw Input
 - Window Messages (WM_CHAR, WM_KEYDOWN, WM_KEYUP, etc.)
 - Third-party libraries. (XInput, DirectInput, etc.)
 _________________
 
 - Retired. |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| homerorf How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 24 Oct 2019
 Posts: 4
 
 
 | 
			
				|  Posted: Mon Oct 28, 2019 8:03 am    Post subject: |   |  
				| 
 |  
				| Thank you! |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |