C
C#ā€¢11mo ago
Turtles

āœ… 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
Turtles
TurtlesOPā€¢11mo ago
by change, i mean change the value of that pointer
Jimmacle
Jimmacleā€¢11mo ago
sounds a lot like cheating to me, maybe you should read the server rules
Vi Ness
Vi Nessā€¢11mo ago
Is cheating against Discord's ToS? I don't see where #info-and-rules mentions cheating
RubyNovaDev
RubyNovaDevā€¢11mo ago
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
Vi Ness
Vi Nessā€¢11mo ago
Ah okay, so it is part of Discord's ToS. Thank you
RubyNovaDev
RubyNovaDevā€¢11mo ago
@Turtles with the above stated, please elaborate on why you need this
Turtles
TurtlesOPā€¢11mo ago
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
Jimmacle
Jimmacleā€¢11mo ago
does the game support modding? like, officially?
Turtles
TurtlesOPā€¢11mo ago
technically yes? you can mod certain things in the game that the devs intended also what does that have to do with anything
Jimmacle
Jimmacleā€¢11mo ago
because that affects whether what you're trying to do violates the game's TOS or not
Turtles
TurtlesOPā€¢11mo ago
bro idk i do not read the tos its a decade old game
Jimmacle
Jimmacleā€¢11mo ago
realistically the majority of reasons you'd want to modify the memory of a game externally is to cheat
Turtles
TurtlesOPā€¢11mo ago
i already said im not gonna cheat?
Jimmacle
Jimmacleā€¢11mo ago
i mean, you didn't say what you were going to do either
Turtles
TurtlesOPā€¢11mo ago
bruh amazing argument 10/10 i ask a question in the help channel and now im being interviewed like i killed someone lol
Jimmacle
Jimmacleā€¢11mo ago
because 99% of people asking what you're asking are trying to cheat
Turtles
TurtlesOPā€¢11mo ago
why would i make a program to cheat just use cheat engine
Vi Ness
Vi Nessā€¢11mo ago
That's hyperbole. They just want to make sure you're not breaking the rules
Turtles
TurtlesOPā€¢11mo ago
omg obviously its a hyperbole plus, cheating in a singleplayer game doesnt effect anything
Vi Ness
Vi Nessā€¢11mo ago
You still haven't said what you're trying to do, other than "it's not cheating lmao"
Turtles
TurtlesOPā€¢11mo ago
yes i have
Jimmacle
Jimmacleā€¢11mo ago
you haven't
Turtles
TurtlesOPā€¢11mo ago
^
Jimmacle
Jimmacleā€¢11mo ago
you know what we mean when we ask that question
Turtles
TurtlesOPā€¢11mo ago
no i dont lol i answered your quesiton
Jimmacle
Jimmacleā€¢11mo ago
what is your end goal with modifying the memory of this game? if you want help you need to be specific anyway
Turtles
TurtlesOPā€¢11mo ago
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
Vi Ness
Vi Nessā€¢11mo ago
When you talk about speedrunning, cheating is affecting things if you're trying to cheat
Turtles
TurtlesOPā€¢11mo ago
omg cheat engine im not making another cheat engine
Jimmacle
Jimmacleā€¢11mo ago
there are exceedingly few projects that require this kind of thing that aren't cheating
Turtles
TurtlesOPā€¢11mo ago
bro if i wanted to cheat, i would just use cheat engine
Jimmacle
Jimmacleā€¢11mo ago
even if your specific use case right now isn't cheating, it has very few uses other than that
Turtles
TurtlesOPā€¢11mo ago
what is this lmao
Vi Ness
Vi Nessā€¢11mo ago
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?
Jimmacle
Jimmacleā€¢11mo ago
if you want to play with pointers you don't need to mess with a game to do that
Turtles
TurtlesOPā€¢11mo ago
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
Jimmacle
Jimmacleā€¢11mo ago
then i'd say the same thing
Turtles
TurtlesOPā€¢11mo ago
one question
Jimmacle
Jimmacleā€¢11mo ago
reading/modifying memory of another process is almost always used for cheating
arion
arionā€¢11mo ago
var x = 69;

int* y = &x;
var x = 69;

