Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Thu Mar 28, 2024 11:44 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 159 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: Mon Feb 12, 2007 11:01 am 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3768
Title: All in a day's work.
Bits 12 and 14 (0x1000 and 0x4000, respectively) are unused. I am not certain why Nintendo decided to skip those. Perhaps it's due to the way they setup the hardware and/or they had additional switches configured in the early design stages.

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 11:25 am 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:46 pm
Posts: 2331
Location: *poof*
Title: The Mad Hacker
What about the Mic? Do you think that it could send out like a High Pitch and Low Pitch flag with 0x1000 and 0x4000?

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 11:58 am 
Offline
Kommunist
Kommunist

Joined: Sun Dec 31, 2006 6:29 pm
Posts: 131
That be nice if we could use the mic as an activator.

_________________
Code:
#include <cstdlib>
#include <iostream>

int main(int argc, char *argv[])
{

   system("color 0A");
   for(int i=0;;i=rand()%2){
   for(long x=0;x<600000;x++);
   printf("%d",i);}
   system("pause");
   return 0;
}


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 3:10 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Mon Oct 09, 2006 2:04 pm
Posts: 256
Location: Chicago
I could just see the code potential in that. :)

"Scream for full health"

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 3:19 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:46 pm
Posts: 2331
Location: *poof*
Title: The Mad Hacker
Kyle wrote:
"Scream for full health"
LMAO :lol:

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 4:05 pm 
Offline
Komrade
Komrade
User avatar

Joined: Mon Oct 02, 2006 5:56 pm
Posts: 1978
Title: Mr. Bitches
If you sneak in a "voice chat always on" code into the "scream for health" code....

You will have abundance in lulz!

_________________
Image
Image
<EggWerx> MetalOverlord: Dsman and lemmayoshi will be used for taco meat, ask mo he knows me.
jleemero wrote:
Being required to learn Java for a Comp Sci MAJOR is like being required to shit on a lawnmower to be an astronaut.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 4:45 pm 
Offline
Kommunist
Kommunist

Joined: Fri Oct 13, 2006 4:11 am
Posts: 3
Parasyte wrote:
Here are some universal Activator codes which will work on all games:

Activator 1 (GBA buttons):
94000130 xxxx0000

For xxxx:
FFFE: A
FFFD: B
FFFB: Select
FFF7: Start
FFEF: Right
FFDF: Left
FFBF: Up
FF7F: Down
FEFF: R
FDFF: L


Activator 2 (NDS buttons):
927FFFA8 xxxx0000

For xxxx:
FBFF: X
F7FF: Y
DFFF: Debug Button (not available on commercial NDS)
7FFF: NDS not folded


To combine one or more buttons together, use bitwise AND:

(A & B) = (FFFE & FFFD) = FFFC

I dont understand how to combine buttons together. could you please explain?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 6:22 pm 
Quote:
To combine one or more buttons together, use bitwise AND


Seems clear to me!


Top
  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 6:31 pm 
Offline
Kommunist
Kommunist

Joined: Fri Oct 13, 2006 4:11 am
Posts: 3
How do you use bitwise AND with hex


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Feb 12, 2007 7:56 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Thu Jan 25, 2007 7:45 pm
Posts: 67
we figured it out, we don't need help any more


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Feb 13, 2007 2:32 am 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3768
Title: All in a day's work.
Windows Calculator in Scientific Mode and/or learn your bitwise arithmetic.

The mic is not on the button registers, nor is the touch screen.

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Feb 13, 2007 5:52 am 
Offline
Kommunist
Kommunist

Joined: Mon Jan 29, 2007 2:23 pm
Posts: 313
jawatlynn1292 wrote:
How do you use bitwise AND with hex


Just use Baphomet's or My programs to create a joker code for you

as for hex

http://www.lyzrdstomp.com/binary/hex1.html


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Feb 13, 2007 3:18 pm 
Offline
Kommunist
Kommunist

Joined: Fri Oct 13, 2006 4:11 am
Posts: 3
thx but i figured out bitwise AND finally


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 17, 2007 6:14 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Sat Oct 14, 2006 5:41 pm
Posts: 99
Location: 38.90N 77.03W
Any way to perform an 8-bit compare (==) other than padding the 16-bit if statement with 2 0s.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 17, 2007 10:12 pm 
That won't work actually.

Example:

Addr Val
0000 ff
0001 00

