Objects Disappear when i design levels in SonEd2 (Extended) (This is for Sonic 1)

Discussion in 'Discussion and Q&A Archive' started by DeoxysKyogre, Jul 31, 2009.

Thread Status:
Not open for further replies.
  1. DeoxysKyogre

    DeoxysKyogre No idea what to put here .-. Member

    Joined:
    Jan 31, 2009
    Messages:
    298
    Well, i was designing a level layout for a hack, and when i tested the layout... WTF?!?!?!?!? Objects dissapeared, (Rings, Enemies and Monitors) I think it can be separate in something like:


    Layout: Ghz.bin


    Objects: GhzObj.bin


    Rings: GhzRing.bin


    Monitors: GhzMonitors.bin


    - But my question is, what solution exists? And if i'm correct, how can i separate it like i said?
     
  2. amphobius

    amphobius spreader of the pink text Member

    Joined:
    Feb 24, 2008
    Messages:
    970
    Location:
    United Kingdom
    don't be stupid


    put less objects in, too many on can cause some to disapear
     
  3. Aka Mekon

    Aka Mekon is back Member

    Joined:
    Aug 11, 2007
    Messages:
    41
    Location:
    France
    This is because you don't have the recent version of Soned 2 (this one) which save the objects position.
     
  4. DeoxysKyogre

    DeoxysKyogre No idea what to put here .-. Member

    Joined:
    Jan 31, 2009
    Messages:
    298
    Nothing of these 2 answers worked.
     
  5. Thorn

    Thorn wroar Member

    Joined:
    Aug 11, 2007
    Messages:
    70
    Are you setting an object status of 08 for any object that requires it? Objects that maintain properties even after you're done interacting with them (e.g. rings and items can be uncollected and displaying or collected and gone forever, a badnik can be destroyed or not destroyed) must have this property set. Object IDs are in the format XX YY ZZ in SonED2, where ZZ is the status. If ZZ isn't at least 08, the game will assume it can forget about remembering properties for the objects. The 08 can be combined with other properties, e.g. 02 is mirrored, 08+02=0A is mirrored and remembered.
     
  6. DeoxysKyogre

    DeoxysKyogre No idea what to put here .-. Member

    Joined:
    Jan 31, 2009
    Messages:
    298
    Sorry, i forgot to say that is because the crowd of objects. How can we extend the number of add objects without they having to dissapear? This problem is irritating me, and we fucking need it! Any help would be credited a lot. Thanks for supporting
     
  7. Thorn

    Thorn wroar Member

    Joined:
    Aug 11, 2007
    Messages:
    70
    You're trying to remove the sprite limit?


    ...


    ...that's not going to happen. You might consider setting a check for the camera's y-position in the object load routine instead of only an x-position check, but I can't imagine a situation where you'd need that many objects. I demand a pic.
     
  8. DeoxysKyogre

    DeoxysKyogre No idea what to put here .-. Member

    Joined:
    Jan 31, 2009
    Messages:
    298
    It's possible one load of more objects more than the limit becfause when you "extend levels" in the proportion needs at least the double of objects "some 700" in Sonic MegaMix, only counting rings, for example, you count lots of them, lots of extended (rings, monitors, enemies...) It's posible... But i think that with a load of objects, then we can say that rings, monitors, and badnicks having a bank.


    Where you can add "100, 200, 300, 400, etc" of objects, and without limit of the objects (except the too many load of objects)


    "The true problem is that i don't know how to get that ready :/"
     
  9. Malevolence

    Malevolence Well-Known Member Member

    Joined:
    Jul 29, 2008
    Messages:
    97
    Sure it's possible to have more objects but if you cluster them all together the mega drive has a sprite limit. A total of 80 sprites can be on screen at once.
     
  10. EMK-20218

    EMK-20218 The Fuss Maker Exiled

    Joined:
    Aug 8, 2008
    Messages:
    1,067
    Location:
    Jardim Capelinha, São Paulo
    Download the updated version of SonED2.
     
  11. Qjimbo

    Qjimbo Well-Known Member Member

    Joined:
    Feb 27, 2008
    Messages:
    850
    Location:
    Vancouver, BC
    Surely the fact objects are disappearing in game is a limitation of the Sonic engine as opposed to something that can be fixed with a SonED2 update?
     
  12. OrdosAlpha

    OrdosAlpha RIGHT! Naebody move! Root Admin

    Joined:
    Aug 5, 2007
    Messages:
    1,793
    Location:
    Glasgow, Scotland
    It's a limit of the hardware. Malevolence hit the nail right on the head. The Mega Drive can only display a maximum of 80 sprites on screen at any time. Any more and they just get ignored as there's no RAM available to handle them. Although, the Sonic engine may have a lower sprite limit than the hardware limit, and so the same shit will happen.
     
    Last edited by a moderator: Aug 5, 2009
  13. Malevolence

    Malevolence Well-Known Member Member

    Joined:
    Jul 29, 2008
    Messages:
    97
    Yeah, I have noticed sprites disappearing before 80 was hit.


    Don't forget though an object may be more then one sprite (if you're thinking "Wait, there aren't 80 objects on screen!")
     
  14. OrdosAlpha

    OrdosAlpha RIGHT! Naebody move! Root Admin

    Joined:
    Aug 5, 2007
    Messages:
    1,793
    Location:
    Glasgow, Scotland
    Most people will think 1 sprite = complete object. This is true for a handful of objects, most objects are made up of several sprites per animation frame. The Sonic object for instance uses on average 3 to 4 sprites per animation frame.
     
Thread Status:
Not open for further replies.