Darth333 Posted June 12, 2004 Share Posted June 12, 2004 This thread is outdated -> Please see new version here ////////////////////////////////////////// New threads pop up regularly at Holowan about how to install mods and what tools are required to start modding. This mini guide intends to give newcomers some additional help to get started and includes links to all the tools that are required to mod Kotor (experienced modders can also use it for reference purposes). * Mac users may want to read this thread first Sections of this guide: 1. PC version cheat codes 2. HOW TO INSTALL MODS - installing - uninstalling - conflicts 3. WHAT TOOLS DO I NEED TO START MODDING KOTOR (includes basic tips on how to use the tools) 3.1) Getting started 3.2) Retexturing, item making and modeling - 3.2.1) practical info concerning models and textures - 3.2.2) retexturing - 3.3.3) modeling 3.3) sounds 3.4) movies 3.5) Other mods: dialog editing, module (area) editing, scripting - 3.5.5) dialog editing - 3.5.6) scripting - 3.5.7) area editing 3.6) making mods compatible 3.7) other useful tools 4. OTHER PC version cheat codes: To get the pc version cheat codes and instructions on how to open the console, please refer to this thread in the Padawan's Lounge. . Cheat codes are very useful to test mods and some mods require you to use cheat codes to get some items. HOW TO INSTALL MODS: Installation Modders normally pack their mods with either winzip (.zip) or winrar (.rar ), which is similar - but better - than winzip. You can download Winrar for free here For the vast majority of the mods, you simply need to extract the files to your Override directory located by default in C:\ Program Files\LucasArts\SWKotOR but there are some exceptions: - files with a .mod extension go into the modules folder - .wav files go into a sound folder: follow the authors instructions concerning this as the destination folder may vary. - .lip files (lipsync files) go in the lips folder. - If a .tlk file is included in the download, then it goes directly into your SWkotor diectory WARNING! replacing the .tlk file may change the language of the game. Always backup your original .tlk file before replacing it. (I noramlly rename the original dialog.tlk file to dialog_o.tlk - the "o" stands for Original and then I drop the modified dialog.tlk file in my SWKotOR folder). In any event, modders normally include a readme file with their mods: this is where you should always start (in fact modders should always include a readme - to those who don't... Remember this when you start modding ) I have one recommendation when you install mods: keep a backup of your saved games in case something happens or save often and keep a good amount of saved games ( I keep savegames of my arrival at each planet, before leaving the Ebon Hawk and at some major points as well - if you start modding, you wont regret having extra savegames at strategic points in the game for testing purposes). Uninstall: Just delete the files. Some mods come with an automatic installer and maybe removed via the Add/remove programs function in Windows. Conflicts: Some mods don't like each other but don't worry, those problems are normally due to the fact that two or more mods are using files with the same name. Most often it's a .2da file conflict that occurs when you have two mods using the same .2da file (per example: appearance.2da, heads.2da, spells.2da, portraits.2da). cchargin released a tool called Kotor Mod Manager (KMM) that allows you to check for conflicting mods and exclude one of them. You can download cchargin's Mod Manager here. Note that KMM won't make mods compatible. It only allows you to detect conflicts and exclude some mods. There are 2 1/2 solutions to 2da conflicts : a) If you are lazy: identify the 2 mods using the same name (hehehe nothing can be done without a bit of searching ) and remove one of the mods from your override folder. (that's the price to pay for being lazy ). b) My favorite solution : you plunge into the world of modding, get Kotor tool (KT) and Microsoft .net (see "What do I need to start modding" below). Don't be afraid, this is a simple operation. Just for the example, we will use the appearance.2da files but all the .2da files work the same way - if you understand how to do it with this one, you'll be able to do it with other .2da files -->Open the apperance.2da file with the 2da file editor that you can find in the file menu of KT and load the problematic file. Or you can double click on the original .2da file in BIFs >2da.bif >2D Array. -->Step 2: check this thread If you are lost and want a simple and step by step example on how to edit an appearance.2da file, I suggest you download svösh's Revan redemption robes and follow the readme carefully. It's well explained and very easy to do. Download svösh's mod here All the other .2da files follow a similar pattern. On how to copy/paste a line in a .2da file, read this thread. Notice concerning spells.2da: If you have a conflict involving force powers and the spells.2da file you cannot simply move the force powers as you wish since the scripts contain a reference to a spells.2da line so you'll need to edit the script or the item in the case of armbands. If source code is not available in the download package, contact the authors. c) I said there were 2 1/2 solutions right? Then the last one would be get the Holowan plug-in. T7 did a wonderful job regrouping many mods here and solving conflicts problems for all of us. Even if you don't have conflicts, get the HL plug-in: it's a must have. Get the HL plug-in here. WHAT TOOLS DO I NEED TO START MODDING KOTOR Before everything: remember to always include a readme with your mods. Jackel made a good model where you only need to fill the blanks, right here....and [Force Persuade] you can include a link to Holowan Labs in your readme [/Force Persuade]. 3.1) Getting started You will need Fred Tetra's KotOR tool (KT), the "unofficial toolset'. You will also need to install Microsoft .NET if you want to be able to run Kotor tool. Go to Fred's website to get KT and .Net. (For those who are still on dial-up: Microsoft .NET is a 10MB download. There are two solutions: either you upgrade your internet connection or you read a book while downloading it.) It's amazing to see all what this utility can do and Fred continues to add new functionalities regularly. You can extract your files with KT and edit most of them directly with this tool. Oh and I'll repeat it another time: there is a useful readme that comes with KT T7nowhere made a very good introduction tutorial for Kotor Tool. Get T7's tutorial right here (It's getting a bit old but it's still a good way to get started). 3.2) Retexturing, item making and modeling 3.2.1) practical info concerning models and textures To access models : make sure that you check the box "build model BIF node in tree" in KT> tools >options . Then go to BIFs, models.bif. Textures are located in ERFs -> Texture Packs. Texture Packs. The textures located in swpc_tex_gui.erf are best used for icons and portraits (for the party selection table) mostly and some other stuff as well. The high - res textures are located in swpc_tex A The med - res textures are located in swpc_tex B The low - res textures are located in swpc_tex C 3.2.2) Retexturing a -: You need a graphic editor that supports the .tga format (MS Paint does not support the tga extension). - You can use Photoshop or Paint shop pro. Both have available trial versions. Some modders use other paint programs but these are the most commonly used but they are also $$$, especially Photoshop... There is also a freeware program for retexturing: GIMP that is pretty good. How to install Gimp easily: 1.Download and install: http://karolyrobert.hu/mofli/win-gimp/gtk+-2.4.3-setup.zip 2. Download and install: http://karolyrobert.hu/mofli/win-gimp/gimp-2.0.3-i586-setup.zip For Photoshop tutorials, see this web site b -: hex editor: you'll need one if you make new textures that are not simply replacing old ones. Get a good Hex editor here ($) and another one here You'll find more hex editors suggestions in this thread. c -: Gff editor if you want to edit .uti files (item files) to add your new items in the game (u can edit .uti files with KT but you need a .gff editor installed in the same folder to get it running also, sometimes you may need to edit your files directly with a .gff editor .) You'll find a tutorial on how to edit items with KotOR tool Here (most of it consists in selecting the properties from drop down menus) and with the GFF editor here (it's the "hard - old school way but you'll learn a lot doing it at least once.) For more advanced users, you can get useful technical info concerning the GFF format here. Proposed GFF editors: Here are 2 GFF editors you can use. I normally use Roboius or the custom made editor, depending on what i am doing. All three get the job done. --> Roboius' Modified Bioware GFF Editor already proposed by the Tools and mods sticky. --> Bioware's GFF editor (if you register your Kotor game, you can access the NWN stuff as well) You will find useful documentation concerning the GFF format, here ...and finally, for would be programmers, tk102 made an Activex component to help you make your own utility to manipulate GFF files here. - 3.2.3) Modeling a - If you want to make new models you'll need cchargins MDLOps available here and a 3d modeling program such as gmax (free] or 3ds max (30-day trial). Note that at this time there are still limitations on importing models into the game but cchargin is working on it: see this thread . For modeling tutorials, check this amazing thread made by master svösh: http://lucasforums.com/showthread.php?s=&threadid=134510 btw: don't PM me about modeling - I am a total n00b: best I could do was a set of blue balloons (which wasn't supposed to be a set of blue ballons - I must admit that I didn't really put any effort) b - You will also need the tools listed in the Retexturing section just above (Kotor tool, gff editor and hex editor). 3.3) Sounds: You can play the sound files located in the Streamwaves and streammusic folders with the Miles sound system If you want to be able to listen to the files with basically any normal application such as window media player, sound recorder, etc. You can decompress the files with Miles sound tools (same url as above) and then save in a new folder.Screenshot Once decompressed with Miles sound tools, you can also edit sounds with the sound recorder or another sound file editing application such as Goldwave http://www.goldwave.com and implement them in the game. You can play the sounds contained in the streamsounds folder with GoldWave. However, it opens the files at double speed so you have to go to effect/time warp and slow the speed to 50%. There are also some sounds located in SWKotor/Data/sounds.bif: you can extract those sounds with Kotor tool. 3.4) Movies Movie files are in bik format. To view them, get The RAD Video Tools (You need Bink and Smacker but both are included in the package). If you wish to edit movies, you can download a free 30 day trial of a great movie program called Camtasia Studio 2 This program has a feature to capture screens and convert to avi (Binkit converts avi to bik) start your game and anywhere (even cut-scences) you can capure the sequences you want. If you want to modify the audio get: Dubit also free and also from http://www.techsmith.com. 3.5) Other mods: dialog editing, module editing, scripting You always need Kotor tool and a GFF editor installed in the same folder as Kotor tool. Proposed GFF editors: (I know i already posted this above but some recent posts on the forum make me think that sometimes it's too complicated to read back 20 lines above...) Here are 2 GFF editors you can use. I normally use Roboius or the custom made editor, depending on what i am doing. All three get the job done. --> Roboius' Modified Bioware GFF Editor already proposed by the Tools and mods sticky. --> Bioware's GFF editor (if you register your Kotor game, you can access the NWN stuff as well) With this tool you can edit .dlg .utc, .tup, .utw, .utt, .git, .are, .ifo files etc. if you want but KT and tk102's bunch of utilities may save you a lot of time... You can get useful technical info concerning the GFF format here. ...and finally, for would be programmers, tk102 made an Activex component to help you make your own utility to manipulate GFF files here. 3.5.5) Dialog editing: difference between the .tlk file and the dlg files The tlk file contains all the text strings that the game will display in Kotor. You can modifiy existing strings in the tlk file with Nerwen's tlk editor and with tk102's KotORTLK (my favorite as you can search the 50 K entries or so too). However, when you can avoid it, do not edit the .tlk file because: (1) there is only 1 tlk file and it would easily cause conflicts (2) the size of the file is 5 MB (3) it would change the language of the game for players having non English versions of the game. If you want to edit dialogues, the .dlg files is where should go when you can (99% of the time). .dlg files contain all the branches of dialogues during the game. The original .dlg files can be used with any language version of the game as they refer to string numbers in the .tlk file. However, the changes you make depend on language but at least it does not change the entire game, the effects are "local", i.e limited to the modified branches of the dlg file. (the user wont see the text of a specific dlg if he has the game in another language - but the rest of the game will be functional - language parameters can be easiluy changed by the person who downloads the mod with a GFF editor). Tools: a - DLGEditor (GUI) , tk102’s latest creation and simply the best utility for editing dlg files and creating new dialogues: user friendly, a bunch of functions, etc. b - Kotor tool now includes an excellent dialogue editor as well as many other functions. KT and DLGEditor are complementary. Both of them have some functions that the other doesn't have. c - TK102's DLGedit text based application also allows you to edit .dlg files and to test drive your custom dialogs (take time to check the readme: it's almost a complete tutorial in itself) - if you work with DLGEditor, get this tool as well to add a few additional functions. d - KotorTLK: is a useful tool to search/modify entries in the .tlk file ( Also by TK102). e - DLGSearch: As TK102 wrote at pcgamemods, "DLGSearch is a command line utility that allows you to quickly search through all .dlg files in a game for any uses of a given dialog.tlk entry" f - If you like painful solutions...you can always edit dlg files with a GFFeditor (believe it or not, this was the only available tool not long ago...ouch! - In fact all my mods have been made with this "thing" ) 3.5.6) Scripting: Release your source code please! Kotor tool now has an integrated script compiler! It is quite useful when you work on an extrensive project. If you prefer or if you have just a few scripts to compile, I suggest HazardX script compiler. You need a script editor or if you don't have one, notepad will do the job (if you have windows, you have notepad): a -To make your scripts, simply type your code in notepad and once you're done, save with a .nss extension b - You'll need to compile your scripts with HazardX's script compiler/decompiler (once compiled you'll get a .ncs file, which is the compiled script. This is what you need for your mod. The .nss file is for reference purpose only but release it with your mod so that other modders can learn how it's done) On how to use the compiler and troubleshooting with the compiler, see this thread. Decompiling: If you place the script compiler in the same folder as Kotor tool, when you double click on the compiled scripts in the RIMs with Kotor tool, the .ncs files will be decompiled automatically. If you want to learn to understand decompiled scripts, refer to this site. Other useful tools for scripting: - FindRefs is another of tk102's genious product: this utility will allow you to search for a script reference, a global variable, or an object Tag within the .rim files, templates.bif, and scripts.bif. It can also seach for tag fields in the .ut* files. Once your search completed, you can also extract the files to another folder to edit them. - NCSRip: as the title indicates, this utility "will rip all .ncs (compiled script files) out of the *_s.rim files". This one is also by TK102 After this, you can decompile them all with HazardX script compiler/decompiler. - Global variable comparison tool by TK102: This utility allows you to compare the differences in Global Variables between two savegames. Quite useful if you want to add sidequests and stuff like that or simply check if some of your scripts that use global variables. - Not really a tool but to test you scripts quickly, you can use my Party manager & spawning armband [/b][/url]: this armband has four main functions: Add/remove original party members , Recruit/remove your custom npcs, Spawn npcs/creatures objects and test your custom scripts (Read instructions before using). For a practical trick to use the command prompt see this thread 3.5.7) Area editing, merchants, new npcs, etc. : Kotor tool now includes an area editor but unfortunately, only a few maps have been completed. This means that you will need to use a GFFeditor unless you pick up one of the maps that have been completed for the KT editor. You can edit most of the *.ut* (.uti, .utm. .utc., .utd, .utp, .utt) files directly with Kotor tool. Those that are not handled at this time (.utw and .uts) can be opened and edited with a GFF editor. Note that Bioware sometimes uses the same tag for two different objects in two different modules. This can sometimes lead to funny and less funny events during gameplay. Use tk102's FindRefs (see above) to search for identical tags. At other times, Bioware used the same file name, per example bandon001.utc on the Endar Spire and bandon001.utc on Manaan but with different tags and contents: this is also problematic so use KT search function to make sure there are no clones. You can find an area creation tutorial here The tutorial was made when we had very few modding tools and the dialogue section is really outdated now. It won't show you how to use the module editor in KOtor tool either as it did not existed at that time but you'll learn a lot about game mechanics. - Camera editing (.git files) CAMedit: tool to edit cameras in the .git files. ( Also by TK102) In any case, if you edit a .git file you'll need it because the GFFeditor corrupt the cameras. Fixing the cameras takes less than 2 minutes to do. 3.6 ) Making mods compatible KISS (Kotor Installer Script System) by TheO KISS v0.9: this tool/mod installer was made for modders to help them make their KotOR mods compatible with other mods. Among other things it can append or edit 2da and GFF files. Download here. Note: mods installed with the KISS tool may modify the chitin.key and you may end up having to uninstall the game manually if you want to uninstall it and unable to download official patches. 3.7 ) other useful tools: Here are some additional tools that I find quite useful: - Modified NWN explorer Allows you to view some game data, including .sav files. - TK102's Kotor Savegame Editor Simply the Best: Change your party stats, name, feats and powers, appearance, inventory, sounds, global variables, etc. Very useful to test your mods. New! v. 2.1.1 - Easy warping armband (by the author of this post): this armband will allow you to easily warp to any area while playing the game and without having to use cheats and look for the area cheat codes. Useful for testing your mods (Read instructions before using). I also made a Party manager and test your scripts armband to allow you to quickly verify if your custom scripts work as expected. Nothing to see with the great tools above but I find it quite practical. OTHER: Don't be afraid to experiment with the above utilities and looking at other people's mods. You'll learn a lot doing this (However, if you want to release a mod that uses some of their work, even partially, ask the author for permission to do so). Remember to check for updates of these utilities from time to time. Now what to do with these tools is beyond the scope of this mini guide. Please refer to T7's stick Do you Want to mod SW-KotOR? Then Start here Don't forget: there is also a useful search function on these forums… use it!!! Any suggestions and comments are welcomed If you find inaccuracies, pls report them and I will bring the proper corrections. Link to comment Share on other sites More sharing options...
svösh Posted June 12, 2004 Share Posted June 12, 2004 That’s is fantastic Darth333 you have outdone yourself This is Excellent !!!!!! and I vote this as sticky svösh Link to comment Share on other sites More sharing options...
Colma Adawin Posted June 12, 2004 Share Posted June 12, 2004 You've got my vote for this to be a sticky thread!!! MattCole Link to comment Share on other sites More sharing options...
Lorden Darkblade Posted June 12, 2004 Share Posted June 12, 2004 Originally posted by MattColejk You've got my vote for this to be a sticky thread!!! MattCole Agree. Link to comment Share on other sites More sharing options...
tk102 Posted June 12, 2004 Share Posted June 12, 2004 Great post. You earned this. Oops! I mean this. Link to comment Share on other sites More sharing options...
Doom_Dealer Posted June 12, 2004 Share Posted June 12, 2004 Nomination for new sticky thread!!!! lets make a tutorial stciky guys, im about to write a short, simple one for module editing, so if prime or T7 could make a sticky called 'Tutorials for the noobs) (etc.) that would be great Link to comment Share on other sites More sharing options...
Poggle Posted June 12, 2004 Share Posted June 12, 2004 Great post, very informative, gotta be stuck Link to comment Share on other sites More sharing options...
Darth333 Posted June 12, 2004 Author Share Posted June 12, 2004 Thanks. Glad you appreciate it. I just hope this will really give a hand to those who want to start modding. Originally posted by tk102 Great post. You earned this. Oops! I mean this. That's a big oneTK (I see that you didn't eat the Melba toasts I gave you a few months ago - I recognize the French-English packing - Yuk! Out of date melba toasts... ) Link to comment Share on other sites More sharing options...
T7nowhere Posted June 12, 2004 Share Posted June 12, 2004 GREAT WORK!!! Darth333 this is an excellent thread and will definitely be stuck. Originally posted by Doom_Dealer lets make a tutorial stciky guys, im about to write a short, simple one for module editing, so if prime or T7 could make a sticky called 'Tutorials for the noobs) (etc.) that would be great Come do we really need a tutorial sticky for noobs when we have "Do you Want to mod SW-KotOR? Then Start here. " I can make a specific section for noob tutorials at the top of the first post. This way you can post your tutorial on module editing and the thread will stay on topic. Link to comment Share on other sites More sharing options...
Achilles Posted June 13, 2004 Share Posted June 13, 2004 Originally posted by T7nowhere GREAT WORK!!! Darth333 this is an excellent thread and will definitely be stuck. Come do we really need a tutorial sticky for noobs when we have "Do you Want to mod SW-KotOR? Then Start here. " I can make a specific section for noob tutorials at the top of the first post. This way you can post your tutorial on module editing and the thread will stay on topic. Could we add my Lightsaber walkthrough to this section? That way the experienced modders would have yours and the newer people would have mine. Thoughts? Link to comment Share on other sites More sharing options...
Darth333 Posted June 13, 2004 Author Share Posted June 13, 2004 I think I agree with T7 concerning the tutorials: they should all be at the same place: it's easier for reference. You never know when an experienced modder will try something new to complete one of his mods ... or a newbie may also find an answer to his or her questions in one of the other threads. Link to comment Share on other sites More sharing options...
T7nowhere Posted June 13, 2004 Share Posted June 13, 2004 Originally posted by Achillies Could we add my Lightsaber walkthrough to this section? That way the experienced modders would have yours and the newer people would have mine. Thoughts? Im gonna go though the posts from the last 30 days over the next couple of days to dig out and add the tutorial threads to the main tut thread. Link to comment Share on other sites More sharing options...
Darth Khasei Posted June 13, 2004 Share Posted June 13, 2004 This is one of the best modding communities I have worked with in terms of sharing good info. You guys ROCK! Link to comment Share on other sites More sharing options...
Mav Posted June 14, 2004 Share Posted June 14, 2004 great thread Darth333, I think it will help many new people here to the forums Link to comment Share on other sites More sharing options...
UDM Posted July 3, 2004 Share Posted July 3, 2004 on the sidenote, the kotor_tool.exe icon reminds me of communism in star wars Link to comment Share on other sites More sharing options...
Darth333 Posted July 3, 2004 Author Share Posted July 3, 2004 Originally posted by UDM on the sidenote, the kotor_tool.exe icon reminds me of communism in star wars Agreed but it's not red enough Anyways, I don't think Fred reads the Newbie guide perhaps you should post this in the Kotor Tool thread . Link to comment Share on other sites More sharing options...
MTV2 Posted September 10, 2004 Share Posted September 10, 2004 Do you need to have a program to get gmax? because everytime I try to install, it says registry key not found??? Link to comment Share on other sites More sharing options...
Darth333 Posted September 10, 2004 Author Share Posted September 10, 2004 Originally posted by MTV2 Do you need to have a program to get gmax? because everytime I try to install, it says registry key not found??? When you downloaded g-max, they ask you for your e-mail. Look at your e-mails. You should receive the info there Link to comment Share on other sites More sharing options...
bneezy Posted September 11, 2004 Share Posted September 11, 2004 I always have a problem getting the "an email has been sent. You will be receiving it shortly" emails on time with Hotmail. I use my Comcast account right after and I get the email right away. I still haven't received some from my Hotmail account. Link to comment Share on other sites More sharing options...
MTV2 Posted September 11, 2004 Share Posted September 11, 2004 Originally posted by Darth333 When you downloaded g-max, they ask you for your e-mail. Look at your e-mails. You should receive the info there Umm... it didn't ask me for my email. I went to the link then clicked download file then went to turbosquid pressed download gmax then the download screen pops-up, no email. Link to comment Share on other sites More sharing options...
PoM Posted September 20, 2004 Share Posted September 20, 2004 What i need is a tutorial explaining step by step how to reskin, how to get those darn files out of appearance file and into photoshop...am i just stupid? Link to comment Share on other sites More sharing options...
Achilles Posted September 20, 2004 Share Posted September 20, 2004 Originally posted by TheKnife What i need is a tutorial explaining step by step how to reskin, how to get those darn files out of appearance file and into photoshop...am i just stupid? Not stupid, just lost. Unfortunately, I'm not quite sure what it is you're trying to accomplish. Perhaps if you can provide some additional detail, one us will be able to assist you. Welcome to the forum Link to comment Share on other sites More sharing options...
PoM Posted September 20, 2004 Share Posted September 20, 2004 Well, as an example: If i wanted to reskin one of the pc faces, theres one problem, i have no idea how to get it into photoshop and...reskin it! Edited: Uhh...Have been waiting for a moment now, could use a respond. Edit 2005: If you are reading this now, you should now that this is my first post, i know more now. Link to comment Share on other sites More sharing options...
Achilles Posted September 20, 2004 Share Posted September 20, 2004 Originally posted by TheKnife Well, as an example: If i wanted to reskin one of the pc faces, theres one problem, i have no idea how to get it into photoshop and...reskin it! Edited: Uhh...Have been waiting for a moment now, could use a respond. This is a message board, not a real-time chat forum. If your expectation is real-time response, you should probably take a moment to level-set right now. Now, if you want to reskin a PC/NPC face, you should open KotOR Tool and look under ERFs>TexturePacks>swpc_tex_tps.erf. Now, expance either P for PC or N for NPC and begin looking for the appropriate file. No short cuts here; you're either going to have to do some real research on your own or spend some time clicking. Once you've found the file that you want (via the Image Viewer window), click on the Write File button and save the texture to whichever location you'd like. Then use Photoshop to open the texture and go nuts. Your imagination is your only limitation. I hope that helps! Link to comment Share on other sites More sharing options...
PoM Posted September 20, 2004 Share Posted September 20, 2004 Thanks! Gotta try it right now! I checked it....Dont you mean tpc? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.