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

Unsupported file format: !C-l #18

Open
troudki opened this issue Mar 8, 2019 · 7 comments
Open

Unsupported file format: !C-l #18

troudki opened this issue Mar 8, 2019 · 7 comments

Comments

@troudki
Copy link

troudki commented Mar 8, 2019

Hi Simon,

I tried to use your tool to convert a ym music that we currently use in a game remake.

./ym2sn.py Return_to_Genesis1.ym ENV: set shape 0 hold=True [31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Parsing YM file... YM Format: !C-l Traceback (most recent call last): File "./ym2sn.py", line 2164, in <module> main() File "./ym2sn.py", line 2123, in main ym = YmReader(fd) File "./ym2sn.py", line 617, in __init__ self.__parse_header() File "./ym2sn.py", line 680, in __parse_header raise Exception('Unsupported file format: ' + ym_format) Exception: Unsupported file format: !C-l
Have we forgotten something ?
Bravo ! for this great tool

Return_to_Genesis1.ym.zip

Our remake
http://www.z-team.fr/return2genesis.html

@simondotm
Copy link
Owner

simondotm commented Mar 15, 2019

Hello there!
Yes, I should add this to the readme, but the script at present will not open raw YM files.

What I mean by "raw YM" is that YM files are in fact LHA archive files that contain the "actual" YM file within them. So if you have something like 7zip installed, open up your YM file with that, to reveal the inner YM file, extract that, and feed that to the script instead.

Its fiddly I know, but unfortunately LHA files are a bit tricky to support in Python so this is the only workaround I have at the moment!

Here's the converted VGM:
genesis1.zip

Best,
Simon

@simondotm
Copy link
Owner

By the way your project looks very cool. Out of interest what sound chip are you wanting to get this music running on?

@simondotm
Copy link
Owner

I've just updated the script to have a better command line parser. It now reports a more helpful error if the YM file fed to it is the LHA archive rather than the inner YM binary.

@troudki
Copy link
Author

troudki commented Mar 16, 2019

Thx Simon, your tool is perfect for SN76489 Chip on Sega Megadrive.. https://segaretro.org/SN76489
We will put your name in credits list in the next remake ;-)

@simondotm
Copy link
Owner

No worries, glad you found it useful! I knew there was an SN in the Sega Master System, but I didn't know until now that there was one in the Megadrive too!
Let me know how you get on.
Best
Simon

@simondotm
Copy link
Owner

BTW if the megadrive sound chip is similar to the master system, it has a LFSR tap on bit 16 for periodic noise, so that define in the script probably needs modifying for your music.

@troudki
Copy link
Author

troudki commented Mar 30, 2019

Hi Simon, I tried for a new remake in progress..I have messages below
WARNING: Noise tone 0 - should not happen!
ERROR: Noise is enabled at frequency 0 - unexpected
BVOLLEY1.BIN.zip

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

No branches or pull requests

2 participants