Sign in to follow this  
Thor110

[TUTORIAL] - KotOR Modding Tutorial Series

Recommended Posts

Posted (edited)

Download Downloads for my KotOR Modding Tutorial Series are available in the post below and on the ModDB pages.

Update Please let me know how you get on with these tutorials, if you have any problems or suggestions for how I could improve anything even grammar / formatting I would really appreciate it, I hope to construct a tutorial series that covers modding of both the Expanded Galaxy Project and both KotOR games from basic modifications to Total Conversion Modifications set in the Old Republic Era of the Star Wars Universe, anything beyond this would require more work on your part, I believe it would be possible to make some interesting stories using the Odyssey engine for Point & Click type games or RPGs in general, but I believe it is better suited towards the Star Wars Universe, more specifically the Old Republic Era due to the abundance of content available in both games, but it could also be re-purposed for other Star Wars Stories from any time.

https://www.moddb.com/mods/expanded-galaxy-project-kotor-12/downloads/kotor-modding-tutorial-series

I will be posting my tutorials on ModDB as well, here is my first link which is a rough tutorial and overview of the future tutorials I have planned, both mods pages on ModDB will also have files to go alongside each mod and help streamline the process of creating levels for both games in the KotOR series and for the Expanded Galaxy Project.

https://www.moddb.com/mods/kotor-ii-tsl-expanded-galaxy/tutorials/streamlining-module-creation

01 - [TUTORIAL] - Creating a Module for TSL using a KotOR Map!

Spoiler

Previous This tutorial has been updated and I have released it as an .odt series on KotOR modding I am starting to write, I am going to be writing a lot more tutorials throughout the process of creating my mods, documenting the entire process and writing a tutorial for each individual element of the game that I learn to modify, change or add to in order to help others create great content for both of the KotOR games and the Expanded Galaxy Project.

Tools Required

Kotor Tool
MDLEdit
K-GFF Editor
Bulk Rename Utility ( or Patience )

A copy of K1 & K2 ( Steam, GoG or original 4 CD version )

This tutorial will cover how to port the first module of the Endar Spire from K1 into K2, but the steps are very much the same for any module in the game. ( Open Spoilers to reveal images and instructions )

Layout Files - First open Kotor Tool, make sure your game directories are set, then open up BIF's>layouts.bif & extract "m01aa.lyt".

Spoiler

Extract "m01aa.lyt" to the override directory for your module"

Screenshot_4.png

The Lightmaps

Spoiler

Extract "lightmaps.bif" ( not numbered, the first one ) to a folder, delete everything in the folder except m01aa, so click the first m01ab file and scroll to the bottom, then hold shift and click the last file to make this easier.Screenshot_5.png

Model Files

Spoiler

Then extract the entire "models.bif" directory ( this will save you a lot of time ) and delete everything except m01aa ( .mdl, .mdx and .wok files )Screenshot_6.png

Module File Contents

Spoiler

Then open RIM's>Modules> and extract end_m01aa.rim & end_m01aa_s.rim directories.Screenshot_1.pngScreenshot_2.png

MDLEdit - Converting Map Files!

Spoiler

Open MDLEdit, set it to KOTOR1 mode, then batch > convert > to ascii, all of the models for m01aa.

Make sure to set the mode for K1 before converting to ascii and then set the mode back to K2 when converting to binary.
Screenshot_14.png.b733d75d1ca2922074216cf17a149042.pngScreenshot_13.png.5b123d1702f44e59bd970674b2855811.png
Screenshot_11.png.bb15831e9f8c90f9fad69eb450d59961.pngScreenshot_12.png.349b130892ad1510cc9a5b292b70b05c.png

When it is complete, set the program to KOTOR2 mode, then batch > convert > to binary all the ascii files you just converted ( arrange by type to easily select the ascii files )

You will also need to extract all three texture packs, the minimap and the loading screen ( in tpc format is the best )

Texture Packs, Loading Screen & Minimap.

Spoiler

Extract "swpc_text_tpa" "tpb" & "tpc" if you want to individually single out which .tpc files you need for the module you are welcome to do so, I will also write a short / easy and quick way to get just the .tga's necessary for an individual module.Screenshot_3.png
Minimap
Screenshot_7.png.fc4a475a6f2cde4c50b2ff037336684a.png
Loading Screen
Screenshot_8.png.cc5e733763971f264ca2c561700428d5.png

 

I have just extracted the three texture packs in their entirety in order to save singling out which files go to which modules because it is easier for the moment and suits the purpose of my project.

Use K-GFF Editor to remove any references to scripts in the .are, .git and .ifo files. Change the Name String Reference to -1, right click and Add String, change this string to "Endar Spire - Above Taris" ( but you do not have to remove the entries for this module to work )

Spoiler

Use K-GFF Editor to remove these references.

Use Kotor Tool, click the ERF button, save the modules as "end_m01aa.mod"(make sure to include the .mod extension) set the dropdown to MOD and select add files, then add the .are, .ifo, .git, .pth and .utd files.

Spoiler

Use the ERF button and build the module.
Screenshot_10.png.0dacf1f0c7759c76b5d39f0f9762c1c6.png
Screenshot_9.png

Make sure to delete the original maps and ascii conversions, as well as to rename all of the files using patience or I suggest Bulk Rename Utility and remove every reference of "-mdledit-mdledit" from the .mdl, .mdx and .wok files. ( you may also want the .dwk & .pwk files )

After creating the module copy it to your Modules folder and copy the rest of the files over to the override folder, you can then use the warp cheat to access the level "warp end_m01aa"

