You are viewing a potentially older version of this package. View all versions.
RedDragon-CustomSong-1.0.0 icon

CustomSong

从 Charts/ 加载自制曲包 / Loads custom song packs from Charts/.

Date uploaded a month ago
Version 1.0.0
Download link RedDragon-CustomSong-1.0.0.zip
Downloads 23
Dependency string RedDragon-CustomSong-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack_IL2CPP-6.0.788 icon
BepInEx-BepInExPack_IL2CPP

BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.

Preferred version: 6.0.788

README

Custom Song

In Falsus 的自制谱加载 Mod

  • 默认曲包名:Custom Song(可以在 pack.json 里改)
  • 自制谱位置:GAME_PATH/Charts(不存在会自动创建)
  • 自制谱成绩:cs.sav,与游戏主存档分开

功能

  • 热重载:游戏中增删曲包或谱面,回主菜单再进选曲即可生效,不用重启
  • 明文谱面直接可用:加载时自动转成游戏的加密格式,不用手动转换
  • 同id差分:同一个 if 的四个难度可以各用不同曲名、曲师、音频、预览、曲绘、谱面、设计者、定数
  • 大谱面:放宽了游戏的谱面池容量
  • 整套曲包贴图:曲包大卡片 / 未选中卡片 / 右侧进度条目 / 选曲页横幅,7 张图分别指定
  • AUTOPLAY:设置页「音符设定」最后一行有开关;开启后不记录成绩、遭遇结果、粒子掉落

手动安装

MelonLoader:把 CustomSong.dll 放进 GAME_PATH/Mods

BepInEx:把 CustomSong.dll 放进 GAME_PATH/BepInEx/plugins。

曲包格式

Charts/
  MyPack/
    pack.json
    SongA/
      if
      audio.ogg
      jkt.png
      chart.spc

pack.json

{
  "name": "My Pack",
  "visuals": {     // 曲包封面,可选
    "songSelect":      "packvisual-songselect-default.png",
    "songSelectHover": "packvisual-songselect-hover.png",
    "selected":        "packvisual-selected-default.png",
    "selectedHover":   "packvisual-selected-hover.png",
    "deselected":      "packvisual-deselected-default.png",
    "deselectedHover": "packvisual-deselected-hover.png",
    "outline":         "outline-packvisua.png"
  }
}

if

{
  "id": "my_song",
  "name": "My Song",
  "composer": "Composer",
  "song": "audio.ogg",
  "jacket": "jkt.png",
  "preview_seconds": ["42.0", "72.0"],
  "charter": [null, null, "Charter A", "Charter B"],
  "chart":   [null, null, "normal.spc", "hard.spc"],
  "lv":      [null, null, 9, 13]
}
  1. lv 必须是 JSON 数字;
  2. 某个难度有 chart,就必须同时有 charter 和 lv;
  3. jacket 必须是曲目文件夹里的 .png;song 只能是 .ogg / .wav,且必须是纯音频的 ogg(带视频流的 ogg 播不出来:ffprobe -show_entries stream=codec_name,codec_type 只该有一条 vorbis,audio);
  4. preview_seconds 必须落在音频时长以内

完整字段说明(含 illust、background、逐难度差分的写法)见同目录的 IF.md。

热重载

游戏中往 Charts 增删曲包 / 谱面,回主菜单再进选曲即可,不用重启游戏

成绩

cs.sav 独立于游戏主存档。

AUTOPLAY

设置页「游戏和UI设置 → 音符设定」最后一行是 AUTO 开关(默认关,不写盘)。

开启后不会记录成绩、遭遇结果、粒子,掉落栏为 AUTOPLAY 字样;

致谢

参考了 InFalsusChartLoader 的实现。

CHANGELOG

更新记录 / Changelog

1.2.0

  • 新增非官语句支持:setcolor / hidegroup / noinput / noclip / trackdisplay / showtext / trackmove / audiooffset,以及组内流速(type 5);加密谱同样可用
  • 新增开始曲目时的「谱面设计」署名,与插画行并排显示
  • 新增 sp 特殊标级:难度可以不显示数字,改显示自定义字符串
  • 新增 copyright 版权标识字段,写在选曲页曲目卡片下端
  • 新增游玩回放:结算页按住 Shift 时「重试」变成「回放」,Shift+点击即回放本局;回放中按 Tab 直接回到结算页;回放不写成绩、不给粒子、不写遭遇结果
  • 修复问题、优化性能:热重载只解码改动过的谱面;曲绘预热改为启动时并行;PNG 解码器重写热循环; 曲包图材质不再每次热重载重建;修复没填画师的谱面会让之后所有谱面的谱师行错位的问题
  • Added support for non-official chart statements: setcolor, hidegroup, noinput, noclip, trackdisplay, showtext, trackmove, audiooffset and the type 5 per-group scroll speed. They work on encrypted charts as well.
  • Added the chart designer's credit to the intro of a dive, shown next to the illustrator's line.
  • Added sp special levels: a difficulty can show a custom string instead of a numeric level.
  • Added the copyright field, drawn at the bottom of the song card on the song-select page.
  • Added replay: hold Shift on the results screen to turn Retry into Replay, then Shift+click to replay the run. Tab inside a replay returns to the results screen, and a replay writes no score, no particles and no encounter result.
  • Fixes and performance: a hot reload now decodes only the charts that changed; jackets are warmed in parallel from start-up; the PNG decoder's hot loops were rewritten; pack pictures are no longer rebuilt on every hot reload; and a chart without an illustrator no longer breaks the credit row of every chart after it.

