Actions

Difference between revisions of "Sonic Lost World/Technical information/EXE editing"

From Sonic Retro

(EXE offsets)
Line 52: Line 52:
 
These are a list of addresses that have codes that provide special effects to models and the interface.
 
These are a list of addresses that have codes that provide special effects to models and the interface.
 
{| class="prettytable"
 
{| class="prettytable"
!Addresses (January 6th Update)||Materials||Default Values
+
!Targeting Object||Addresses (January 6th Update)||Materials||Default Values
 
|-
 
|-
 +
|Sonic Trail Effects
 
|87D2B<br>87D36
 
|87D2B<br>87D36
 
|Source Blend<br>Destination Blend
 
|Source Blend<br>Destination Blend
 
|05<br>06
 
|05<br>06
 
|}
 
|}

Revision as of 02:30, 4 June 2017

Exclamation.svg This article is a work in progress.
Its content and location may change completely and frequently until this notice is removed.
Sonic Lost World
Technical information
Main article
EXE editing
EXE editing

The main EXE of the PC game release is slw.exe and it is in little endian. The RAM address pointer changes after launching the game or modifying it.

Materials Functions

Blend Parameters

Certain parameters that go to certain effects like Sonic's trail effects are stored in the exe rather than the .material files packed in the archives. These set the blending options according to the parameter loaded on the start of the level.

Parameter ID Blend Mode Result
00 and 01 Normal Alpha SLW Trail Normal Blend.png
02 Additive Alpha SLW Trail Additive Blend.png
03 Subtractive Alpha SLW Trail Subtractive Blend.png
04 Somewhat no alpha but with darker shade SLW Trail Dark Blend.png
Effect Address (January 6th Update) Default Parameter ID
Trail Effects 95EF3C 02

Material Opcodes

A list of material types are implemented in the EXE.

Material type parameters Hexadecimal type Description Parameters Example(s) Notes
13 & 14 Byte Source Blend
Destination Blend
01 = Zero
02 = One
03 = Source Color
04 = Inverse Source Color
05 = Source Alpha
06 = Inverse Source Alpha
07 = Destination Alpha
08 = Inverse Destination Alpha
09 = Destination Color
0A = Inverse Destination Color
0B = Source Alpha Saturate
6A 05 6A 13
6A 06 6A 14
The 7th blend function is the same as with the 2nd blend parameter, but it produces bloom effect if used as a destination factor.

EXE offsets

These are a list of addresses that have codes that provide special effects to models and the interface.

Targeting Object Addresses (January 6th Update) Materials Default Values
Sonic Trail Effects 87D2B
87D36
Source Blend
Destination Blend
05
06