GHOST SQUAD [RGSE8P]

Started by SonJazrin, August 18, 2009, 10:11:59 AM

Previous topic - Next topic

SonJazrin

The infinite Ammo code ported please

ceevee

Can anyone create infinite time when fighting bosses?

dcx2

I tried making an infinite time code, but I couldn't find any timers.  I can keep trying later, but I didn't show up empty handed...

Infinite clip [DCX2]
04087848 60000000
(don't have to reload, works with side-quest weapons like sniper rifle/rocket launcher, doesn't work with fully auto)

Infinite fully auto [DCX2]
040889E0 60000000

Take no damage from friendly fire [DCX2]
04034178 60000000
(g6flavor's infinite life code only stops enemy fire)

Take no damage from enemy fire [g6flavor/DCX2]
04033E20 60000000
(based off of g6flavor's infinite health code, but might be less buggy)

ceevee

Thank you!
Quote from: dcx2 on January 28, 2010, 07:04:50 AM
I tried making an infinite time code, but I couldn't find any timers.

Here's an example of a timer during a boss fight. Boss Fight timer

dcx2

#4
Quote from: ceevee on January 28, 2010, 05:04:37 PM
Thank you!
If you want to thank me, you could always hit the Thank You button next to my post.   ;D

Quote from: ceevee on January 28, 2010, 05:04:37 PMHere's an example of a timer during a boss fight. Boss Fight timer
Yeah, I tried finding several timers - the countdown timer on the mission select screen, the countdown timer for sub-plots like disarming the bomb in mission 1, and the boss timer.  The issue is I'm not quite sure whether I'm looking for something that counts down, or counts up, and whether it's an integer or fixed-point or a float, whether it's 16 bits or 32 bits, or whether the time is stored separately as whole seconds + fractional seconds, etc.

To make it harder, most games usually put the fun stuff starting at address 0x80000000.  However, Ghost Squad prefers to use addresses in the 0x90000000 range, which is twice big and therefore takes twice as long to search.

I have an idea, though.  I found where the "current item" value is stored (dot sight, high cap magazine, armor, etc).  Some of the items, like Dot Sight, are timed.  So I'm going to see who clears out the Dot Sight and from there I might be able to walk the stack back to a timer, then I'll know what kind of beast I'm looking for.


EDIT: Success!  I found several timers, and even some more goodies!  I still need to find the the sniper timer.

Unlock all 16 mission levels [DCX2]
C203820C 00000002
3800000F 901E0070
801E0070 00000000
(380000xx controls the number of levels open.  0F makes it 16, 10 would make it 17, 11 would make it 18.  The game doesn't appear to crash on higher levels, it just makes timers even shorter, enemies harder, and so on.  Not sure how big it can get before crashing...)

infinite mission select time [DCX2]
04036958 60000000

infinite decision time [DCX2]
04038D74 60000000

infinite boss time [DCX2]
040E4C48 60000000

(only appeared to work, didn't actually work)

infinite bomb sub-mission time [DCX2]
04107D50 60000000
("cut the wires in this order" and then it's red, yellow, and blue in some order.  does this work on any other sub-missions?)

compensator lasts forever [DCX2]
04120404 60000000

EDIT2: Okay, so the infinite boss time only affected the screen's display of the time, but not the actual time.  This time, I sat through to make sure this code works.  It worked on Mission 1 boss (chopper), but I think it didn't work on Mission 3 boss (boat).  What's weird is that it looks like the boss timer is an up-counter and not a down-counter.

Infinite Mission 1 Boss time [DCX2]
040F374C 38000002


I'll look for the other boss timers, but it's a slow process...

dcx2

#5
I've gotten the hang of finding timers.  Seems like there's a different one for each event.  Still need make a Mission 2 boss timer hack...will do that after I wake up.  Until then...

infinite stealth time [DCX2]
040FE218 7C601B78

infinite sniper time [DCX2]
040E849C 7C601B78

infinite disarm mine time [DCX2]
0410CF84 7C601B78


infinite mission 3 boss time [DCX2]
040EC244 7C601B78

infinite time to pick up items [DCX2]
0411F2B4 7C601B78


A random goodie - the mines in mission 3 that you have to repeatedly press the action button on can now be taken care of in one click!

single click clear mine [DCX2]
0410B85C 60000000


And, finally, my masterpiece...this one took a looong time to figure out.  It's a "give yourself items" code.  I had to find the code that gets run when you shoot an item, and learn what specific values I needed to write into memory (including calculating an indexed pointer!) to convince the game you shot an item, and where to put the code so that it had access to the necessary pointers and only ran at the right time.  My Wii locked up at least fifteen times...it was very frustrating, but I think the code is worth it.

Press button 1 to get Compensator item [DCX2]
C211F268 0000000D
2C1D0000 4082005C
80040000 2C000000
60000000 3FE0804D
63FFCFD8 A81F0002
70000200 2C000000
41820038 3C00C000
90040000 3800002D
90040004 1FE00028
3FC0803C 381EF370
7C00FA14 90040008
38000000 90040010
380001C2 90040014
7C9F2378 00000000

One change can the button activator by changing 70000200 as appropriate (0200 is button 1, which never does anything in this game as far as I know).  Another change can alter the item that you get by changing 3800002D (see below for partial list).  As a side effect of receiving the item, you get 1000 points per frame while you're holding 1 down.

I haven't made a comprehensive list of items, but you can give yourself pretty much anything - the GS meter upgrade, health boxes, medals, dot sight...I even think I found a hidden weapon!  Sometimes it won't work if your gun doesn't support the item (like GS upgrades, or compensators on non-automatic weapons).  Here's what I have so far...

nothing = 0x32
Armor 2 = 0x30
Armor 1 = 0x2F
High cap mag = 0x2E
compensator  = 0x2D
Dot sight = 0x2B
Grenade = 0x2A (GS upgrade)
Full Auto = 0x29 (GS upgrade)
3 shot burst = 0x28 (GS upgrade)
2 shot burst = 0x27 (GS upgrade)
0x25 = medal
0x24 = first aid
0x1E = "hidden" grenade launcher

ceevee

Tried all infinite time codes and they work great! Your masterpiece works too  ;D

single click clear mine so useful.

dcx2, awesome finds for this game!

dcx2

Okay, so infinite mission 2 boss timer is less useful than you would imagine.  After the boss gets into the airplane, your rifle won't hurt him anymore, so infinite time is useless.  On the bright side, he has several frames where he stands still just before getting in the plane.

infinite mission 2 boss time [DCX2]
041021DC 7C601B78


I also found a way to fool the game into thinking every gun has the dot sight and compensator for free without the items.  Almost negates the need for the item code (almost...)  In order to see the dot sight you need to turn the aiming reticule off.

all guns have dot sight [DCX2]
0408912C 60000000

always have compensator [DCX2]
04088394 3860002D
04088398 4800000C


But the best part is that I completed the item code, and I found a LOT of hidden goodies!  First, here's the code

DCX2's Super Item Launcher
C211F268 0000001F
2C1D0000 408200EC
3FE0804D 63FFCFD8
A81F0002 2C004001
4082000C 38000017
480000A0 2C004002
4082000C 38000015
48000090 2C004004
4082000C 3800000F
48000080 2C004008
4082000C 38000009
48000070 2C004010
4082000C 38000021
48000060 2C004100
4082000C 3800001E
48000050 2C004200
4082000C 38000004
48000040 2C004400
4082000C 38000020
48000030 2C004800
4082000C 3800001F
48000020 2C005000
4082000C 38000022
48000010 2C006000
40820038 3800002A
3FE0C000 93E40000
90040004 1FE00028
3FC0803C 381EF370
7C00FA14 90040008
38000000 90040010
380001C2 90040014
7C9F2378 00000000

This code requires the nunchuk.  Here's how it works.  While holding C, pressing any other button will give you an item.  This allows us to load up to 11 items at any time.  Since the previous two codes make most items obsolete, why would we want 11 item shortcuts?  The reason is because the game uses item shortcuts to switch guns during events!  We can use this code to switch to any gun at any time, even during events, cut scenes, or boss fights.

There's more.  There's a secret grenade launcher that you can't normally get, the GGL50.  There are also "items" that cause the Action button to throw grenades of various types.  I think the grenades were supposed to be an option that was cut out of the game before release, because it seems their collision detection with the floor is poor, so you have to spam grenades sometimes to get them to work.  Some grenade explosions are small, others are quite large, and one's even a smoke grenade, but it sucks 'cos it doesn't impair the enemy vision.

Here's the list of items as given in the code.  Remember that you have to press C + the button listed

Left - SG112 for shotgun â€" 0x17
Right - SPR11 for sniper rifle â€" 0x15
Down - M45R for pistol â€" 0x0F
Up - XMW21 for machine gunâ€" 0x09
+ - Action button will throw flash grenade â€" 0x21
2 â€" shitty (but secret!) GGL50 â€" 0x1E
1 - CPG7 for backup machine gun (better penetration, faster reloads) â€" 0x04
B - Action button will throw poison gas grenade â€" 0x20
A - Action button will throw smoke grenade â€" 0x1F
-  - Action button will throw huge grenade â€" 0x22
Z - for user's to replace (0x2A = GS upgrade)

Here is the nearly-complete list of items.

>=0x32 = death
0x31 = M209 (again?)
0x30 = Armor 2
0x2F = Armor 1
0x2E = High cap mag
0x2D = compensator
0x2C = blank??
0x2B = Dot sight
0x2A = Grenade GS upgrade
0x29 = Full Auto GS upgrade
0x28 = 3 shot burst GS upgrade
0x27 = 2 shot burst GS upgrade
0x26 = blank??
0x25 = medal
0x24 = first aid
0x23 = action button throws explosive grenade
0x22 = action button throws huge grenade with action
0x21 = action button throws flash grenade with action
0x20 = action button throws poison gas grenade
0x1F = action button throws smoke grenade (annoying)
0x1E = GGL50 grenade launcher (actually sucks)
0x1D = action button throws regular grenade
0x1C = SAW24
0x1B = CAC80 (single shot)
0x1A = CAC80 (single shot)
0x19 = SAN92
0x18 = ABG1
0x17 = SG112
0x16 = M4E
0x15 = SPR11
0x14 = SR308
0x13 = SPR3
0x12 = CAC82
0x11 = Guardian 1
0x10 = Guardian 2
0x0F = M45R
0x0E = P44M
0x0D = P4512
0x0C = PM6
0x0B = TM9V
0x0A = M209
0x09 = XMW21
0x08 = SAW24
0x07 = G50
0x06 = TR14
0x05 = AR4A
0x04 = CPG7
0x03 = TK1B
0x02 = MP10
0x01 = M94R
0x00 = XM-2119

If you want to change any of the items, look at the code for the multiple 380000xx's and replace the xx with the byte for the item you want.  I tried to choose default items with the best stats.  In fact, the SPR11 has better penetration than mission 2 boss fight's CAC80 - you actually *can* shoot him while he's in the airplane cockpit if you switch guns with this code.

Warlock

dcx2, you are a god when it come to codes for this game.  I only have two requests for now that haven't been done yet (by you) -

Single Click Detain Hostages
Infinite Time Basement Mission

I've thanked you for all the other codes that you have posted thus far!

Keep them coming!  :D


The Gamer\'s Voice is now at DarkUmbra.net!

dcx2

Hi Warlock, thanks for the suggestions!  It was actually pretty hard to find the hostage stuff.  First I had to find the count of hostages saved so far with code search, and that got me close to hostage code.  Set some breakpoints, walked some stack, followed some pointers, and found a float that went up with the hostage percentage bar.  Found who wrote into that percentage, walked the stack some more, and stumbled on the integer count of "clicks" on a hostage.  Funny enough, the code gets run whenever you click on a hostage or when you hover over them!  So I found the branch that is taken after a successful hostage detention, and made it always taken.  This code is even better than what you requested...you don't even need to click!

Hover to detain hostages [DCX2]
040BCDDC 48000008

I tested this on Missions 1 and 2 and it worked on both of them.  I don't remember if Mission 3 has a hostage scenario.

What mission has the basement timer that you want froze?  It must be on a higher mission level than the ones I've been using.

Warlock

Quote from: dcx2 on February 05, 2010, 07:55:10 AM
Hover to detain hostages [DCX2]
040BCDDC 48000008

I tested this on Missions 1 and 2 and it worked on both of them.  I don't remember if Mission 3 has a hostage scenario.

What mission has the basement timer that you want froze?  It must be on a higher mission level than the ones I've been using.

Thank you!

The Basement Mission is on Mission 1 I think Level 8 and above!

Thanks again!


The Gamer\'s Voice is now at DarkUmbra.net!

dcx2

Infinite Basement Time [DCX2]
041042B0 7C601B78

I also made a new infinite mine time.  The old one would freeze the timer before it was displayed to the screen, which made it hard to see mines sometimes.  The new code freezes the timer at a value that makes it displayed, so it's easier to see the mines

Infinite Mine Time v1.1 [DCX2]
0410CF84 38000064

Warlock

I'll have to try them out later.  The detain hostage one works perfectly!  Thanks again dcx2!


The Gamer\'s Voice is now at DarkUmbra.net!

dcx2

FYI, I moved everything over to the regular Wii Codes forum post for Ghost Squad.

http://wiird.l0nk.org/forum/index.php/topic,1412.msg43782.html#msg43782

They're all the same codes, except for this one...

Always quick shot [DCX2]
040BC23C 7C601B78

Warlock

#14
Thanks!

Here's a challenge for you -

Other Squads have Infinite Health
Hostages Never get killed
Infinite Battery Power for Flashlight!


The Gamer\'s Voice is now at DarkUmbra.net!