forum

AIBat v3.1 - v10 Compatibility

posted
Total Posts
327
Topic Starter
akrolsmir
Source now on Git: https://github.com/akrolsmir/AIBat

AIBat v3.1.jar:
(For some reason, Firefox saves '.jar' files as '.jar.zip'. If you get this, just remove the '.zip' portion to run AIBat properly.)



No, this won't automatically rank your beatmaps :P . However, much like AIMod makes the life of human modders easier, hopefully AIBat will do the same for BATs, by checking things such as consistent tags/leadins/preview/timing, mp3 quality, catmull sliders, etc. This is still a work in progress. Source to be uploaded soon. This is for modders and mappers who want to save time looking at this stuff.

Please see the README to see what is currently in place.


NOTE: Source.zip, and OsuJavaApps.zip have not been updated recently; click on titles instead to install.

Beatmap URL Formatter:
SPOILER
So... managing a whole bunch of beatmaps in the forums can be a pain if you want to pothole correctly, get the proper artist name and song title, etc. Particularly for Beatmap Projects (such as mine) where the list of beatmaps can get really long.

So, I wrote a simple program to do the formatting. Since all that information is available from the page source of a Beatmap Listing page, the program asks you to copy that source and paste into the box, and generates the proper code.

(In the end it probably would have been faster to do it by hand. But hey, this was more fun!)



Acquired Knowledge:
- Text Areas
- Scroll Panes
- Popup Dialogs

Future Direction:
I might want to try and get a better GUI for this- positioning the objects with a GridBagLayout. If I'm able to learn how to access the web through Java, I might be able to cut out the whole "paste in source text" thing. That will be a low priority, though, since this wasn't meant to be a particularly powerful program. Also, this was coded pretty inefficiently- I didn't know how to use Scanners at the time.

Osu Distance Checker:
SPOILER
This was actually a request made by someone- a program that would list out the various distance-spaces in one text, so one could quickly scan through for spacing errors. To do this, I consulted with ziin and lolcubes to decode the .osu file format for hitobjects, and played around with a few formulas to find out how spacing was calculated. It wasn't that much of a challenge, just a lot of coding work.

To get this to work, put the file into a song folder with .osu files, and run it.



Acquired Knowledge:
- Specifications of the .osu file format and formulas used
- Better understanding of how to use inheritance
- Directory reading
- Scanners
- Decimal Formats

Future Direction:
This actually doesn't work very well, for one reason: sliders. I think it would work 100% efficiently if a map were only circles and spinners, but I still haven't figured out how to calculate the precise position and time of the end of a slider, particularly with things such as Bezier curves (There's a file there, but it's a copy of something I found by jomax on this thread, and it's unused). I went with using the position of the last node and approximating the time, but the latter might be 1 ms off due to rounding errors and the former can be completely wrong. So, the first priority would be to fix that. Additionally, this will calculate incorrectly on maps with multiple timing sections, or varying slider velocities.

If you actually read through all that long text, you're awesome. Comments/ questions/ suggestions/ problem reports are welcome. If something broke AIBat, tell me what file you were using, please.

Download: OsuJavaApps.zip

Download: Source.zip

Download: AIBat v1.1 Source.zip
Guy-kun
>Java
Dai
I can't run .jar file without .zip
Aqua
pretty handy tools :)
mm201
The second one is already provided by AiMod basically. It points out any incorrect spacings and you can see the spacing ratios in the top right corner when you select an object.
The first one, what does it actually do? Do you feed it a beatmapsetid and it retrieves the song title for you?

Also, in the future, please consider writing osu! support tools in C# in case they turn out useful enough to include inside of osu!
Topic Starter
akrolsmir

lufi10 wrote:

I can't run .jar file without .zip
I'm not actually sure how to fix that, but I'll give it a try. Are you using Windows, and do you have Java installed?

Aqua wrote:

pretty handy tools :)
Hopefully that means these work for somebody :D.

mm201 wrote:

The second one is already provided by AiMod basically. It points out any incorrect spacings and you can see the spacing ratios in the top right corner when you select an object.
The first one, what does it actually do? Do you feed it a beatmapsetid and it retrieves the song title for you?

Also, in the future, please consider writing osu! support tools in C# in case they turn out useful enough to include inside of osu!
Yeah, I realized that- and AIMod is better at it. This is simply meant to be a complete listing of those ratios in the top right corner because AIMod doesn't show that spacing when you open it.

