-
Notifications
You must be signed in to change notification settings - Fork 10
rendition: Add API Documentation #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
RegDogg
wants to merge
13
commits into
ToontownRewritten:master
Choose a base branch
from
RegDogg:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fd3959c
rendition: Add API Documentation
RegDogg 51c945f
rendition: Fix typo
RegDogg 2d2ba37
rendition: Another typo haha
RegDogg 265e1d7
rendition: Slight text change.
RegDogg 9169d14
rendition: DNA string is generated.
RegDogg 46f7af7
rendition: Get your DNA string in-game
RegDogg 80c1d9a
rendition: Added laffmeter as a type for rendering
RegDogg 6dbfecb
rendition: Add Red Nose Toggle, last 3 bytes are Shoes
RegDogg 7f32c3d
render: DNA Byte 17 Is supposedly the version of DNA
RegDogg f056b5f
All poses now available courtesy of Lappy.
RegDogg 7fc2cd5
Update toon-rendition.md
RegDogg fac1ddb
Merge branch 'ToontownRewritten:master' into master
RegDogg 182340f
Merge branch 'ToontownRewritten:master' into master
RegDogg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| # Toontown Rewritten Rendition API | ||
|
|
||
| ## Overview | ||
|
|
||
| This API provides a screenshot of your a toon generated from a DNA string. | ||
|
|
||
| ## Requests | ||
|
|
||
| An HTTP GET to the rendition endpoint, https://rendition.toontownrewritten.com/render/{dna}/{render-type}/{width}x{height}.{extension}, will return the generated render. | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Name | Details | | ||
| |-------------|---------| | ||
| | dna | The DNA string of your toon generated. | | ||
RegDogg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| | render-type | Pose your toon makes. At the moment these are the 7 options. (**head, portrait, portait-sleep, portrait-delighted, portrait-surprise, portrait-thinking, portrait-birthday**) | | ||
| | width | Width of the returned render (ex. **1024**). | | ||
| | height | Height of the returned render (ex. **1024**). | | ||
| | extension | File extension can be either **png** or **webp** | | ||
RegDogg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## Response | ||
|
|
||
| A toon from the provided DNA string will be generated. | ||
|
|
||
| Example: https://rendition.toontownrewritten.com/render/7424010101021d021d8b1b160016160104001c0000040000000000000000000000/portrait-birthday/1024x1024.png | ||
RegDogg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| ## DNA Data | ||
|
|
||
| The DNA string is in hexadecimals, and is 33 Hexadecimals long. | ||
|
|
||
| Hexadecimal 1: DNA Type (74 is Toon) | ||
|
|
||
| Hexadecimal 2: Head Type/Species (Between 00-29) | ||
|
|
||
| Hexadecimal 3: Torso Type (Between 00-02) | ||
|
|
||
| Hexadecimal 4: Legs Type (Between 00-02) | ||
|
|
||
| Hexadecimal 5: Eyelashes (01 = None, 00 = Yes) | ||
|
|
||
| Hexadecimal 6: Shirt Style/Texture: (Between 00-9f, ex. 0a, 2d, 68, 99, 00, 0f, 27) | ||
|
|
||
| Hexadecimal 7: Shirt Color: (Between 00-2d, (1b is default), NOTE: No bigger than 29 (ex. 30, 99, 58)) | ||
|
|
||
| Hexadecimal 8: Sleeves Style-Texture: (Between 00-cc, ex. 0a, 2d, 68, 99, 00, 0f, 27, aa, af, bd, ca) | ||
|
|
||
| Hexadecimal 9: Sleeves Color: (Between 00-2d, (1b is default), NOTE: No bigger than 29 (ex. 30, 99, 58)) | ||
|
|
||
| Hexadecimal 10: Shorts/Skirt Texture: (Between 00-bb, ex. 0a, 2d, 68, 99, 00, 0f, 27, aa, af, 8d, 5e) | ||
|
|
||
| Hexadecimal 11: Shorts/Skirt Color: (Between 00-2d, (1b is default), NOTE: No bigger than 29 (ex. 30, 99, 58)) | ||
|
|
||
| Hexadecimal 12: Torso Color: (Between 00-2a, NOTE: No bigger than 29 (ex. 30, 99, 58)) | ||
|
|
||
| Hexadecimal 13: Glove Color: (Between 00-2a, NOTE: No bigger than 29 (ex. 30, 99, 58)) | ||
|
|
||
| Hexadecimal 14: Legs Color: (Between 00-2a, NOTE: No bigger than 29 (ex. 30, 99, 58)) | ||
|
|
||
| Hexadecimal 15: Head Color: (Between 00-2a, NOTE: No bigger than 29 (ex. 30, 99, 58)) | ||
|
|
||
| Hexadecimal 16: Shoes Item ID | ||
|
|
||
| Hexadecimal 17: Shoes Texture ID | ||
|
|
||
| Hexadecimal 18: Shoes Color ID | ||
|
|
||
| Hexadecimal 19: Hat Item ID (Between 00-2a, NOTE: No bigger than 41 (ex. 42, 53, 70)) | ||
|
|
||
| Hexadecimal 20: Hat Texture ID (Between 00-5b, NOTE: No bigger than 59 (ex. 60, 74, 83)) | ||
|
|
||
| Hexadecimal 21: Hat Color ID | ||
|
|
||
| Hexadecimal 22: Glasses Item ID (Between 00-1a, NOTE: No bigger than 15 (ex. 16, 19, 68)) | ||
|
|
||
| Hexadecimal 23: Glasses Texture ID (Between 00-2f, NOTE: No bigger than 30 (ex. 31, 46, 72)) | ||
|
|
||
| Hexadecimal 24: Glasses Color ID | ||
|
|
||
| Hexadecimal 25: Neckwear Item ID (Between 00-03) | ||
|
|
||
| Hexadecimal 26: Neckwear Texture ID (Between 00-4d, NOTE: No bigger than 49 (ex. 50, 67, 84)) | ||
|
|
||
| Hexadecimal 27: Neckwear Color ID | ||
|
|
||
| Hexadecimal 28: Backpack Item ID (Between 00-22, NOTE: Can use 0a-1f) | ||
|
|
||
| Hexadecimal 29: Backpack Texture ID | ||
|
|
||
| Hexadecimal 30: Backpack Color ID | ||
|
|
||
| Hexadecimal 31-33: Unknown | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.