Leaderboard


Popular Content

Showing content with the highest reputation on 06/15/2021 in all areas

  1. 1 point

    Version 0.92

    1,072 downloads

    This mod fixes UI stretching that happens when playing K2 on ultrawide resolutions (21:9). In addition, even after patching the game .exe with UniWS to play in ultrawide, your character's replies are invisible, making the game impossible to play. I provide a method to fix this issue (using Hex editing). Simply fixing the UI stretching is unsatisfactory, as the game UI is not adapted for ultrawide screens. This results in an elongated, ugly and impractical UI. The text boxes are too large,the buttons too wide and too spread out on the screen. As a result, interacting with the UI is tiresome and requires way too much eye and mouse motion. Therefore I opted to redesign the game UI so that everything is centered on the screen and easier to access. The downside is that many spots are left black, which is not visually pleasing. I believe the letterboxing fix can be useful to people running 1366x768 and who cannot see dialogs. Disclaimer: This mod was only tested with the GoG version of the game (i.e. without the Aspyr patch), upscaled using UniWS to 3440x1440. I do not know how the UI files would look using either Flawless Widescreen or the Aspyr version. I have not tried any other ultrawide resolution. The UI fix is not fully tested, and some parts of the game may still contain some stretched elements. Installation instructions - stretched UI: Simply download and extract ultrawide_ui_fixes.zip, then copy the files from the downloaded override folder into your game override folder. Installation instructions - letterboxing fix: Here is the entire procedure to properly patch your game exe so that it runs in ultrawide. We are aiming at doing 3 things: 1. Use UniWS to automatically patch your swkotor2.exe to the right resolution, following this video 2. Manually Hex edit your swkotor2.exe to play movies in your native resolution, following this video. The hidden benefit is that it will speed up your game loading because you will not have to change resolutions to play the logos movie. 3. Manually Hex edit the game to change the letterboxing scaling, restoring your ability to see dialog options in game. In K1, this was done by the excellent KotOR High Resolution Menus, but there seems to be no equivalent for K2. Before doing any of this, backup your game exe !! 1. I will not provide any instruction for step 1 because UniWS is pretty straightforward. 2. Even though step 2 is well explaines in Xuul's video, I will provide here text instructions. Once you have performed step 1, you need to download and install a hex editor (such as HxD). Open your swkotor2.exe with your hexadecimal editor, and look for the Hex strings: 80 02 00 00 75 15 81 3D E8 C1 80 00 E0 01 80 02 00 00 C7 44 24 10 E0 01 In both these lines, 80 02 and E0 01 are the width (respectively height) at which videos are played, in hexadecimal. You need to change them with your desired width and height. First, use a hexadecimal converter to convert your desired width and height into hexadecimal. For the hexadecimal values to be read by the game, you need to swap the digits pair-wise for each value (if that is not clear, an example is provided below). Finally, you can replace 80 02 and E 01 by your own values in the lines above. Example: for 3440x1440. First you convert them to hexadecimal, giving 0D 70 and 05 A0. Then you swap the two pairs of figures, giving 70 0D and A0 05. Then you just need to replace 80 02 by 70 0D, and E0 01 by A0 05. The resulting lines should look like: 70 0D 00 00 75 15 81 3D E8 C1 80 00 A0 05 70 0D 00 00 C7 44 24 10 A0 05 That was step 2. Don't close the hex editor, we still have one step to do. 3. For step 3, we need to locate the letterbox scaling value into the game exe. You need to locate the hex string 5F 70 00 00 B9 6D DB 3E 20 EE 70 00 00 A7 40 00 The value of the letterbox scaling is B9 6D DB 3E. This is too small, making the bottom part of the letterbox -hence your dialog options- invisible on ultrawide. You need to replace it with a higher value ( 4A 92 A4 3E, as suggested for widescreen by K1 HR Menus works fine, but feel free to enter your own value). You need to replace B9 6D DB 3E with 4A 92 A4 3E, giving: 5F 70 00 00 4A 92 A4 3E 20 EE 70 00 00 A7 40 00 Now save and enjoy ! Known issues: the feat/power selection tree, at character creation or levelling up doesn't look nice and there's too much space between the icons. Unfortunately, it doesn't seem to scale like the rest of the UI, and I don't know how to fix it for now loading screens still look stretched, the solution here is to edit the loading screens directly and not the UI I did not rescale the pazaak screen, as I would also need to rescale the background pazaak texture for it not to be ugly Incompatibilities: This mod will not be compatible with any mod that alters the UI. The only I can think of right now is TSL galaxy map fix pack, at least the version which changes the planet position. My mod will put the planet positions to their vanilla spot. Credits: Visual KOTOR Gui Editor, an awesome tool for gui editing KOTOR Tool, to extract game files tpcview KotOR High Resolution Menu for finding the letterboxing fix in K1,
  2. 1 point
    Hey Salk thanks, I'm glad you appreciate it! I have more coming along, nearly finished, for a second there I thought they would never see the light of day after a scare I got yesterday with some faulty RAM. Why not release your stuff by the way? The One and Saul Karath don't drop their module specific weapons anymore, the latter being replaced by the general assassin pistol. Bandon's saber only drops in the Xbox version so I didn't need to do anything there.
  3. 1 point
    I have absolutely no idea as I don't do 3D modelling for the game, at least not yet. The most I have done is some simple edits and I messed them up myself lol
  4. 1 point
    Aaaand here is the update. At last I understood what was wrong and why I couldn't change npc clothes in the man26XX modules. It's because race parameter of the npcs in these modules was empty. So now it works perfectly
  5. 1 point
    I have no idea. The one Jedi Knight mods repository I used to know burnt down. Literally, if the message is to be believed, the datacenter had a fire, heh.
  6. 0 points

    Version 1.0 beta1

    439 downloads

    toolkit is a GUI application that can be used to preview, extract, edit and create KotOR and TSL resources. Part of reone engine project. ## Features Extract BIF, RIM and ERF archives Create RIM, ERF or MOD archive from directory Preview and export almost every resource type, including 3D models, images and audio files Export TPC as TGA / TXI Export encoded WAV as regular WAV / MP3 Visually edit 2DA, GFF, TLK, LIP, SSF, NCS and plaintext files Decompile NCS to NSS-like pseudocode Compose LIP files from text and audio files https://github.com/seedhartha/reone/wiki/Tooling
  7. 0 points

    Version 3.10.3

    2,477 downloads

    This add-on is a fork of KotorBlender, upgraded to support newer versions of Blender. KotorBlender is in turn based on NeverBlender, forked from version 1.23a. ## Features - Import & export MDL models, including walkmeshes - Import & export LYT files - Import & export PTH files ## Installation 1. Clone this repository or download the latest release of KotorBlender from Deadly Stream 2. If you have cloned the repository, create a ZIP archive containing the **io_scene_kotor** directory 3. From Edit → Preferences → Add-ons in Blender, install the add-on from the ZIP archive and enable it by ticking a box next to "Import-Export: KotorBlender" 4. Alternatively, if you want to contribute to KotorBlender, you may want to create a symbolic link to the local repository in the Blender add-ons directory, typically located at `C:/Users/{user}/AppData/Roaming/Blender Foundation/Blender/{version}/scripts/addons`. 1. `mklink /D io_scene_kotor {repo}/io_scene_kotor` ## Usage ### Data Preparation Extract models, textures, walkmeshes, LYT and PTH files into a working directory, using a tool of your choice, e.g. reone toolkit. Recommended directory structure: - *data* — extract all BIF archives here without subdirectories - *texturepacks* - *swpc_tex_tpa* — extract swpc_tex_tpa ERF archive here If you plan to edit textures, batch-convert TPC to TGA / TXI files using **reone toolkit**, although TPC textures are also supported by KotorBlender. ### Model Import and Export 1. Import via File → Import → KotOR Model (.mdl) 2. Select top-level MDL root object to be exported 3. Export via File → Export → KotOR Model (.mdl) ### Editing Animations To edit list of model animations and corresponding events, select MDL root object and navigate to Object → KotOR Animations. KotorBlender supports both object and armature-based edits. To create an armature from objects, navigate to KotOR Animations → Armature and press Rebuild Armature and Apply Object Keyframes. Before exporting a model, make sure to copy armature keyframes back to objects by pressing Unapply Object Keyframes. ### Lightmapping 1. Select objects for which you want lightmaps to be recreated, or unselect all objects to recreate all lightmaps 2. Press KotOR → Lightmaps → Bake (auto) UV mapping: 1. Select objects having the same lightmap texture and enter Edit mode 2. For every object, ensure that `UVMap_lm` UV layer is active 3. Select all faces and unwrap UVs via UV → Lightmap Pack, increase Margin to avoid face overlapping Fine-tuning: 1. Increase lightmap image size via UV Editing → Image → Resize 2. Tweak ambient color via Scene → World → Surface → Color 3. Manually toggle rendering of objects in Outliner and press KotOR → Lightmaps → Bake (manual) 4. In Scene → Render, set Device to GPU Compute to improve performance, set Render Engine to Cycles if not already 5. In Scene → Render → Sampling → Render increase Max Samples to improve quality ### Minimap Rendering 1. Press KotOR → Minimap → Render (auto) 2. Open "Render Result" image in Image Editor and save it as "lbl_map{modulename}.tga" 3. Open "MinimapCoords" text in Text Editor and copy-paste generated properties into module .ARE file using any GFF editor Fine-tuning: 1. Tweak background color via Scene → World → Surface → Color 2. Manually toggle rendering of objects in Outliner and press KotOR → Minimap → Render (manual) ### Connecting Rooms 1. Select a room walkmesh 2. Enter Edit mode and select two vertices adjacent to another room 3. Determine 0-based index of the other room into the LYT file 4. Enter Vertex Paint mode and set brush color to (0.0, G, 0.0), where G = (200 + room index) / 255 5. Ensure that brush blending mode is set to Mix, and brush strength is set to 1.0 6. Paint over the selected vertices ### Editing Paths 1. Extract PTH file from the module's RIM file, e.g. "modules/danm13_s.rim" (Kotor Tool, reone toolkit, etc.) 2. Import PTH into Blender via File → Import → KotOR Path (.pth) 3. Create/move path points, or modify path connections via Object Properties 4. Export PTH via File → Export → KotOR Path (.pth) ## Compatibility Known to work with Blender versions ranging from 3.3 to 4.0. ## License GPL 3.0 or later