Actions

SCHG

Difference between revisions of "Sonic Heroes/Particle Editing"

From Sonic Retro

(File Layout)
Line 6: Line 6:
 
Each _ptcl.bin files contains 0x80 byte entries for a variety of different effects.<br>The entry for the files follows this:<br>
 
Each _ptcl.bin files contains 0x80 byte entries for a variety of different effects.<br>The entry for the files follows this:<br>
 
<br>
 
<br>
{{yellow|00 1E 05 00}} 00 0F 1D 46 {{blue|FF FF FF FF}} 00 00 00 {{magenta|00}} 00 {{yellow|01}} 00 {{magenta|64}} 00 64 00 {{green|32}} 00 00 00 00 {{cyan|00 02}} 00 00<br>{{red|00 05 00}} {{yellow|04}} {{lime|00}} 00 00 00 00 00 00 00 {{orange|3C 75 C2 A0}} {{purple|00 00 00 00}} 00 00 00 00 00 00 00 00 00 00 00 00<br>3F 33 33 36 3E CC CC CD 3F 33 33 34 3F 00 00 00 32 80 00 00 32 80 00 00 3D CC CC CF 40 40 00 00<br>{{blue|3E 4C CC CE}} 00 00 00 00 {{orange|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00}}
+
{{yellow|00 1E 05 00}} 00 0F 1D 46 {{blue|FF FF FF FF}} 00 00 00 {{magenta|00}} 00 {{yellow|01}} 00 {{magenta|64}} 00 64 00 {{green|32}} 00 00 00 00 {{cyan|00 02}} 00 00<br>{{red|00 05 00}} {{yellow|04}} {{lime|00}} 00 00 00 00 00 00 00 {{orange|3C 75 C2 A0}} {{purple|00 00 00 00}} 00 00 00 00 00 00 00 00 00 00 00 00<br>3F 33 33 36 3E CC CC CD 3F 33 33 34 3F 00 00 00 32 80 00 00 32 80 00 00 {{green|00 00 00 00}} 40 40 00 00<br>{{blue|00 00 00 00}} 00 00 00 00 {{orange|00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00}}
  
 
{| class="prettytable"
 
{| class="prettytable"
Line 69: Line 69:
 
|{{purple|Float}}
 
|{{purple|Float}}
 
|{{purple|Particle Life threshold?}}
 
|{{purple|Particle Life threshold?}}
 +
|
 +
|-
 +
|{{green|0x58}}
 +
|{{green|Float}}
 +
|{{green|Particle Size}}
 
|
 
|
 
|-
 
|-
 
|{{blue|0x60}}
 
|{{blue|0x60}}
 
|{{blue|Float}}
 
|{{blue|Float}}
|{{blue|Size}}
+
|{{blue|Spread Size}}
 
|
 
|
 
|-
 
|-

Revision as of 03:19, 19 February 2017

Exclamation.svg This article is a work in progress.
Its content and location may change completely and frequently until this notice is removed.
SCHG: Sonic Heroes
Main Article
Mechanic Editing

DOL Editing
EXE Editing
Music Pointers
Object Parameter Data
Relocatable Editing (PC)
File Offsets

Model Editing
Collision Format
Model Format
Level Editing

Camera Editing
Event Editing
ID list
Indirect Editing
Light Editing
Level List
Object Editing
Object Porting
Spline Editing
Texture Animation Editing
Visibility Editing

Particle Editing
Particle Editing
Sound Editing
Music List

Sound Editing
Voices

SCHG How-Tos

Custom Object Material Effect Tutorial
Level Editing Tutorial

Particle effects for certain objects are set in the cmn_ptcl.bin and sLL_ptcl.bin files located in the dvdroot folder. They are big endian binary files that defines particles assigned to the object by the EXE.

File Layout

Each _ptcl.bin files contains 0x80 byte entries for a variety of different effects.
The entry for the files follows this:

00 1E 05 00 00 0F 1D 46 FF FF FF FF 00 00 00 00 00 01 00 64 00 64 00 32 00 00 00 00 00 02 00 00
00 05 00 04 00 00 00 00 00 00 00 00 3C 75 C2 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
3F 33 33 36 3E CC CC CD 3F 33 33 34 3F 00 00 00 32 80 00 00 32 80 00 00 00 00 00 00 40 40 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Offset Type Description Notes
0x00 Long Particle Horizontal Size
0x0C Long RBGA Color
0x0F Byte Fade time?
0x13 Byte Amount of particles
0x11 Byte Unknown
Probably ignored
0x17 Byte Unknown
0x1C Word Particle Velocity
0x20 3 Bytes Always 00 05 00
0x23 Byte Blend Mode
0x24 Byte Particle rotation
0x2C Float Particle Life time The lower the float value is, the more time the particles will stay; higher float values will make the particles disappear quicker.
0x30 Float Particle Life threshold?
0x58 Float Particle Size
0x60 Float Spread Size
0x68 Text Particle texture name to be used.
Sonic Community Hacking Guide
General
SonED2 Manual | Subroutine Equivalency List
Game-Specific
Sonic the Hedgehog (16-bit) | Sonic the Hedgehog (8-bit) | Sonic CD (prototype 510) | Sonic CD | Sonic CD (PC) | Sonic CD (2011) | Sonic 2 (Simon Wai prototype) | Sonic 2 (16-bit) | Sonic 2 (Master System) | Sonic 3 | Sonic 3 & Knuckles | Chaotix | Sonic Jam | Sonic Jam 6 | Sonic Adventure | Sonic Adventure DX: Director's Cut | Sonic Adventure DX: PC | Sonic Adventure (2010) | Sonic Adventure 2 | Sonic Adventure 2: Battle | Sonic Adventure 2 (PC) | Sonic Heroes | Sonic Riders | Sonic the Hedgehog (2006) | Sonic & Sega All-Stars Racing | Sonic Unleashed (Xbox 360/PS3) | Sonic Colours | Sonic Generations | Sonic Forces
Technical information
Sonic Eraser | Sonic 2 (Nick Arcade prototype) | Sonic CD (prototype; 1992-12-04) | Dr. Robotnik's Mean Bean Machine | Sonic Triple Trouble | Tails Adventures | Sonic Crackers | Sonic 3D: Flickies' Island | Sonic & Knuckles Collection | Sonic R | Sonic Shuffle | Sonic Advance | Sonic Advance 3 | Sonic Battle | Shadow the Hedgehog | Sonic Rush | Sonic Classic Collection | Sonic Free Riders | Sonic Lost World
Legacy Guides
The Nemesis Hacking Guides The Esrael Hacking Guides
ROM: Sonic 1 | Sonic 2 | Sonic 2 Beta | Sonic 3

Savestate: Sonic 1 | Sonic 2 Beta/Final | Sonic 3

Sonic 1 (English / Portuguese) | Sonic 2 Beta (English / Portuguese) | Sonic 2 and Knuckles (English / Portuguese)
Move to Sega Retro
Number Systems (or scrap) | Assembly Hacking Guide | 68000 Instruction Set | 68000 ASM-to-Hex Code Reference | SMPS Music Hacking Guide | Mega Drive technical information