diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..acdf900 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,31 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. Windows] + - Version [e.g. 2.1] + +**Additional context** +Add any other context about the problem here. diff --git a/FNFBot20/Bot/Bot.cs b/FNFBot20/Bot/Bot.cs index 011c1aa..eb5314e 100644 --- a/FNFBot20/Bot/Bot.cs +++ b/FNFBot20/Bot/Bot.cs @@ -204,6 +204,7 @@ public void HandleNote(FNFSong.FNFNote n) if (shouldHold) holdTimes[(int)n.Type % 4] = ((float)n.Length + (float)watch.Elapsed.TotalMilliseconds) + 10; + switch (n.Type) { case FNFSong.NoteType.Left: @@ -211,7 +212,8 @@ public void HandleNote(FNFSong.FNFNote n) if (shouldHold) { simulator.Keyboard.KeyDown(VirtualKeyCode.LEFT); - + Thread.Sleep(Convert.ToInt32(n.Length)); + simulator.Keyboard.KeyUp(VirtualKeyCode.LEFT); } else { @@ -254,9 +256,10 @@ public void HandleNote(FNFSong.FNFNote n) else kBot.KeyPress(0x27, 0x20); + break; - } + } notesPlayed++; } } -} \ No newline at end of file +} diff --git a/readme.md b/readme.md index 2b5e293..48a906f 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,10 @@ # FNFBot Rewrite ## The better version of FNFBot +### WARNING! + +If FNFBot doesn't hit notes perfectly, don't worry, as it doesn't know where to start automatically. You have to press F1 at the right time. So don't create issues telling us that it "hits notes early" or whatever. + ### What is FNFBot? FNFBot is a bot program that lets users automatically play Friday Night Funkin' charts.