Also, I was wondering exactly how AIMod calculates which times are snapped and which aren't. From playing around with .osu files and the editor, it looks like there's an approximate error margin of about 1 ms from the true snapped time, which is the ticks the Editor shows you. I think those are calculated from intervals of 1/8th or 1/6th of the beat space time (that second number in an entry for a red timing point- I'm not sure what to call that decimal that is 60000/BPM) plus the starting time of that red point, rounded down if it's a decimal. However, this error margin doesn't seem to always work, so I think I missed something.

On the first one: you feed it the source code for a page of beatmap listing, and it will return a list of all beatmaps on that page, formatted for the forums like so:

52. Baby Alice - Pina Colada Boy (Nightcore Mix) ~ Mapped by osuplayer111

Obviously of very limited utility- I just happened to want the function for myself and posted it in case anyone else did too.

I will consider learning C#- thanks for the suggestion! It's just that Java is the first language I've learned and only one I know so far.

Thanks, everyone, for the feedback so far!
blissfulyoshi
For your third program, you could basically include everything asked for in this thread (viewtopic.php?p=399976#p399976) xD.

As for your already released programs, they not bad. Not sure where I would use them, but oh well.
Topic Starter
akrolsmir

blissfulyoshi wrote:

For your third program, you could basically include everything asked for in this thread (viewtopic.php?p=399976#p399976) xD.

As for your already released programs, they not bad. Not sure where I would use them, but oh well.
Yes, I was planning on doing that already and had looked at that thread for suggestions. Unsnapped endings should be easily added, song quality/ BG size might be feasible, and so should break warning. I"m not a storyboarder so I'm not sure how to check for a pulse/loop for an epilepsy warning, but I can throw in a suggestion to put one in if there is any kind of storyboard. Hopefully, this will be finished in a week.

Oh, and thanks for answering my questions about the osu file format way back when- that helped a lot in writing these programs!
Sakura
This looks pretty good, i'll edit this post with some suggestions when i come up with some that arent already on the "To do" list, for now, check for storyboard elements that are on the .osb but have no code assigned to them? (Even worse when the images exist in the song folder as well, and arent being used yet they are included in the sprite library with no keyframes at all)
blissfulyoshi
Nice job so far. I love the fact that I don't have to manually check for unsnapped notes now xD.

Other comments:
Inconsistent stack leniency is fine to have, so I probably won't bother warning about it.
You might want to post a warning about low stack leniency (0.2 and below)
You might want to also warn about numbers that are not achievable in the editor (I guess this only applies to stack leniency and circle size.....)

Oh well, will add more when I think of more.
Topic Starter
akrolsmir

Sakura Hana wrote:

This looks pretty good, i'll edit this post with some suggestions when i come up with some that arent already on the "To do" list, for now, check for storyboard elements that are on the .osb but have no code assigned to them? (Even worse when the images exist in the song folder as well, and arent being used yet they are included in the sprite library with no keyframes at all)
Those are great ideas. Unfortunately, I'm not a storyboarder so I'll probably need some help understanding exactly how osu processes the .osb and [events] under .osu, to be able to check for this.

blissfulyoshi wrote:

Nice job so far. I love the fact that I don't have to manually check for unsnapped notes now xD.

Other comments:
Inconsistent stack leniency is fine to have, so I probably won't bother warning about it.
You might want to post a warning about low stack leniency (0.2 and below)
You might want to also warn about numbers that are not achievable in the editor (I guess this only applies to stack leniency and circle size.....)

Oh well, will add more when I think of more.
First two comments about stack leniency were both implemented. What are the acceptable ranges for stack leniency and circle size?

Thanks, Sakura and Yoshi, for the input and encouragement!

Also, bumped to say that v0.3b has been released, with a new feature to format all warnings for modding purposes! (i.e., it copies everything onto your clipboard in a BBCode-friendly manner)

For example:

AIBat Warnings
These warnings were generated by AIBat.

[General]
No problems found.

[Storyboard]
No problems found.

[All .osu Files]
Inconsistency in SkinPreference:
- [Hard] :
- [Test] : Ecchi
Inconsistency in uninherited (red) timing sections:
- [Hard]
Red timing points at:
00:00:536
- [Test]
Red timing points at:
00:00:536
00:05:678
There are no tags, consider adding some.

[Difficulty: Hard]
The spinner at 00:00:536 (1) is 42376 ms long, which is longer than 7500 ms.
The stack leniency is set to 0.2, which is below the recommended leniency of 0.3

[Difficulty: Test]
The start of the spinner at 00:06:154 (1) is unsnapped.
The end of the spinner at 00:06:154 (1) is unsnapped.
The start of the spinner at 00:19:958 (1) is unsnapped.
The end of the spinner at 00:19:958 (1) is unsnapped.
The circle at 00:36:491 (1) is unsnapped.
The circle at 00:36:652 (2) is unsnapped.
The circle at 00:36:812 (3) is unsnapped.
The circle at 00:36:813 (4) is unsnapped.
The circle at 00:36:973 (5) is unsnapped.
The start of the spinner at 00:39:060 (1) is unsnapped.
The end of the spinner at 00:39:060 (1) is unsnapped.
The circle at 00:44:357 (1) is unsnapped.
The circle at 01:09:878 (1) is unsnapped.
The circle at 01:16:620 (1) is unsnapped.
The inherited (green) timing point at 00:07:438 is unsnapped.
The spinner at 00:06:154 (1) is 12520 ms long, which is longer than 7500 ms.
The spinner at 00:19:958 (1) is 321 ms long, which is shorter than 750 ms.
The slider at 00:01:178 (1) is a Catmull slider, which is discouraged.
Sakura
Ok just tried the program myself, and there's some stuff i'd like to point out:
- Not sure how useful exporting the whole thing to clipboard can be, it would be better if you can click on a warning and it copies the timeline minutes:seconds:miliseconds when clicking on timing section warnings or for notes/spinners/sliders minutes:seconds:miliseconds (combonumbers), so that it can be found faster inside the map when needed.
- It'd be better if the difficulties were arranged by star rating, rather than alphabetically, just like osu! itself does (when identical star rating, it then orders them alphabetically).
awp
Identical star rating? Poor map design!
Sakura
I know, but so it doesnt break when checking for it

Edit: Or when there are multiple maps at 5.00 star rating (since it can't go higher)
Topic Starter
akrolsmir

Sakura Hana wrote:

Ok just tried the program myself, and there's some stuff i'd like to point out:
- Not sure how useful exporting the whole thing to clipboard can be, it would be better if you can click on a warning and it copies the timeline minutes:seconds:miliseconds when clicking on timing section warnings or for notes/spinners/sliders minutes:seconds:miliseconds (combonumbers), so that it can be found faster inside the map when needed.
- It'd be better if the difficulties were arranged by star rating, rather than alphabetically, just like osu! itself does (when identical star rating, it then orders them alphabetically).
I think I should be able to implement the first, with HTML. It's a very good idea- in absence of AIMod's ability to transfer the clicked time directly to a certain note, this would be the next best substitute.

The second was something I also considered, but I'm unsure of how to determine difficulty stars. Apparently (according to the Term Glossary, if that's not outdated) difficulty is calculated with eyup's algorithm... and I have absolutely no idea how that works. Is this the kind of thing that'd be appropriate to contact Peppy for? Alternatively, I could roughly approximate difficulty with something like number of hitobjects- not a flawless approach, but reasonably functional.
blissfulyoshi

akrolsmir wrote:

First two comments about stack leniency were both implemented. What are the acceptable ranges for stack leniency and circle size?
Stack leniency: 0.2 is the minimum available in editor but a lot of BATs like 0.3 and higher
Circle size: 3-7 are available in editor
On another note, I think the editor should output something similar to mod post, so:
00:06:154 (1) - The start of the spinner at 00:06:154 (1) is unsnapped.

Okay time to test the newest version
Topic Starter
akrolsmir

blissfulyoshi wrote:

akrolsmir wrote:

First two comments about stack leniency were both implemented. What are the acceptable ranges for stack leniency and circle size?
Stack leniency: 0.2 is the minimum available in editor but a lot of BATs like 0.3 and higher
Circle size: 3-7 are available in editor
On another note, I think the editor should output something similar to mod post, so:
00:06:154 (1) - The start of the spinner at 00:06:154 (1) is unsnapped.

Okay time to test the newest version
Okay, I'll implement a circle size check. And perhaps warn against circle size 3 as well?

I've simplified the output and formatted it, similar to forums (though I haven't released it in the update yet). Below is a sample of how the export looks now:

AIBat Warnings
These warnings were generated by AIBat.

[General]
No problems found.

[Storyboard]
No problems found.

[All .osu Files]
Inconsistency in SkinPreference:
- [Hard] :
- [Test] : Ecchi


Inconsistency in uninherited (red) timing sections:
- [Hard]
Red timing points at:
00:00:536

- [Test]
Red timing points at:
00:00:536
00:05:678


There are no tags, consider adding some.


[Difficulty: Hard]
00:00:536 (1) - The spinner here is 42376 ms long, which is longer than 7500 ms.

The stack leniency is set to 0.2, which is below the recommended leniency of 0.3


[Difficulty: Test]
00:06:154 (1) - The start of the spinner here is unsnapped.
00:06:154 (1) - The end of the spinner here is unsnapped.
00:19:958 (1) - The start of the spinner here is unsnapped.
00:19:958 (1) - The end of the spinner here is unsnapped.
00:36:491 (1) - The circle here is unsnapped.
00:36:652 (2) - The circle here is unsnapped.
00:36:812 (3) - The circle here is unsnapped.
00:36:813 (4) - The circle here is unsnapped.
00:36:973 (5) - The circle here is unsnapped.
00:39:060 (1) - The start of the spinner here is unsnapped.
00:39:060 (1) - The end of the spinner here is unsnapped.
00:44:357 (1) - The circle here is unsnapped.
01:09:878 (1) - The circle here is unsnapped.
01:16:620 (1) - The circle here is unsnapped.

Unsnapped inherited (green) timing point(s) at:
00:07:438

00:06:154 (1) - The spinner here is 12520 ms long, which is longer than 7500 ms.
00:19:958 (1) - The spinner here is 321 ms long, which is shorter than 750 ms.

00:01:178 (1) - This slider is a Catmull slider, which is discouraged.

(Now to check for a million SB things- I had no idea that was so complicated! >.< )
lolcubes
I suggest one more thing. Considering this will help in modding, which means occasional rechecking, that after you check a map, it generates a mini database (can be in .txt, you just format it so it reads it just like it's scanning files) which is stored somewhere, probably let user decide where if you wish, or just generate it in the map folder (and then add a check when you run the program to see if such a file already exists in the folder, probably needs a standard name).
I suggest this, because usually it takes a lot of time to recheck something, and when a mod is complete and you want to recheck it, you can just see the differences between the 2 mapsets (i mean the mapset before and the mapset after the mod) easily from the .txt files (or whatever extension you feel using for this kind of work).

Also in addition to this, you can add an option to generate a new file every time (like standardname_1, standardname_2, etc, ofc original being _0) or to overwrite, depending what the user wants. This will let the user control the amount of "spam" he could get in that folder.

Oh and one more thing, when we're talking about snapping @timeline, I suggest that you make a check for 1/6ths and 1/8ths as well. They might be placed correctly, but usually (depends on the mapping experience obviously) it may not be, so you could just list where these are in case someone misses those.
This could add quite some effort to coding, but consider putting these to the "to do" list if you want, I think these are nice features. :3
Sakura
Nice improvement there, need to try it out
blissfulyoshi
Yay sb!
I haven't got a chance to check to test the sb stuff yet, but I noticed that the AIBat does not test to see if you have a preview point or not ( previewPoint != -1)

I guess I will do some more testing soon to see what else I find. Besides that, keep up the good work!
Ayeen_old
Im suggesting add in score for each difficulty. Nowadays many mappers tend to have guest difficulty, and one of the issues arise from that is scoring spreadsheet messed up which like the score is very close even though the hardness is quite far gap or the harder difficulty is lower score than the less difficult beforehand
Sakura

Ayeen wrote:

Im suggesting add in score for each difficulty. Nowadays many mappers tend to have guest difficulty, and one of the issues arise from that is scoring spreadsheet messed up which like the score is very close even though the hardness is quite far gap or the harder difficulty is lower score than the less difficult beforehand
The problem with that is that scoring is based off star rating as well, and he already said he doesn't know the algorithm for star rating, let alone scoring algorithm
Ayeen_old
Some map cant seem to be opened by the newest ver. The map that I talking about is Dj Taka Color Maybe you can pinpoint what actually causing it unable to open or it just my computer here
Topic Starter
akrolsmir
Thanks for all the comments so far!

blissfulyoshi wrote:

Yay sb!
I haven't got a chance to check to test the sb stuff yet, but I noticed that the AIBat does not test to see if you have a preview point or not ( previewPoint != -1)

I guess I will do some more testing soon to see what else I find. Besides that, keep up the good work!
Oh right. I remember considering that at some point, but it wasn't a particularly high priority since AIMod already checks for that. But since someone pointed it out, I guess I can throw that feature in.

Sakura Hana wrote:

Ayeen wrote:

Im suggesting add in score for each difficulty. Nowadays many mappers tend to have guest difficulty, and one of the issues arise from that is scoring spreadsheet messed up which like the score is very close even though the hardness is quite far gap or the harder difficulty is lower score than the less difficult beforehand
The problem with that is that scoring is based off star rating as well, and he already said he doesn't know the algorithm for star rating, let alone scoring algorithm
Yeah, it's partly that, and partly that it's something else that the osu! editor testplay mode will also show you. If someone ever gets me the algorithm and I can figure out how to properly use it, then I might include it, but it's not a high priority because that functionality is already available.

Ayeen wrote:

Some map cant seem to be opened by the newest ver. The map that I talking about is Dj Taka Color Maybe you can pinpoint what actually causing it unable to open or it just my computer here
(I remember modding that :P )
Oh, that's a known bug, caused by the fact that a timing point is located at a time that is not a whole number
[TimingPoints]
1428.91603239078,387.096774193548,4,1,0,60,1,0
It really ought to be 1429 for the offset, since I can't remember the last time 0.1 milliseconds made a difference. Personally I'm unsure why osu! editor allows times, x and y-locations to be decimals, but whenever that happens the program breaks. I'm working on a way to fix that (or at least some kind of notice about the errors in the .osu file)
show more
Please sign in to reply.

New reply