Jump to content


PorygonZRocks

Member Since 23 May 2016
Offline Last Active Yesterday, 11:29 PM
****-

Topics I've Started

Editing Android UI

14 January 2018 - 11:20 PM

Looking at the OBBs, I found out that and_main_bg.tga and and_main_logo.tga are the background and logo on the main menu (pretty obvious, but never looked at it before). By editing those and putting them in the override, you can change them, and possibly other images, I'm going to look more soon. I've attached a screenshot, I edited the K1R launcher into two files, and photoshopped on a border. (Ignore the numbers in the corner, I use GLTools to show my FPS).
It looks like the files beginning with and_* are Android-specific (not sure if iOS uses the same file names). These likely could customize the UI more.

Editing offsets in binary 2DAs

09 January 2018 - 05:23 AM

I know they're 16 bit integers, but are they the number of bytes into the data section, or what? And is there any delimiting character, or since they're all the same size, do I just put one right after the other? And lastly, I would use a short to represent one in Java, correct?

[WIP] (b1.0.0) KOTORPatcher - TSLPatcher-like app for Android

24 November 2017 - 05:25 PM

So far, this app is very basic, and lacks most of TSLPatcher's features. The only thing it currently can do is copy files from tslpatchdata to the proper folders, and patch 2DA files. However, I plan to try to add more features from TSLPatcher.
You can download the latest release version of the app here, or contribute here. The app is licensed under the GPLv3 (not 3+, just 3). For more details, press the licenses button in-app, or look on the source repo.
Bugs:
 • Please report!
Feature Progress:
 • Copying files...              ✔
 • Editing 2DAs...               ✔
 • Editing TLKs...               ❌
 • Editing GFFs...               ❌
 • Editing MODs...               ❌
 • File selector...              ✔
 • Namespaces...                 ❌
 • Show info.rtf...              ❌
 • Other TSLPatcher features?... ❌
Changelog:
b1.0.0 {13}

  • REQUIRES REINSTALL - Changed signing key (I'm sorry, I forgot the old one)
  • Not doing debug builds any more
   
  + 2DA support (thanks a ton @peedeeboy!)
  + Option to create a 2DA from scratch (test)
  + Do not install music or launcher (not supported by Android KOTOR)

  • Log now updates while in progress
  • App no longer freezes when installing mods

[TOOL] xoreos-tools for Termux on Android

14 November 2017 - 12:51 PM

I've compiled xoreos-tools for armv7, and collected all the necessary libraries, and packaged them all into a .deb package for Termux (a really cool terminal for Android). You can install it in Termux (will not work on Debian or Ubuntu) by running
wget https://gitlab.com/PorygonZRocks/xoreos-tools-termux/raw/master/xoreos-tools-termux_armhf_0.0.5.1_arm.deb && apt install ./xoreos-tools-termux_armhf_0.0.5.1_arm.deb 
.
After doing that, you also need to install an app I made, because the xoreos-tools require the file "/lib/ld-linux.so.3". I've hex edited it to another path, but Termux home is too long, so I had to make an app with a really short package name. (Apk coming soon.) EDIT: Apk uploaded here.
The source for my deb is here. Also, the package includes a bunch of man pages with licenses, run "man xoreos-tools-termux-sources" to see more. The tools also come with man pages, run "man [tool]" to see how to use it. The source for my app is here.
I've put this under WIP instead of general because I'm hoping that I can get arm(el/v6), x86 and x64 (maybe MIPS, anybody know if KOTOR for Android supports MIPS?), so that it works for all devices. Currently, I only have armhf/armv7. I need a /lib/ld-linux.so* from each arch (I think MIPS is /lib/ld.so*), and xoreos-tools compiled, and all the libs (see source for list) used (xoreos-tools provides x86 and x64 binaries, if anybody could run ldd on them and let me know, it would help.)
Since these are just tools, you have to still manually do things like editing, but it's a lot easier using text and XML (still hard). Note that after editing, you do NOT need to convert 2das back (KOTOR can parse plaintext 2das), but you DO need to convert back all other formats, like tlk or gff. I mainly did this for convert2da, but the others could help, and I thought I'd share it. Also, hopefully, someone more skilled than I might be able to make some sort of tool that will automatically edit.
EDIT: Sorry, after installing the deb, thentools area not set executable. Run "chmod -R 755 ~/../usr/bin/" to fix that, I'll see what I can do in the deb.

Is there a way to change the keybind for the console via swkotor.ini?

11 March 2017 - 05:30 PM

I noticed that on KOTOR for Android, the ini file contains options for things that would never/almost never be used on an Android, like hardware mouse, etc, as well as a resolution changing screen. I'm wondering if maybe the console could work using a virtual gamepad if, under the keymap section, the button for console is changed to an Android key. Does anybody know what Action it is, for Action###=###, if it is even in the file?