1.1.5

  • 新增「清除成绩」功能:仅自制谱有效,位于选曲页右上角问号菜单,清除后重进选曲页生效
  • Added "Clear score" functionality: only available for custom charts, located in the help menu (the question mark in the top right of the song-select page), and requires re-entering the song-select page to take effect.

1.1.4

  • 热重载优化:在主菜单增删谱面后进选曲即时生效
  • AutoPlay优化:判定点按实际时间修正,不再受掉帧影响
  • 性能优化:曲绘改为后台线程解码、主线程上传贴图
  • 曲绘/音频兼容:带重启标记的 JPEG 能正常解码;mp3 内嵌封面视频流、OGG 里混入 Theora 视频流的曲子能正常加载
  • 修复第一次进选曲包页右侧曲包列表未显示自定义图的问题
  • 修复自制曲打过之后 NEW 标签不消失的问题
  • Hot reload: adding or removing charts in the main menu takes effect as soon as you enter the song list.
  • AutoPlay: judgement points are corrected to the real time, so frame drops no longer change the verdict.
  • Performance: jackets are decoded on a background thread and uploaded on the main thread.
  • Jackets/audio compatibility: JPEGs with restart markers decode correctly; MP3s with an embedded cover video stream and OGGs carrying a Theora stream load correctly.
  • Fixed the pack list on the right not showing the custom pictures on the first visit to the song-select page.
  • Fixed the NEW tag staying on a custom song that has a score.

1.1.3

  • 修复曲包页曲目条超出卡片的裁剪
  • 修复选曲页曲名 / 曲师里的中文和特殊字符显示不出来
  • 修复谱面解析的问题
  • Fixed song strips drawing past the pack card when a pack has more songs than fit.
  • Fixed Chinese and special characters in song titles and artist names showing as blanks.
  • Fixed chart parsing problems.

1.1.2

  • 修复自动生成 if 失效的问题
  • 将已知与其他mod冲突的钩子改用 Harmony
  • 音频支持 mp3
  • 文本谱嗅探跳过开头的 # 注释行
  • 支持 .falsum 压缩包:解包成曲目文件夹并按 song.json 生成 if
  • 修复 Studio 工程转 if 时可能取不到曲绘、以及谱面已被挪到曲目根目录后无法重新生成的问题
  • pack.json 的曲包名和 7 张图支持多语言,游戏里切语言立即生效
  • 曲名 / 曲师 / 画师三栏支持多语言(五元数组),也能和差分叠加(5 语言 × 4 难度的嵌套数组), 另支持对象写法 {"sc": …, "en": …}(键名只有 sc/tc/en/ja/ko,大小写不敏感、顺序随意)
  • Fixed the if generated from a Studio project sometimes never being written.
  • Hooks that clashed with other mods now go through Harmony, so they coexist.
  • MP3 audio is supported.
  • Text-chart sniffing skips leading # comment lines.
  • .falsum archives are unpacked into song folders and get their if from song.json.
  • A Studio project keeps its jacket when the picture is in a subfolder, and can be converted again after an earlier run moved the chart beside the project.
  • pack.json's name and its seven pictures can be per-language, and a language change re-picks them at once.
  • A song's title, artist and illustrator can be per-language (five slots), per-difficulty, both at once (five languages × four difficulties), or an object keyed by sc/tc/en/ja/ko in any order and case.

1.1.1

  • 没有 Charts 目录时会自动建 Charts 和 Custom Song
  • 曲文件夹里没有 if 但有 infalsus.studio.json 时,自动按工程写好 if
  • 谱面放在 .ifstudio 里时自动挪到曲文件夹下
  • Creates Charts and Charts/Custom Song when the folder is missing.
  • Writes an if from infalsus.studio.json when a song folder has the project but no if.
  • Moves charts out of .ifstudio/ into the song folder.

1.1.0

  • 曲绘接受 jpg:jacket 现在可以是 .png / .jpg / .jpeg
  • 修复已知的与其他mod兼容问题
  • 修复auto行可能异常的问题
  • Jackets may now be a .jpg / .jpeg as well as a .png.
  • Fixes the known compatibility problems with other mods.
  • Fixes the AUTO row occasionally failing to appear.

1.0.0

  • 初始版本:从 Charts/ 加载自制曲包,支持逐难度差分、整套曲包贴图、明文谱面与热重载。
  • 放宽谱面池容量;内置 autoplay,开启后结算不保存成绩、遭遇结果和粒子。
  • Initial release: loads custom song packs from Charts/, with per-difficulty variants (name, composer, jacket, audio, preview, chart, charter and level), pack-wide artwork, plain-text charts converted on load, and hot reload.
  • Raises the chart pool caps; a built-in autoplay switch, whose runs save no score, no encounter result and no particles.