teleshoes / ddr-stepmania-tools

4 stars 0 forks source link

Permission Denied errors on ddr-stepmania-tools #4

Closed dinytick closed 2 years ago

dinytick commented 2 years ago

Hello!

Hope I am not bothering you with my questions. I was trying to use your ddr-radar-feet instructions to get the x-ratings of simfiles, but I keep running across errors such as this. image

I am using Android Studio emulating a Pixel 3 on Android 10.0 if it happens to help.

teleshoes commented 2 years ago

o.0? you can run these things on android? who knew? :D any way, you probably just need to do chmod +x /bin/ddr-radar-feet, but i dont really know android (i use SFOS)

dinytick commented 2 years ago

image Thank you, it looks like that went somewhere!

And another dumb question incoming, but where would I get the .sm files from and how would I properly call it to get the ratings?

teleshoes commented 2 years ago

haha, no dumb questions, this shit is COMPLICATED, and i didn't write it to be instantly accessible; i wrote it so that i dont have to guess which of the three different difficulty rating systems the simfile author used.

SM files are the main simfiles. every song you play in stepmania/outfox/openitg/notitg/etc has either a DWI, or SM, or SSC file that contains the actual arrow patterns. (there may be other file types that i dont know about)

you can use SM files or SSC files in all of my scripts that say SIMFILE or SM_FILE, etc.

you CANNOT use DWI files in my scripts, though. for that, have a look at my DWI to SSC converter wrapper around stepmania: https://github.com/stepmania/stepmania/pull/2066

dinytick commented 2 years ago

no problem! I assume that the .sm files have to be put in our home folder, is that correct?

teleshoes commented 2 years ago

as for properly calling it....im afraid you are SEVERAL steps away from doing that. first, you need to train the neural net with existing data.

this is NOT EASY to do, so ill just attach my training data. radar-training-data.gz -download it -decompress it gunzip radar-training-data.gz -and put it in $HOME/.cache/ddr-radar-feet/radar-training-data

then you can generate the neuralnets from the training data: ddr-radar-feet --ensure (this takes significant time, but only needs to be run once, or if you want to re-train it on new data)

and THEN run it to get the output, like this:

ddr-radar-feet singles expert ~/songs/DDR_18_A20PLUS/Hella\ Deep/Hella\ Deep.sm 
14.26

if that last one fails, you might not have simfile-radar in place, which is a necessary component to read the radar values from SM files. if you already know the stream/voltage/air/freeze/chaos values, you can pass them directly in and skip the SM file completely

teleshoes commented 2 years ago

if you DO wanna train it on your own data, put your songs here: ~/.stepmania/Songs/ e.g.: ~/.stepmania/Songs/DDR_18_A20PLUS/Hella\ Deep/Hella\ Deep.sm

and call ddr-radar-feet --ensure-training-radar-data

teleshoes commented 2 years ago

btw, ive been thinking about adding a few additional input neurons, like song-length and average-notes-per-second and max-notes-per-second, because SVAFC is not the most accurate measurement system for, say, stamina. (itg15 songs might show up as ddr-17, instead of 20+)

teleshoes commented 2 years ago

do let me know if you manage to get this working on an android device, that would be pretty cool

dinytick commented 2 years ago

image I couldn't get past the ensure step. radar-training-data is in the correct place.

image

teleshoes commented 2 years ago

no its not? its in root, not home (/, not /home/dinytick/)

edit: i see that the script is running rm -f, which may be a bug. edit again: doesnt appear to be a bug, it runs rm -f only if the file doesnt exist already

dinytick commented 2 years ago

oh geez, how did I screw that one up. i'll fix it.

EDIT: ok, so looks like it worked since it gives me this error now. image

dinytick commented 2 years ago

image ok so now I get this error. I made a songs folder to place all my sm files.

teleshoes commented 2 years ago

if that last one fails, you might not have simfile-radar in place, which is a necessary component to read the radar values from SM files. if you already know the stream/voltage/air/freeze/chaos values, you can pass them directly in and skip the SM file completely

dinytick commented 2 years ago

image Dang, I do have simfile-radar in my bin..

teleshoes commented 2 years ago

is ~/bin on your path? (either add it to your path or use /usr/bin or something) is simfile-radar executable? (chmod +x)

teleshoes commented 2 years ago

also, test simfile-radar on its own if you still have problems. it requires IPC::Open2, and very little else, but i've only tested it on gnu/linux, not android

dinytick commented 2 years ago

it is not in my path when I call the simfile

dinytick commented 2 years ago

image I am on ~ here. If I ls-a, bin and songs appear.

dinytick commented 2 years ago

image Thank you so much for putting up with me. I appreciate this. Do you have a paypal?

teleshoes commented 2 years ago

woo, victory! hey it was no problem at all, always glad when other folks can get some use out of my weird projects. i sure do: elliot.wolk@gmail.com

teleshoes commented 2 years ago

feel free to re-open this issue or whatever if you have any more issues :)