Sonic and Sega Retro Message Board: Have I finally lost it? - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

Have I finally lost it? S2F Tails -> S2B

#1 User is offline Quickman 

Posted 15 December 2003 - 12:09 AM

  • Posts: 5584
  • Joined: 03-December 03
  • Gender:Male
  • Location::x
  • Project:omg porjcet
  • Wiki edits:10
I'm trying to port Sonic 2 Final Tails into Sonic 2 Beta. I've used Nemesis' extensively helpful website as much as I can, and I'd like to run this by the competent people here. (Of course, it's entirely possible that I've misunderstood the website somehow and am trying to carry across potentially useless data.)

I have ascertained that the data for S2F Tails is located from 1B8A4h to 1D1FFh (delta equals 195Bh, or 6491d), and the data for S2B Tails is located from 10E38h to 11F95h (delta equals 115Dh, or 4445d). There is a clear difference in the amount of space taken up by S2B Tails' data and S2F Tails' data. I have calculated that difference to be 7FEh, or 2046d.

Am I correct? Will I have to increase all pointers after 1B8A4h in the beta by 7FEh? Or have I become an oblivious giggling moron and completely misunderstood what I've been reading?

(A note on formatting - I append a lowercase H after hexadecimal numbers and a lowercase D after decimal numbers for clarity. Delta represents a change or a difference.)

EDIT: x_x I got the beta and final versions muddled up. I did that once before.
This post has been edited by XinuX: 15 December 2003 - 12:15 AM

#2 User is offline Mecha Mazgoth 

Posted 15 December 2003 - 06:58 AM

  • Unleash thy fury.
  • Posts: 1802
  • Joined: 25-September 03
  • Location:Bowels of Hell!!!!
  • Project:Super Sonic part1: The Beginning
Personally, I don't know jack, so I would take the second answer. :P

#3 User is offline Hivebrain 

Posted 15 December 2003 - 05:30 PM

  • Posts: 2508
  • Joined: 15-January 03
  • Gender:Male
  • Location:53.4N, 1.5W
  • Project:HivePal 2.0
  • Wiki edits:6,176
You can't port a section of code as large as Tails without heavily modifying it.

#4 User is offline Rika Chou 

Posted 15 December 2003 - 05:43 PM

  • Adopt
  • Posts: 5093
  • Joined: 11-January 03
  • Gender:Not Telling
  • Location:CA US
  • Wiki edits:4
Tails is an object code, the code for the object is made to interact with different objects and such. To port it you would have to rewrite so much of the datal

#5 *BombwithNapalm*

Posted 18 December 2003 - 02:04 AM

re writing data though is very time consuming is there a alternative?

#6 User is offline XFox Prower 

Posted 18 December 2003 - 10:45 AM

  • Posts: 1196
  • Joined: 30-August 03
  • Project:x86 Assembly, Tails Search Assistant
I think he's right about the pointers. As far as the different events such as flying, etc, I'd first work on replacing sprites 1 at a time and taking note of any change in size to offset further pointers. Inserting uses for his other sprites may be tricky though.

#7 User is offline SoNick 

Posted 18 December 2003 - 11:30 AM

  • Imageshack took down my old avatar after nearly a decade
  • Posts: 979
  • Joined: 14-December 03
  • Gender:Male
  • Location:The middle of nowhere, Kansas
  • Wiki edits:1,168
If you go through with this plan, you may want to program in something that prevents Tails from stopping at the water line when he's flying/remove the line(s) of code that make Tails stop at the water line.

#8 User is offline LOst 

Posted 18 December 2003 - 05:05 PM

  • Posts: 4879
  • Joined: 10-January 03
  • Gender:Male
  • Wiki edits:2

XinuX, on Dec 15 2003, 08:09 AM, said:

I'm trying to port Sonic 2 Final Tails into Sonic 2 Beta. I've used Nemesis' extensively helpful website as much as I can, and I'd like to run this by the competent people here. (Of course, it's entirely possible that I've misunderstood the website somehow and am trying to carry across potentially useless data.)

I have ascertained that the data for S2F Tails is located from 1B8A4h to 1D1FFh (delta equals 195Bh, or 6491d), and the data for S2B Tails is located from 10E38h to 11F95h (delta equals 115Dh, or 4445d). There is a clear difference in the amount of space taken up by S2B Tails' data and S2F Tails' data. I have calculated that difference to be 7FEh, or 2046d.

Am I correct? Will I have to increase all pointers after 1B8A4h in the beta by 7FEh? Or have I become an oblivious giggling moron and completely misunderstood what I've been reading?

(A note on formatting - I append a lowercase H after hexadecimal numbers and a lowercase D after decimal numbers for clarity. Delta represents a change or a difference.)

EDIT: x_x I got the beta and final versions muddled up. I did that once before.

The only thing that stops you from porting Tails is the collision routines. They are at a different offset in the beta.

Take the code for the Tails object, paste it at the end of the beta ROM. Change the Tails object pointer at offset $CFF0 to point to the new location. Change the collision routine calls.

You will have a working Tails then.

Page 1 of 1
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users