Adding/porting the S2 stars to S1 problem

Discussion in 'Discussion and Q&A Archive' started by Dark Lips, Feb 7, 2010.

Thread Status:
Not open for further replies.
  1. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Hello, I have been trying to get the s2 stars object to work in s1 - I can get the rom to build and get the invincability power up but there are no stars around sonic - I read on the sonic masters forum that someone else has had this problem too and found that it is related to the buildsprites routine... can anybody confirm this and tell me what I should be looking at?
     
  2. EMK-20218

    EMK-20218 The Fuss Maker Exiled

    Joined:
    Aug 8, 2008
    Messages:
    1,067
    Location:
    Jardim Capelinha, São Paulo
    Do you added the art as a uncompressed art?


    If yes, you could use for this the same VRAM space from the shield. I'm thinking you're only having VRAM problems. When i was trying the S2 shield for the first time i remembered that i had similar problems too. This was fixed changing the plc loader inside the script code.
     
  3. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    To make sure that the stars art is or is not the problem, you shoud revert the old sonic 1 stars object code back, but replace the art with the s2 stars. I did this and the stars shew, so I relised it was someting to do with converting the code to sonic 1. It may be the same problem, I never got to fully port it.
     
  4. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Thanks for the info guys the art is in nem compressed format just as it is in the s2 dissasembely - Animemaster I will try what you sugest now.


    ok just tried that and the stars show but are all messed up so its definatly a code issue - as i said i read somewhere that its to do with the buildsprites routine? any sugestions?
     
    Last edited by a moderator: Feb 8, 2010
  5. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Ok I know I am not supposed to reply to my own posts but I have decieded to put the stars on hold for a while and have a tinker with some other sonic 1 stuff mainly sonics art... I want to add the s2 beta sonic however when I load my mappings into sonmaped I am presented with a big mess... any ideas why?
     
  6. vladikcomper

    vladikcomper Well-Known Member Member

    Joined:
    Dec 2, 2009
    Messages:
    415
    I was working all the day on porting the stars and finally did that. That is not an easy thing as it seemed to be, because I had to append BuildSprites routine. You see, invincibility stars objects work in a specific way, using child sprites, which are not supported by Sonic 1 Engine.


    In Sonic 2, when the seventh bit of object's render flag (#6,1(ax)) is set, some data about object must be located in other bytes. To know out about this more, go here and look for bit 6 in offset $01.


    Sonic 1 engine doesn't support this thing, so it will show nothing. To fix that, you'll have to port DisplaySprite3 subroutine and a large part of BuildSprites code.


    Well, I have already did this hard work and know about all possible problems, so I can help you.

    Maybe you've forgot to load Pattern Load Cues or just choose a wrong game format in SonMapED?


    EDIT: GRAMMAR =(
     
    Last edited by a moderator: Feb 12, 2010
  7. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Yes I would love for your help with changing the s1 or porting the s2 buildsprits routine, also as for my sonmaped problem I have checked all the basics, and i am doing everything right so I have come to the conclusion my mappings file is somehow in the wrong format as it only messed up when the mappings are loaded.
     
Thread Status:
Not open for further replies.