Basic Questions & Answers thread

Discussion in 'Engineering & Reverse Engineering' started by Tweaker, May 29, 2008.

  1. Advanced?

    Advanced?

    Member
    27
    0
    1
    Sonic 1 Hack
    Can someone please explain why the Crab Meat/Giant Ring graphics aren't loading when using PLCs? (I'm using Sonic 2's PLC format)

    Code (Text):
    1. ; ===========================================================================
    2.  
    3. GiantRing_LoadPLC:
    4.         moveq    #0,d0
    5.         move.b    $1A(a0),d0    ; load frame number
    6.         cmp.b    ($FFFFF6FD).w,d0
    7.         beq.s    +
    8.         move.b    d0,($FFFFF6FD).w
    9.         lea    (GiantRingDynPLC).l,a2
    10.         add.w    d0,d0
    11.         adda.w    (a2,d0.w),a2
    12.         move.b    (a2)+,d5
    13.         subq.w    #1,d5
    14.         bmi.s    +
    15.         move.w    #tiles_to_bytes(ArtTile_ArtUnc_CrabMeat),d4
    16.  
    17. GRPLC_ReadEntry:
    18.         moveq    #0,d1
    19.         move.w    (a2)+,d1
    20.         move.w    d1,d3
    21.         lsr.w    #8,d3
    22.         andi.w    #$F0,d3
    23.         addi.w    #$10,d3
    24.         andi.w    #$FFF,d1
    25.         lsl.l    #5,d1
    26.         addi.l    #Art_BigRing,d1
    27.         move.w    d4,d2
    28.         add.w    d3,d4
    29.         add.w    d3,d4
    30.         jsr    (QueueDMATransfer).l
    31.         dbf    d5,GRPLC_ReadEntry    ; repeat for number of entries
    32. +
    33.         rts  
    34. ; End of function GiantRing_LoadPLC
    35.  
     
  2. MarkeyJester

    MarkeyJester

    ♡ ! Resident Jester
    Try and put this in before the "move.b (a2)+,d5":

    Code (Text):
    1.     moveq   #$00,d5
     
  3. Advanced?

    Advanced?

    Member
    27
    0
    1
    Sonic 1 Hack
  4. Ralakimus

    Ralakimus

    Pour your misery down on me Tech Member
    Code (Text):
    1. move.b    (a2)+,d5

    Should be:
    Code (Text):
    1. move.w    (a2)+,d5
     
    Last edited: Dec 10, 2019
  5. Advanced?

    Advanced?

    Member
    27
    0
    1
    Sonic 1 Hack
    Works! Thanks Ralakimus!
     
  6. Wafer

    Wafer

    Giving me a little Mania Member
    116
    22
    18
    Disassembling n00bs, WIP
    Embarrassingly noobish question: Does anyone have a primer for regen's debugger? I've been getting along with r57shell's Gens mod until now because I didn't even know about regen when I got started, but I'm wanting to do breaks on VRAM writes and I can't seem to make regen's debugger do, well, anything except stepping through instructions.

    The fact that the emulator pauses when the debugger is open has got me particularly bamboozled.
     
  7. I've been experiencing screen tearing on Kega Fusion on my Mac. Anyone know how to fix it? It's minor so it's not a huge deal if I can't fix it, but it does bug me.
     
  8. Ralakimus

    Ralakimus

    Pour your misery down on me Tech Member
    Is VSync on by chance? If not, give that a try.
     
  9. So hey guys. I think I have a problem here. You see,I’m starting to use Soned2 to make my own ROM hack but there’s a problem. For some reason when I use Soned2 to edit Sonic 2,the palette in the editor is really weird. For example,Sonic looks like that outdated rainbow frog meme,the sky looks like a screwed up sunset and same with the rest of the entirety of the entire game! So how I’m am supposed to fix this glitch though?





    If solved,thanks.
     
  10. That seems to have fixed it. Thanks!
     
  11. Wafer

    Wafer

    Giving me a little Mania Member
    116
    22
    18
    Disassembling n00bs, WIP
    There's your problem right there. You probably want to be using SonLVL instead of any version of SonEd. Make sure you use it along with this disassembly.
     
    Last edited: Dec 29, 2019
  12. TheInvisibleSun

    TheInvisibleSun

    OVER THE TOP TECHNO-BLAST Member
    1,464
    13
    18
    Buffalo, NY, USA
    Sonic 1 Color Contrast
    I was going to type something similar at first, but it doesn't inherently solve his issue (and his problem doesn't look like a common SonEd2 issue, though I haven't used the software in several years).


    @AquaChill Electrohex If you still insist on using SonEd2 rather than SonLVL, I'd look at the palette in a separate editor/viewer (like HivePal). Is the palette messed up there, or when you actually load the ROM as well?

    Either way, I also suggest giving SonLVL a shot, as it has many more features/options, and is actively being supported/updated nowadays. I also find its controls and UI to be far better and much easier to use than SonED2
     
    • Like Like x 1
    • Agree Agree x 1
    • List
  13. Wafer

    Wafer

    Giving me a little Mania Member
    116
    22
    18
    Disassembling n00bs, WIP
    I agree with your points, but I feel it's a good start to use modern, maintained software. Even if it doesn't fix this issue (and I'll bet good money that it would, against all logic, fix this issue), it stops the next few issues from even happening. If nothing else, the user becomes easier to support, because they're on the same playing field as everyone else. Also, since the user's just starting out, it's unlikely that there's anything broken that wouldn't be fixed by starting over with better tools.
     
    Last edited: Dec 30, 2019
  14. Hey there! I wanted to port Tails to Sonic 1 via version 3 but for some reason when I tried it out by pressing B on the title screen, this happens:
    Screenshot 2020-01-01 at 13.58.59.png
    Everything blacks out and Tails is not there. Is there a fix?

    Someone moved my post here, so I'm talking about adding new characters by Natsumi.
     
    Last edited: Jan 2, 2020
  15. JustMe

    JustMe

    a.k.a. DelayHacks Member
    33
    3
    8
    Planet Earth
    Sonic: Uncharted Island
    I think you used byte $1 for the Tails, right? If so, Natsumi's guide tells that character IDs are always in increments of 4, so change id to $3 :specialed:
     
  16. Natsumi

    Natsumi

    the cute one here Tech Member
    if that were the case, the second character would have an ID of $04, third $08, then $0C, etc. That said the post isn't enough information to go off from so its hard to suggest trying anything
     
  17. flarn2006

    flarn2006

    Member
    272
    3
    18
    SA2 Cheat Table
    Does anyone know of any PRS compression/decompression utilities that work on Linux, preferably command line based?
     
  18. E-122-Psi

    E-122-Psi

    Member
    1,802
    5
    18
    Are there any advisable emulators and tools for Mac right now?

    The recent updates to OS have made Kega Fusion incompatible and few hacking tools or even disassemblies tend to work on it.
     
  19. Clownacy

    Clownacy

    Tech Member
    783
    7
    18
    This one might work if you weed out some Windows types and rewrite the frontend.
     
  20. MainMemory

    MainMemory

    Have no fear...Amy Rose is here! Tech Member
    4,358
    39
    28
    SonLVL