Darth_Sapiens

Kotor on android

Recommended Posts

I was wondering if someone could like make a Brotherhood of Shadows Port to Android, I don't have a computer and can't figure out how to separate all the files into override, modules and movies manually, if anyone can do this that would be great thx! :)

Share this post


Link to post
Share on other sites

I was wondering if someone could like make a Brotherhood of Shadows Port to Android, I don't have a computer and can't figure out how to separate all the files into override, modules and movies manually, if anyone can do this that would be great thx! :D

I can do that tomorrow and I will post a link here. I assume you just need the mod installed and then the result bundled up for you?

Share this post


Link to post
Share on other sites

For people who want to use tslpatcher: the patcher checks for a dialog.tlk file. If you extract just that from the OBB and put it in the "files" folder, you can connect to a PC and select that as the KOTOR directory in tslpatcher. You may also need to copy some 2das, if the mod does not include them.

You could also use a PC dialog.tlk, or the one from PC Response Moderation. The only annoyance is some things, such as settings, will have PC text (ex one option says "mouse look" instead of what it should be on Android.) Using the file from the OBB does not have that problem.

 

VLC will not play any wav files from the OBB. So something with them is definitely weird. Since modded streamwaves do not work, can I just delete the folder to save space?

 

EDIT: I got files from the OBB to play properly out of game. I'll attach before and after pictures for the hex edit necessary. Left is before, right is after. What format are the files, with the new header?

post-26018-0-53769700-1488004040_thumb.png

post-26018-0-40880800-1488004047_thumb.png

Share this post


Link to post
Share on other sites

(OK sorry about necro [and previous one]), but ffmpeg output for a random strreamwave is:

 

 

$ ffmpeg -i ba02cs001.wav
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with Android clang version 5.0.300080 (based on LLVM 5.0.300080)
  configuration: --arch=armeabi-v7a --as=arm-linux-androideabi-clang --cc=arm-linux-androideabi-clang --cxx=arm-linux-androideabi-clang++ --cross-prefix=arm-linux-androideabi- --disable-avdevice --disable-ffserver --disable-static --disable-symver --disable-lzma --enable-cross-compile --enable-gnutls --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-shared --prefix=/data/data/com.termux/files/usr --target-os=android --extra-libs=-landroid-glob --enable-neon
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[wav @ 0xb4f3b000] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'ba02cs001.wav':
  Duration: 00:00:00.48, bitrate: 177 kb/s
    Stream #0:0: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 22050 Hz, mono, u8, 176 kb/s
At least one output file must be specified

Share this post


Link to post
Share on other sites

Hello everyone,

I have owned the Android version of Kotor for a while now.
Some of you may know that the android version always has the english voice output, even here in germany. I wanted to somehow integrate the German audio files from my PC version into the android version. Editing the OBB files does not seem to be an option. Are there other options or do I have to live with it as it is?

Share this post


Link to post
Share on other sites
8 hours ago, Ian Starrider said:

Hello everyone,

I have owned the Android version of Kotor for a while now.
Some of you may know that the android version always has the english voice output, even here in germany. I wanted to somehow integrate the German audio files from my PC version into the android version. Editing the OBB files does not seem to be an option. Are there other options or do I have to live with it as it is?

I'm not that familiar with the audio file storage structure (in fact I didn't even know there were non-English voice versions of KOTOR on PC), but as a guess I would start by taking the entire audio file directory (which I think is most likely the 'streamwaves' folder, though possibly some in 'streamsounds' as well) from your PC installation and dumping it in the Override folder of your Android version.

If that doesn't work, you might need to batch change filenames of your German language audio to be the same as the English language versions, so that the Override folder does properly override the original English language voice files saved in the OBB. In most games that would involve renaming the 'de' part of filename to 'en'. See how you get on.

Share this post


Link to post
Share on other sites
17 hours ago, Legion said:

I'm not that familiar with the audio file storage structure (in fact I didn't even know there were non-English voice versions of KOTOR on PC), but as a guess I would start by taking the entire audio file directory (which I think is most likely the 'streamwaves' folder, though possibly some in 'streamsounds' as well) from your PC installation and dumping it in the Override folder of your Android version.

If that doesn't work, you might need to batch change filenames of your German language audio to be the same as the English language versions, so that the Override folder does properly override the original English language voice files saved in the OBB. In most games that would involve renaming the 'de' part of filename to 'en'. See how you get on.

I have already tried all this but without success.
Streamwaves folder and override folder added and files moved etc.

When editing OBB files, the app does not accept them and starts downloading the original obb files.

I guess I have tried everything possible.
If anyone else has an idea I would be grateful.
But so far I'm at the end of trying.

