don't click here

Velociraptor in Sonic the Hedgehog

Discussion in 'Engineering & Reverse Engineering' started by Glisp, Mar 6, 2009.

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

    Glisp

    That one weird guy that does stuff. Member
    1,278
    2
    16
    Bloomington, IN
    None at the moment I'm afraid.
    I suppose some of you are going "WTF? What is he talking about?" Well, my good friends I decided to Take the sprites from one of the Mega Drive/Genesis' greatest licensed titles: Jurassic Park Rampage Edition!

    Errrrr...... Unfortunately the Velociraptor's Standing sprite refuses to import correctly. The first time I imported it the bottom half was all fucked up.

    I even have a screeny.
    [​IMG]


    SonMapEd refuses to cooperate with me. Either Chimpo purposely made his tutorial to throw people off or My sprite is too big. What's funny is that Chimpo neglected to mention anything about larger sprites. So I don't know.

    I chose the Raptor because It was cool and because it is from one of my favorite Genesis games. Being the swift and Agile creature he is he would fit well in a Sonic hack. Sadly though it seems his size poses a problem. I haven't tested it yet but most likely there will be problems with size on Loops.

    Also I reimported the sprite to try again. This time however when I compiled the rom, the game came up with an error message upon level start. Something like " Something Emulator 1110."

    Finally I had to recompile the old version so now needless to say I'm stuck with a garbled up raptor for the time being until I can figure out what the fuck is wrong.

    Here is a list of Features I plan to have for the Game (just as soon as I figure out what the fuck is wrong.):
    -New Sprites to replace Sonic with the JPRE Velociraptor.
    -Corresponding Collision.
    -Maybe some JPRE Sound effects. (If I get good enough at hacking anyways.)
    -Probably some special Abilities for the Raptor such as kicking and A double jump. (If I figure out how to add special abilities that is.)
    -Maybe the Lysine Fever Effect so when It gets an Invincibility item the screen will turn red and the will instantly kill anything it touches.
    -Maybe a "Super Raptor" as a reward for collecting all of the Chaos Emeralds. (maybe. It actually sounds kind of stupid.)
    -I'm probably going to change the maps but I actually am very bad at thinking up Layout Ideas so I don't know.
    -A very silly title screen with the Velociraptor in place of where Sonic appears.

    If anyone knows what I did wrong I highly encourage you to fess up now.
     
  2. Pretty sure you're using too much VRAM and going into the parts used by over item's graphics, hence the screwyupness
     
  3. Sonic 65

    Sonic 65

    Tech Member
    Did you replace Sonic's dynamic pattern load cues with the new ones for the raptor? That might be some of the cause. Also, as said above, you might be using too many tiles.

    About the actual hack concept, I think it is an amazing idea. Maybe it could even surpass Atomic Sonic someday!
     
  4. GeneHF

    GeneHF

    SEGA-ier than you'll potentially ever be. Site Staff
    8,443
    69
    28
    Scenic Studiopolis
    Complete Global Conquest
    For speed shoes, it should totally cause a rocket to get tied to its back.

    And Robotnik can be that fat guy who played Newman on Seinfeld.
     
  5. Galaxia

    Galaxia

    Member
    718
    0
    0
    Manchester, England
    degloving infants
    I think my brain just exploded. :colbert:

    I'm no hacking expert, but surely the sprites and animations of that monstrosity would take up so much space in the VRAM in lieu of Sonic? You should at least attempt to make custom sprites similar to the size of Sonic.
     
  6. yeah I ran into the same problem

    [​IMG]

    in both pictures you can see the Point Numbers in part of the sprite, as they're next in the vram.
     
  7. Glisp

    Glisp

    That one weird guy that does stuff. Member
    1,278
    2
    16
    Bloomington, IN
    None at the moment I'm afraid.
    Is there an easy way to fix this without distorting the sprite's size?
     
  8. Hanoch

    Hanoch

    Also known as TheKnock, Birashot Member
    491
    0
    0
    Israel
    everything
    Make more room in the vram. The easiest way to do it is, to go to Object Pointers.asm and remove obj29 (replace it with ObjectFall) Then go to the actual object and remove that line that has 2(a0) in it. If that doesn't work, go to Pattern load cues.asm and remove Nem_Points and then change it so it loads 1 less files than needed.

    Edit: Of course it will make room only a little because I can see that the sprite uses also the tiles of the motobug.
     
  9. Hivebrain

    Hivebrain

    Administrator
    3,082
    212
    43
    53.4N, 1.5W
    Github
    You will need to rearrange things in VRAM a bit, but this isn't the main problem. You'll also need to adjust the DMA routine in VBlank to transfer more tiles to VRAM than it currently does. The disassembly uses a macro for this, so it should be easy to change.
     
  10. Glisp

    Glisp

    That one weird guy that does stuff. Member
    1,278
    2
    16
    Bloomington, IN
    None at the moment I'm afraid.
    Alright but where is the stuff you just said located at Hivebrain? I mean where can I find the DMA routine in VBlank at? I know it is in the assembly somewhere but you never specified which folder. Wheres this "Macro"located at? Most of what you said just flew right over my head. lol
     
  11. Hivebrain

    Hivebrain

    Administrator
    3,082
    212
    43
    53.4N, 1.5W
    Github
    This:
    Code (ASM):
    1. writeVRAM   v_sgfx_buffer,$2E0,vram_sonic
    or this (where I forgot to use a constant):
    Code (ASM):
    1. writeVRAM   v_sgfx_buffer,$2E0,$F000
    $2E0 is the size of data to transfer.
     
  12. Glisp

    Glisp

    That one weird guy that does stuff. Member
    1,278
    2
    16
    Bloomington, IN
    None at the moment I'm afraid.
    Thanks so much!

    Edit: Umm... One quick question: Do I put this code into the Sonic.asm file that came with the disassembly or is it one of the asm files extracted from the rom?
     
  13. Shoemanbundy

    Shoemanbundy

    Researcher
    1,098
    31
    28
    Chicago, Illinois
    selling shoes
    I'm having the same problem I think and would like to know an answer to this. I looked all over for anything both Hanoch or Hivebrain wrote and I can't find any such files or code anywhere. My sprite is MUCH bigger than Sonic, but I'd think it'd still be possible to get it in there. Whenever the game attempts to go in game where the sprite would be it comes up with this error:

    Illegal Instruction$4A546782
     
  14. Soselocke

    Soselocke

    MEEP MEEP MEEP Banned
    Holy shit... I love this hack idea. I'd say if you want to start modifying it, replace Emeralds with dinosaur eggs, the animals with little dinosaurs and Eggman/Robotnik with Wayne Knight's character from Jurassic Park. If you were to do this, I would take an all-paid round-trip to your house and give you a 3 hour blowjob.
     
  15. Glisp

    Glisp

    That one weird guy that does stuff. Member
    1,278
    2
    16
    Bloomington, IN
    None at the moment I'm afraid.
    I'll have to pass on the blowjob. Unless of course you're a chick but if I remember correctly you're not so I think I'll pass up the blow job. I'd have to think about adding Dennis Nedry to the game in place of Robotnik. You aren't the first to suggest adding Dennis to the game and I can guarantee you won't be the last. My computer is under a massive Malware and spyware attack right now so production of the hack has came to a screeching halt until I get that out of the way.
     
  16. PsychoSk8r

    PsychoSk8r

    PsychedelAnt | Tone Turner Oldbie
    2,698
    99
    28
    Birmingham, UK
    30 Day Project: Revisited.A New Release!
    A blowjob feels no different wether it's a guy or girl. Unless ofcourse there's a really bushy mustache. All depends on how comfortable you are with being adventurous. :v:

    Anyway, ontopic, I've never seen anybody use an idea like this. I really like it so far, it's looking great =P
     
  17. Glisp

    Glisp

    That one weird guy that does stuff. Member
    1,278
    2
    16
    Bloomington, IN
    None at the moment I'm afraid.
    Okay, I tihnk it is high time to admit that I know almost nothing about where things go in the ASM source code or what to even do. I'm trying to learn this shit but memorizing how to arrange my strings and what commands I need to use is not my best thing. I'm failing my computer programming class because while I understand the material and what different commands do, I'm having a difficult time comprehending the locations of which coding goes where. I know it probably isn't that difficult but My brain just doesn't be able to help me with these things. It probably has a lot to do with MY ADHD and the fact I stay up past 11:00 PM some nights. (For some strange reason lack of sleep makes me more Hyper active as hard as it is to believe.

    Now with that out of the way will someone PLEASE tell me where in the code the VRAM expansion string of code goes? Every time I ask this question everyone stops coming to the thread and it dies. I need answers to my questions an so far, no one is willing to answer them.
    In a way, I kind of blame myself for not communicating with you guys well enough to understand me.

    Just post the source code here and highlight the spot it needs to go in red. Don't worry I'll put it in manually myself. I won't copy the source at all. I just need to know the damn location so I can put in the VRAM expansion command.

    After this I need some type of code that allows action for different buttons. I've checked the SCHG how-tos and so far I haven't found one unless it was added recently.
    I'm studying the music coding but I could use some help understanding how to extract music from other games and putting them into another game. The guide never really explained that well enough. I think a tutorial is called for if one hasn't been done already. I have a few games not on the list I want to extract music from as well of which tracks I'm intending for the game after I learn the whole process of music hacking and stuff:

    I know this first one might sound gay at first but the music Track I want is bad ass. Mickey Mania Genesis version's boss theme. Yes it is a Mickey Mouse game. I'm not a big fan of Mickey Mouse but the boss theme is just so Badass.

    various tracks from the Genesis version of Hook (Based off the Peter Pan movie released in 1990.)

    Some Tracks from the Sega Genesis Jurassic Park game and its sequel, Jurassic Park Rampage Edition.

    Possibly some Streets of Rage Music Tracks but I'm unsure currently
     
  18. ShadowsofYesterday

    ShadowsofYesterday

    I have no idea what's going on. Member
    169
    0
    0
    Fort Wayne, IN
    Sonic and the Magic Hat
    My 45 degree rotated peel-out sprites have this same problem. I too would like a solution to this.

    EDIT: Apparently it's only one of the sprites. I don't know about the 135 degree rotated sprites though. Anyway, have a look.

    [​IMG]
     
  19. SMTP

    SMTP

    Tech Member
    I'm guessing its in Constants.asm.....
     
  20. Hivebrain

    Hivebrain

    Administrator
    3,082
    212
    43
    53.4N, 1.5W
    Github
    Oh ffs. It's in sonic.asm, in the VBlank routines.
     
Thread Status:
Not open for further replies.