fholger / RocksmithToTab

Exports Rocksmith 2014 songs to Guitar Pro tabs
http://www.rocksmithtotab.de
BSD 2-Clause "Simplified" License
207 stars 36 forks source link

generated gpx wont open on guitar pro (android) #17

Open DeathEvil opened 10 years ago

DeathEvil commented 10 years ago

mobile version of guitar pro is able to open all guitar pro files (gp5, gpx etc) yet for some reason the tabs generated by the program in gpx don't open, while generated in gp5 open no problem. all other gpx tabs open on android so I'm suspecting there is an illegal header or something that prevents it from opening (it says the file is corrupted, but same file opens on desktop guitar pro). Not a big deal since it opens gp5, but worth mentioning.

thanks

fholger commented 10 years ago

I might take a look at it, but to be honest I don't expect to be able to fix this in a reasonable amount of effort. At its core, a gpx file is a sort of compressed container, like a zip file, only it's a ridiculous custom implementation. Currently I don't even compress the container, so that could be the first hurdle. Then, I don't fully understand the format of the uncompressed container, only enough to "fake it" reasonably well. It might be that my fake is good enough to open with GP6, but not with the Android version. And finally, the gpx container normally contains 5 files, but I only put the main score.gpif file into it. The purpose of the other 4 files is not entirely clear to me, and some of them are in a binary format, so that makes reverse-engineering them tedious. GP6 is fine with those other files missing, but it could be that the mobile version expects them.

Basically, I can try to rule out some of these possibilities, but whether I can fix the remaining ones, we'll see :)

DeathEvil commented 10 years ago

does the gp5 have a similar structure like gpx? the gp5 works on mobile... I emailed guitar pro team with a gpx generated by the converter to see if they can figure out why it opens on desktop but not mobile (and hopefully they will release an update)

thanks as usual!

DeathEvil commented 10 years ago

A quick workaround I just discovered is to open the gpx in desktop, and hit save. Now the file works on mobile and takes much less space (probably does the compression you mentioned)

fholger commented 10 years ago

gp5 and gpx are completely different. :)