Share this post


Link to post
Share on other sites
2 hours ago, Ian Starrider said:

I have already tried all this but without success.
Streamwaves folder and override folder added and files moved etc.

When editing OBB files, the app does not accept them and starts downloading the original obb files.

I guess I have tried everything possible.
If anyone else has an idea I would be grateful.
But so far I'm at the end of trying.

It's highly likely that a full mod would need to be made in order to do something like this.

As I recall, not all text is stored in the strings of dialog.tlk, some are stored in the various GFF filetypes.

20 hours ago, Legion said:

If that doesn't work, you might need to batch change filenames of your German language audio to be the same as the English language versions, so that the Override folder does properly override the original English language voice files saved in the OBB. In most games that would involve renaming the 'de' part of filename to 'en'. See how you get on.

It would be worth checking a filename in specific to see if this is the case, for example, the first file in the "streamwaves" folder for me is "_m40acdart03999_.wav" when arranged by "date modified" anyway, that is the English installation of the game on Steam.

 

Organised by name and checking folders too "\streamwaves\globe\band01\NGLOBEBAND01000_.wav" for example.

 

It's quite the oversight that different languages were neglected on the mobile versions of the game.

 

On a somewhat related note, I was looking into changing the hardcoded elements of the GUI on Android today for my port of KotOR1 to KotOR2 and any other Total Conversions that might need that information one day. Tutorial #24 : https://deadlystream.com/topic/6886-tutorial-kotor-modding-tutorial-series/

Though it doesn't look like I will finish finding them at the moment.

 

Edited by Thor110
Hard Coded GUI Values
  • Like 1

Share this post


Link to post
Share on other sites

Hello everyone,

I recently edited the UI of K1 so that the joypad layout of the buttons does not resemble the Xbox controllers but those of the Nintendo consoles. I managed to do that very well.

Now I wanted to do the same for K2.
However, for some reason I can't open the OBB files on K2. I always get the message that the file is corrupted. But this makes no sense as the game runs without any problems.

Would someone be so kind to extract the TGAs from K2 that contain the joypad buttons or at least give me the exact file names so that I can adapt my already created textures to them? Thanks in advance.

Share this post


Link to post
Share on other sites
22 minutes ago, Ian Starrider said:

Hello everyone,

I recently edited the UI of K1 so that the joypad layout of the buttons does not resemble the Xbox controllers but those of the Nintendo consoles. I managed to do that very well.

Now I wanted to do the same for K2.
However, for some reason I can't open the OBB files on K2. I always get the message that the file is corrupted. But this makes no sense as the game runs without any problems.

Would someone be so kind to extract the TGAs from K2 that contain the joypad buttons or at least give me the exact file names so that I can adapt my already created textures to them? Thanks in advance.

If I recall, these textures can be found in the Aspyr version of the game on PC.

For example:

cus_gpad_hand.jpg.4478dd009b8e1d7e418905525fb18141.jpg

Share this post


Link to post
Share on other sites
Posted (edited)

Thats right. I edited them already. But i think the Names of the textures are different on the android version. Because nothing changed if i move it to the override folder. (all other skins in it work fine)

Here is the RAR File with the TGAs based on the  up to date version of the gog.com edition. 

K2 Nintendo Buttons for Android.rar

Edited by Ian Starrider

Share this post


Link to post
Share on other sites
Posted (edited)
9 hours ago, Ian Starrider said:

Thats right. I edited them already. But i think the Names of the textures are different on the android version. Because nothing changed if i move it to the override folder. (all other skins in it work fine)

Here is the RAR File with the TGAs based on the  up to date version of the gog.com edition. 

K2 Nintendo Buttons for Android.rar 195.91 kB · 1 download

It appears that I was wrong and they are not the same as released in the Aspyr version on PC, so it seems we will have to wait for someone to crack open the .obb file and extract the relevant files, I did look into this but had no success, might look into it again soon.

EDIT : here are the contents of the override folder, that are contained within "main.213.com.aspyr.swkotorii.obb"

android override folder.7z

Should be everything anyone needs.

Edited by Thor110
Android Override Folder Contents
  • Like 1
  • Light Side Points 1

Share this post


Link to post
Share on other sites
2 hours ago, Ian Starrider said:

Perfect. Thank you very much.

You're welcome and though it seems insignificant, I just noticed that there is an error in the French version of one of the hints.

ihlp_5_fre.jpg.7bc2d38c8579c1be151671b6c40ccfde.jpg

It says Trask instead of 3C-FD, I made a fixed version here.

ihlp_5_fre.tga

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.