don't click here

Basic Questions & Answers thread

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

  1. Hanoch

    Hanoch

    Also known as TheKnock, Birashot Member
    491
    0
    0
    Israel
    everything
    Edit son_lzuw for labyrinth zone underwater pallete, and son_sbzuw for sbz3 underwater colours. It usually should be a bit darker than the original colours, but is mixed with the UW palette. So if most underwater palette in LZ is green, try getting a green shade to your character.
     
  2. FeliciaVal

    FeliciaVal

    Member
    <!--quoteo(post=438112:date=Apr 5 2010, 08:12 PM:name=Hanoch)--><div class='quotetop'>QUOTE (Hanoch @ Apr 5 2010, 08:12 PM) <a href="index.php?act=findpost&pid=438112">[​IMG]</a></div><div class='quotemain'><!--quotec-->Edit son_lzuw for labyrinth zone underwater pallete, and son_sbzuw for sbz3 underwater colours. It usually should be a bit darker than the original colours, but is mixed with the UW palette. So if most underwater palette in LZ is green, try getting a green shade to your character.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Oh I see, I'll try that I guess, I tried making it greenish but for some reason didn't work well
     
  3. Trujin

    Trujin

    The Bad Seed. Member
    Branch offset </138> out of range at address...

    This is the error message I get when using the goggle monitor tutorial.

    Code (Text):
    1. Obj2E_ChkS:
    2. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmpi.b&nbsp;&nbsp;&nbsp;&nbsp;#7,d0&nbsp;&nbsp;&nbsp;&nbsp;; does monitor contain 'S'
    3. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bne.s&nbsp;&nbsp;&nbsp;&nbsp;Obj2E_ChkGoggles&nbsp;&nbsp;&nbsp;&nbsp;; if not, branch to Goggle code
    4. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nop
    5.  
    6. Obj2E_ChkGoggles:
    7. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmpi.b&nbsp;&nbsp;&nbsp;&nbsp;#8,d0&nbsp;&nbsp;&nbsp;&nbsp;; does monitor contain Goggles?
    8. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bne.s&nbsp;&nbsp;&nbsp;&nbsp;Obj2E_ChkEnd&nbsp;&nbsp;&nbsp;&nbsp;; if not, branch to ChkEnd
    9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move.b&nbsp;&nbsp;&nbsp;&nbsp;#1,($FFFFFFFB).w; move 1 to the goggle check
    10.  
    11. Obj2E_ChkEnd:
    12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rts
     
  4. amphobius

    amphobius

    doing more important things with my life Member
    2,120
    0
    16
    life
    Probably a stupid question, but would someone mind explaining Solid Angles to me? You know what it's like, when you have Sonic simply walking up a 45 degree slope with no problem. :P
     
  5. Ravenfreak

    Ravenfreak

    I dunno what I should put here. Tech Member
    2,994
    126
    43
    O'Fallon Mo
    Hacking Sonic Drift, Writer at Sonic Cage Dome
    <!--quoteo(post=438330:date=Apr 6 2010, 08:00 AM:name=Trujin)--><div class='quotetop'>QUOTE (Trujin @ Apr 6 2010, 08:00 AM) <a href="index.php?act=findpost&pid=438330">[​IMG]</a></div><div class='quotemain'><!--quotec-->Branch offset </138> out of range at address...

    This is the error message I get when using the goggle monitor tutorial.

    Code (Text):
    1. Obj2E_ChkS:
    2. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmpi.b&nbsp;&nbsp;&nbsp;&nbsp;#7,d0; does monitor contain 'S'
    3. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bne.s&nbsp;&nbsp;&nbsp;&nbsp;Obj2E_ChkGoggles; if not, branch to Goggle code
    4. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nop
    5.  
    6. Obj2E_ChkGoggles:
    7. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cmpi.b&nbsp;&nbsp;&nbsp;&nbsp;#8,d0; does monitor contain Goggles?
    8. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bne.s&nbsp;&nbsp;&nbsp;&nbsp;Obj2E_ChkEnd; if not, branch to ChkEnd
    9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move.b&nbsp;&nbsp;&nbsp;&nbsp;#1,($FFFFFFFB).w; move 1 to the goggle check
    10.  
    11. Obj2E_ChkEnd:
    12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rts
    <!--QuoteEnd--></div><!--QuoteEEnd-->I hate branch out of range errors... but you should check this thread out, it explains <a href="http://forums.sonicretro.org/index.php?showtopic=17016" target="_blank">how to fix branch out of range errors</a> I hope this helps. ^^
     
  6. Trujin

    Trujin

    The Bad Seed. Member
    This should solve the problem. Thank you very much! I won't be tweaking on it again until tommorow evening so if I don't have any joy with this, I'll pm you if you don't mind? :)

    Code (Text):
    1. Obj72_Main:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;; XREF: Obj72_Index
    2. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addq.b&nbsp;&nbsp;&nbsp;&nbsp;#2,$24(a0)
    3. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move.b&nbsp;&nbsp;&nbsp;&nbsp;$28(a0),d0
    4. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;add.w&nbsp;&nbsp;&nbsp;&nbsp;d0,d0
    5. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;andi.w&nbsp;&nbsp;&nbsp;&nbsp;#$1E,d0
    6. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lea&nbsp;&nbsp;&nbsp;&nbsp;Obj72_Data(pc),a2
    7. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adda.w&nbsp;&nbsp;&nbsp;&nbsp;(a2,d0.w),a2
    8. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move.w&nbsp;&nbsp;&nbsp;&nbsp;(a2)+,$3A(a0)
    9. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move.l&nbsp;&nbsp;&nbsp;&nbsp;a2,$3C(a0)
    10. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move.w&nbsp;&nbsp;&nbsp;&nbsp;(a2)+,$36(a0)
    11. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;move.w&nbsp;&nbsp;&nbsp;&nbsp;(a2)+,$38(a0)
    The line of error is the line directly below this, on an empty line.
     
  7. Willie

    Willie

    Each day the world turns Laugh 'til it all burns Member
    I don't know why, but I'm unable to play the no flickies hack of Sonic 3D Blast without getting the blue screen of death on Kega Fusion. :/ The program also says the game is a bad rom. Has anyone else had these problems?
     
  8. DigitalDuck

    DigitalDuck

    Arriving four years late. Member
    5,167
    295
    63
    Lincs, UK
    TurBoa, S1RL
    I've had no problems. Have you tried redownloading the ROM/Fusion?
     
  9. Willie

    Willie

    Each day the world turns Laugh 'til it all burns Member
    No, but I have had no problems with Fusion in the past and I don't know how redownloading the rom would help the situation. :/
     
  10. Spanner

    Spanner

    The Tool Member
    3,350
    157
    43
    United Kingdom
    Sonic Hacking Contest
    If you have issues with Kega try using another emulator, such as <a href="http://segaretro.org/Gens/GS" target="_blank" style="background: url(http://segaretro.org/segaret_icon.png) right no-repeat; padding-right: 20px; border-bottom: 1px dotted #3366BB; color: #3366BB; cursor:pointer; text-decoration:none;" class="wiki">Gens/GS</a>.
     
  11. Willie

    Willie

    Each day the world turns Laugh 'til it all burns Member
    Compared to Kega Fusion, Gens sucks. >_>
     
  12. DigitalDuck

    DigitalDuck

    Arriving four years late. Member
    5,167
    295
    63
    Lincs, UK
    TurBoa, S1RL
    <!--quoteo(post=440653:date=Apr 10 2010, 10:28 PM:name=W.A.C.)--><div class='quotetop'>QUOTE (W.A.C. @ Apr 10 2010, 10:28 PM) <a href="index.php?act=findpost&pid=440653">[​IMG]</a></div><div class='quotemain'><!--quotec-->No, but I have had no problems with Fusion in the past and I don't know how redownloading the rom would help the situation. :/<!--QuoteEnd--></div><!--QuoteEEnd-->

    Well, it may be a faulty download. Sometimes bits get lost in the download. Just re-download and see if it helps.
     
  13. amphobius

    amphobius

    doing more important things with my life Member
    2,120
    0
    16
    life
    <!--quoteo(post=440776:date=Apr 11 2010, 02:22 AM:name=W.A.C.)--><div class='quotetop'>QUOTE (W.A.C. @ Apr 11 2010, 02:22 AM) <a href="index.php?act=findpost&pid=440776">[​IMG]</a></div><div class='quotemain'><!--quotec-->Compared to Kega Fusion, Gens sucks. >_><!--QuoteEnd--></div><!--QuoteEEnd-->
    Gens alone is unsatisfactory. Gens/GS, on the other hand, is much more accurate to actual hardware than regular Gens. It's maintained by our very own GerbilSoft, and can be found in the community project section. I'd definately reccomend it.

    For your problem, however, I'd suggest re-downloading the ROM. I've had no problems loading the ROM in Kega Fusion in the past, so it must be a faulty download. :)
     
  14. Chaos Rush

    Chaos Rush

    AKA J.Matz Member
    557
    47
    28
    How do you change the size of a rom?

    I've cleared out some music tracks from S3K, and now I have all these 00 bytes that are taking up space. I'd like to get the rom under 3.5 megabytes.
     
  15. DigitalDuck

    DigitalDuck

    Arriving four years late. Member
    5,167
    295
    63
    Lincs, UK
    TurBoa, S1RL
    <!--quoteo(post=441221:date=Apr 11 2010, 11:54 PM:name=Chaos Rush)--><div class='quotetop'>QUOTE (Chaos Rush @ Apr 11 2010, 11:54 PM) <a href="index.php?act=findpost&pid=441221">[​IMG]</a></div><div class='quotemain'><!--quotec-->How do you change the size of a rom?

    I've cleared out some music tracks from S3K, and now I have all these 00 bytes that are taking up space. I'd like to get the rom under 3.5 megabytes.<!--QuoteEnd--></div><!--QuoteEEnd-->

    The 00 bytes are padding. The MegaDrive can only read ROMs whose lengths are a power of 2.

    You could truncate the ROM, though. Most emulators will work fine with ROMs with incorrect lengths.
     
  16. Chaos Rush

    Chaos Rush

    AKA J.Matz Member
    557
    47
    28
    <!--quoteo(post=441222:date=Apr 11 2010, 03:56 PM:name=DigitalDuck)--><div class='quotetop'>QUOTE (DigitalDuck @ Apr 11 2010, 03:56 PM) <a href="index.php?act=findpost&pid=441222">[​IMG]</a></div><div class='quotemain'><!--quotec-->You could truncate the ROM, though. Most emulators will work fine with ROMs with incorrect lengths.<!--QuoteEnd--></div><!--QuoteEEnd-->
    Mind telling me how to do that?

    Sorry if my words earlier are confusing, I'm so used to Pokemon rom-hacking.

    All I want to do is remove all unused bytes, thus changing the size of the rom.
     
  17. DigitalDuck

    DigitalDuck

    Arriving four years late. Member
    5,167
    295
    63
    Lincs, UK
    TurBoa, S1RL
    <!--quoteo(post=441224:date=Apr 11 2010, 11:58 PM:name=Chaos Rush)--><div class='quotetop'>QUOTE (Chaos Rush @ Apr 11 2010, 11:58 PM) <a href="index.php?act=findpost&pid=441224">[​IMG]</a></div><div class='quotemain'><!--quotec-->Mind telling me how to do that?

    Sorry if my words earlier are confusing, I'm so used to Pokemon rom-hacking.

    All I want to do is remove all unused bytes, thus changing the size of the rom.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Well, it will depend on your hex editor. I'm not sure of the quickest way of doing it, but in xvi32, you can simply go to the end of the ROM and hold down DELETE.
     
  18. Stupid question time, but I thought I'd ask anyway.

    Why are there so few Sonic 3/S3&K hacks? Implementing new characters/palettes etc seem to be a constant thing for 1 and 2 but nothing for 3

    If someone could either prove me wrong and provide links to some good sonic 3 hacks then that would be awesome.

    Also, I remember a little hack a while back that basically ported Angel Island and I think Ice Cap into Sonic 2, does anyone have this still?
     
  19. Andlabs

    Andlabs

    「いっきまーす」 Wiki Sysop
    2,175
    1
    0
    Writing my own MD/Genesis sound driver :D
    S3K is a much more complicated game and we don't have the whole engine documented, not to mention S3K has a lot of character specific hacks and optimizations (shared mappings, etc.). Documenting everything will take time, but it's being done.
     
  20. Selbi

    Selbi

    The Euphonic Mess Member
    1,485
    10
    18
    Northern Germany
    Sonic ERaZor
    That's most likley becase there is no split disassembly like there is for S1 and S2. Even though there is a file that can be edited and assembled, it's bloddy huge of 12MB and only like 2% labeled and commented (however, the stuff which is labled, is good for people who want to port things, like the code for the elemental shields). Besides that, it seems that S3 is using a completly different engine when it comes to coding. Unlike the old games, there are multiple error exeptions instead of just one, which somehow causes problems.
    But yeah, once there will be a split disassembly, the number of hacks would go up, but it won't be a groundbreaking number like the other games for sure, as they are much more "explored" and easier to work with, well, at least for now.

    EDIT: Beaten by Andlabs. ._.