don't click here

Basic Questions & Answers thread

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

  1. 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

    Original, No substitute Resident Jester
    2,200
    430
    63
    Japan
    Try and put this in before the "move.b (a2)+,d5":

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

    Devon

    I'm a loser, baby, so why don't you kill me? Tech Member
    1,244
    1,411
    93
    your mom
    Code (Text):
    1. move.b    (a2)+,d5

    Should be:
    Code (Text):
    1. move.w    (a2)+,d5
     
    Last edited: Dec 10, 2019
  4. Works! Thanks Ralakimus!
     
  5. Wafer

    Wafer

    Find me on Twitter instead Member
    255
    75
    28
    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.
     
  6. The Joebro64

    The Joebro64

    SAY HELLO TO MY CHOCOLATE BLEND Member
    2,959
    2,591
    93
    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.
     
  7. Devon

    Devon

    I'm a loser, baby, so why don't you kill me? Tech Member
    1,244
    1,411
    93
    your mom
    Is VSync on by chance? If not, give that a try.
     
  8. 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.
     
  9. The Joebro64

    The Joebro64

    SAY HELLO TO MY CHOCOLATE BLEND Member
    2,959
    2,591
    93
    That seems to have fixed it. Thanks!
     
  10. Wafer

    Wafer

    Find me on Twitter instead Member
    255
    75
    28
    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
  11. TheInvisibleSun

    TheInvisibleSun

    OVER THE TOP TECHNO-BLAST Member
    1,626
    193
    43
    Buffalo, NY, USA
    The Water
    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
  12. Wafer

    Wafer

    Find me on Twitter instead Member
    255
    75
    28
    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
  13. DeltaWooloo

    DeltaWooloo

    Be a boss-man and come to my big and tall man shop Member
    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
  14. Nintorch

    Nintorch

    Just another programmer. Member
    44
    33
    18
    There are a lot actually..
    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:
     
  15. AURORA☆FIELDS

    AURORA☆FIELDS

    The cute one here Tech Member
    216
    24
    18
    Finland
    AMPS
    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
     
  16. flarn2006

    flarn2006

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

    E-122-Psi

    Member
    2,470
    612
    93
    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.
     
  18. Clownacy

    Clownacy

    Tech Member
    1,059
    605
    93
    This one might work if you weed out some Windows types and rewrite the frontend.
     
  19. MainMemory

    MainMemory

    Kate the Wolf Tech Member
    4,741
    338
    63
    SonLVL