PDA

View Full Version : [Tutorial] knizz' beginner-unfriendly tut for adding more lines to the copyright-screen (ruby)


knizz
June 16th, 2010, 09:40 AM
Use Un-LZ to modify the tileset (Pos: 08e9c798 Nr.: 1635) and write the new position to 0813b848 The tilemap is stored at 08e9ca44. Open this tilemap in a hex-editor. You'll see something like "01 00 01 00 ... 02 00 03 00 04 00 01 00 01 00". "01 00" is an empty tile. "02 00" is a (c)-tile. The distance of two "02 00" is the lenght of one line. Go to the last "02 00" and add this distance to your current position. Now type "02 00 03 00 04 00 05 00 01 00 01 00 01 00". Continue counting from 2b for each tile. "2b 00" for one tile. "2b 00 2c 00" for two tiles. etc.



0813b81c 480a ldr r0, [$0813b848] (=$08e9c798)
0813b81e 26c0 mov r6, #0xc0
0813b820 04f6 lsl r6, r6, #0x13
0813b822 199b add r3, r3, r6
0813b824 1c19 add r1, r3, #0x0
0813b826 f0a4 bl $081e07f0 LZ77UnCompVram(08e9c798,06000000)
0813b82a 4808 ldr r0, [$0813b84c] (=$08e9ca24)
0813b82c 1c29 add r1, r5, #0x0
0813b82e 2220 mov r2, #0x20
0813b830 f738 bl $08073a58
0813b834 4806 ldr r0, [$0813b850] (=$08e9ca44)
0813b836 19a4 add r4, r4, r6
0813b838 22a0 mov r2, #0xa0
0813b83a 0092 lsl r2, r2, #0x02
0813b83c 1c21 add r1, r4, #0x0
0813b83e f0a4 bl $081e07ec CpuSet(08e9ca44,06000000+3800,280)

ERROR
June 23rd, 2010, 07:41 AM
where do i get a hex editor from? im confused where to look

Full Metal
June 24th, 2010, 07:29 AM
dude, its called google.
and wow knizz O_O
good find :thumbs up:
although, i don't use ruby :P
so, a tile map is artificially created directly into memory with a routine, is that what i'm understanding?

EngelDerRisse
June 24th, 2010, 09:05 PM
Awesome Knizz, this information is wicked helpful, though a bit confusing at first.


dude, its called google.
and wow knizz O_O
good find :thumbs up:
although, i don't use ruby :P
so, a tile map is artificially created directly into memory with a routine, is that what i'm understanding?


So in theory I would be able to create a new RAW and convert it to HEX, so as to insert an entirely different image for the Copyright Screen? (other TuTs haven't been so helpful in this field for RUBY)

I mean, I know I would also have to change the tileset @1635 as well. but would it be feasible? (and I mean for someone who's lackluster in the knowledge of HEX).

knizz
June 25th, 2010, 02:44 PM
so, a tile map is artificially created directly into memory with a routine, is that what i'm understanding?

So in theory I would be able to create a new RAW and convert it to HEX, so as to insert an entirely different image for the Copyright Screen? (other TuTs haven't been so helpful in this field for RUBY)

I mean, I know I would also have to change the tileset @1635 as well. but would it be feasible? (and I mean for someone who's lackluster in the knowledge of HEX).

I can understand none of you.

The tileset is compressed, tilemap isn't. They are both in the ROM. And the code in the first post shows how they are moved into the graphics-memory.

Full Metal
June 26th, 2010, 11:27 AM
yea, thats what i meant xD

EngelDerRisse
July 3rd, 2010, 05:41 AM
yea, thats what i meant xD

Makes me feel like a genius xD

I'm crap at HEX though, and I lost my Workshop when my old notebook was stolen D:

I can't remember, but isn't there a program to insert just about anything, to any point in the ROM, that will repoint if you input a slot with enough free space? Would be dead helpful here if I could remember what it was.

Any idea?

I can understand none of you.

The tileset is compressed, tilemap isn't. They are both in the ROM. And the code in the first post shows how they are moved into the graphics-memory.


I understood that the TS is compressed, didn't know about the TM though.

The way you describe it makes it seem a little more complicated than I think it needs to be....but I'm probably wrong, as stated prior, I'm crap when it comes to HEX