Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Two suggestions about source code and two questions

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
olesio
How do I cheat?
Reputation: 0

Joined: 13 Apr 2010
Posts: 3
Location: Poland

PostPosted: Tue Apr 13, 2010 2:52 pm    Post subject: Two suggestions about source code and two questions Reply with quote

Hello. I'm first time downloaded Cheat Engine to find out how wotk this very
famous program and I really happy. It wotks fine under XP, beacause there
is no new version of Game Hacker project dead so this tool work realiy nice.
Now here is my suggestion, because I do not found any option like that, so I
know Delphi a bit and downloaded source code for version 5.5 and added this
geature. I mean add to PopupMenu on search value TEdit new item after a "-"
separator with Caption "Reverse Bytes" and Shorcut 'Ctrl+E" ofcourse it will
be enabled only when user check "Hex" CheckBox and enter somethint to edit.
Here is the code to reverse bytes it is usefull for many games, for exmample
in "Sensible World of Soccer" game when changing player cash in carred mode.
Code:
//...

procedure TMainForm.FormCreate(Sender : TObject);
//...

// added by olesio
  ReverseBytes1.Enabled := False;
end;

procedure TMainForm.HexadecimalCheckboxClick(Sender : TObject);
// ...

  // added by olesio
  ReverseBytes1.Enabled := (HexadecimalCheckbox.Checked = True) and (scanvalue.Text <> '');
end;

procedure TMainForm.ReverseBytes1Click(Sender: TObject);
var
  S : string;
  I : integer;
begin
  // added by olesio
  if Length(scanvalue.Text) mod 2 <> 0  then
  begin
    scanvalue.Text := '0' + scanvalue.Text;
  end;
  I := Length(scanvalue.Text) - 1;
  S := '';
  repeat
  S := S + Copy(scanvalue.Text, I, 2);
  I := I - 2;
  until I < 0;
  scanvalue.Text := S;
end;

What you think about this feature? I added it as separate popup menu item
because there was no enough space for new button in panel near TEdit. And
second suggestion. Maybe author should use other module with external XML
parser. For example search in google for: spkxmlparser.zip and download it.
Because users can not use XMLDocument modules in Delphi 7 Personal. And
I must take these from enterprise version to be albe to compile whole code..

Now two questions. How to download latest source code? I asking - because
I searched forum and I did not seen informations about it. So I seen - in
one old post - some user post screenshot from compile source in a console
window (cmd.exe) and there was CheatEngine55src directory, so I search in
google for CheatEngine55src filename and found some .rar on a web hosting
service, but there is other method to donwload it? I read something about
some called SVN but I do not know how to use it. Please give me link or a
short info about it. And second question. Is any way to search some whole
process memory like Cheat Engine do it? I'm asking - because whole source
code toke about 50 MB and many long Delphi code modules, so I do not have
time to analize many parts of source yet. And I only seen CE - using some
classes and external additional modules to search memory and return found
results. I also have "Peeping Tom" program source code, but it founding a
only small part of memory. When I run CE and "Peeping Tom" and tring find
some decimal value, CE returns more results and from address lower than a
$00400000. In PT I can not set start and end memory addresses only range,
like Win16 and Win32. Can someone explain me. And sorry for long post and
if anyone from developers can answer me what he think about my two - code
suggestions? Thanks in advice. Also, big sorry for my very bad english Smile

_________________
Best regards: olesio


Last edited by olesio on Tue Apr 13, 2010 4:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25840
Location: The netherlands

PostPosted: Tue Apr 13, 2010 3:45 pm    Post subject: Reply with quote

Is Sensible World of Soccer running inside an emulator?
Because from what I can see is that you're doing a byteswap

Not sure if it's useful in nowadays games, but if it doesn't add extra clutter I guess I could add it

