Author Topic: Game modding! WHERE TO BEGIN?  (Read 1219 times)

0 Members and 1 Guest are viewing this topic.

Offline krak3n

  • NULL
  • Posts: 4
  • Cookies: 0
  • Beginner in C# Love tips and tricks
    • View Profile
Game modding! WHERE TO BEGIN?
« on: November 01, 2015, 09:12:01 pm »
Hello people!

I am very new to C#, (following some tutorials on youtube to learn it).

Some days ago i saw a thread about a selfmade aimbot for csgo that im pretty sure was made in C#.
How do people learn to code their own scripts and mods?

Is there some kind of guide for help (books, videoes etc)
Or is it something you just need to learn by yourself?

Thanks for all help! :-)

Offline Rytiou

  • Noob Zombie
  • VIP
  • Knight
  • *
  • Posts: 199
  • Cookies: 45
  • EZ's Noob
    • View Profile
Re: Game modding! WHERE TO BEGIN?
« Reply #1 on: November 01, 2015, 09:16:37 pm »
Not to burst your bubble or anything but if you're just starting out learning C# you should really take some time and learn the fundamentals since there's a lot to learn. Then once you feel comfortable start branching out and doing your own projects like you're saying. As far as your question goes I wouldn't have any idea since it isn't my area of expertise but see if you can get a hold of cr4zi8, he knows a lot about what you're talking about.
Quote from: Evilzone IRC
<EZBot> life, you're so lame we decided to change your nick to Rytiou's bitch.
<EZBot> Rytiou is lord of the fags and will suck dicks for shells.

Offline krak3n

  • NULL
  • Posts: 4
  • Cookies: 0
  • Beginner in C# Love tips and tricks
    • View Profile
Re: Game modding! WHERE TO BEGIN?
« Reply #2 on: November 01, 2015, 09:18:20 pm »
Guess thats true, but i feel like you learn more from doing your own projects than others. but hey, guess im going back to the beginner tutorials  :P

Offline Sheogorath

  • /dev/null
  • *
  • Posts: 16
  • Cookies: -3
    • View Profile
Re: Game modding! WHERE TO BEGIN?
« Reply #3 on: November 02, 2015, 01:37:04 am »
Not to burst your bubble or anything but if you're just starting out learning C# you should really take some time and learn the fundamentals since there's a lot to learn. Then once you feel comfortable start branching out and doing your own projects like you're saying. As far as your question goes I wouldn't have any idea since it isn't my area of expertise but see if you can get a hold of cr4zi8, he knows a lot about what you're talking about.

Really what this guy says nails it. Too make a program like this you need to understand entirely how it works. There are plenty of online resources to explain the process. If you want to understand the concept better I'd suggest using Cheat Engine on a couple of flash games (Any singleplayer game with say an ingame currency will do). It all comes down to editing memory values if I'm correct. Which I believe in myself too be.

I'd also study assembly, not necessary 100% but it wouldn't hurt. Don't let it intimidate

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Game modding! WHERE TO BEGIN?
« Reply #4 on: November 02, 2015, 02:43:03 am »
I'll be nice and share a book even though you are a little ways away from the post count limit..

http://upload.evilzone.org/?page=download&file=uZPdzzIeHMn0RQAK2M43zCd93IBghPgOFNYvIMg9qzKnjIyUaX

Start with that book, it will teach you how to write better code that will go a long way towards core information
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline RedBullAddicted

  • VIP
  • Sir
  • *
  • Posts: 519
  • Cookies: 189
    • View Profile
Re: Game modding! WHERE TO BEGIN?
« Reply #5 on: November 02, 2015, 09:20:16 am »
Just wanted to leave this tutorial here:

https://evilzone.org/tutorials/intro-to-game-hacking-p1-external-memory-hacks

And here is a cs:go trigger bot. Maybe you can learn something from it.

https://evilzone.org/evilzone-releases/(release)-csgo-triggerbot-19879
Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams no mortal ever dared to dream before. - Edgar Allan Poe

Offline krak3n

  • NULL
  • Posts: 4
  • Cookies: 0
  • Beginner in C# Love tips and tricks
    • View Profile
Re: Game modding! WHERE TO BEGIN?
« Reply #6 on: November 02, 2015, 02:05:43 pm »
Thank you guys! Appreciate all information from people with more knowlege than me !!:*

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Game modding! WHERE TO BEGIN?
« Reply #7 on: November 02, 2015, 02:16:07 pm »
Why not start with Gary's Mod?
>>>import this
-----------------------------

Offline Mordred

  • Knight
  • **
  • Posts: 360
  • Cookies: 135
  • Nvllivs in Verba
    • View Profile
Re: Game modding! WHERE TO BEGIN?
« Reply #8 on: November 02, 2015, 03:06:08 pm »
Although the title is related to modding, I see that your example is an Aimbot. Cheating and modding are, to a certain extent, different.

As a rule of thumb (although not exclusively) cheating is done via memory manipulation or DLL injection (as Sheogorath and RBA mentioned) and it involves mostly knowledge of addressing spaces, memory addressing in general, how DLL's work, how you can inject one, how can you bypass anti-cheating efforts (and implicitly how do anti-cheat such as PunkBuster, VAC (Steam/Valve) and Fairfight (Origin/EA) work).

Modding is usually done via APIs or tools that have been directly exposed by the developer of the original game. This is also not exclusive, as many mods for many games have been done through reverse engineering and techniques usually used for cheating.

If I were to give a suggestion, I would reinforce Sheogorath's suggestion to download, install and do the tutorials of Cheat Engine (http://www.cheatengine.org/) if your goal is to develop cheats or trainers. Whilst doing this deepen your knowledge of the topics that you are not familiar with that are presented in the aforementioned tutorials. Once you've done that you can go onto trying to build a custom Cheat Engine script (LUA) for a more modern game (2013+) to see how the lessons apply in a "real-world" scenario.

If modding is your thing, unfortunately I have no good advice as I've never done/worked on/read about how a mod is built. Although, intuition-wise, object oriented programming, C++, C#/Java spring to mind as relevant topics.

L.E.: If creating cheats & co. is indeed your goal, a nice place to start from is studying how DLL injection works (it's a technique used very, very often) when injecting into the affected process's mem space, then read on how DLL injection works when you inject into a different process other than your target (i.e. inject into Skype to cheat in Counter Strike with the goal of avoiding detection). Afterwards I for one would try to build my own DLL injector and use it to see how the technique works. Finally, a study on WINAPI hooking and building a working function hook will definitely be of use.
« Last Edit: November 02, 2015, 03:14:38 pm by Mordred »
\x57\x68\x79\x20\x64\x69\x64\x20\x79\x6f\x75\x20\x65\x76\x65\x6e\x20\x66\x75\x63\x6b\x69\x6e\x67\x20\x73\x70\x65\x6e\x64\x20\x74\x68\x65\x20\x74\x69\x6d\x65\x20\x74\x6f\x20\x64\x65\x63\x6f\x64\x65\x20\x74\x68\x69\x73\x20\x6e\x69\x67\x67\x72\x3f\x20\x44\x61\x66\x75\x71\x20\x69\x73\x20\x77\x72\x6f\x6e\x67\x20\x77\x69\x74\x68\x20\x79\x6f\x75\x2e

Offline krak3n

  • NULL
  • Posts: 4
  • Cookies: 0
  • Beginner in C# Love tips and tricks
    • View Profile
Re: Game modding! WHERE TO BEGIN?
« Reply #9 on: November 04, 2015, 08:07:59 am »
Damn man! Thanks for your time writing that^^

Will look more into dll injection and cheat engine  ;D