From 569a808144bc34909a922d800fb66ae807d1d01d Mon Sep 17 00:00:00 2001 From: Claire Vivian de Lunette Date: Mon, 10 Aug 2026 01:55:08 +0800 Subject: [PATCH 1/3] Add dummy strumlines on newly created songs shoutout that one dude in modding help who pointed out that cne crashes if you do something other than make a strumline immediately after loading into the charter --- source/funkin/editors/charter/Charter.hx | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index a06118f42..907eee260 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -638,6 +638,39 @@ class Charter extends UIState { noteCount += strL.notes.length; } + // checks for newly created songs + if (PlayState.SONG.strumLines.length == 0) { + var dadStrumLine:ChartStrumLine = { + characters: ["dad"], + type: 0, // Opponent + notes: [], + position: "dad", + visible: true, + strumPos: [0, 50], + strumLinePos: 0.25, + strumScale: 1, + strumSpacing: 1, + vocalsSuffix: "", + keyCount: 4 + }; + createStrumLine(0, dadStrumLine, false, false); + + var bfStrumLine:ChartStrumLine = { + characters: ["bf"], + type: 1, // Player + notes: [], + position: "bf", + visible: true, + strumPos: [0, 50], + strumLinePos: 0.75, + strumScale: 1, + strumSpacing: 1, + vocalsSuffix: "", + keyCount: 4 + }; + createStrumLine(1, bfStrumLine, false, false); + } + // create notes notesGroup.autoSort = false; notesGroup.preallocate(noteCount); From 0ea6162b2a8eb5cc3d3b7ec1813885c3aaf232ce Mon Sep 17 00:00:00 2001 From: Claire Vivian de Lunette Date: Mon, 10 Aug 2026 19:34:56 +0800 Subject: [PATCH 2/3] typo fix oopsie --- source/funkin/editors/charter/Charter.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 907eee260..8645fc452 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -653,8 +653,8 @@ class Charter extends UIState { vocalsSuffix: "", keyCount: 4 }; - createStrumLine(0, dadStrumLine, false, false); - + createStrumline(0, dadStrumLine, false, false); + var bfStrumLine:ChartStrumLine = { characters: ["bf"], type: 1, // Player @@ -668,7 +668,7 @@ class Charter extends UIState { vocalsSuffix: "", keyCount: 4 }; - createStrumLine(1, bfStrumLine, false, false); + createStrumline(1, bfStrumLine, false, false); } // create notes From 8065feecfd7c1286cb2624849e0cf8b3ea90a82a Mon Sep 17 00:00:00 2001 From: Claire Vivian de Lunette Date: Mon, 10 Aug 2026 20:45:53 +0800 Subject: [PATCH 3/3] typo fix + condense the thing --- source/funkin/editors/charter/Charter.hx | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/source/funkin/editors/charter/Charter.hx b/source/funkin/editors/charter/Charter.hx index 8645fc452..d8754bdbd 100644 --- a/source/funkin/editors/charter/Charter.hx +++ b/source/funkin/editors/charter/Charter.hx @@ -640,35 +640,24 @@ class Charter extends UIState { // checks for newly created songs if (PlayState.SONG.strumLines.length == 0) { - var dadStrumLine:ChartStrumLine = { + createStrumline(0, { characters: ["dad"], type: 0, // Opponent notes: [], position: "dad", visible: true, - strumPos: [0, 50], - strumLinePos: 0.25, - strumScale: 1, - strumSpacing: 1, - vocalsSuffix: "", keyCount: 4 - }; - createStrumline(0, dadStrumLine, false, false); + }, false, false); - var bfStrumLine:ChartStrumLine = { + createStrumline(1, { characters: ["bf"], type: 1, // Player notes: [], - position: "bf", + position: "boyfriend", visible: true, - strumPos: [0, 50], strumLinePos: 0.75, - strumScale: 1, - strumSpacing: 1, - vocalsSuffix: "", keyCount: 4 - }; - createStrumline(1, bfStrumLine, false, false); + }, false, false); } // create notes