Skip to content
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

Update main.py #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Hardik25-iso
Copy link

Made a few updates regarding following issues-:

  • Error Handling: The code doesn’t handle possible errors, like if the file is missing or there’s an issue with parsing. This could cause it to crash when it encounters unexpected input.

  • Fixed Duration for Hold Notes: The code uses a fixed duration of 0.5 for hold notes, which might not be correct if the duration changes. It would be better to read the actual duration from the .osu file if available.

  • Parsing Hit Objects: The .osu file format can include other object types like sliders and spinners that have different formats. The code currently only works for basic hit objects and hold notes.

  • Unused Import: The re module is imported but isn’t used in the code.

  • Formatting* The generated Lua file could be cleaner by removing the extra comma after the last entry in the Chart.Notes list.

bruhstopbruhuhh and others added 2 commits October 6, 2024 14:38
Made a few updates regarding following issues-:


- Error Handling: The code doesn’t handle possible errors, like if the file is missing or there’s an issue with parsing. This could cause it to crash when it encounters unexpected input.
  
- Fixed Duration for Hold Notes: The code uses a fixed duration of 0.5 for hold notes, which might not be correct if the duration changes. It would be better to read the actual duration from the `.osu` file if available.
  
- Parsing Hit Objects: The `.osu` file format can include other object types like sliders and spinners that have different formats. The code currently only works for basic hit objects and hold notes.

- Unused Import: The `re` module is imported but isn’t used in the code.

- Formatting* The generated Lua file could be cleaner by removing the extra comma after the last entry in the `Chart.Notes` list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants