The Guardian Legend

Original Game => Rom Hacks, MODs, Plugins => Topic started by: Grimgrin on March 28, 2010, 01:05:02 PM

Title: Some RAM codes that can change stuff in the game
Post by: Grimgrin on March 28, 2010, 01:05:02 PM
Guardian Legend, The (U)

Adventure & Space mode
0030:

00 - Human Shape
50 - Fighter Shape
52 - Fighter Shape in TGL mode
80 - fly
208 - demo(there are some more numbers for ever demo I didn't checked what are the numbers)

Max Consecutive Firing:
0039-01-01

Gun Power
003A:

03 - 3 Way Shot
02 - 2 Way Shot
01 - 2 Way Shot
00 - 1 Way Shot

Max Weapon Power:
003D:

01 - Blue
02 - Green
03 - Red

Max Shots:
003E-01-FF

Max Energy:
0048-01-FF
0049

Max Attack
004A-01-04

Max Shields:
004B-01-08

Area
0050:

00 - Area 0
01 - Area 1
02 - Area 2
03 - Area 3
04 - Area 4
05 - Area 5
06 - Area 6
07 - Area 7
08 - Area 8
09 - Area 9
0A - Area 10

Corridor:
0051:

00 - Corridor 0
01 - Corridor 1
02 - Corridor 2
03 - Corridor 3
04 - Corridor 4
05 - Corridor 5
06 - Corridor 6
07 - Corridor 7
08 - Corridor 8
09 - Corridor 9
0A - Corridor 10
0B - Corridor 11
0C - Corridor 12
0D - Corridor 13
0E - Corridor 14
0F - Corridor 15
10 - Corridor 16
11 - Corridor 17
12 - Corridor 18
13 - Corridor 19
14 - Corridor 20
15 - Corridor 21
16 - Corridor 22

Glitch Corridors:
17 - Corridor 23
18 - Corridor 24
1B - Corridor 27
1C - Corridor 28

Boss and Item display
0070:

02 - Boss
03 - Item

Enemy hit points
0500 - 05C0

ROM area:
1ECCB - A9 01 Once you enter the dungeon, it will be completed.

Edit Today on 3-29-2010

1EF26 - Area Music

1EF3A - Corridor Music

1EF65 - Graphical loading data for the corridor

Thanks to the FAQ guide from Game FAQ.
Title: Re: Some RAM codes that I found
Post by: Jigglysaint on March 28, 2010, 02:38:01 PM
Nice.  I should write up my information that I have on the game too.
Title: Re: Some RAM codes that I found
Post by: Grimgrin on March 28, 2010, 05:03:46 PM
Thanks! New Codes That I Found:

Walking mode:

This code will let you go to the next room and enter a room in any spot.
$00A0:

01 - Go to the next room
03 - Enter a room: Need a better name.

This code here seems like a drawing of a map in an area that you're in.
$0740 - $07FF

Music Stuff:

$0300 - $03FF

Password Mode:

$0400 - $0430

Note: I notice that some of this stuff is not found by me and there's is a guide for this that someone made.
Title: Re: Updated 4-1-2010. Some RAM codes that I found
Post by: arseniy on April 03, 2010, 12:56:39 AM
Very useful!! :grimgrin:
Some of these make me rid of headache of constant save states out of map like "enter a room code"
try Gun Power
003A:set to 7 it looks fun(vertical only). Also some items or events out of map give this option. Sometimes my bullets become weirdly looking now I know it was cuz of this ram adress change.

A question:
How to make this automated or fast jump to adress? I m using VirtuaNes and I have to browse through a long list of Ram to enter a different value

Another:
$00A0:
01 - BUT! it only works to the right. How to walk into all 4 directions?
Title: Re: Updated 4-1-2010. Some RAM codes that I found
Post by: Grimgrin on April 03, 2010, 10:31:33 AM
Here's what I have so far:

QuoteA question:
How to make this automated or fast jump to adress? I m using VirtuaNes and I have to browse through a long list of Ram to enter a different value

RAM Area $0400-$0460 Note: turn this off in fighter shape mode and password mode.

00 - Blank: this will let you walk over anything
02 - enter rooms
04 - Box
07 - Brown Pyramid
0A - Blue Pyramid
0E - Green Pyramid
11 - Blue Chip

Go to $041B and type in 02 and freeze it, $0439 and type in 20 and freeze it, $043E and $0453 and type in 02 and freeze it. It works on VirtuaNES too.

This code is very useful for the glitch passwords like this one:

GGGG GGGG GGGG GGGG
HHHH HHHH HHHH HHHH

JJJJ JJJJ JJJJ JJJJ
ZZZZ ZZZZ ZZZZ ZZZZ

5555 5555 5555 5555
0000 0000 0000 0000

6666 6666 6666 6666
hhhh hhhh hhhh hhhh.

Title: Re: Updated 4-1-2010. Some RAM codes that I found
Post by: arseniy on April 03, 2010, 11:14:30 PM
Please explain how to freeze var? I suppose it's somewhere in cheat tool but i not see how to change ram adress there. it's always gray ???
The 0070 - it makes the wall go around, boss music plays and item appear but it never make BOSS :skull: appear.
Title: Re: Updated 4-1-2010. Some RAM codes that I found
Post by: Grimgrin on April 04, 2010, 12:00:08 AM
Ok! In cheat code menu, go to input and enter the following codes that you want to enter like this:

$041B-01-02

Then click OK and the code will freeze in RAM untill you disable the code.

The boss won't appear in some areas but the items will.
Title: Re: Updated 4-1-2010. Some RAM codes that I found
Post by: arseniy on April 04, 2010, 12:41:39 AM
Quote from: Grimgrin on April 04, 2010, 12:00:08 AM
Ok! In cheat code menu, go to input and enter the following codes that you want to enter like this:
$041B-01-02
Then click OK and the code will freeze in RAM untill you disable the code.
The boss won't appear in some areas but the items will.
:redlander: Yay it works, now I can wear blaster type 7 forever!
In VirtuaNes it works by entering without $
So what means first and second number?? - 041B-01-02    01-first,02-second. first means byte type and second is value?
I enetered in the area where Boss appears naturally, then after defeat the boss appears again with the RAM adress call but when I leave the room and enter back the boss don't appears anymore. So I guess it's written somewhere if the boss defeated already?
P.S.
Maybe we should try keep 1 topic for all the RAM addresses and then use it to create an html page with useful RAM addresses?
P.P.S
for this case a RAM addresses from Weaponism topic:
$0030: Mode of gameplay; #50 for shooter sequence, #52 for "TGL" mode,
$003A: - gun bullets type. 00,01,02,03 from simple to max, after that gun shoots glitchy. Set ED and gun covers all the screen :3
$003B: - the player bullets limit on sreen
$0047: max life?
$0048: life
$004A: number of gun firepower
$004B: number of shield
Max Chips is $004E and $004F.  Set $4F to something like 20.  Current chips is $4C and $4D.
$004C,$004D: number of current chips? - I not sure how it make to work
$0050: The area the player is in
$0051: The corridor the player is in; or, the room type the player is in on the overworld.
$0070: 01,02 call boss 04 boss die, 05 area finished
$00A0: walk to next room - 1: walk - 3: enter portal
$00A4: set direction of the above (up - 0)  (left - 2) (right - 6) (down - 8) (enter corridor - 4 (00A0 set 3 then))
$04AC-E: How much special weaponry player has
$04AF: Number of "EE"
$04B0: The keys the player has

$003C -Special Weapon selected - over 12 makes selection to unexisting place and shooting with such "weapon" will make fun glitch but mostly game crash. Also it can make u teleport when selection on such weapon and u shoot with uner 100 chips bullets(to the left tho). U need to shoot from the edge of screen to make the bullets on screen to the max so after u shoot max possible bullets you will teleport. It looks fun check Wonderland Vid - http://www.youtube.com/watch?v=-whFFQ-p_Ow
I noticed that's sort of random tho... Not always works like teleports sometimes only after u switch to another weapon.

$0052 - X
$0053 - Y
Title: Re: Updated 4-6-2010. Some RAM codes that I found
Post by: Grimgrin on April 06, 2010, 06:32:19 AM
Thanks! I also found something really cool. At RAM address $00A4-01-04, this will let you go to corridors at any room. Turn the code off if you want to go to the next room. To do this, go to any area that have blue pyramids and enter any of them to go to the corridor.
Title: Re: Updated 5-8-2010. Some RAM codes that I found
Post by: Grimgrin on May 08, 2010, 04:37:15 PM
Another cool RAM that I found at RAM address $0057: It displays the type of enemies in a room.
Title: Re: Some RAM codes that can change stuff in the game
Post by: arseniy on April 20, 2011, 03:44:40 AM
Thanks GrimGrin! Just tried your discovered code :3
0057-01-**
it goes up to 0057-01-AF. Setting it to 0057-01-FF start produce glitches fun at times :)
Title: Re: Some RAM codes that can change stuff in the game
Post by: Grimgrin on February 14, 2012, 11:07:49 PM
Found Something Interesting at RAM address:

