News: 11 March 2016 - Forum Rules

Author Topic: How to add more space to The Guardian Legend UNROM & Other Stuff  (Read 3850 times)

Dracula X

  • Full Member
  • ***
  • Posts: 154
    • View Profile
    • My YouTube Page for ROM hacking
How to add more space to The Guardian Legend UNROM & Other Stuff
« on: February 17, 2012, 02:24:44 pm »
To do this, you need a hex editor.

To add more space in the ROM, in hex go to address $1c010 and copy from $1c010 to $2000f and save it to a new file.
Next, choose any of these location that you want to use to copy the file to:


Address                     PRG Bank Number:


$1c010                    7 Main Bank
$20010                    9
$40010                    11
$44010                    12
$48010                    13
$4c010                     14
$50010                    15
$54010                    16
$58010                    17
$5c010                     18
$60010                    19
$64010                    1a
$68010                    1b
$6c010                     1c
$70010                    1d
$74010                    1e
$78010                    1f
$7c010                     20 this is what I have in my ROM

Now go to iNES header located at $0. Go to address $4 and you will see $08. Change $08 to $20 for location $7C010 and it's done. Now you have more space to test out something new. Took me a day to figure this out.
« Last Edit: February 17, 2012, 11:19:56 pm by Dracula X »
Back to Thunder Force II hacking again.

Jigglysaint

  • Sr. Member
  • ****
  • Posts: 317
  • Corruptomancer
    • View Profile
    • Stuff Jigglysaint has done(like discover the Crocomire in MZM)
Re: How to add more space to The Guardian Legend UNROM
« Reply #1 on: February 17, 2012, 03:59:53 pm »
Oh man, just think of the possibilities for that.  Mostly, an uncompressed map format, totally unique rooms, just overall more control.  Considering how large the main map is, I would say 256 rooms is sufficient.  Each room could contain it's own room header that's static and easily edited, and the map itself could just be a simple arrangment of those rooms.  Now let's see if I can do the math...  Okay the map has 24x24 spaces, which is 576 spaces, each room containing 112 tiles.  112 x 256 is 28672 tiles which is 7000 in hex, which is over 1 banks worth of information.  However, that also leaves room for a shadow bank that could contain altered room states.  512 rooms is really too many rooms since otherwise there would be no point in having a map.  Let's cap it 256 rooms, but give each room a shadow bank for altered room states.  That would take 4 banks, and it could be organized that from 00 to 7F could be in one bank, and 80 to FF could be in the second, and the altered states could be altered from the first in the other 2 banks.

The header would contain the same information as before except that there would be less flags used to determine length.  Instead of a pointer, each room could just have allocated level data affixed to it, so room 00 would stat at one address, and room 01 would be that + 112, and so forth.  Flags would exist to alter room state, and perhaps an event number, and it would tell the game to load from the secondary banks.  Each room would be given an item and monster data as well as any other effects.  Gone could be the room directions, and instead it could act as a free roaming map like in Zelda, and perhaps the warps could be retooled to have one seperate tile for each direction, as well as what key unlocks it in the room header.

KingMike

  • Forum Moderator
  • Hero Member
  • *****
  • Posts: 7209
  • *sigh* A changed avatar. Big deal.
    • View Profile
Re: How to add more space to The Guardian Legend UNROM
« Reply #2 on: February 17, 2012, 05:59:42 pm »
Warning, not hardware accurate so it could be broken on emulators at some point. UNROM has a 128 KB limit and UOROM has a 256 KB limit.
But if that's not a concern for you, then go ahead. :)
As Guardian Legend uses CHR-RAM, it only has PRG-ROM so using a total ROM size that is not a power of 2 (128KB, 256KB, and it compatibility doesn't matter 512KB) is a very bad idea.
"My watch says 30 chickens" Google, 2018

Dracula X

  • Full Member
  • ***
  • Posts: 154
    • View Profile
    • My YouTube Page for ROM hacking
Re: How to add more space to The Guardian Legend UNROM
« Reply #3 on: February 17, 2012, 06:44:16 pm »
Thanks for the warning! Something I found in RAM in asm:

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 using disasm6 1.4.
Back to Thunder Force II hacking again.

Jigglysaint

  • Sr. Member
  • ****
  • Posts: 317
  • Corruptomancer
    • View Profile
    • Stuff Jigglysaint has done(like discover the Crocomire in MZM)
Re: How to add more space to The Guardian Legend UNROM
« Reply #4 on: February 17, 2012, 08:36:59 pm »
Ahh, and I thought there was lots to work with...

Dracula X

  • Full Member
  • ***
  • Posts: 154
    • View Profile
    • My YouTube Page for ROM hacking
Re: How to add more space to The Guardian Legend UNROM
« Reply #5 on: February 17, 2012, 11:17:13 pm »
I took the time to do this tonight in TGL mode:

Monster List in Corridors

Corridor 1
Blue Fleepa: $C0
Squids:   $A7

Corridor 11
Green Optomon: $AD
Seaweed: $A3
Bubbles: $8B

Corridor 12:
Red Fleepa: $C1
Squids:   $A7

Corridor 2:
Crawdaddy: $C5
Claws: $AC

Corridor 13:
Silver Bombarder: $CC
Missles: $A7

Corridor 3:
Blue Optomon: $AE
Seaweed: $A2
Bubbles: $8B

Corridor 14:
Silver Clawbot: $A5
Lazer: $A2
Missles: $A7
Claws???: $AC

Corridor 4:
Teramute: $C6
Fire: $AC

Coriddor: 15
Green Clawbot: $A4
Lazer: $A2
Missles: $A7
Claws???: $AC

Corridor 5
Zibzub: $A3
Missles:: $A7

Corridor 16
Red Optomon: $AF
Seaweed: $A2
Bubbles: $8B

Corridor 6
Glider: $C7
Missles: $A7

Corridor 18
Blue Grimgrin: $C8
Eyes: $CE
Bubbles: $8B
Multiply Eyes $AA

Corridor: 8
Red Grimgrin: $C9
Eyes: $CE
Blue Eyes: $A7
Bubbles: $8B
Multiply Eyes $AA

Corridor 19
Red Bombarder:
Missles: $A7

Corridor 9
Blue Eyegore: $98
Skulls $96
Lazer Beams: $A2

Corridor 20
Red Clawbot: $A6
Lazer: $A2
Missles: $A7
Claws???: $AC

Corridor 10
Red Eyegore: $99
Skulls $96
Lazer Beams: $A2

Corridor 21 Monster List in Order:

Blue Fleepa: $C0
Squids:   $A7

Zibzub: $A3
Missles:: $A7

Silver Clawbot: $A5
Lazer: $A2
Missles: $A7
Claws???: $AC

Red Optomon: $AF
Seaweed: $A2
Bubbles: $8B

Blue Grimgrin: $C8
Eyes: $CE
Bubbles: $8B
Multiply Eyes $AA

Red Bombarder:
Missles: $A7

Corridor 22
It: $CF
Small Ships: $A7
Bubbles $AA

RAM located in RAM $505 to $51?
Back to Thunder Force II hacking again.