Skip to content

Commit bae59d8

Browse files
Rewrite note style documentation.
1 parent 30e6854 commit bae59d8

7 files changed

+122
-82
lines changed

src/08-custom-notestyles/08-00-custom-notestyles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
This chapter will walk you through the process of creating a functioning, fully compatible Friday Night Funkin' mod, using the game's official systems for loading custom content and scripts. Once your mod is complete, you will be able to place it in the `mods` folder in your game install and use its content in-game without overriding the base game content and still maintain compatibility with other mods.
44

5-
This chapter goes over adding new note styles to the game, and using them in a level.
5+
This chapter goes over adding new Note Styles to the game, and using them in a song.

src/08-custom-notestyles/08-01-creating-a-notestyle.md

Lines changed: 119 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,22 @@
22

33
## Note Style Assets
44

5-
In order to create your own note style, you will need up to 4 assets:
6-
- `notes`: The general notes that are displayed in the chart, as well as in-game the player needs to hit.
7-
- `noteStrumline`: The notes on the strumline, along with their corresponding animations, such as it being `static`, the strumline note being `pressed`, `confirming` the note hit.
8-
- `noteSplashes`: The special effect when the player gets `Sick!` rating.
9-
- Currently is buggy, since it doesn't use the asset you provided.
10-
- `holdCover`: The special effect when the player is holding a note.
11-
- Currently is buggy, since it doesn't use the asset you provided.
5+
In order to create your own note style, you will need assets for a variety of elements:
6+
7+
- `note`: The general notes for the song. These display in the chart editor as well as in-game as the notes the player must hit.
8+
- `holdNote`: The sprites for the hold notes which require the key to be held rather than pressed.
9+
- `noteStrumline`: The notes on the strumline, which react when the player presses the keys, and provide visual feedback for when notes need to be hit.
10+
- `noteSplash`: The special effect when the player gets `Sick!` rating.
11+
- `holdNoteCover`: The special effect when the player is holding a hold note.
12+
- `countdown`: The assets (both the sprites and audio) for the countdown that happens before the song starts.
13+
- `judgementShit`: The assets for judgements, which display how well you hit a note.
14+
- `comboNumber0`: The assets for the combo counter, which displays when you hit a certain number of notes in a row.
15+
16+
These assets should be placed in your mod folder, ideally somewhere organized. They don't have to be in any specific location, just one that you can directly reference from your note style's JSON data file.
17+
18+
## Note Style Fallback
19+
20+
Note styles use a recursive fallback system; essentially, you can specify just one or several assets for a note style. If a fallback note style is specified, the parent will be queried for any assets that aren't included. If the parent doesn't have an asset, ITS parent will be referenced, and so on. This allows you to easily make note styles which perform only slight variations on the style they are based on.
1221

1322
## Note Style Data
1423