This is just a rough write up of the tutorial I have just converted this module again from scratch at the same time and will do it again taking screenshots and rewriting this short tutorial.~
Download Link  https://drive.google.com/file/d/1NWCbdvb4mk44EHVOYPUfUdgKTJh7bBxD/view?usp=sharing
You will need 7zip to extract the contents.

Currently the stars and lasers / anything going on outside does not appear, if you wish to fix this just extract the missing contents from the texture packs.

K1 & K2 You should also be able to use this tutorial to make a module for both KotOR games as well as my Expanded Galaxy Mod, I will also update it so that completely custom areas can be made using parts already in the game allowing for much more diverse level creation.

Note It seems the process is the same for porting TSLmodules to KotOR, but for the moment I am unable to port the outside areas of Telos, Dxun or Dantooine due to foliage being spread across the map due to Vector Calculations being off during the conversion process. ( Noting that you need to be in K2 mode using MDLEdit when converting to ASCII then K1 mode when converting back to binary, exactly the same process I used for KotOR to TSL works in reverse )

Spoiler

These are the current results, very similar to Telos Restoration Zone and Dantooine.

DXUN_K1_0001a.thumb.png.72f072211c0c37dec50385973cdae6b6.png

Us

Useful Links for learning to mod TSL & KotOR

Spoiler

Links that I have found helpful

My most recent attempts have lead me to this tutorial - Adding Planets To Galaxy Map in TSL
https://web.archive.org/web/20130124075620/http://www.lucasforums.com/showthread.php?t=169825
I have also used this tutorial to name the module - Naming a custom module
https://web.archive.org/web/20121204061936/http://www.lucasforums.com/showthread.php?t=194986
This tutorial helped me add loading screens to my modules - Custom Loadscreens
https://web.archive.org/web/20150911045357/http://www.lucasforums.com/showthread.php?t=194903
Thanks to this next tutorial I was able to add custom music to my module - Adding Custom Music to KOTOR
https://web.archive.org/web/20121016090124/http://www.lucasforums.com/showthread.php?t=180773
This tutorial I have not used yet but looks really well made and is for adding custom doors - Door Modelling Tutorial
https://web.archive.org/web/20151120115337/http://www.lucasforums.com/showthread.php?t=186921&highlight=door
A long series of video tutorials for modelling a new area - Modelling an new area!
https://web.archive.org/web/20150912222837/http://www.lucasforums.com/showthread.php?t=195261
some of the tutorials link to downloads for the actual tutorial itself, luckily some if not most of the mediafire links are still active, you just have to edit out the wayback machine portion of the url after following the link.

I have also come across these tutorials on youtube which others might find handy and I am noting down here for reference / credit to any tutorials that have helped me along my way.
New Area in KotOR Part 1/3 - I haven't used any of these videos yet but they cover information I might need.
https://www.youtube.com/watch?v=NvXEX1acl4I
Modules Part 1 Overview - The uploader of this video also has lot's of other kotor related modding videos that look and sound useful.
https://www.youtube.com/watch?v=ykvg3Bqohqs
KotOR 1 & 2 Animated Texture Tutorial - This tutorial will definitely be helpful for making modifications to the game.
https://www.youtube.com/watch?v=GBjWzNFdgg8
Usung an example set by Effix in the Mod Requests section I have made a little more progress and managed to load the map correctly by including the .mdx, .wok and .lyt files.
https://deadlystream.com/topic/6665-tsl-yavin-station/

A few tutorials I was planning to use, but don't need for the moment.
https://deadlystream.com/topic/4748-lightmapping-an-area-model/
https://deadlystream.com/topic/4743-how-to-reskin-a-module/

Thor110

Edited by Thor110
KotOR Modding Tutorial Series!
  • Like 3
  • Light Side Points 1

Share this post


Link to post
Share on other sites

This topic has been updated to reflect the KotOR modding tutorial series instead of just the first tutorial I wrote on DeadlyStream, the tutorial series is available and are in ( .odt ) format for OpenOffice, I have released the first version of the tutorial series on ModDB as well as linked to it in the first post, I will also be archiving all versions of my Tutorial Series in this post.

I will be writing it as I am working on the Expanded Galaxy Project, so it will be very in-depth / thorough, but I will try to make sure it is split into relevant sections and written to be quite openly applicable / re-usable for people who may want to make similar changes for different reasons.

Update : The latest release ( v0_0_5 ) many of the documents only contain a short paragraph on what the tutorial will cover as I learn to make these changes and as I write the tutorial series that is aimed at making a small mod or total conversion for either game, also covering individual changes in enough detail to help people make any change I learn to make or cover in the tutorial series without having to follow the entire series at once.

KotOR Modding Tutorial Series v0_0_5 Collection.zip - v0_0_5 - this is the latest version of the KotOR Modding Tutorial Series.

Old Versions

Spoiler

KotOR Modding Tutorial Series v0_0_1.zip - v0_0_1 - The first version of the KotOR Modding Tutorial Series.

KotOR Modding Tutorial Series v0_0_2.zip - v0_0_2 - contains files v0_0_1 does not as well as v0_0_1 tutorials.

KotOR Modding Tutorial Series v0_0_3 One Extra File Only.zip - v0_0_3 - this is only one file not in previous versions.

KotOR Modding Tutorial Series v0_0_4 Another File.zip - v0_0_4 - which is also one file not in previous versions.

 

Edited by Thor110
Archiving versions of the KotOR Modding Tutorial Series.

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.
Note: Your post will require moderator approval before it will be visible.

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.

Sign in to follow this