int* y = &x;
pointers
Turtles
TurtlesOPā€¢11mo ago
most descriptive answer ever šŸ‘
Jimmacle
Jimmacleā€¢11mo ago
there are tons of more useful things to learn about programming if that is your actual goal
Turtles
TurtlesOPā€¢11mo ago
bro what dude its a simple question gatekeeping information dont you want people to learn?
Jimmacle
Jimmacleā€¢11mo ago
sure, but i don't want to help people hack games
Turtles
TurtlesOPā€¢11mo ago
dude people have already decompiled the whole game
Jimmacle
Jimmacleā€¢11mo ago
the uses for what you're asking are almost exclusively illegitimate
Turtles
TurtlesOPā€¢11mo ago
im not trying to hack it
Jimmacle
Jimmacleā€¢11mo ago
why not pick something that isn't in such a gray area to learn?
Turtles
TurtlesOPā€¢11mo ago
what gain would i even get if i do that its my choice lmao i can choose what i want to learn
Vi Ness
Vi Nessā€¢11mo ago
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
Jimmacle
Jimmacleā€¢11mo ago
if you really do want to learn it i doubt you'll get help with it here
Turtles
TurtlesOPā€¢11mo ago
bro because the decompile is really bad
Jimmacle
Jimmacleā€¢11mo ago
because you'll get these questions every time you ask
Turtles
TurtlesOPā€¢11mo ago
just answer the original question
Jimmacle
Jimmacleā€¢11mo ago
no
Turtles
TurtlesOPā€¢11mo ago
omg help channel is not being help channel rn
Jimmacle
Jimmacleā€¢11mo ago
how surprising, help channel doesn't help with sketchy projects pick literally anything other than this and people would be glad to help
Turtles
TurtlesOPā€¢11mo ago
how is this sketch
Jimmacle
Jimmacleā€¢11mo ago
i've explained that several times
Vi Ness
Vi Nessā€¢11mo ago
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
Turtles
TurtlesOPā€¢11mo ago
im not modifying the game its just memory that is not permanent
Vi Ness
Vi Nessā€¢11mo ago
That is literally modifying the game
Jimmacle
Jimmacleā€¢11mo ago
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
Turtles
TurtlesOPā€¢11mo ago
ok we are different people? have you ever thought of that?
arion
arionā€¢11mo ago
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
Jimmacle
Jimmacleā€¢11mo ago
if your goal is to learn, why not pick a safer project instead of trying to bully us into telling you what you want?
Turtles
TurtlesOPā€¢11mo ago
but im not cheating so it doesnt matter jeez how am i bullying what is this bruh
Jimmacle
Jimmacleā€¢11mo ago
seriously, pick any legitimate project and we'd be happy to help
Turtles
TurtlesOPā€¢11mo ago
this is legitimate
Jimmacle
Jimmacleā€¢11mo ago
this is too much of a gray area regardless of whether you're really cheating or not that is your answer
Turtles
TurtlesOPā€¢11mo ago
when did trust just not become a thing people had when have i lost your trust?
Vi Ness
Vi Nessā€¢11mo ago
Heck, I'd be happy to help with this one if there wasn't rules involved
Turtles
TurtlesOPā€¢11mo ago
ok dm's
arion
arionā€¢11mo ago
Its too close to "sussy" territory for the liking is whats likely happening
Turtles
TurtlesOPā€¢11mo ago
lets go
Vi Ness
Vi Nessā€¢11mo ago
No thanks
Turtles
TurtlesOPā€¢11mo ago
so youre not happy to help you are lying
Jimmacle
Jimmacleā€¢11mo ago
since kids come into this discord and blatantly ask for help cheating
Turtles
TurtlesOPā€¢11mo ago
im not?
Jimmacle
Jimmacleā€¢11mo ago
i'm saying it's common enough that that's the reason we don't trust what you're saying
Turtles
TurtlesOPā€¢11mo ago
where can i learn the information im trying to obtain
Jimmacle
Jimmacleā€¢11mo ago
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
Turtles
TurtlesOPā€¢11mo ago
just answer that then ill leave
Jimmacle
Jimmacleā€¢11mo ago
google
Turtles
TurtlesOPā€¢11mo ago
google is smooth brain
Jimmacle
Jimmacleā€¢11mo ago
google is the best tool you have to find information if you can't find it there, you should pick a simpler project
arion
arionā€¢11mo ago
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
Vi Ness
Vi Nessā€¢11mo ago
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
Turtles
TurtlesOPā€¢11mo ago
bro what omg
Jimmacle
Jimmacleā€¢11mo ago
pointers are A-OK, what isn't A-OK is modifying out of process memory
Turtles
TurtlesOPā€¢11mo ago
how am i sus rn
arion
arionā€¢11mo ago
<:pocky_aa_this_DONTSTEAL:778751000701304832> thats how
Turtles
TurtlesOPā€¢11mo ago
C# discord server being helpful as always šŸ‘
Jimmacle
Jimmacleā€¢11mo ago
i don't know why you keep saying that as if we'll change our mind
Vi Ness
Vi Nessā€¢11mo ago
You keep saying the same things. Of course you're not getting the information. Nothing has changed
Turtles
TurtlesOPā€¢11mo ago
you are just gatekeeping information
Jimmacle
Jimmacleā€¢11mo ago
yes
Turtles
TurtlesOPā€¢11mo ago
yeah like wtf
Jimmacle
Jimmacleā€¢11mo ago
and i've said why several times
Turtles
TurtlesOPā€¢11mo ago
each of those reasons are not true i am not trying to cheat
Jimmacle
Jimmacleā€¢11mo ago
they are, if you need mods to come back to tell you that we can wait
Turtles
TurtlesOPā€¢11mo ago
ok
Aaron
Aaronā€¢11mo ago
what game is this even for
Turtles
TurtlesOPā€¢11mo ago
The Escapists
Aaron
Aaronā€¢11mo ago
eh, probably fine
arion
arionā€¢11mo ago
bro
Turtles
TurtlesOPā€¢11mo ago
thank you
arion
arionā€¢11mo ago
its unity u dont need pointers
Turtles
TurtlesOPā€¢11mo ago
its not unity its clickteam fusion šŸ’€
Turtles
TurtlesOPā€¢11mo ago
clickteam fusion? the unity one is only for the mobile and console ports of the game do research bud
Jimmacle
Jimmacleā€¢11mo ago
ironic
Aaron
Aaronā€¢11mo ago
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.
Turtles
TurtlesOPā€¢11mo ago
thank you that is all i ask for
Jimmacle
Jimmacleā€¢11mo ago
you know he just googled that KEKW
Aaron
Aaronā€¢11mo ago
it has no C# equivalent, you just have to p/invoke it eh, I knew the name already
Turtles
TurtlesOPā€¢11mo ago
ok? i do not care i got what i came for bruh stop typing this thread is over
Jimmacle
Jimmacleā€¢11mo ago
you have a really bad attitude, tbh
Turtles
TurtlesOPā€¢11mo ago
i said thanks? you literally replied "no" to a question thats a bad attitude
Jimmacle
Jimmacleā€¢11mo ago
enjoy hacking your game
Turtles
TurtlesOPā€¢11mo ago
i will
Anchy
Anchyā€¢11mo ago
YEP
Want results from more Discord servers?
Add your server