8-bit compare to 0x00 will return true, but if you do a 16-bit compare with the 0-pad (0x0000), it will return false.


Top
  
Reply with quote  
 Post subject:
PostPosted: Sat Feb 17, 2007 10:19 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3768
Title: All in a day's work.
Yes, 8-bit conditions are supported with the 'mask' portion of the value. Use 0xFF00 as your mask, as it will mask out the upper byte, or use 0x00FF as the mask to mask out the lower byte. (Remember, the mask is inverse. Logically it will be ~0xFF00 or ~0x00FF) And you must keep the address aligned to 16-bits, or you will have some weird shifting problems with the data.

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Feb 18, 2007 6:22 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Sat Oct 14, 2006 5:41 pm
Posts: 99
Location: 38.90N 77.03W
Thank you again Parasyte.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 6:46 am 
Offline
Kommunist
Kommunist

Joined: Mon Jan 29, 2007 2:23 pm
Posts: 313
kenobi wrote:
Type D8 : 8-bits incrementive write of the data register (strb).
D8000000 XXXXXXXX : writes the 'Dx data' byte to [XXXXXXXX+offset], and
increments the offset by 1.


can you hack the d6~d8 codetypes so that they do not modify the offset?


Last edited by kickenchicken57 on Thu Feb 22, 2007 11:50 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 11:31 am 
Offline
Kommunist
Kommunist

Joined: Tue Oct 10, 2006 9:32 am
Posts: 445
kickenchicken57 wrote:
kenobi wrote:
Type D8 : 8-bits incrementive write of the data register (strb).
D8000000 XXXXXXXX : writes the 'Dx data' byte to [XXXXXXXX+offset], and
increments the offset by 1.


can you hack the d6~d8 codetypes so that they do not modify the offset?


I could, but it would be 'easier' (and compatible with all AR versions) if you used the DC code to add 0xFFFFFFFF (0xFFFFFFFE, 0xFFFFFFFC) to the offset right after the D8 (D7, D6) codes type.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 12:24 pm 
Offline
Kommunist
Kommunist

Joined: Mon Jan 29, 2007 2:23 pm
Posts: 313
ok, thats what I have been doing. I Also have a problem with a code I am trying. I know I have the right address because I have modified it with one of the constant write codes. here is my code so far:
Code:
023FE4D8 0A000003 - DB Code Fix
023FE424 E1833004  - D4 code executes an 'ORR'
C0000000 00000032 - loop 50 times
DB000000 22188479 - load the ammo into the data register
D4000000 00000007 - max the ammo out
D8000000 22188479 - write data back into address and increment offset by 1
DC000000 0000000D - Add 13 to the offset for a total of 14 each loop
D2000000 00000000 - end and clear loop counter and data register
023FE424 E0833004 - Set D4 back to 'ADD'

The lowest 3 bits of the value at 22188479 hold the ammo. The upper bits hold some status flags and info that CAN NOT be written to without affecting the game play. If I ORR the value with 0x7 (111b) then the lowest 3 bits will always be on and ammo will be maxed out. there are 50 units so I loop 50 times to get them all (I have also tried this without a loop on one single unit with no luck). I applied the DB code fix and loaded the value into the data register ORRed it and write it back. The next unit's data is 0xE (14) away. The DB increments the offset by one and then I add 0xD (13) to the offset to get a total of 0xE (14).

Is there a flaw in my logic? or is there a flaw in the way I set up my code? When I run the game with this code, absolutely nothing happens to my ammo. Its like the 'Dx data' is not getting written back into the address. It also causes some black lines across the screen :x


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 2:34 pm 
Offline
Kommunist
Kommunist

Joined: Tue Oct 10, 2006 9:32 am
Posts: 445
Just for info, what game is that code for ?

Edit :
Also, you shouldn't loop 50 times, but 49. The number in the C code data is the number of time to repeat.

