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 


[Question/Need Help]C# read memory from pointer + CE
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Immons
How do I cheat?
Reputation: 0

Joined: 21 May 2011
Posts: 9

PostPosted: Thu Jun 02, 2011 6:21 am    Post subject: Reply with quote

OK folks, don't argue, please Laughing

@darkjohn20

The main problem is that using only L2 as a process name, without extension, I DO NOT get handle. I have to use it WITH extension.

The other thing is that I put the code that I posted to the test project and... It did have NO problem reading from memory ! Only when I paste SAME code(ctrl+c, ctrl+v)into my SpamerCP it returns null reference exception !

Btw, reading from .bin shouldn't work ? Only .exe is supported ?

@edit

Well, still need to use L2.bin(with extension)but I got why there was NullReferenceException... I was debugging project for "Any platform" while it had to be x86 ... don't know why, maybe someone will enlighten me ?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Thu Jun 02, 2011 1:42 pm    Post subject: Reply with quote

Quote:

Btw, reading from .bin shouldn't work ? Only .exe is supported ?


Reading from bin will work fine. The file extension is just changed, the overall file is still an executable.

As for your "Any platform" problem, if you are on an x64 machine and compile a project as 'Any platform', Visual Studio uses your current system setup as the default. Meaning you will always compile as x64. L2 is not written as an x64 process therefore you get cross-platform access issues.

You are better off never using "Any Platform" and always designing for a targeted platform. If you wish to design for x64 as well, create a new project build mode specifically for it then.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
KryziK
Expert Cheater
Reputation: 3

Joined: 16 Aug 2009
Posts: 199

PostPosted: Thu Jun 02, 2011 1:45 pm    Post subject: Reply with quote

Ah, alright, I wasn't familiar with .bin files. Now I know!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Thu Jun 02, 2011 1:50 pm    Post subject: Reply with quote

darkjohn20 wrote:
Ah, alright, I wasn't familiar with .bin files. Now I know!


This isn't the same across the board for any file named .bin, this is just specific to Lineage. Not every .bin file will be an executable. It can be whatever the developer decides to rename to that extension.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
KryziK
Expert Cheater
Reputation: 3

Joined: 16 Aug 2009
Posts: 199

PostPosted: Thu Jun 02, 2011 1:51 pm    Post subject: Reply with quote

Wiccaan wrote:
darkjohn20 wrote:
Ah, alright, I wasn't familiar with .bin files. Now I know!


This isn't the same across the board for any file named .bin, this is just specific to Lineage. Not every .bin file will be an executable. It can be whatever the developer decides to rename to that extension.


Ahh, makes sense. Thanks!
Back to top
View user's profile Send private message
troxan
How do I cheat?
Reputation: 0

Joined: 02 May 2012
Posts: 4

PostPosted: Fri May 04, 2012 12:46 pm    Post subject: Reply with quote

Hi, i ve used the code from the 3rd post. Now i got a pub int Maxhp and a pub int CurrenHp. How can i get the values of my pointers out from the public intīs? or how can i rewrite the code to get values?
i want to use it with this:
If (currHP <= maxHP & currHP >= 0) {
ProgressBar1.Maximum = maxHP;
ProgressBar1.Value = currHP;}

Sorry my C# skills are very low i hope some one can help me out.
SOLVED /
lol just call the method.......
my next question is how to put text onto the bar?
Smile i know im a newbie^^
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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