PRG Bank:
0004:

00 - PRG_0
01 - PRG_1
02 - PRG_2
03 - PRG_3
04 - PRG_4
05 - PRG_5
06 - PRG_6
07 - PRG_7

I found this in ASM.

If possible, you can add your own bank like someone did in their hack for testing out new interesting stuff.

More coming soon!
Title: Re: Some RAM codes that can change stuff in the game
Post by: arseniy on February 14, 2012, 11:19:40 PM
I have no idea what is PRG but I often see that in ROM names.
Title: Re: Some RAM codes that can change stuff in the game
Post by: Grimgrin on February 14, 2012, 11:48:52 PM
This might explain it: http://www.neswarpzone.com/tech/UNROMdev.txt
Title: Re: Some RAM codes that can change stuff in the game
Post by: andreasaspenberg on January 05, 2015, 05:35:47 AM
i am using nesten and it only supports 2 types of codes. 4 numbers for example 0000 and 5 plus 2 numbers for example 00000-00. how do i use them with that system?
Title: Re: Some RAM codes that can change stuff in the game
Post by: arseniy on January 05, 2015, 06:06:46 AM
Maybe NesTen has a site? There might be that info. I tried only VirtuaNES, FCEUX and NesTopia for this stuff.
Title: Re: Some RAM codes that can change stuff in the game
Post by: Grimgrin on August 28, 2015, 10:44:08 PM
New code I found and almost complete.