For exemple 0x00000000 means no repeat (it doesn't mean 'skip codes', so the codes are still executed once).
0x00000031 (=49) will mean : execute the code once, then repeat the codes 49 times, so in the end the codes will be executed 50 time.

(But I doubt this is the actual problem that makes your code not work properly)

Edit 2 :
Erm... That 22188479 address seems quite wrong... I guess it should be 02188479 ?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 3:03 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3768
Title: All in a day's work.
Yes. I find that people are getting confused quite a lot about the code types being a part of the address.

Code:
023FE4D8 0A000003 - DB Code Fix
023FE424 E1833004 - D4 code executes an 'ORR'
C0000000 00000031 - loop 50 times
DB000000 02188479 - load the ammo into the data register
D4000000 00000007 - max the ammo out
D8000000 02188479 - write data back into address and increment offset by 1
DC000000 0000000D - Add 13 to the offset for a total of 14 each loop
D2000000 00000000 - end and clear loop counter and data register
023FE424 E0833004 - Set D4 back to 'ADD'

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 3:36 pm 
Offline
Kommunist
Kommunist

Joined: Tue Oct 10, 2006 9:32 am
Posts: 445
Also, be aware that one thing that still could prevent the codes using the hacks I made from working properly would be the game having a 'custom' (m) code. As I don't know what game you're using, I can't verify that. But a 'custom' (m) code should (would) mean that the code handler moved from its default place, hence the hacks I made won't work (as they are patching the 'default' location of the code handler, which is used when no (m) code is entered).

As we speak I still haven't gotten what the values of the custom (m) code do (even if I tried more than once...), so I don't know where the code handler is located when a custom (m) code is used. But I'll surely get more infos about that once I'll have the trainer toolkit in my hands !

And, well, even if I tested my hacks, their are still chances that they won't work properly for every cases. I recall having tried the ORR code on Parasyte's universal activator 2 address, and I didn't get the expected results (it was like the ORR hack wasn't applied, so the D4 code type was still using ADD), but - shame on me - I didn't bothered checking what was the problem back then :/... I might try some new tests soon to verify everything is working as expected.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 9:16 pm 
Offline
Kommunist
Kommunist

Joined: Mon Jan 29, 2007 2:23 pm
Posts: 313
Awesome, It wasn't that I meant to add the code 'type' into the code, I just copy pasted and plain forgot about the codetype (can you tell I am a true programmer at heart?). I 100% guarantee that is most likely the problem. There is no M code and this is for advance wars ds. Will post an update if thats the problem. also, thanks kenobi for the heads up on the loop amount too.

EDIT: Fixed the problem, BUT I still get the black lines across the screen so I'll try putting it in a joker code :?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 9:56 pm 
Offline
Krew (Admin)
Krew (Admin)
User avatar

Joined: Sun Oct 01, 2006 9:26 pm
Posts: 3768
Title: All in a day's work.
Anything that screws with the screen is typically the code handler taking too long to finish its job.

And your signature is HUEG LIEK XBOX. It is eating my screen. Fix it!

_________________
I have to return some video tapes.

Feed me a stray cat.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 10:08 pm 
Offline
Kommunist
Kommunist

Joined: Mon Jan 29, 2007 2:23 pm
Posts: 313
Fixed the code by adding a joker so it only glitches when it's used. Also fixed the sig. Z3R0 made me one, then the other shortly after and I couldn't see it go to waste as he is my Bro :| was big though...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 10:20 pm 
Offline
Kommunist
Kommunist

Joined: Tue Oct 10, 2006 9:32 am
Posts: 445
Good to hear the code worked.
About the black lines, you might want to make a custom asm routine to make the job, it'll take way less cpu time and could fix the problem...


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Feb 22, 2007 10:31 pm 
Offline
Kommunist
Kommunist

Joined: Mon Jan 29, 2007 2:23 pm
Posts: 313
Would you mind sending me an AIM or ICQ or IRC via PM for discussion about things like these later as to not clog the forums? While my questions do pertain to the 'code types' I don't think it belongs here and since you and para are usually the only ones able to answer these types of questions it is probably better to do so over IM than create a new thread or clog up this one.

About the ASM routine, I don't know how to find a free area to place it. care to explain?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 23, 2007 7:14 am 
irc://irc.ashlandpc.com/#kodewerx


Top
  
Reply with quote  
 Post subject:
PostPosted: Fri Feb 23, 2007 10:15 am 
Offline
Kommunist
Kommunist

Joined: Tue Oct 10, 2006 9:32 am
Posts: 445
I honestly think this thread is a good place to discuss about AR codes creation/problems. There are no clogging or whatever, as any inportant information I'll add will be updated in the very first post. Also I'm always reachable using PMs if you prefer it that way.

Now, no need for free space for the asm routine, just use the hack #4 I made (one of the listed advantages of this hack is "- no need to find free space to store your asm routine."). If you need a step by step, I can provide it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 159 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 92 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group