Skip to content

Commit

Permalink
Added guide for Gens custom rank times
Browse files Browse the repository at this point in the history
  • Loading branch information
PTKay committed Jun 16, 2024
1 parent 9f676a3 commit 64fe1a9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions hedgedocs/guides/hedgehog-engine/blueblur/levels/custom-ranks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
description: Guide for custom rank times for Sonic Generations
---
# How To Specify Custom Ranks for Sonic Generations

!!! info
This guide requires the usage of decompiled LUA files, which can be obtained in any console version of the game.

Rank times for all stages are stored in `bb3/#Application.ar.00/ScoreTimeTable.lua`. Opening this file presents you with a list with the A and C rank times (in seconds). The S rank is just the A rank time with a perfect bonus, and the D rank is any time below the C rank time.

## Example
Let's try editing the times for Seaside Hill (Modern). First we need to locate `ssh200`, as that's the codename for the stage.

```lua
ScoreTimeTable["ssh200"] = { 220, 820 }
```

Looking at this, we can see that the A rank for this stage is defined as 220 seconds (3 minutes and 40 seconds), and the C rank is defined as 820 seconds (13 minutes and 40 seconds). So, if we want to change the A rank time to 100 seconds, we can do this:

```lua
ScoreTimeTable["ssh200"] = { 100, 820 }
```

After editing the time, we save the file, repack the AR archive, and try it out in-game!
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ nav:
- Level Editing:
- Sonic GLvl: guides/hedgehog-engine/blueblur/levels/glvl.md
- Importing Terrain: guides/hedgehog-engine/blueblur/levels/importing-terrain.md
- Importing Collision: guides/hedgehog-engine/blueblur/levels/importing-collision.md
- Importing Collision: guides/hedgehog-engine/blueblur/levels/importing-collision.md
- Custom Rank Times: guides/hedgehog-engine/blueblur/levels/custom-ranks.md
- Troubleshooting: guides/hedgehog-engine/blueblur/levels/troubleshooting.md
- File Locations:
- Sounds: guides/hedgehog-engine/blueblur/locations/sound.md
Expand Down

0 comments on commit 64fe1a9

Please sign in to comment.