0042 - 43:
00 - 31 - hearts
01 - 4f - red chips
02 - 63 - blue chips


Destroy any enemy to get a whole lot of chips and energy. I'm still working on the last item.
Title: Re: Some RAM codes that can change stuff in the game
Post by: teremochek on October 09, 2019, 09:57:22 AM
this is what I need.
Thank's.
Title: Re: Some RAM codes that can change stuff in the game
Post by: teremochek on December 12, 2021, 12:32:24 PM
Maybe someone have full ram codes? (Or more)
Title: Re: Some RAM codes that can change stuff in the game
Post by: arseniy on December 14, 2021, 01:03:09 AM
Fireball doing some randomizer, but seems he doesn't want to go to forum. He sometimes hang around in Discord.
Recently he said he found out corridors commands
Quotei've mostly finished writing code to parse the corridor commands to split them out
worked for every corridor but maybe c21

it's very simular in form to zanacs corridor system, with the most important command, the one that spawns enemies and other stuff being literally identical

so, tgl corridors are basically a list of commands
that start with a 2 byte time code
that says how many blocks into the level before the thing happens
then a command code of 0-9
each one does different things, 00 sets the scroll speed, and takes 2 bytes
04 sets the palette, and takes 4 bytes (i believe a pointer to the palette)
05 loads the boss for the stage
06 summons things
etc
Title: Re: Some RAM codes that can change stuff in the game
Post by: teremochek on December 14, 2021, 05:10:22 AM
Quote from: arseniy on December 14, 2021, 01:03:09 AM
so, tgl corridors are basically a list of commands
that start with a 2 byte time code
that says how many blocks into the level before the thing happens
then a command code of 0-9...

Thank's, Interesting.
Something like this has already been written by Optomon.
Title: Re: Some RAM codes that can change stuff in the game
Post by: teremochek on December 14, 2021, 05:17:02 AM
More RAM names:

$0032# Move Direction State (0/8)#
$0033# Max Consecutive Firing ticker#
$0038# Fire Bullets in Air now (0/4)#

$0040# Boom on Screen (0/1)#
$0041# ??? timer (0/ff) When Walk or Fly mode and not paused#
$0042# Bonus counter (0/7)#
$0043# Kill enemy counter#
$0044# Kill enemy counter2#
$0045#Use Chip#
$0046#Red Landers count#

$0054# Type Collisions of Wall's#
$0055# Room Type: 00 magazine, 0B - inforoom, 0D 03 -boss, 09 - item etc.#
$0056# Set $FF when go to next room#
$0058# Left Wall   Collision#
$0059# Up Wall Collision#
$005A# Right Wall Collision#
$005B# Down Wall   Collision#
Title: Re: Some RAM codes that can change stuff in the game
Post by: arseniy on December 23, 2021, 02:37:07 AM
Maybe you should try to talk with a guy on Discord:
He is doing some decompilation sometimes:
(https://cdn.discordapp.com/attachments/309799990090530817/923368162622332988/unknown.png)