@@ -18,7 +27,7 @@ Below is the "funkin" (aka the default) note style json file `assets/data/notest
1827

1928
```json
2029
{
21-
"version": "1.0.0",
30+
"version": "1.1.0",
2231
"name": "Funkin'",
2332
"author": "PhantomArcade",
2433
"fallback": null,
@@ -71,16 +80,117 @@ Below is the "funkin" (aka the default) note style json file `assets/data/notest
7180
"data": {
7281
"enabled": true
7382
}
83+
},
84+
"countdownThree": {
85+
"data": {
86+
"audioPath": "shared:gameplay/countdown/funkin/introTHREE"
87+
},
88+
"assetPath": null
89+
},
90+
"countdownTwo": {
91+
"data": {
92+
"audioPath": "shared:gameplay/countdown/funkin/introTWO"
93+
},
94+
"assetPath": "shared:ui/countdown/funkin/ready",
95+
"scale": 1.0,
96+
"isPixel": false
97+
},
98+
"countdownOne": {
99+
"data": {
100+
"audioPath": "shared:gameplay/countdown/funkin/introONE"
101+
},
102+
"assetPath": "shared:ui/countdown/funkin/set",
103+
"scale": 1.0,
104+
"isPixel": false
105+
},
106+
"countdownGo": {
107+
"data": {
108+
"audioPath": "shared:gameplay/countdown/funkin/introGO"
109+
},
110+
"assetPath": "shared:ui/countdown/funkin/go",
111+
"scale": 1.0,
112+
"isPixel": false
113+
},
114+
"judgementSick": {
115+
"assetPath": "default:ui/popup/funkin/sick",
116+
"scale": 0.65,
117+
"isPixel": false
118+
},
119+
"judgementGood": {
120+
"assetPath": "default:ui/popup/funkin/good",
121+
"scale": 0.65,
122+
"isPixel": false
123+
},
124+
"judgementBad": {
125+
"assetPath": "default:ui/popup/funkin/bad",
126+
"scale": 0.65,
127+
"isPixel": false
128+
},
129+
"judgementShit": {
130+
"assetPath": "default:ui/popup/funkin/shit",
131+
"scale": 0.65,
132+
"isPixel": false
133+
},
134+
"comboNumber0": {
135+
"assetPath": "default:ui/popup/funkin/num0",
136+
"isPixel": false,
137+
"scale": 0.45
138+
},
139+
"comboNumber1": {
140+
"assetPath": "default:ui/popup/funkin/num1",
141+
"isPixel": false,
142+
"scale": 0.45
143+
},
144+
"comboNumber2": {
145+
"assetPath": "default:ui/popup/funkin/num2",
146+
"isPixel": false,
147+
"scale": 0.45
148+
},
149+
"comboNumber3": {
150+
"assetPath": "default:ui/popup/funkin/num3",
151+
"isPixel": false,
152+
"scale": 0.45
153+
},
154+
"comboNumber4": {
155+
"assetPath": "default:ui/popup/funkin/num4",
156+
"isPixel": false,
157+
"scale": 0.45
158+
},
159+
"comboNumber5": {
160+
"assetPath": "default:ui/popup/funkin/num5",
161+
"isPixel": false,
162+
"scale": 0.45
163+
},
164+
"comboNumber6": {
165+
"assetPath": "default:ui/popup/funkin/num6",
166+
"isPixel": false,
167+
"scale": 0.45
168+
},
169+
"comboNumber7": {
170+
"assetPath": "default:ui/popup/funkin/num7",
171+
"isPixel": false,
172+
"scale": 0.45
173+
},
174+
"comboNumber8": {
175+
"assetPath": "default:ui/popup/funkin/num8",
176+
"isPixel": false,
177+
"scale": 0.45
178+
},
179+
"comboNumber9": {
180+
"assetPath": "default:ui/popup/funkin/num9",
181+
"isPixel": false,
182+
"scale": 0.45
74183
}
75184
}
76185
}
186+
77187
```
78188

79189
There is quite a lot to unravel, let's break it all down.
80190
- `version`: The version number for the Note Style data file format. Leave this at `1.0.0`.
81191
- `name`: The readable name for the note style, used in places like the Chart Editor.
82192
- `author`: The author of the note style, aka the artist who created the assets.
83-
- `fallback`: The note style to use as a fallback/parent, providing a default option when the note style you are using is not available. Optional, defaults to `null`.
193+
- `fallback`: The note style ID to use as a fallback note style. Any assets not included for this note style will use the parent's asset instead. `"funkin"` is the recommended default in order to use the default base game assets for anything that is not specified.
84194
- `assets`: A list of asset data for each of the assets for the note style.
85195
- See [list of assets](#note-style-assets) that you can provide the data for.
86196

src/08-custom-notestyles/08-02-using-a-notestyle-in-a-song.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
There are currently two ways to use your note style in a song once it's implemented.
44

5-
1. *[FIXED IN 0.5.0]* Create a new chart. Open the Chart Editor, start a chart, and then select the `Notestyle` box from the `Metadata` toolbox before charting.
5+
1. Create a new chart. Open the Chart Editor, start a chart, and then select the `Notestyle` box from the `Metadata` toolbox before charting.
66
2. Edit an existing chart in your mod. Open the `metadata.json` file of the song you want to modify and check in `playData` for the `noteStyle` key.
77

8-
Once the chart which references your note style is in your mod folder, simply start the game with your mod installed.
8+
Once the chart which references your note style is in your mod folder, simply start the game with your mod installed.

src/09-custom-countdowns-and-custom-popups/09-00-custom-countdowns-and-custom-coutndowns.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/09-custom-countdowns-and-custom-popups/09-01-creating-custom-countdowns.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/09-custom-countdowns-and-custom-popups/09-02-creating-custom-popups.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/09-custom-countdowns-and-custom-popups/09-03-using-custom-countdowns-and-custom-popups

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)