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.
@bruhstopbruhuhh bruhstopbruhuhh force-pushed the main branch 28 times, most recently from 2ba8a42 to 82b8c45 Compare October 6, 2024 12:56
@bruhstopbruhuhh bruhstopbruhuhh force-pushed the main branch 30 times, most recently from 7c2c6e1 to d023e0f Compare October 16, 2024 17:45
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