When I use ray2get and try to open the ray2get.py file, it opens the python shell for an instant and then immediately closes. I want to use this to import my own custom music, but alas it won't work. Any help?
Put some WAV.
.....enc will convert any wav placed nearby, into APM
if not, edit the second bat, just by placing correct file name.
Use attached Ray2Get 1.0 to decode APM to WAV in case if 2.0 doesn't work.
__________
edit. 2021
In Windows there is no need to use in batch script "python" before executing Ray2get. The script won't work this way.
Exemplary script for converting all APM files to WAV (go to Rayman 2\Data\World\Sound and save it in notepad as .bat and place Ray2Get nearby):
Code:
@echo off
echo Starting conversion...
for %%f in (*.apm) do echo "%%f" & ray2get di "%%f"
echo Converted.
@echo on
pause
I just fixed a major issue involving the file header; due to a stupid endianness mistake of mine I only discovered slightly too late, ray2get wouldn't even open apm files at all, unless they were generated previously by ray2get. That means a wav->apm->wav process would work, but trying to decode from apm to wav with the original files from the game wouldn't work.
I updated the GitHub repository, you might want to try again with the fixed version.