WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: doomkaiber001 on October 30, 2010, 09:25:05 PM

Title: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 30, 2010, 09:25:05 PM
Hi guys, can someone advise me on how to make codes for VC, and then how to use them. Help would be greatly appreciated!
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on October 31, 2010, 12:52:04 AM
Same way as a normal game, just run the game through Gecko OS,
You only have the option to run a Channel through it after you do something though... i'm sorry, I am not entirely sure, but if you looked up missing buttons in Gecko OS on the forum search I'm sure you'd find something
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 12:56:28 AM
Ok, I think I need a patched I0S or something. Anyway, got any advice on making a code. USB Gecko and cheat engine kinda get them for you.
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on October 31, 2010, 01:00:18 AM
Read this.
http://wiird.l0nk.org/forum/index.php/topic,7007.msg60534.html#msg60534 :)

You only need USBGecko, and a hacking application. IE. WiiRD, Gecko DotNet... more to come I hear.

and watch this video on USBGecko SE
http://usbgecko.com/
Title: Re: How to make codes (for VC) / How to use them
Post by: Skiller on October 31, 2010, 01:02:55 AM
Quote from: doomkaiber001 on October 31, 2010, 12:56:28 AM
Ok, I think I need a patched I0S or something. Anyway, got any advice on making a code. USB Gecko and cheat engine kinda get them for you.

ya u need a patched ios or i think ios 249.. i cant rember lol . But with the new Way of On the fly patching of IOS Maybe this issue might get fixed also alowing a better Reboot function but im not to sure .. (Thats if a new version comes about)

And Benny u linked back to your post lol .
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 01:03:35 AM
Ah... gotta wait for another USBGecko then. In another thread someone told me that making these codes is as easy as converting decimal to hex. I misinterpereted what he said
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on October 31, 2010, 01:07:07 AM
Woops, here you go!
http://wiird.l0nk.org/forum/index.php/topic,7011.msg60537.html#msg60537

I hope that one is right, look at the links there.
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 01:12:56 AM
Quote from: benny3t3 on October 31, 2010, 01:07:07 AM
Woops, here you go!
http://wiird.l0nk.org/forum/index.php/topic,7011.msg60537.html#msg60537

I hope that one is right, look at the links there.

Did you mean to link back to the 'person who wants to become a hacker' thread.

Ps No bad intentions meant just can't remember its name.
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 01:29:01 AM
Thanks Benny!
In England its like, 1am. I'll study that in more detail later. I was wondering - do you have a link to help me understand C++? I haven't even begun to wonder what thats all about!
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on October 31, 2010, 04:07:12 AM
Yes, This guide will make learning C++ become a smooth process.

So far, I haven't actually applied C++ to anything Wii related, except for that it familiarized me with programming. I'm not saying that it isn't helpful, C++ is a great language to know, but for me it served as preparation to read ANOTHER guide on Power PC (You can find that by following the link I gave you, you will have to jump from link to link to link. Anyways, here is the best guide on C++ I know of.

http://www.google.com/search?client=safari&rls=en&q=learn+c%2B%2B+in+21+days&ie=UTF-8&oe=UTF-8

Click on the "Second Edition" link

have fun!  ;D

Oh, and some advice, don't try and figure out how to print the words "Hello World!" on the screen from your Wii, I thought it would be simple... but it takes a good 30 lines of program to achieve. (it would normally only take about 8.
I am warning you so you don't have to waste time googling like I did.
Title: Re: How to make codes (for VC) / How to use them
Post by: Nutmeg on October 31, 2010, 05:17:53 AM
You only need to know basic C++ knowledge for wii hacking.  I know the basics of C++, and here is where I learned it: http://www.cprogramming.com/tutorial/lesson1rev.html

That's the first lesson, but you need to get a compiler.  I good one for beginners (it has a built in debugger) is devC++ 4.9.9.2

If you feel that you are more advanced, I'd go with eMacs.

All you really need to know for wii hacking is the if, endif, and the "fancy" notation for understanding the technical code document.  example += is a shortcut for writing... You'll find out!

-Don't know if this has been discussed before... but I think this forum should have a programming section.  I'm sure lots of people could get help.
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 08:31:42 AM
Thanks both of you! I'll get onto it right away! How DO you use C++ in Wii Hacking then?
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 08:36:33 AM
The basics I know before going onto that link;
// Comment (Not used by preprossesor?)
{}  I think main structure where the preprosessor starts the command
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on October 31, 2010, 04:12:50 PM
//comment means not used at ALL
just helps a person understand what he/she coded

# means preproccesser

and that isn't preprocessor, that is processer,

Such as

