ā Accessing memory pointers in C#
I want to make a WPF C# program where you can change a game's memory pointer. How do i do this?
123 Replies
by change, i mean change the value of that pointer
sounds a lot like cheating to me, maybe you should read the server rules
Is cheating against Discord's ToS? I don't see where #info-and-rules mentions cheating
it doesn't mention cheating specifically because it covers it with the more general terms
specifically, you can't use discord to aid you in violating another software's TOS
and uh
cheating generally breaks that
Ah okay, so it is part of Discord's ToS. Thank you
@Turtles with the above stated, please elaborate on why you need this
lmao
if i were to cheat i would just use cheat engine
no, but, i just want to push myself further in programming and since i speedrun the game i am focusing on for this, it allows me to also learn more about the game
so
can yall help me lol
is there like a nuget package or smt for this
does the game support modding?
like, officially?
technically yes?
you can mod certain things in the game that the devs intended
also what does that have to do with anything
because that affects whether what you're trying to do violates the game's TOS or not
bro
idk
i do not read the tos
its a decade old game
realistically the majority of reasons you'd want to modify the memory of a game externally is to cheat
i already said im not gonna cheat?
i mean, you didn't say what you were going to do either
bruh
amazing argument
10/10
i ask a question in the help channel and now im being interviewed like i killed someone lol
because 99% of people asking what you're asking are trying to cheat
why would i make a program to cheat
just use cheat engine
That's hyperbole. They just want to make sure you're not breaking the rules
omg obviously its a hyperbole
plus, cheating in a singleplayer game doesnt effect anything
You still haven't said what you're trying to do, other than "it's not cheating lmao"
yes i have
you haven't
^
you know what we mean when we ask that question
no i dont lol
i answered your quesiton
what is your end goal with modifying the memory of this game?
if you want help you need to be specific anyway
i do not have a goal in mind. its just to be better at programming jeez
i do not need to be specific with this
When you talk about speedrunning, cheating is affecting things if you're trying to cheat
omg
cheat engine
im not making another cheat engine
there are exceedingly few projects that require this kind of thing
that aren't cheating
bro if i wanted to cheat, i would just use cheat engine
even if your specific use case right now isn't cheating, it has very few uses other than that
what is this lmao
Can you explain how changing another process's memory furthers you as a programmer or helps you understand the game more than Cheat Engine can?
if you want to play with pointers you don't need to mess with a game to do that
it furthers me as a programmer by just programming more
bruh
ok what if i said i just wasnt gonna do this for a game
what then
what would you answer with
this is actually aids
then i'd say the same thing
one question
reading/modifying memory of another process is almost always used for cheating
pointers
most descriptive answer ever
š
there are tons of more useful things to learn about programming
if that is your actual goal
bro what
dude
its a simple question
gatekeeping information
dont you want people to learn?
sure, but i don't want to help people hack games
dude
people have already decompiled the whole game
the uses for what you're asking are almost exclusively illegitimate
im not trying to hack it
why not pick something that isn't in such a gray area to learn?
what gain would i even get if i do that
its my choice lmao
i can choose what i want to learn
If the whole game is decompiled what more do you learn about it from accessing its memory? This doesn't line up with your original goal
if you really do want to learn it i doubt you'll get help with it here
bro because the decompile is really bad
because you'll get these questions every time you ask
just answer the original question
no
omg
help channel is not being help channel rn
how surprising, help channel doesn't help with sketchy projects
pick literally anything other than this and people would be glad to help
how is this sketch
i've explained that several times
You know why its not helpful to you right now. Discord ToS has been mentioned multiple times and you haven't given a convincing reason how you wouldn't be breaking the ToS of the game you're trying to modify
im not modifying the game
its just memory
that is not permanent
That is literally modifying the game
i can count on one hand the number of times i've had to do what you're asking in practice, the number is 0
this isn't something that you do in legitimate programming 99% of the time
ok
we are different people?
have you ever thought of that?
In a nutshell, the reason why servers dont rly wanna have anything to do with the topic of cheating is, is puts the entire discord server in jeopardy. Discord bans servers associated with cheating. The secondary reasoning would be the moral implications
if your goal is to learn, why not pick a safer project instead of trying to bully us into telling you what you want?
but im not cheating so it doesnt matter jeez
how am i bullying
what is this bruh
seriously, pick any legitimate project and we'd be happy to help
this is legitimate
this is too much of a gray area regardless of whether you're really cheating or not
that is your answer
when did trust just not become a thing people had
when have i lost your trust?
Heck, I'd be happy to help with this one if there wasn't rules involved
ok dm's
Its too close to "sussy" territory for the liking is whats likely happening
lets go
No thanks
so youre not happy to help
you are lying
since kids come into this discord and blatantly ask for help cheating
im not?
i'm saying it's common enough that that's the reason we don't trust what you're saying
where can i learn the information im trying to obtain
you're asking about something almost exclusively used in cheating, not telling us what you're actually trying to do, and getting pissed off that we aren't caving
just answer that
then ill leave
google
google is smooth brain
google is the best tool you have to find information
if you can't find it there, you should pick a simpler project
There are legitimate uses for pointers in C#, windows apis for example. But what jIMMACLE is likely trying to say is, you're acting suspicious enough for help on the topic to be risky or dangerous to everyone involved
ChatGPT might tell you if you tell it that you're not breaking ToS or doing shady stuff multiple times. Kinda the same way we're asking you about it
bro what
omg
pointers are A-OK, what isn't A-OK is modifying out of process memory
how am i sus rn
<:pocky_aa_this_DONTSTEAL:778751000701304832>
thats how
C# discord server being helpful as always š
i don't know why you keep saying that as if we'll change our mind
You keep saying the same things. Of course you're not getting the information. Nothing has changed
you are just gatekeeping information
yes
yeah
like wtf
and i've said why several times
each of those reasons are not true
i am not trying to cheat
they are, if you need mods to come back to tell you that we can wait
ok
what game is this even for
The Escapists
eh, probably fine
bro
thank you
its unity
u dont need pointers
its not unity
its clickteam fusion š
clickteam fusion?
the unity one is only for the mobile and console ports of the game
do research bud
ironic
anyway, the API you're looking for is https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-writeprocessmemory
WriteProcessMemory function (memoryapi.h) - Win32 apps
Writes data to an area of memory in a specified process. The entire area to be written to must be accessible or the operation fails.
thank you
that is all i ask for
you know he just googled that
it has no C# equivalent, you just have to p/invoke it
eh, I knew the name already
ok?
i do not care
i got what i came for
bruh stop typing this thread is over
you have a really bad attitude, tbh
i said thanks?
you literally replied "no" to a question
thats a bad attitude
enjoy hacking your game
i will