| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| MorbidEden How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 13 Apr 2018
 Posts: 3
 
 
 | 
			
				|  Posted: Sat Apr 14, 2018 5:23 am    Post subject: UCE 6.7 Compiling Error - Help Please |   |  
				| 
 |  
				| I'm trying to make a personal UCE from CE 6.7 Source and when attempting to compile I've come across something that I have no idea how to fix. I'm a bit of a programming newb, but I'm trying to learn as I go. 
 Lazarus 1.6.4
 FPC 3.0.2
 
 
  	  | Code: |  	  | procedure SaveCEM(Filename:string;address:ptrUint; size:dword); var memfile: TFilestream;
 buf: pointer;
 temp:ptruint;
 a: qword;
 begin
 memfile:=Tfilestream.Create(filename,fmCreate);
 buf:=nil;
 try
 getmem(buf,size);
 if readprocessmemory(processhandle,pointer(address),buf,size,temp) then
 begin
 memfile.WriteBuffer(pchar('XXXXXX')^,11);
 temp:=2; //version
 memfile.WriteBuffer(temp,4);
 a:=address;
 memfile.WriteBuffer(a,8);
 memfile.WriteBuffer(buf^,size);
 end else messagedlg(Format(rsTheRegionAtWasPartiallyOrCompletlyUnreadable, [IntToHex(address, 8)]), mterror, [mbok], 0);
 finally
 freeandnil(memfile);
 freemem(buf);
 buf:=nil;
 end;
 end;
 | 
 
 Code is from OpenSave.pas and the error I am getting is "Error: Typecast has different size (6 -> 8) in assignment" which directs to this line (specifically between the "p" and "c" in "pchar") "memfile.WriteBuffer(pchar('XXXXXX')^,11);"
 
 Any help would be greatly appreciated.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Sat Apr 14, 2018 12:28 pm    Post subject: |   |  
				| 
 |  
				| undo all your edits until ce compiles and then go from there 
 most likely you blindly replaced everything eith cheatengine to xxxxxx which will not work
 _________________
 
 Do not ask me about online cheats. I don't know any and wont help finding them.
 Like my help? Join me on Patreon so i can keep helping
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| MorbidEden How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 13 Apr 2018
 Posts: 3
 
 
 | 
			
				|  Posted: Sat Apr 14, 2018 1:13 pm    Post subject: |   |  
				| 
 |  
				| Thank you. I will do that. 
 I was using a tutorial for an older version and it had steps for CEHook and Stealth. I assume those are obsolete since the files aren't in the source. Is that correct?
 
 Also, is there no need in CE 6.7 to create a dbk64.dll file? I couldn't find the corresponding Lazarus file in the source.
 
 Thank you so much for your help.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Dark Byte Site Admin
 
  Reputation: 470 
 Joined: 09 May 2003
 Posts: 25807
 Location: The netherlands
 
 | 
			
				|  Posted: Sat Apr 14, 2018 5:24 pm    Post subject: |   |  
				| 
 |  
				| the tutorial you're following is extremely old yes, probably 10 years or so that there was a dbk dll _________________
 
 Do not ask me about online cheats. I don't know any and wont help finding them.
 Like my help? Join me on Patreon so i can keep helping
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| MorbidEden How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 13 Apr 2018
 Posts: 3
 
 
 | 
			
				|  Posted: Sat Apr 14, 2018 6:26 pm    Post subject: |   |  
				| 
 |  
				| Yeah, it's pretty old, but most of the steps are still good. I couldn't find a better tutorial that allowed me to do everything manually. I think I did accidentally replace cheatengine entries with my cover up name like you said. 
 Thank you again for your help. I appreciate it.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |