Sonic and Sega Retro Message Board: Basic Questions & Answers thread - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 408 Pages +
  • ◄ First
  • 26
  • 27
  • 28
  • 29
  • 30
  • Last ►
    Locked
    Locked Forum

Basic Questions & Answers thread NEWBIES: Start here!

#406 User is offline FraGag 

Posted 25 August 2008 - 07:36 PM

  • Posts: 659
  • Joined: 09-January 08
  • Gender:Male
  • Location:Québec, Canada
  • Project:an assembler
  • Wiki edits:6

View PostInsanity, on Aug 25 2008, 08:21 PM, said:

Does anyone have a list of all the water-related routines/subroutines in the Sonic 1 disassembly? I'm trying to port water to SBZ, and it'd be immensely helpful- the water right now doesn't work right at all, and I have a feeling that I passed over something.

Just search the code for a comparison to the zone:
Syntax Highlighted Code: ASM
		[color= #00bfff;]cmpi[/color].[color= #00bfff;]b[/color]	[color= #ff0000;]#[/color][color= #ff0000;]1[/color],([color= #ff0000;]$[/color][color= #ff0000;]FFFFFE10[/color]).[color= #00bfff;]w[/color]

This instruction appears 20 times, but only 9 of them are related to water (others control the behaviour of objects). One of them is in the Sonic player object and controls the water physics. Other places control the water levels, palettes and other stuff.
This post has been edited by FraGag: 25 August 2008 - 07:43 PM

#407 User is offline Fluffy Clouds 

  Posted 25 August 2008 - 09:18 PM

  • WAS A KID.
  • Posts: 45
  • Joined: 18-December 07
  • Gender:Male
  • Location:San Fernando Valley, California
  • Project:GTA San Andreas trainer SCM hook.
  • Wiki edits:30
This is in Sonic 3 alone:

I did something today, which involved changing all of AIZ2's tiles to AIZ1's tiles. Now I have a problem, Plane B is garbled and I need an editor to fix this. SonED doesn't support it, and ESEII can't edit Plane B. Am I at a dead end?

Thanks.

#408 User is offline TheBarAdmin 

Posted 26 August 2008 - 01:43 PM

  • Posts: 103
  • Joined: 01-December 07
  • Gender:Male
  • Wiki edits:292
Aha it worked! Thanks qiuu!

Anyway, I was looking forward to extend the level slots. I extended all the arrays except I don't know how adding new title cards works... It just displays "zone zone" on the new level.

#409 User is offline FraGag 

Posted 26 August 2008 - 07:15 PM

  • Posts: 659
  • Joined: 09-January 08
  • Gender:Male
  • Location:Québec, Canada
  • Project:an assembler
  • Wiki edits:6

View PostTheBarAdmin, on Aug 26 2008, 02:43 PM, said:

I don't know how adding new title cards works... It just displays "zone zone" on the new level.

First, you'll have to edit the sprite mappings for the title card object (object $34) to add frames for the new levels. You may not be able to get them to show the proper art in SonMapEd as they use many different sources for that. When you've added frames for each zone, you need to edit some of the code for the title card object to handle those new frames: those mappings have frames not only for the text, but for other elements on screen (e.g., the ZONE text, the act number, the SONIC THE HEDGEHOG text and the red triangles with a shadow) and the code references these frames by their index. If you placed your new frames at the end, you'll need to tell the code to skip the existing frames for zones with IDs > $10. However, if you placed your new frames in the middle of the mappings (I.e. just after the existing frames for each zone, but before the "common" frames), you'll need to edit the indices for the other frames so the object shows the proper frames.

#410 User is offline Dr. Kylstein 

Posted 27 August 2008 - 11:04 AM

  • Posts: 84
  • Joined: 05-June 08
  • Gender:Not Telling
An annoying glitch that only shows up in Kega:
Attached File  kegaglitch.png (11.46K)
Number of downloads: 49
It occurs consistently, about every other frame of Tails's spinning animation.

#411 User is offline Quexinos 

Posted 27 August 2008 - 08:11 PM

  • Since 1997
  • Posts: 1672
  • Joined: 24-April 03
  • Gender:Female
  • Wiki edits:11
K, I got one.

Posted Image
Tails doesn't follow these slopes properly. I know it's very hard to get him to do so (according to Tweaker) but if anyone can tell me how to get him to follow them without flying off, it'd be greatly appreciated. (The circled ones) It's Sonic 2 BTW.
This post has been edited by Quexinos: 27 August 2008 - 08:11 PM

#412 User is offline SMTP 

Posted 27 August 2008 - 08:48 PM

  • Posts: 2146
  • Joined: 27-April 04
  • Gender:Male
  • Location:Ohio
  • Wiki edits:59
Rika did that in his hack.. No idea how he got it to work though...

#413 User is offline Evil Hedgehog 

  Posted 27 August 2008 - 08:57 PM

  • Posts: 32
  • Joined: 01-November 07
  • Gender:Male
I have a question:
How I can edit the title card and level select text in Sonic 2 if I am using a disassembly?

#414 User is offline Tweaker 

Posted 27 August 2008 - 09:01 PM

  • Posts: 12389
  • Joined: 27-June 04
  • Gender:Male

View PostSMTP, on Aug 27 2008, 09:48 PM, said:

Rika did that in his hack.. No idea how he got it to work though...

That's because he didn't. :(

(It was Stealth)

#415 User is offline Quexinos 

Posted 27 August 2008 - 09:31 PM

  • Since 1997
  • Posts: 1672
  • Joined: 24-April 03
  • Gender:Female
  • Wiki edits:11
I did PM stealth but didn't get a response, and I was hoping someone else knew.

#416 User is offline GasparXR 

Posted 27 August 2008 - 10:04 PM

  • I'm back!
  • Posts: 425
  • Joined: 12-April 08
  • Gender:Male
  • Location:Ontario, Canada
  • Wiki edits:29
I just figured out how to alter Obj2E_ChkShoes' to load music instead of speeding up the music.

I changed

move.b #1,($FFFFFE2E).w; speed up the BG music


to

 move.w #$94,d0


and deleted

move.w #$E2,d0
(Track 94 is my speed shoes song.)

It works fine, except now, neither the speed shoes effect OR the music stop. How would I go about stopping the music and speed effect?

EDIT: Oh god, I should stop pulling all-nighters. I completely forgot this topic was here. =P
This post has been edited by GasparXR: 27 August 2008 - 10:07 PM

#417 User is offline Irixion 

Posted 28 August 2008 - 12:46 AM

  • Posts: 1516
  • Joined: 30-December 04
  • Gender:Male
  • Location:Ontario, Canada
  • Project:Life
  • Wiki edits:152

View PostEvil Hedgehog, on Aug 27 2008, 09:57 PM, said:

I have a question:
How I can edit the title card and level select text in Sonic 2 if I am using a disassembly?



...Check the wiki? I recall there being some info about sonic 2 text editing.

View PostGasparXR, on Aug 27 2008, 11:04 PM, said:

It works fine, except now, neither the speed shoes effect OR the music stop. How would I go about stopping the music and speed effect?


Check the code that the drown count uses to resume level music. I don't know what it is in s1, it should be something like resume music or something.
This post has been edited by Irixion: 28 August 2008 - 12:48 AM

#418 User is offline Quexinos 

Posted 28 August 2008 - 12:50 AM

  • Since 1997
  • Posts: 1672
  • Joined: 24-April 03
  • Gender:Female
  • Wiki edits:11
Do people not know how to speed up the music for speed shoes? I know Rob figured it out...

#419 User is offline roxahris 

Posted 28 August 2008 - 01:12 AM

  • Everyone's a hypocrite. Take my word for it.
  • Posts: 1224
  • Joined: 24-January 07
  • Gender:Male
  • Project:Doing anything at all
  • Wiki edits:30

View PostIrixion, on Aug 28 2008, 03:16 PM, said:

View PostEvil Hedgehog, on Aug 27 2008, 09:57 PM, said:

I have a question:
How I can edit the title card and level select text in Sonic 2 if I am using a disassembly?
...Check the wiki? I recall there being some info about sonic 2 text editing.
You check the wiki. That information applies to Sonic 2 ROMs.

I also would like to know how to edit, or indeed make my own title card.
This post has been edited by roxahris: 28 August 2008 - 01:13 AM

#420 User is offline qiuu 

Posted 28 August 2008 - 03:38 AM

  • Posts: 140
  • Joined: 05-February 08
  • Gender:Not Telling
  • Project:Blue Ball & Blocks
  • Wiki edits:13
The foreground data of the level select is stored in mappings/misc/Level Select.bin
It is an Enigma compressed file, use TDSC to decompress it. The screen is 40x28 8x8 tiles large, and each 2 bytes in the file corresponds to one of these tiles. If the value stored for a certain tile is $4000, it is empty, other values correspond to the letters/numbers as listed in the wiki. At the bottom you'll also find some other values that make up the stage icon sign at the bottom right of the level select.

When you press a key in the level select, the selected level number is changed, down/up increases/decreases it by 1, left/right looks up the table byte_95A2 to check which zone to switch to, check the code in LevSelControls to see what's exactly done. You can also expand the table editing two values there and extending the relevant tables. Pressing start will take you to the zone according to the table Misc_9454

Now there's still the graphics that should change (I.e. level icon and color of selected level text). For the Icons, edit the table byte_96D8, each value has a byte entry there.
For the text colors to be changed, edit the table byte_96EE. Each value has a 4-byte entry in this table (I recommend to re-format it therefore). Whenever you have a level selected, the zone name and the act number are marked. The first two bytes in that table are the position of the zone text, the next two the position of the act number. At the position the second two bytes point to, exactly one field will be marked yellow, at the position the first two bytes point to 14 fields will be marked (changing these amounts will need a closer look into the code I guess). First byte is the line, second byte the column. E.g. 3, 6, 3, $24 means that 14 fields beginning with the 'E' of Emerald Hill, I.e. (6, 3), will be marked yellow, and the field the act number is located, I.e. ($24, 3).

  • 408 Pages +
  • ◄ First
  • 26
  • 27
  • 28
  • 29
  • 30
  • Last ►
    Locked
    Locked Forum

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

  1. Yandex