|
|
Line 1: |
Line 1: |
− | [http://dejablu503.ifrance.com/description/lib/happy-days.htm happy days] [http://lightmyfire0214.ifrance.com/topic/dzieci/ dzieci] [http://dejablu503.ifrance.com/description/lib/maranta.htm maranta] [http://nokros.ifrance.com/data/clint-eastwood/ clint eastwood gorillaz] [http://smegmacheez.ifrance.com/content/view/o-zone/ o zone drago] [http://gabe95.ifrance.com/html/la-tecnica/ la tecnica della scuola] [http://alishca-st.ifrance.com/text/directory/cdx-cd.htm cdx cd lettori cd da tavolo] [http://dejablu503.ifrance.com/description/lib/lacie-sata.htm lacie sata d2] [http://mfirishka.ifrance.com/view/new/md-changer.htm md changer] [http://atrayah.ifrance.com/topic/el-orijinal.htm el orijinal] [http://alishca-st.ifrance.com/text/directory/creative-zen.htm creative zen nano plus 1gb white] [http://krychan.ifrance.com/content/view/quintiliano.htm quintiliano] [http://call-shotgun.ifrance.com/view/new/nikolias/ nikolias] [http://flawedamythyst.ifrance.com/img/styles/exchange-server.htm exchange server 2003] [http://nokros.ifrance.com/data/www-may/ www may conten it] [http://nokros.ifrance.com/data/zoe-massaggi/ zoe massaggi] [http://joshuaw-wise.ifrance.com/img/styles/www-kal/ www kal cely] [http://gabe95.ifrance.com/html/www-googel/ www googel jenifer lopez sex com] [http://krychan.ifrance.com/content/view/download-simgirls.htm download simgirls] [http://sm4.ifrance.com/lib/ministero-dell/ ministero dell agricoltura] [http://dejablu503.ifrance.com/description/lib/musica-di.htm musica di eddy guerrero] [http://squoi-oop.ifrance.com/topic/elettrostimolatore-fitness/ elettrostimolatore fitness] [http://lightmyfire0214.ifrance.com/topic/geometria-e/ geometria e arte greca] [http://dejablu503.ifrance.com/description/lib/film-in.htm film in tv] [http://smegmacheez.ifrance.com/content/view/mulatti/ mulatti] [http://gajar.ifrance.com/html/guidi.htm guidi.] [http://horcrionebay.ifrance.com/resources/articles/canzoni-per.htm canzoni per pianola] [http://alishca-st.ifrance.com/text/directory/asus-v.htm asus v6800] [http://gabe95.ifrance.com/html/kewlbox/ kewlbox] [http://call-shotgun.ifrance.com/view/new/marco-masini/ marco masini dvd] [http://dejablu503.ifrance.com/description/lib/tefal-spremiagrumi.htm tefal spremiagrumi] [http://trumanburb.ifrance.com/view/new/accessorio-giardinaggio.htm accessorio giardinaggio] [http://horcrionebay.ifrance.com/resources/articles/festa-cioccolata.htm festa cioccolata] [http://zeakk.ifrance.com/resources/articles/sexo-en.htm sexo en vivi] [http://mfirishka.ifrance.com/view/new/o-cori.htm o cori mio] [http://cocopuff66.ifrance.com/text/directory/luce-per/ luce per pc] [http://smegmacheez.ifrance.com/content/view/eutelsat/ eutelsat] [http://smegmacheez.ifrance.com/content/view/il-manifesto/ il manifesto it] [http://atrayah.ifrance.com/topic/siemens-sl.htm siemens sl100 colour] [http://sm4.ifrance.com/lib/industrie-chieti/ industrie chieti] [http://cocopuff66.ifrance.com/text/directory/webcam-senza/ webcam senza fili] [http://dejablu503.ifrance.com/description/lib/www-zuccero.htm www zuccero it] [http://alishca-st.ifrance.com/text/directory/dj-isaac.htm dj isaac nobody listens] [http://call-shotgun.ifrance.com/view/new/motorrad/ motorrad] [http://cocopuff66.ifrance.com/text/directory/articulaciones/ articulaciones] [http://nokros.ifrance.com/data/rs-/ rs 23 fgrs] [http://alishca-st.ifrance.com/text/directory/samsung-.htm samsung 25 flat] [http://alishca-st.ifrance.com/text/directory/jeannette.htm jeannette] [http://dejablu503.ifrance.com/description/lib/prostituzione-a.htm prostituzione a roma] [http://lekusya.ifrance.com/library/html/ericsson-t/ ericsson t610] [http://squoi-oop.ifrance.com/topic/partenze-intelligenti/ partenze intelligenti] [http://trumanburb.ifrance.com/view/new/natasha-tomas.htm natasha tomas] [http://mfirishka.ifrance.com/view/new/canon-fc.htm canon fc 200] [http://joshuaw-wise.ifrance.com/img/styles/salumificio-spezia/ salumificio spezia] [http://dejablu503.ifrance.com/description/lib/warhammer-ww.htm warhammer ww2] [http://nokros.ifrance.com/data/ll-fly/ ll fly with you] [http://sm4.ifrance.com/lib/barry-lyndon/ barry lyndon amadeus] [http://sm4.ifrance.com/lib/just-a/ just a gigolo prima] [http://dejablu503.ifrance.com/description/lib/manuela-arcuri.htm manuela arcuri che fa sesso] [http://dejablu503.ifrance.com/description/lib/moglie-porca.htm moglie porca] [http://gabe95.ifrance.com/html/don-t/ don t say a word] [http://flawedamythyst.ifrance.com/img/styles/edmond-obrien.htm edmond obrien] [http://zeakk.ifrance.com/resources/articles/tarn-fiume.htm tarn (fiume)] [http://dejablu503.ifrance.com/description/lib/vogatore-richiudibile.htm vogatore richiudibile turner] [http://lightmyfire0214.ifrance.com/topic/tomb-raider/ tomb raider - le modelle di lara] [http://dejablu503.ifrance.com/description/lib/elchat-con.htm elchat con cam] [http://gajar.ifrance.com/html/tg-donne.htm tg donne] [http://dejablu503.ifrance.com/description/lib/hp-jetdirect.htm hp jetdirect 175x] [http://trumanburb.ifrance.com/view/new/lunakhod.htm lunakhod] [http://sm4.ifrance.com/lib/tutto-gratis/ tutto gratis video eros ramazzotti] [http://horcrionebay.ifrance.com/resources/articles/pioneer-av.htm pioneer 668av] [http://gajar.ifrance.com/html/escobar-pedro.htm escobar, pedro de-] [http://alishca-st.ifrance.com/text/directory/ati-radeon.htm ati radeon 9800se 256mb] [http://krychan.ifrance.com/content/view/navman-i.htm navman i 510 v3] [http://gabe95.ifrance.com/html/ubi-caritas/ ubi caritas] [http://alishca-st.ifrance.com/text/directory/la-castellana.htm la castellana bianca] [http://squoi-oop.ifrance.com/topic/micro-machines/ micro machines v3] [http://horcrionebay.ifrance.com/resources/articles/contratto-comodato.htm contratto comodato] [http://gajar.ifrance.com/html/porco.htm porco] [http://squoi-oop.ifrance.com/topic/organizzazioni-internazionli/ organizzazioni internazionli commercio] [http://sm4.ifrance.com/lib/droga/ droga] [http://zeakk.ifrance.com/resources/articles/kanya-west.htm kanya west] [http://alishca-st.ifrance.com/text/directory/stage-corporate.htm stage corporate controlling (regione lombardia - milano provincia)] [http://trumanburb.ifrance.com/view/new/short-sport.htm short sport uomo abbigliamento sportivo] [http://atrayah.ifrance.com/topic/numeri-dell.htm numeri dell otto] [http://cocopuff66.ifrance.com/text/directory/will-follow/ will follow him base] [http://lightmyfire0214.ifrance.com/topic/wall-in/ wall in your heart shelby lynne] [http://call-shotgun.ifrance.com/view/new/moglie-puttana/ moglie puttana] [http://call-shotgun.ifrance.com/view/new/radio-walkmen/ radio walkmen] [http://cocopuff66.ifrance.com/text/directory/escort-aosta/ escort aosta] [http://mfirishka.ifrance.com/view/new/banca-toscana.htm banca toscana spa] [http://squoi-oop.ifrance.com/topic/micro-cuffia/ micro cuffia] [http://nokros.ifrance.com/data/magia-nera/ magia nera] [http://gajar.ifrance.com/html/disegnatore-meccanico.htm disegnatore meccanico (regione lombardia - pavia provincia)] [http://cocopuff66.ifrance.com/text/directory/proform-/ proform 764 hr] [http://horcrionebay.ifrance.com/resources/articles/lamiere-commercio.htm lamiere commercio] [http://sm4.ifrance.com/lib/merial/ merial] [http://sm4.ifrance.com/lib/sfp-samsung/ sf-565p samsung] [http://flawedamythyst.ifrance.com/img/styles/burr-raymond.htm burr, raymond] [http://gabe95.ifrance.com/html/sexy-webcam/ sexy webcam free] [http://lekusya.ifrance.com/library/html/beluci/ beluci] [http://squoi-oop.ifrance.com/topic/agenzia-marketing/ agenzia marketing] [http://call-shotgun.ifrance.com/view/new/portoni-industriali/ portoni industriali sezionali] [http://gajar.ifrance.com/html/lotus-esprit.htm lotus esprit v8] [http://atrayah.ifrance.com/topic/gps-mitac.htm gps mitac 268] [http://lightmyfire0214.ifrance.com/topic/www-sexsat/ www sexsat com] [http://dejablu503.ifrance.com/description/lib/nuova-fiat.htm nuova fiat punto auto nuove] [http://sm4.ifrance.com/lib/figa-pelosa/ figa pelosa sfondata gratis] [http://flawedamythyst.ifrance.com/img/styles/jinks.htm jinks] [http://lightmyfire0214.ifrance.com/topic/xtreme/ xtreme] [http://flawedamythyst.ifrance.com/img/styles/stigmata.htm stigmata] [http://cocopuff66.ifrance.com/text/directory/junina/ junina] [http://dejablu503.ifrance.com/description/lib/ragazzo-imola.htm ragazzo imola] [http://horcrionebay.ifrance.com/resources/articles/carlazzo.htm carlazzo] [http://krychan.ifrance.com/content/view/paolo-conte.htm paolo conte cd musicali] [http://call-shotgun.ifrance.com/view/new/amici-pedanti/ amici pedanti] [http://lightmyfire0214.ifrance.com/topic/tri-cinema/ tri cinema] [http://joshuaw-wise.ifrance.com/img/styles/rotthen-com/ rotthen com] [http://flawedamythyst.ifrance.com/img/styles/buell-xbs.htm buell xb12s] [http://zeakk.ifrance.com/resources/articles/adventura-obsesion.htm adventura obsesion] [http://cocopuff66.ifrance.com/text/directory/liberazione-ostaggi/ liberazione ostaggi] [http://sm4.ifrance.com/lib/locchio-dietro/ locchio dietro la parete] [http://atrayah.ifrance.com/topic/pokemon.htm pokemon 4] [http://dejablu503.ifrance.com/description/lib/matrimonio-dai.htm matrimonio dai frati] [http://gabe95.ifrance.com/html/kazaa-lite/ kazaa lite per mac] [http://atrayah.ifrance.com/topic/bumper-cars.htm bumper cars] [http://zeakk.ifrance.com/resources/articles/diari-segreti.htm diari segreti] [http://alishca-st.ifrance.com/text/directory/acer-svideo.htm acer s-video] [http://zeakk.ifrance.com/resources/articles/gay-over.htm gay over 50] [http://call-shotgun.ifrance.com/view/new/gemelle-olsen/ gemelle olsen nude] [http://horcrionebay.ifrance.com/resources/articles/pizzeria-gerden.htm pizzeria gerden] [http://lekusya.ifrance.com/library/html/corso-di/ corso di pittura] [http://zeakk.ifrance.com/resources/articles/barrios-vals.htm barrios vals] [http://nokros.ifrance.com/data/tempesta-sulla/ tempesta sulla sierra] [http://lekusya.ifrance.com/library/html/digital-satelite/ digital satelite] [http://gajar.ifrance.com/html/la-delta.htm la delta force in azione su playstation] [http://gajar.ifrance.com/html/da-hype.htm da hype junior jack] [http://call-shotgun.ifrance.com/view/new/brenda-exporto/ brenda exporto brasil fotos] [http://lekusya.ifrance.com/library/html/rita-cadillac/ rita cadillac fotos] [http://sm4.ifrance.com/lib/high-power/ high power houston] [http://call-shotgun.ifrance.com/view/new/km-peugeot/ km0 peugeot 206 auto km 0] [http://flawedamythyst.ifrance.com/img/styles/tagliacapelli-professionale.htm tagliacapelli professionale] [http://trumanburb.ifrance.com/view/new/malattie-della.htm malattie della vite] [http://atrayah.ifrance.com/topic/flash-sandisk.htm flash sandisk 2gb] [http://sm4.ifrance.com/lib/kitchen-invaders/ kitchen invaders] [http://sm4.ifrance.com/lib/candy-it/ candy it] [http://nokros.ifrance.com/data/nokia-i/ nokia 5140i gprs colori] [http://mfirishka.ifrance.com/view/new/michael-bubbles.htm michael bubbles] [http://krychan.ifrance.com/content/view/guilty-dei.htm guilty dei blue] [http://horcrionebay.ifrance.com/resources/articles/vacanza-estive.htm vacanza estive puglia] [http://call-shotgun.ifrance.com/view/new/la-mia/ la mia generazione] [http://dejablu503.ifrance.com/description/lib/the-weasel.htm the weasel] [http://horcrionebay.ifrance.com/resources/articles/sexi-baby.htm sexi baby] [http://gabe95.ifrance.com/html/grosse-troie/ grosse troie] [http://nokros.ifrance.com/data/box-hardisk/ box hardisk esterno] [http://call-shotgun.ifrance.com/view/new/harjai/ harjai] [http://gabe95.ifrance.com/html/atlantis-ati/ atlantis ati 9600 xt] [http://gabe95.ifrance.com/html/isobase/ isobase] [http://nokros.ifrance.com/data/ella-di/ ella di el rubio loco] [http://joshuaw-wise.ifrance.com/img/styles/brandon-routh/ brandon routh] [http://squoi-oop.ifrance.com/topic/vacanze-in/ vacanze in messico] [http://call-shotgun.ifrance.com/view/new/sfondi-di/ sfondi di fiori] [http://lightmyfire0214.ifrance.com/topic/yogananda-libri/ yogananda libri] [http://flawedamythyst.ifrance.com/img/styles/auto-scoppio.htm auto scoppio] [http://lekusya.ifrance.com/library/html/samsung-fax/ samsung fax inkjet sf-340] [http://nokros.ifrance.com/data/grande-fratell/ grande fratell] [http://smegmacheez.ifrance.com/content/view/hola-hola/ hola hola] [http://gabe95.ifrance.com/html/la-ciociara/ la ciociara] [http://alishca-st.ifrance.com/text/directory/no-poto.htm no poto reposar] [http://call-shotgun.ifrance.com/view/new/cosa-vuoi/ cosa vuoi da me midi] [http://flawedamythyst.ifrance.com/img/styles/tomtom-navigator.htm tomtom navigator 5 - gps bluetooth] [http://trumanburb.ifrance.com/view/new/sony-plasma.htm sony plasma 1024] [http://zeakk.ifrance.com/resources/articles/monete-.htm monete 1000 lire] [http://joshuaw-wise.ifrance.com/img/styles/pistelli/ pistelli] [http://sm4.ifrance.com/lib/haiducii-txt/ haiducii txt dragostea] [http://trumanburb.ifrance.com/view/new/www-babolat.htm www babolat com] [http://dejablu503.ifrance.com/description/lib/rai.htm rai8] [http://trumanburb.ifrance.com/view/new/testi-musicali.htm testi musicali blink 182] [http://joshuaw-wise.ifrance.com/img/styles/dostosowany/ dostosowany] [http://squoi-oop.ifrance.com/topic/liste-elettorali/ liste elettorali] [http://nokros.ifrance.com/data/ho-trovato/ ho trovato una stella] [http://mfirishka.ifrance.com/view/new/relata-refero.htm relata refero] [http://smegmacheez.ifrance.com/content/view/twinx-/ twinx1024 - 3200xl] [http://joshuaw-wise.ifrance.com/img/styles/curriculum-azienda/ curriculum azienda] [http://nokros.ifrance.com/data/mario-bross/ mario bross scaricare] [http://zeakk.ifrance.com/resources/articles/midi-file.htm midi file dragostea din tei] [http://horcrionebay.ifrance.com/resources/articles/panasonic-es.htm panasonic es 8017] [http://zeakk.ifrance.com/resources/articles/nova-lisboa.htm nova lisboa] [http://sm4.ifrance.com/lib/mr-jones/ mr. jones] [http://gajar.ifrance.com/html/universita-degli.htm universita degli studi bari] [http://lightmyfire0214.ifrance.com/topic/code-nouveau/ code nouveau tps] [http://sm4.ifrance.com/lib/www-pokemon/ www pokemon advance it] [http://atrayah.ifrance.com/topic/paula-cole.htm paula cole] [http://zeakk.ifrance.com/resources/articles/pioneer-pdp.htm pioneer pdp 436xde] [http://smegmacheez.ifrance.com/content/view/ricominciamo-mp/ ricominciamo mp3] [http://joshuaw-wise.ifrance.com/img/styles/danny-boy/ danny boy] [http://alishca-st.ifrance.com/text/directory/supporto-auto.htm supporto auto pda ipaq] [http://squoi-oop.ifrance.com/topic/un-topolino/ un topolino sotto sfratto] [http://call-shotgun.ifrance.com/view/new/albo-commercialisti/ albo commercialisti in bologna] [http://horcrionebay.ifrance.com/resources/articles/introduzione-sul.htm introduzione sul razzismo] {{stub}}
| + | {{stub}} |
| [[Sonic Community Hacking Guide|Back to SCHG main page]] | | [[Sonic Community Hacking Guide|Back to SCHG main page]] |
| | | |
Line 15: |
Line 15: |
| ====Uncompressed Art Locations==== | | ====Uncompressed Art Locations==== |
| {| border="1" | | {| border="1" |
− | ! Offse | + | ! Offset||Description||# of blocks |
− | 2000
| |
− | t||Description||# of blocks
| |
| |- | | |- |
| ! colspan="3" | Zone Independent | | ! colspan="3" | Zone Independent |
Line 530: |
Line 528: |
| | $0A || word || | | | $0A || word || |
| *If the object is in playfield positioning mode, this is the X subpixel coordinate. | | *If the object is in playfield positioning mode, this is the X subpixel coordinate. |
− | *If in | + | *If in screen positioning mode, it's the Y screen coordinate. |
− | 2000
| |
− | screen positioning mode, it's the Y screen coordinate.
| |
| |- | | |- |
| | $0C || word || | | | $0C || word || |
Revision as of 14:05, 25 August 2007
|
This short article is in need of work. You can help Sonic Retro by adding to it.
|
Back to SCHG main page
ROM Hacking
Art Editing
There are several different tools that can be used to edit art besides the hex editor. SonED is probably the best tool to use for editing level art, and can also be used on palettes. HivePal is also a great tool for editing palettes. Sonik Sprite is useful for editing uncompressed art; it gets its name from its ability to edit Sonic's sprites. LOst Library is most likely the best choice for editing compressed art in the Nemesis format.
If, however, you still want to do it yourself, your best bet is to download the Sonic 1 Split disassembly. Decompress the archive into a new folder, and place your S1 ROM, in binary format and named "S1.bin", in that folder. Run the batch file "split.bat". This will split up all the art into its own binary files, which you can then decompress and edit. When you're done, run "combine.bat".
Uncompressed Art Locations
Most of this information was taken from Nemesis's guide. Please excuse any mistakes or misunderstandings, as that guide wasn't exactly well-written. A description is written in parentheses after the original name if I deem it necessary; if I don't know what it is, "Unknown" appears in that place. Please correct this if you know. It doesn't list the number of blocks taken up, so if you know, put it in. Otherwise, I'll find out eventually.
Uncompressed Art Locations
Offset |
Description |
# of blocks
|
Zone Independent
|
$1CADA
|
Numbers used on counters in game
|
?
|
$21AFE
|
Sonic
|
?
|
$6A324
|
Giant Ring
|
?
|
Green Hill Zone
|
$66AD6
|
Waterfall tiles
|
?
|
$66CD6
|
Flower with pointy petals
|
?
|
$670D6
|
Flower with curved petals
|
?
|
Marble Zone
|
$6755A
|
Lava surface
|
?
|
$67836
|
Lava
|
?
|
$67E56
|
Flame torch against stone
|
?
|
Scrap Brain Zone
|
$68156
|
Steam in background
|
?
|
Compressed Art Locations - Nemesis
See SCHG:Sonic the Hedgehog/Nemesis Compressed Art.
- $3DCF2 - GHZ main level patterns
- $414D4 - LZ main level patterns
- $46016 - MZ main level patterns
- $4A7FE - SLZ main level patterns
- $510F0 - SYZ main level patterns
- $57A66 - SBZ main level patterns
Palette Locations
Usually, it's not really necessary to edit a palette in hex. Palette editors give you instant feedback for each RGB value, and the palette can be easily saved as a separate binary and reimported into the ROM. However, it is sometimes desireable or necessary to do it in hex, and it can't hurt to know how it's done.
These are the ROM offsets of the palettes in Sonic 1, as listed by HivePal:
Name |
Offset
|
Sega Logo (Background)
|
$2208
|
Sega Logo (SEGA)
|
$20C0
|
Title Screen
|
$2288
|
Title Screen - Water Cycle
|
$1B66
|
Level Select
|
$2308
|
Sonic
|
$2388
|
Green Hill
|
$23A8
|
Green Hill - Water Cycle
|
$1B86
|
Labyrinth
|
$2408
|
Labyrinth - Sonic Underwater
|
$2828
|
Labyrinth - Sonic Underwater (Alt)
|
$2468
|
Labyrinth - Underwater
|
$2488
|
Labyrinth - Water Cycle
|
$1BA6
|
Labyrinth - Conveyor Cycle
|
$1BC6
|
Labyrinth - Conveyor Cycle Underwater
|
$1BD8
|
Marble
|
$24E8
|
Star Light
|
$2548
|
Star Light lights
|
$1C52
|
Spring Yard
|
$25A8
|
Spring Yard - Cycle 1
|
$1C76
|
Spring Yard - Cycle 2
|
$1C96
|
Scrap Brain Act 1
|
$2608
|
Scrap Brain Act 2/Final
|
$2668
|
Scrap Brain Act 3
|
$2748
|
Scrap Brain Act 3 - Sonic Underwater
|
$2848
|
Scrap Brain Act 3 - Sonic Underwater (Alt)
|
$27A8
|
Scrap Brain Act 3 - Underwater
|
$27C8
|
Scrap Brain Act 1/Act 2 - Cycle 1
|
$1D0A
|
Scrap Brain Act 1/Act 2 - Cycle 2
|
$1D1A
|
Scrap Brain Act 1/Act 2 - Cycle 3
|
$1D2A
|
Scrap Brain Act 1/Act 2 - Cycle 4
|
$1D3A
|
Scrap Brain Act 1/Act 2 - Cycle 5
|
$1D46
|
Scrap Brain Act 1/Act 2 - Cycle 6
|
$1D56
|
Scrap Brain Act 1/Act 2 - Cycle 7
|
$1D66
|
Scrap Brain Act 1/Act 2 - Cycle 8
|
$1D86
|
Scrap Brain Act 2 - Cycle 1
|
$1D90
|
Scrap Brain Act 2 - Cycle 2
|
$1DA0
|
Scrap Brain Act 3 - Water Cycle
|
$1BEA
|
Special Stage - Sonic
|
$26C8
|
Special Stage No. 1
|
$26E8
|
Special Stage No. 2
|
$2708
|
Special Stage No. 3
|
$2728
|
Special Stage Title Card
|
$2868
|
Special Stage Cycle 1
|
$4ACA
|
Special Stage Cycle 2
|
$4B12
|
Special Stage Cycle 3
|
$4B92
|
Continue - Sonic
|
$28E8
|
Continue
|
$2908
|
Ending - Sonic
|
$2928
|
Ending
|
$2948
|
Object Editing
Object Pointer List
ID #
|
Description
|
Code
|
Mappings
|
Subparameters
|
01
|
Sonic
|
$12BD8
|
??
|
|
02
|
????
|
$D5B2
|
??
|
|
03
|
????
|
$D5B2
|
??
|
|
04
|
????
|
$D5B2
|
??
|
|
05
|
????
|
$D5B2
|
??
|
|
06
|
????
|
$D5B2
|
??
|
|
07
|
????
|
$D5B2
|
??
|
|
08
|
LZ water splash
|
$142F0
|
??
|
|
09
|
Sonic in Special Stage
|
$1B984
|
??
|
|
0A
|
Drowning countdown numbers
|
$13C98
|
$14152
|
|
0B
|
LZ vertical pole
|
$11206
|
$11326
$11331
|
- $00 - Unbreakable
- $01 - Breaks in 1 Seconds
- $02 - Breaks in 2 Seconds
- $03 - Breaks in 3 Seconds
- $04 - Breaks in 4 Seconds
- $05 - Breaks in 5 Seconds
- $06 - Breaks in 6 Seconds
|
0C
|
LZ doors that open and close
|
$11346
|
??
|
$02
|
0D
|
End of level signpost
|
$EB28
|
??
|
|
0E
|
????
|
$A61C
|
??
|
|
0F
|
????
|
$A69C
|
??
|
|
10
|
????
|
$1C022
|
??
|
|
11
|
GHZ Bridge
|
$7328
|
??
|
- $06 - 6 logs
- $07 - 7 logs
- $08 - 8 logs
- $09 - 9 logs
- $0A - 10 logs
- $0B - 11 logs
- $0C - 12 logs
- $0D - 13 logs
- $0E - 14 logs
- $0F - 15 logs
|
Mappings Editing
Object Placement
RAM Hacking
Main System Memory Locations
This is a map of 68k memory as used by the main gameplay engine. Note that any numbers entered (for example, score or number of rings) will have to be converted to hex first.
These are the offsets in RAM. To convert them to Genecyst savestate offsets, add $2478.
RAM offset |
Description
|
$0000 - $7FFF
|
Metablock table
|
$F600
|
Screen Mode
- $00 - Sega Screen
- $04 - Title Screen
- $08 - Demo Mode
- $0C - Normal Level
- $10 - Special Stage
- $14 - Continue Screen
- $18 - Ending Sequence
- $1C - Credits
|
$F616-$F617
|
Camera Y Position for previous frame
|
$F618-$F619
|
Value of $F70C for previous frame
|
$F61A-$F61B
|
Camera X Position for previous frame
|
$F61C-$F61D
|
Value of $F708 for previous frame
|
$F61E-$F61F
|
Value of $F71C for previous frame
|
$F620-$F621
|
Value of $F718 for previous frame
|
$F680
|
Address queue for Pattern Load Cues
|
$F700-$F701
|
Camera X Position
|
$F704-$F705
|
Camera Y Position
|
$F744
|
Scroll Hold Flag (set to stop all scrolling dead)
|
$F754-$F755 $F756-$F757 $F758-$F759 $F75A-$F75B
|
Bitfields used by the scrolling engine
|
$F760-$F761
|
Sonic's Top Speed
|
$F762-$F763
|
Sonic's Acceleration
|
$F764-$F765
|
Sonic's Deceleration
|
$F7AA
|
Screen Lock Flag (Set to lock screen)
|
$F7C8
|
Control Lock Flag (Set to lock controls)
|
$FA00-$FA80
|
Underwater Palette Storage
|
$FE02
|
Restart Level Flag (Set to restart level)
|
$FE04
|
Level Timer
|
$FE10-$FE11
|
Zone/Act
|
$FE12-$FE13
|
Rings
|
$FE14
|
Remaining Air (When underwater)
|
$FE16
|
Last Special Stage Entered
|
$FE18
|
Continues
|
$FE1C
|
Lives Counter (Set to update lives total on screen)
|
$FE1D
|
Ring Counter (Set to update rings total on screen)
|
$FE1E
|
Time Counter (Set to update current time on screen)
|
$FE1F
|
Score Counter (Set to update score total on screen)
|
$FE26-$FE29
|
Score
|
$FE2C
|
Shield Flag (Set to take a single hit without losing rings)
|
$FE2D
|
Invincibility Flag (Set to make Sonic invincible)
|
$FE2E
|
Speed Shoes Flag (Set to activate speed shoe physics)
|
$FE30
|
Lamppost Counter
|
$FE57
|
Emeralds
|
$FFF4
|
Credits Index Number
|
Sprite Status Table
The Sprite Status Table is located at RAM address $D000. Each entry is $40 bytes long. Here is a list of all the values for one entry in the SST:
Offset |
Size |
Description
|
$00 |
byte |
Object type
|
$01 |
byte |
Action flags. The bitfield looks like this:
- Bit 0 is the horizontal mirror flag. If set, the object will be flipped on its horizontal axis.
- Bit 1 is the vertical mirror flag.
- Bit 2 is the coordinate system flag. If clear, the object will be positioned by absolute screen coordinates. This is used for things like the HUD and menu options. If set, the object will be positioned by the playfield coordinates, i.e. where it is in a level. Sonic uses the playfield positioning system.
- Bits 3, 4, and 5 are either unused, or their purpose is unknown.
- Bit 6 is Sonic's "Ride B" flag
- Bit 7 is the draw object flag. It will be set if the object was onscreen when it came time to draw things. Otherwise, it is clear. There should be no reason to edit this flag, but it's good to know what it does.
|
$02 |
word |
Starting art block.
- First nybble: Palette line the sprite will use.
- Latter 3 nybbles: Starting art block in VRAM for which the object reads from. Multiply by $20 to get VRAM address; divide VRAM address by $20 to get this value.
|
$04 |
long |
Mappings offset
|
$08 |
word |
- If in playfield positioning mode, it is the X playfield coordinate.
- If in screen positioning mode, it is the X screen coordinate.
|
$0A |
word |
- If the object is in playfield positioning mode, this is the X subpixel coordinate.
- If in screen positioning mode, it's the Y screen coordinate.
|
$0C |
word |
- If in playfield positioning mode, it is the Y playfield coordinate.
- If in screen positioning mode, it is unused.
|
$0E |
word |
- If the object is in playfield positioning mode, this is the Y subpixel coordinate.
- If in screen positioning mode, it is unused.
|
$10 |
word |
Horizontal (X) velocity
|
$12 |
word |
Vertical (Y) velocity
|
$14 |
byte |
Ground velocity (inertia).
|
$16 |
byte |
Height/2
|
$17 |
byte |
Width/2
|
$18 |
byte |
Sprite priority (00 = front).
|
$19 |
byte |
Width of the object, in pixels
|
$1A |
byte |
Current animation frame to display. i.e, the frame currently being displayed on-screen, according to the animation script (currently parsed mappings frame, in other words).
|
$1B |
byte |
Current frame in animation script. i.e, the frame entry IN the animation script being currently processed.
|
$1C |
byte |
Animation number. When an animation ID is moved here, it's processed and displayed.
|
$1D |
byte |
Restart animation flag (when $1D is not equal to $1C, animation restarts)
|
$1E |
byte |
Animation frame duration (time until next frame).
|
$20 |
byte |
Collision response bitfield. Tells what the object will do if hit by the character. The bitfield is in the format TTSS SSSS. TT is the type of collision - 00 is enemy, 01 increments the routine counter, 10 is harm, and 11 seems to be a special thing for the starpole. SSSSSS is the size, lifted from a lookup table in the collision response routine.
|
$21 |
byte |
Custom collision property, for special interaction with Sonic. This is used by bosses, badniks, bumpers and other objects. The way in which this byte is used is different for each object. Bosses use this byte as a hit counter.
|
$22 |
byte |
Status bitfield.
Counting from the least significant bit:
Bit |
Hex |
Description
|
0 |
$01 |
X Orientation. Clear is left and set is right.
|
1 |
$02 |
Y Orientation. Clear is right-side up, and set is upside-down
|
2 |
$04 |
Unknown or unused.
|
3 |
$08 |
Set if Sonic is standing on this object.
|
4 |
$10 |
Unknown or unused.
|
5 |
$20 |
Set if Sonic is pushing on this object.
|
6 |
$40 |
Unknown or unused.
|
7 |
$80 |
Unknown or unused.
| Note that these bits have different meanings for Sonic (see below).
|
$23 |
byte |
Respawn index reference number, used by badniks, rings and monitors. Each destroyable object is assigned an index number (01, 02, 03 etc.) which refers to a list at $FC00 in the RAM.
|
$24 |
byte |
Routine counter.
|
$25 |
byte |
Second routine counter. This is used for some of the more complicated objects.
|
$26 |
word |
Angle.
|
$28 |
byte |
Object subtype. For example, the current monitor selected. See the Object List above for values. Has a different meaning for Sonic.
|
$29-$3F |
|
Object's scratch RAM
|
Object-specific variables
|
Offset |
Size |
Description
|
$22 |
byte |
Sonic: Special bitfield. Counting from the least significant bit:
Bit |
Hex |
Description
|
0 |
$01 |
Orientation. Clear is left and set is right.
|
1 |
$02 |
Set if Sonic is in the air (jump counts).
|
2 |
$04 |
Set if jumping or rolling.
|
3 |
$08 |
Set if Sonic isn't on the ground but shouldn't fall. (Usually when he is on a object that should stop him falling, like a platform or a bridge.)
|
4 |
$10 |
Set if jumping after rolling.
|
5 |
$20 |
Set if pushing something.
|
6 |
$40 |
Set if underwater.
|
7 |
$80 |
Unused.
|
You can add the hex values together to use multiple settings at once. Also notice that the first 3 bits (0-2) are used in the character object as a second routine counter.
|
$28 |
byte
|
Sonic: Seconds of air left. Usually $1E; it decrements every second while the player is underwater. Beeps on $18, $13, and $0E. Countdown starts on $0B.
|
$2B |
byte
|
Sonic: Unused
|
$30-$31 |
word
|
Sonic: Remaining invulnerability time. Starts at $0078 after Sonic is hit, and seems to decrement every frame until it reaches $0000.
|
$32-$33 |
word |
Sonic: Remaining time of invincibility.
|
$34-$35 |
word |
Sonic: Remaining time of Speed Shoes.
|
$36 |
byte |
Sonic: Angle of ground at Sonic's front collision hot spot ($03 is "edge of ground")
|
$37 |
byte |
Sonic: Angle of ground at Sonic's rear collision hot spot
|
$39 |
byte |
Sonic: Unused.
|
$3A-$3B |
word
|
Sonic: Unused.
|
$3C |
byte |
Sonic: Set if jumping.
|
$3D |
byte |
Sonic: SST index of object currently being stood on. (multiply by $40 and add $D000 to get the object's address).
|
Boss Variables
|
Offset |
Size |
Description
|
$21 |
byte |
Hit counter. Number of hits it takes to defeat a boss.
|
$30 |
word |
X position
|
$38 |
word |
Y position
|
$3E |
byte |
Number of times to flash when hit
|