Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 19/4/17 19:28

souvlaki
Member

Mac version localization

Hello

I've got english version of Oni 1.21 up and running on macOS 10.12 (had to add a -novideos option though)

I also happen to have russian Windows release of Oni, and I absolutely love localization Бука has done. I also highly doubt they did a Mac release.

Is there any way of localizing the Mac version? Copying-and-pasting the "GameDataFolder" from ru release does not work.

Offline

#2 19/4/17 22:20

Iritscen
Moderator

Re: Mac version localization

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.p … 530#p51530


byproducts are fine, but where's the beef?

Offline

#3 20/4/17 1:50

jackoverfull
Member

Re: Mac version localization

On point, though, I remember trying the cocoa build of Oni with my Italian version (Feral actually provided it on the CD!) and it didn't work properly, all the texts were garbled up. Reason I always played on os 9 back then, using the carbon version (that didn't run properly on recent versions of OS X anyway).


"To the future, blinkin' an eye to the past!"

Offline

#4 20/4/17 8:08

Iritscen
Moderator

Re: Mac version localization

Hmm, not sure why that would have happened.  Does the Mac Italian data work with the current Intel Mac build of Oni?


byproducts are fine, but where's the beef?

Offline

#5 20/4/17 8:16

jackoverfull
Member

Re: Mac version localization

No idea, as my italian cd is very far from here, but didn't when I tried in 2011 or so.


"To the future, blinkin' an eye to the past!"

Offline

#6 20/4/17 9:01

Iritscen
Moderator

Re: Mac version localization

I see.  Well, the Intel build released in 2011 was an early beta and the current build is more reliable, but since I don't know what the issue was with the Italian data, I don't know if it would be more likely to work with the current 1.2.1 build.  If you ever try it again, let me know if it still has a problem.


byproducts are fine, but where's the beef?

Offline

#7 21/4/17 20:00

souvlaki
Member

Re: Mac version localization

Iritscen wrote:

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?

Offline

#8 21/4/17 20:08

souvlaki
Member

Re: Mac version localization

Oh, I clicked on your link again. Still not completely getting it.

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.

Offline

#9 21/4/17 21:57

Iritscen
Moderator

Re: Mac version localization

Ha, that's funny, it looks like we are working in parallel.  I just arrived at the solution of using ffmpeg to batch-convert WAV->AIFF myself today.  I don't think the XML SNDD data is necessary, but tomorrow I am going to actually try importing into Oni the AIFFs I converted, so I'll let you know how it goes.  At a glance, your script looks like it should work.  If you want to post the contents of debugger.txt and startup.txt here (preferably inside "code" tags), I will see them tomorrow morning before I do anything else, and might be able to determine the problem from that.


byproducts are fine, but where's the beef?

Offline

#10 Yesterday 7:07

paradox-01
Member

Re: Mac version localization

What about 44.1 kHz sounds, don't you need to watch out for them to turn them into 22.05 kHz?

Last edited by paradox-01 (Yesterday 7:12)

Offline

#11 Yesterday 7:49

Iritscen
Moderator

Re: Mac version localization

Oh yes, somehow I didn't see that last night.  The argument "-ar 22050" should also be supplied after the -acodec argument.  In my experiments with the Russian data, the sounds were already coming out in 22KHz sound, so I'm not sure if that was the problem.  I'll try importing in a bit.


byproducts are fine, but where's the beef?

Offline

Board footer

Powered by FluxBB