2394425147 / astrodx

840 stars 38 forks source link

maidata.txt检查报错信息有误 #74

Closed Eternal973 closed 7 months ago

Eternal973 commented 7 months ago

Describe the bug

To Reproduce Steps to reproduce the behavior: 1.在maidata.txt包含问题的行前加入一个空行 2.运行并尝试游玩,产生报错

如果包含1.中的空行,即 maidata.txt 19 |(空行) 20 |(含有语法错误的行) 21 |(正常的行) 则报错信息显示 Line 20 - (实际为21行的正常行)

如果不包含1.中的空行,即 maidata.txt 19 |(含有语法错误的行) 20 |(正常的行) 则报错信息显示 Line 19 - (含有语法错误的Line 19)

很多谱师在制作自制谱的时候喜欢在不同难度谱面或不同bpm段落之间加入空行,如此bug不修复将对谱面错误处定位造成一定影响,不能在AstroDX中发现问题原因。

Describe the bug

To Reproduce Steps to reproduce the behavior.

  1. Add a blank line before the line in maidata.txt that contains the problem.
  2. Run and try to play, generate an error report

If the blank line in 1. is included, i.e. maidata.txt 19 | (empty line) 20 | (lines containing syntax errors) 21 | (normal line) then the error message displays Line 20 - (normal line that is actually Line 21)

If the blank line in 1. is not included, i.e. maidata.txt 19 | (line containing syntax error) 20 | (normal line) then the error message displays Line 19 - (Line 19 with syntax error)

Many note designers like to add blank lines between different difficulty scores or different bpm passages when making their own works. If this bug is not fixed, it will affect the location of the syntax errors and the cause of the problem cannot be found correctly in AstroDX.

Soneoylys commented 7 months ago

感谢反馈, 我们会在未来版本中修复

Thanks for reporting issue, we'll fix this in future versions.