#include <iostream.h>          //this is the preprocesser
Main()     //this is not
{cout << "Hello World!\n";           //begin
return 0;
  } //end

oh, and spaces are meaningless usually
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 04:33:33 PM
Thanks. Don't entirely get the 'iostream' though.
Title: Re: How to make codes (for VC) / How to use them
Post by: Nutmeg on October 31, 2010, 04:36:40 PM
iostream opens a library of commands in the computer.

It stands fo "in out stream" and it lets you use funtcions like cout and cin.
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 04:43:34 PM
Oh, so it allows you to give certain orders to your computers?


That sounds harsh.
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on October 31, 2010, 06:39:29 PM
When you get a compiler, (I use Borland C++ compiler) (you can google it, you would have to sign on as a member of a developer website to get it) You will see.

The include files make life easier,

there will be a folder named include, and it contains files that are prewritten commands for the preprocesser to run before running the program

you will need to do some work to set up the compiler, and I have noticed that many times, the instructions are difficult to understand.

This will help you get started if you were to use Borland C++
http://www.wikihow.com/Set-up-Borland's-Free-C-Compiler-for-Windows
, I don't know about others, but you can check them out, the difference would be the best ones tell you the most errors in your programs, Borland works for me.

here is an example of how to compile HelloWorld.cpp with that compiler (use the plus sign and then drag the config file (explained in the link) into the terminal, to include the instructions in the config file.

let's say that bcc32.cfg is located in /usr/desktop (I just made that up)
and helloworld.cpp is located in /file/random/

bcc32 +/usr/desktop/bcc32.cfg /file/random/            //note the space inbetween the two directories.

oh, and you need a terminal

http://www.brothersoft.com/ms-dos-226177.html

not uber convenient but it works if you don't make mistakes (because there is no way to call on command history) so you would have to type it all back in if a mistake is made in a command.

and this will help alot when making programs, I would turn the number lines option on
http://sourceforge.net/projects/devkitpro/

I like to just direct the DOS Shell to the program manually using the "cd" command and just type in the name of the file instead of a directory, i am not sure if dragging and dropping works for the file that is being compiled.

Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on October 31, 2010, 06:42:59 PM
cout << simply prints words to the screen, cin >> prompts the client (whoever uses the program) for an input value.
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on October 31, 2010, 07:31:29 PM
Thanks, but one question still hangs in my mind; where and how does a person use C++ in Wii Hacking?
Title: Re: How to make codes (for VC) / How to use them
Post by: Nutmeg on October 31, 2010, 08:26:11 PM
Some of it is very similar.  Just changed from word commands, to numbers.

ex. ifs and endifs.
Title: Re: How to make codes (for VC) / How to use them
Post by: biolizard89 on October 31, 2010, 08:35:56 PM
Personally I don't think C++ familiarity is a prerequisite for Wii hacking.  Just the concepts of bytes, hex, memory addresses, ifs, and subroutines should be sufficient to do a lot of simple codes.  Now, if you want to get into ASM codes, then knowing some C or C++ may be useful.  But I wouldn't say it's necessary for simple codes.
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on November 01, 2010, 03:11:02 AM
biolizard, honestly, who doesn't want to get into asm coding at some point? I know I do.  :p

like I said, it is not necessary, but it is suggested,

Like math, it may not have any direct application, but it teaches you to think. In this case, like a computer.
I don't think you could just jump right into asm without first reading at least several chapters of simplified coding.
oh, and like I said, it is good to know. It is a big language.
Title: Re: How to make codes (for VC) / How to use them
Post by: Nutmeg on November 01, 2010, 03:25:33 AM
You don't really need it for ASM coding.  For ASM, you need to know how the specific processor works.  But, you do need to think like a computer.  I don't even know how a pointer works in C++, but I can do some stuff with ASM.  But, it is a good thing to know if you want to wii hack.  They aren't related to much, but the people who hack wii, are the same people who write programs.  They go together.
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on November 01, 2010, 03:36:30 AM
Well put, so basically, as long as you have the time, I would suggest getting a start on C++
Title: Re: How to make codes (for VC) / How to use them
Post by: biolizard89 on November 01, 2010, 03:48:01 AM
Obviously C++ is a useful language to be familiar with.  I'm a 2nd-year computer science major, FYI, so I do realize the benefit of such knowledge.  My point was that you can create a lot of Wii codes (including simple ASM codes) with minimal or no experience coding in a lower-level language like C++ or ASM.  No offense to the original poster, but he appears to be a newbie to this, and my concern is that you are going to either scare him off or cause him to expend a great deal of effort in learning something which (while highly nice knowledge to have) is not relevant to the majority of Gecko code hacking that goes on.

Comments, preprocessing, iostream, cout, cin, none of these have significant relevance to Gecko codes that a newbie would be making.

If I wanted to explain the if/endif system to a newbie, I would explain it in terms of a flowchart or a simple English description.  I would not try to make them learn C++ just to understand if/endif.  And many Gecko codes don't even use if/endif; I would expect a newbie's first code to be a one-line RAM write code (00/02/04 codetype).

If he wants to learn C++ for the sake of gaining computer science knowledge, then by all means help him do that.  But please don't imply to him that C++ is a prerequisite for Gecko code hacking.  Because I learned how to make codes with GCNrd a year before I learned C++, and I did just fine.

Thanks.
Title: Re: How to make codes (for VC) / How to use them
Post by: dcx2 on November 01, 2010, 04:34:58 AM
Yeah, I have to agree with biolizard...you don't need C++ to learn how to hack.  C++ is too high level.  It helps, but if you don't know it, it will probably be more of a pain in the ass to learn.  And even if you learn C++, you also have to learn how the compiler wants to turn it into ASM.

It's much more important to understand how the numbers are being crunched by the CPU at a lower level.

http://wiird.l0nk.org/forum/index.php/topic,5249.0.html
Title: Re: How to make codes (for VC) / How to use them
Post by: Skiller on November 01, 2010, 05:07:27 AM
Quote from: dcx2 on November 01, 2010, 04:34:58 AM
Yeah, I have to agree with biolizard...you don't need C++ to learn how to hack.  C++ is too high level.  It helps, but if you don't know it, it will probably be more of a pain in the ass to learn.  And even if you learn C++, you also have to learn how the compiler wants to turn it into ASM.

It's much more important to understand how the numbers are being crunched by the CPU at a lower level.

http://wiird.l0nk.org/forum/index.php/topic,5249.0.html


this is very well true i have no programing Background .. but one u been hacking for a long time u start to Learn some things :P main things that will help u are things based on the actual Op codes for the System your hacking once u have full understanding of them u can almost do anything u want.. i have an understanding of Arm,Mips,PPC mainly do to my hacking of the systems that use them nothing to do with any C++ or anything like that sure learning that kinda stuff could help u in the longrun but it would not mainly be to hack a code for a game . maybe Build something for use for hacking ..
Title: Re: How to make codes (for VC) / How to use them
Post by: Nutmeg on November 01, 2010, 06:20:05 AM
Quote from: dcx2 on November 01, 2010, 04:34:58 AM
Yeah, I have to agree with biolizard...you don't need C++ to learn how to hack.  C++ is too high level.  It helps, but if you don't know it, it will probably be more of a pain in the ass to learn.  And even if you learn C++, you also have to learn how the compiler wants to turn it into ASM.

It's much more important to understand how the numbers are being crunched by the CPU at a lower level.

http://wiird.l0nk.org/forum/index.php/topic,5249.0.html

I would agree with that (kind of)... I might add that lower level programming is much more complex than C++
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on November 01, 2010, 10:44:19 AM
Still, I guess it would be useful to learn. After watching Videos on youtube, I understand mostly how to use USBGecko. I think I should still have a look at C++.  O0
Title: Re: How to make codes (for VC) / How to use them
Post by: benny3t3 on November 01, 2010, 04:29:44 PM
Quote from: Nutmeg on November 01, 2010, 06:20:05 AM
Quote from: dcx2 on November 01, 2010, 04:34:58 AM
Yeah, I have to agree with biolizard...you don't need C++ to learn how to hack.  C++ is too high level.  It helps, but if you don't know it, it will probably be more of a pain in the ass to learn.  And even if you learn C++, you also have to learn how the compiler wants to turn it into ASM.

It's much more important to understand how the numbers are being crunched by the CPU at a lower level.

http://wiird.l0nk.org/forum/index.php/topic,5249.0.html

I would agree with that (kind of)... I might add that lower level programming is much more complex than C++

Can it be concluded that
1. C++ is not essential to learn for hacking
2. ASM can be helpful to know though not essential
3. look at this http://wiird.l0nk.org/forum/index.php/topic,5249.0.html
4. There may be more than one way to learn?

P.s. I am a newbie at this too, please listen to the more experienced members.
Title: Re: How to make codes (for VC) / How to use them
Post by: doomkaiber001 on November 01, 2010, 04:38:06 PM
Oh, ok. Still, help is appreciated in all forms. Thanks for the help Benny, but maybe I should listen to the more experienced members, as you agree. Though, I have taken an interest in C++, so I'll still have a go at it.