Basic Questions and Answers Thread

Discussion in 'Discussion & Q&A' started by Malevolence, Jul 7, 2009.

  1. rika_chou

    rika_chou Adopt Member

    Joined:
    Aug 11, 2007
    Messages:
    689
    You must also use the background layout from the rev01 rom.
     
  2. Psycho RFG

    Psycho RFG Well-Known Member Member

    Joined:
    Feb 22, 2011
    Messages:
    234
    Thanks! I didn't thought on that, but has a lot of sense... I will try. Thanks!!!


    Is this the only bug caused by this? or should I replace all stages layout from the REV01 rom?
     
    Last edited by a moderator: Jun 2, 2011
  3. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    A safe way to know is to check the svn folder on retro: here


    The things that changed are usually marked with a "jp1".


    Well, as you can see, in this case it's the only background that changed.
     
  4. Psycho RFG

    Psycho RFG Well-Known Member Member

    Joined:
    Feb 22, 2011
    Messages:
    234
    Thanks rika_chou, I have checked and it works :blink: You was right!


    Thanks SpirituInsanum, that helped me a lot :)
     
  5. Darkness

    Darkness Active Member Member

    Joined:
    Nov 6, 2010
    Messages:
    28
    Um, I would like to add Nicoe lynx in Sonic 1, replace Sonic with her. After messing with SonmapED I found out how to and followed a tut, but bits of Nicole are messing. How do I fix that without resizing her?
     
    Last edited by a moderator: Jun 13, 2011
  6. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    It really all depends on the sprite sheet you're using, and what you mean by "messing", unless it's "missing".


    When you're importing a frame, you have to divide it in 8x8 to 32x32 "pieces", and place those pieces in sonmaped so they can contain the whole sprite. You can move pieces with the arrow keys (8px by 8) or shift+arrow (1px by 1). Try to have only a few pieces (usually 1 to 4, above only when necessary), and avoid placing too many pieces on the same horizontal line.
     
  7. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    lea ($FF0000).l,a1 ; Show screen
    move.l #$40000003,d0


    moveq #$27,d1


    moveq #$1B,d2


    jsr ShowVDPGraphics



    Okay. That will print something in Plane A, right? what I need to modify, to make it print something in Plane B?
     
  8. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    For this line:




    move.l #$40000003,d0



    You need to add the Vram address into this VDP instruction. Check the VDP topic, its explained there.
     
  9. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    Without giving out the answer, I'll give you a clue!


    This is set in Sonic 1:



    move.w #$8407,($C00004).l



    Use the VDP topic to work out what it means, good luck!
     
  10. Darkness

    Darkness Active Member Member

    Joined:
    Nov 6, 2010
    Messages:
    28
    By messing I mean just trying everything SonMapED has. And the sheet I wanna use is this one. Only Nicole sheet I could find that I could use. And I know I can make her fit, if someone can add Amy, Sally, and Tails in Sonic 1 then I can add Nicole in it. Btw how can I tell if it's 8x8 to 32x32 pieces? Bad at math.
     
    Last edited by a moderator: Jun 13, 2011
  11. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Here's an example of how to divide frames:


    [​IMG]


    The first one is good, second one is ok but not optimized, third one pretty bad.


    Open your pic in an editor of your choice that has a grid, set the grid to 8x8, use the selection tool to see how you can divide the frame. Height and width have to be multiples of 8, ie 8, 16, 24 or 32. Then select the corresponding piece in the top left corner of sonmaped and place it. When the pieces are placed, clear their tiles (clear selected tiles in the menu) and import your frame.


    Of course, you first need to modify the first palette line (Sonic's palette) to match Nicole's palette, but that's probably done already.
     
    Last edited by a moderator: Jun 13, 2011
  12. Darkness

    Darkness Active Member Member

    Joined:
    Nov 6, 2010
    Messages:
    28
    OK, but 2 things. Can I do that without resizing Nicole? And how do I save it to test it out?
     
  13. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Of course you can, you only have to select pieces that are big enough for the frame.


    Then you save the uncompressed art, mappings and dplc, and you can build the rom and test it.
     
  14. Darkness

    Darkness Active Member Member

    Joined:
    Nov 6, 2010
    Messages:
    28
    OK, but how do I build the rom? With sonmapED or another program? Never hacked before.
     
  15. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Launch build.bat, it should be in your disassembly's folder
     
  16. Darkness

    Darkness Active Member Member

    Joined:
    Nov 6, 2010
    Messages:
    28
    Dang...Need to get that then. Hold on.
     
  17. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    Ah now, let's not misdirect =$


    It may be optimised for art size, but not sprite map size, processor speed, and sprite limit reduction, this is one of those classic cases of speed v.s. size...
     
  18. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Actually it's only optimized for sprite limit, and if the game can't handle 3 sprites for Sonic when he's waiting, the problem is likely to be elsewhere in the design. ^^'


    The art size is far from being optimal, 4 tiles could be saved easily using a 3x4 piece instead. Processing would be faster that way as well.


    Now though, with a 3x4 piece for the top and a 3x1 piece for the bottom, I'd agree it would really be speed vs size.
     
    Last edited by a moderator: Jun 14, 2011
  19. Darkness

    Darkness Active Member Member

    Joined:
    Nov 6, 2010
    Messages:
    28
    (Finally, enter your password wrong a few times and your account gets locked, thank you for unlocking it.)


    OK, I have a Build file, guess it's the build.bat, and I have 2 split files, their in "Sonic_1_(Split_and_Text_by_Hivebrain)_(ASM68K)" so I know their for Sonic 1. But the Build file says "memory could not be written." and I even followed the.


    " How to split a ROM


    ----------------------------------------------------------------------------------------


    1. Place a Sonic 1 ROM in the same folder as split.bat.


    2. Rename the ROM "s1.bin".


    3. Click on split.bat.


    ----------------------------------------------------------------------------------------


    How to compile a ROM


    ----------------------------------------------------------------------------------------


    1. Click on build.bat.


    2. The file s1built.bin is your new ROM."


    Guess that's to split it, but how do I build the rom to test it? I can't find it out.
     
  20. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Your split files have to be in the same folder as build.bat. Otherwise it can't find the files and won't compile.