Delphi7 Enterprise does support xmldocument, anyhow, next ce version will be compiled with freepascal/lazarus, so the only problem then would be using the correct revision of fpc/lazarus (currently using the svn instead of official release due to it's support of ownerdata listviews)

Quote:
How to download latest source code?

The main website has a link to it in the download section, which I see if broken 33% of the time (mirror doesn't have it)
anyhow: http://cheatengine.org/download/CheatEngine56src.rar

As for the svn method, check http://cheatengine.org/downloads.php and http://tortoisesvn.net/

Quote:

Is any way to search some whole process memory like Cheat Engine do it?

memscan.pas contains the memory scan class

As for the memory before $00400000 that's because in earlier windows that memory was almost never really used by anything useful, but newer windows versions (vista+) also allocate memory in that region sometimes when the application requests some memory

_________________
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
View user's profile Send private message MSN Messenger
olesio
How do I cheat?
Reputation: 0

Joined: 13 Apr 2010
Posts: 3
Location: Poland

PostPosted: Tue Apr 13, 2010 4:12 pm    Post subject: Reply with quote

Dark Byte wrote:
Is Sensible World of Soccer running inside an emulator?
Because from what I can see is that you're doing a byteswap
Not sure if it's useful in nowadays games, but if it doesn't add extra clutter I guess I could add it

Yes - exacly. I'm using kaillera version from official sensiblesoccer info site,
but in case of normal WinUAE and use hdf harddiskimage or an adfs floppy
images - this byte swap is very usefull I think. So in version 6.7 do you add
it in this popup menu with Ctrl+R shorcut as I do this? If yes - in my opinion
yout application will be ideal. Btw, in GameHack 2.0 was a "Reverse bytes"
button, so I name it menu item like in Game Hack. Because Byte Swap may
be somethink like that - bytes 12 34 56 - may be swaped like 34 56 12, so it
is not exacly reverse - like I do this in code which I showed you in early post.

Quote:

Delphi7 Enterprise does support xmldocument, anyhow, next ce version will be compiled with freepascal/lazarus, so the only problem then would be using the correct revision of fpc/lazarus (currently using the svn instead of official release due to it's support of ownerdata listviews)

So when it will be compilled undet FPC - sorce code will not need xmldoc.dcu
and others anymote? I'm have low knowledge about others IDE than Delphi
3 Profrssional and 7 Personal. Beacuse I only used these versions. Is source
code will be still compileable in Delphi 7 Personal - without any problems?
Quote:

memscan.pas contains the memory scan class

Thank you - I try to analize in free time and maybe using it in Peeping Tom
or some own program source code. But imo - no need to code something big
because your application is very usefull and can do many things which I can't
code because I do not have so great Delphi and games knowledge like you Smile
And thanks for source link. I did not read whole download text too carefuly Smile

_________________
Best regards: olesio
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25840
Location: The netherlands

PostPosted: Tue Apr 13, 2010 4:20 pm    Post subject: Reply with quote

Quote:
So when it will be compilled undet FPC - sorce code will not need xmldoc.dcu and others anymote?

It'll then use xmlwrite and xmlread, but everyone will have those then (it's part of the fpc/lazarus package)

Quote:

Is source code will be still compileable in Delphi 7 Personal - without any problems?

Sadly no, due to resource handling and filename extension differences from lazarus and delphi(lfm instead of dfm) you can't compile it with delphi 7 anymore
But it's not a big problem. FPC/Lazarus is free/opensource ( http://www.lazarus.freepascal.org/ ) and doesn't even take up much diskspace, and it's userinterface largely feels like delphi 7
It can be a bit slow at times though (compared to d7)

_________________
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
View user's profile Send private message MSN Messenger
olesio
How do I cheat?
Reputation: 0

Joined: 13 Apr 2010
Posts: 3
Location: Poland

PostPosted: Tue Apr 13, 2010 4:27 pm    Post subject: Reply with quote

Ok, thanks for answer. Btw, I also suggest you to pack executable with UPX,
I know today net connections are fast and harddisk are large also install exe
will probable pack all files, but smaller program exe - imo should be better.
And if version 6.6 is last compileable in Delphi 7 so I add my reverse bytes
feature and keep it on harddisk, but maybe I will try Lazarus in feature, but
like I know from some post on unit1 pl forum one dude have problems with
Lazarus with SendMessage with HWND_BROADCAST which may be use with
Mutexes to allow run only one instance of application. Also there was some
problems with sending message WM_COPYDATA which may be useful when
sending commandline parameters to open application. But if you don't need
it in your code so maybe use Lazarus even - like you wrote, it is slower a bit.

_________________
Best regards: olesio
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites