There's also another problem – sometimes one can notice absence some of voices, effects, etc. After going to the main menu and back (Esc - Esc) all the didnt-play sounds play all at once. Seems like another buffer issue (though I'm not keen on low-level programming). Should I start a new thread?
]]>P.S.: There's an article for almost everything on our OniGalore wiki; here's the one for the Daodan DLL: http://wiki.oni2.net/Daodan_DLL
]]>The page also says something about Daodan patch, which I think is for the Windows version. Could you please elaborate on that?
]]>Except the text, of course. Are fonts/encodings hardcoded into the Mac Oni app?
]]>The script I created can't work around the language issue, but I suppose that if you performed the conversion process yourself, modeled on the script, you could replace the Russian WMDD resources (which describe the GUI) with the WMDDs from English Oni. Note that the Anniversary Edition replaces the default Main Menu and Options screen WMDDs with its own, so if you install the AE on top of the converted Windows-to-Mac data, it will "fix" the issue with the Russian WMDDs for those screens by changing them to English.
]]>#!/bin/sh
IFS="
"
IN_DIR="/path/to/SNDD-wav"
OUT_DIR="/path/to/SNDD-aif"
for WAV in `find $IN_DIR | grep .wav$`
do
FILENAME=$(basename "$WAV")
echo "Converting $FILENAME to IMA-compressed AIFF..."
ffmpeg -i "$IN_DIR/$FILENAME" -acodec adpcm_ima_qt -ar 22050 "$OUT_DIR/${FILENAME%.wav}$aif.aif"
done
Note that ".aif" is actually part of the name of every sound resource in Oni, whether it's a Windows .oni file consisting of WAV data or a Mac .oni file consisting of AIFF data. So you have to make sure that ffmpeg outputs the Mac sounds with a double suffix, ".aif.aif", before converting them back to .oni files with the OniSplit -create command. Also note the careful use of quote marks around the file name variables — this is necessary to handle a few resources that have spaces in their names.
Now that sounds are working, I will find the time soon to try a full conversion of Windows game data to Mac data.
]]>Do I need to preserve the XML data from .oni somehow? Do I need to change ".wav" to ".aif" somewhere inside the XML?
Thanks beforehand.
]]>Hi there. Yes, copying over the GDF from the Buka release won't work because Windows Oni data is not compatible with Mac Oni. If you are technically-inclined, see my post here about converting the Windows data to Mac data: _http://oni.bungie.org/forum/viewtopic.php?pid=51530#p51530
Thanks! Here is what I tried:
LEVEL="level1_Final.dat"
# extract wavs
mono OniSplit.exe -extract:wav ${LEVEL}_win/ ${RUWIN_GDF}${LEVEL}
cd ${LEVEL}_win
# convert to aiff
for i in `ls | grep wav`
do ffmpeg -loglevel panic -i $i -acodec adpcm_ima_qt "${i%.wav}.aif"
done
# remove wavs
rm *.wav
cd ..
# pack wavs into .oni
for i in `ls ${LEVEL}_win/ | grep .aif.aif`
do mono OniSplit.exe -create ${LEVEL}_new ${LEVEL}_win/$i
done
# unpack the level
mono OniSplit.exe -export ${LEVEL}_winall ${RUWIN_GDF}${LEVEL}
# replace old sounds with new sounds
cp -r ${LEVEL}_new/* ${LEVEL}_winall/
# pack everything
mono OniSplit.exe -import ${LEVEL}_winall/ newmaclevels/${LEVEL}
And of course I copied new level to GameDataFolder. Oni did not launch afterwise and startup.txt did not have the usual "Valid Level level11_Final.dat" line.
Did I get something wrong?
]]>