gameunlimited Posted February 10, 2004 Share Posted February 10, 2004 The title might be a little misleading. What I mean by new area is actually the existing area, only with new placable items and/or creature. An example of this kind of "new area" is the Survival Battle mod (downloadable at my small website, see my sig). It uses the existing Mystery Box area but now it no longer has the rakatan riddle guy. Replacing him, I put the computer terminal instead that spawns the darkjedis. This guide will not be too deep. Instead I am just hoping that this small guide can help the new modders to access more than changing items and appearances. ******NOTE****** If some of these links are not working, try typing them manually on the address bar. Some of them may not work if you click on them but will work if you type it up. **************** First of all, you need these following tools: 1. GFFEditor by Roboius downloadable at http://nwvault.ign.com/Files/other/data/1054162676171.shtml 2. Kotor Tools by Fred Tetra http://home.comcast.net/~armada/kotor_tool.zip 3. ERF Editor http://nwn.bioware.com/developers/erf_download.html I will not go through the little details on how to use these programs as they are quite straight forward. A new area is actually a module. The most basic area/module must consists of at least three files. These files are however combined into a single .mod file (or .rim files. KotOR recognizes both). Take a look at this file for example: http://webpages.charter.net/alvintamsir/misc/lastbattle.mod Open it up using the ERF Editor. As you can see, the lastbattle.mod file actually consists of three different files, namely: module.ifo, m45ad.git, and m45ad.are. Now try and copy the lastbattle.mod file into your MODULES directory, NOT the override directory. Now go into the game and load any game. The use the cheat and type "warp lastbattle". As you can see, you will be teleported into the last battle room. However, Malak and the captive jedis are not there. Instead of malak, Bastila is now standing there. I will go step by step now to explain it further. First of all, whenever you load an area or module, the game will search the MODULES directory for a file under such name. In this case it was looking for a file named lastbattle.mod. Once the game finds it, the first file that it looks in the module is always the file "module.ifo". It contains the basic settings of that particual mod. Using the ERF editor, extract the three files into a new directory (do not put these files into the Override directory as they may crash the game). Use GFF Editor to take a look at the "module.ifo" file. module.ifo I will not go through all the various data fields in this file, instead I will just point out the important ones. Mod_Tag = this has to be the same as the name of the file (excluding the .mod extension) Mod_Entry_Area = determines which area file should be loaded if a player enters this area (i.e. typing "warp lastbattle" in the cheat). This will bring to the next file which is the area file. Area files have the extensions .are. In this example, the file is "m45ad.are". Let's go back to the module.ifo file. Remember what was the value in the field "Mod_Entry_Area"? Exactly, it was m45ad. So basically it was referring that the game should load this "m45ad.are" file once the module is loaded. Some of the important fields in this file is the OnExit, OnEnter, and OnHeartbeat. You can put the name of scripts here that will be executed during certain times. You can disregard about this for now. I will not cover this in detail in this post. Now the last file is rather important, the "m45ad.git" file. This .git file basically states what are the objects that are present in the area file. So, basically it can be tought as this: the "m45ad.are" contains the info regarding the area such as lighting, day night cycle, etc; while the "m45ad.git" contains the dynamics items such as creature, containers, and other items. m45ad.git Open this file using the GFFEditor. The fields in this file are pretty much self explanatory. Creature List - Lists the creature, including NPC, monsters, and enemies. Door List - Lists all the doors Encounter List - Lists the random encounter creature. and example would be those tigers that you found on Danttoine on the open lands. Placable List - Lists containers, items, decorative items, computer panels, workbench and many others. These items may or may not be interacted by the PCs depending on the items itself. Trigger List - Lists the various scripting triggers. An example would be "When you pass a certain area, initiate the script for a certain dialog". Waypoint List - I do not recommend you to touch anything here as it may messes up the pathing AI of enemies and party members too. An example, take a look at the Creature List. Under there, there is a subtree "0", which has another subtree "TemplateResRef". Before edited, the value should be "sta45_darthmalak". This refers to the creature blueprint of Malak. However, as you can see, I changed it into "p_bastilla". that is why you see her instead. X,Y, and Z Position are the position in which the creature will be put. One easy way to know the location of a certain spot is to load the game, and type "whereami" in the cheat console. It should give you back the coordinate of that spot. As you can see in out example file, Placable lists and the Door lists are all empty. I deleted them. Now you can compare it with this file: http://webpages.charter.net/alvintamsir/misc/sta_m45ad.mod This is the unmodified version of the same room. You can see how there are so many items under the Placable lists. Those are the captive jedis. Just compare and contrast the two files, you should be able to figure out more things. You can find the list of a lot of placable items and npc characters using kotor tools. They are found in the BIFs --> Templates. .utC files are Character blueprint files while .utP files are placable items. Once you have edited these files, you can compile them back into a single .mod file using the ERF Editor. Place this new file into the MODULES directory and use the warp command. Remember that the name of the file mod file has to match the Mod_Tag field in the module.ifo file. If you want to see the various existing areas in the game, use Kotor Tools and open the RIMs --> Modules. It has all the different areas that are found in the game. These modules may also contains .utc files and .utp files. Once you mastered these, you can move on to learn scripting. I will try to make the small guide also for that if I have time. That's about it. Hope it helps some of you guys. And as always, correct me if there is anything wrong. I am not an expert programmer nor modder myself. If you have any question, I will gladly try my best to help. Link to comment Share on other sites More sharing options...
T7nowhere Posted February 10, 2004 Share Posted February 10, 2004 hey gameunlimited. This is a good intro to modual making I read though and I allready figuered that stuff out , but what I do need to know is what you used to make the .mod file maybe you mantioned and i just passed by it. I guess I could search bioware dev section ,but I thought it would be easyer for me if you just told me. Link to comment Share on other sites More sharing options...
Sunslayer Posted February 10, 2004 Share Posted February 10, 2004 SO do you think using this you could replace everything in the current enviroments in order to make a new story? Link to comment Share on other sites More sharing options...
gameunlimited Posted February 10, 2004 Author Share Posted February 10, 2004 Sunslayer: Definitely you can, but of course it will take a load of work! You can create new NPC with new dialogs, then put them up wherever you wish to create new story. T7nowhere: I used the ERF Editor from Bioware to make the mod files. It is capable of compiling ERF and HAK files too. Check the download list from my post above. Link to comment Share on other sites More sharing options...
Prime Posted February 10, 2004 Share Posted February 10, 2004 Thanks for posting this, gameunlimited! Link to comment Share on other sites More sharing options...
Fred Tetra Posted February 11, 2004 Share Posted February 11, 2004 gameunlimited - You should now be able to use Kotor tool to view your .mod files if they're in the Modules directory. I added this feature last night just because I thought you could use it Link to comment Share on other sites More sharing options...
gameunlimited Posted February 11, 2004 Author Share Posted February 11, 2004 oh most definitely this is a very great addition to your tool Link to comment Share on other sites More sharing options...
SSJ3Goku Posted February 21, 2004 Share Posted February 21, 2004 I can't download your file even though i did what you said it wouldn't work. Link to comment Share on other sites More sharing options...
gameunlimited Posted February 21, 2004 Author Share Posted February 21, 2004 I am sorry. I recently moved my file server and have not change the link of these files properly. I just changed it to the new location, should be downloadable now. Just go to the link above again. You don't have to type it up manually this time, just click on it will do. Link to comment Share on other sites More sharing options...
Sunslayer Posted February 21, 2004 Share Posted February 21, 2004 Just an idea for anybody looking to make a new area, a sidewuest for a part charcter that doesn't have one, like Jolee, HK-47, T3-M4, or maybe an additional sidequest for another character would be easy to set on Bespin, just make a small space statoin area like the Yavin one, but a bit bigger (or maybe a lot bigger), use the Manaan look, nad make the outside look like clouds, and you have a little Cloud City. Link to comment Share on other sites More sharing options...
T7nowhere Posted February 21, 2004 Share Posted February 21, 2004 Originally posted by Sunslayer Just an idea for anybody looking to make a new area, a sidewuest for a part charcter that doesn't have one, like Jolee, HK-47, T3-M4, or maybe an additional sidequest for another character would be easy to set on Bespin, just make a small space statoin area like the Yavin one, but a bit bigger (or maybe a lot bigger), use the Manaan look, nad make the outside look like clouds, and you have a little Cloud City. That would be cool, but no more fishy men. How could the water be changed into clouds though. I think that would be difficult to do sinse we can directly change the area layout. Still it would be sweet. Link to comment Share on other sites More sharing options...
Darth Khasei Posted June 16, 2004 Share Posted June 16, 2004 GUnlmited, you "ARE" a modder bro. A damm good one at that. Survival Maxtrix mod ROCKS! Link to comment Share on other sites More sharing options...
Drog Posted June 16, 2004 Share Posted June 16, 2004 Is there a way to edit .utc files without using kotor tools editor? .. thx in forway... Link to comment Share on other sites More sharing options...
Darth333 Posted June 16, 2004 Share Posted June 16, 2004 Originally posted by Drog Is there a way to edit .utc files without using kotor tools editor? .. thx in forway... GFF editor. Look at my sticky: http://www.lucasforums.com/showthread.php?s=&threadid=129789 I give you three choices. Link to comment Share on other sites More sharing options...
Drog Posted June 16, 2004 Share Posted June 16, 2004 Originally posted by Darth333 GFF editor. Look at my sticky: http://www.lucasforums.com/showthread.php?s=&threadid=129789 I give you three choices. Heh sorry doesent work... something wrong with my GFF editor btw i am downloading a new one instead. Thx Link to comment Share on other sites More sharing options...
DarkLord Re\/an Posted June 18, 2004 Share Posted June 18, 2004 where can i find other areas koz i want to make holomaan(which is mannaan dedicated to holowan labs... just like so many other ppl have done ) *edit* ok i found it (note to self.. remember to look before assuming it isnt ther) lol Link to comment Share on other sites More sharing options...
Doom_Dealer Posted June 18, 2004 Share Posted June 18, 2004 Originally posted by DarkLord Re\/an where can i find other areas koz i want to make holomaan(which is mannaan dedicated to holowan labs... just like so many other ppl have done ) *edit* ok i found it (note to self.. remember to look before assuming it isnt ther) lol i think ive started a trend here, first Drog's starting a holowan tribute, now you well, good look with it, its quite a good introduction to module making, as it requires not very complex dialogues or scripts, and its a springboard to the more complicated stuff. Link to comment Share on other sites More sharing options...
DarkLord Re\/an Posted June 18, 2004 Share Posted June 18, 2004 thanx... i think ill need it ive only been modding for like 2 weeks... *edit*Will it still read the file if i change the .are file and the .git files to holomaan.are and holomaan.git... then i changed the mod_entry_area to holomaan... and then i typed "warp holomaan" after that it went to the loading/saving screen, when it was saving the game crashed... any thoughts on how to fix that? Link to comment Share on other sites More sharing options...
Darth333 Posted June 18, 2004 Share Posted June 18, 2004 Originally posted by DarkLord Re\/an thanx... i think ill need it ive only been modding for like 2 weeks... *edit*Will it still read the file if i change the .are file and the .git files to holomaan.are and holomaan.git... then i changed the mod_entry_area to holomaan... and then i typed "warp holomaan" after that it went to the loading/saving screen, when it was saving the game crashed... any thoughts on how to fix that? You don't need to change the names of the .git , .ifo and .are files. When you build your module with the ERF builder, then you can call your module holomaan.mod and warp there if you want. You can also attach the following script to a convo or create a dialog with an object to be teleported there without using a cheat : void main() { StartNewModule("holomaan")); } use the same method to go back to where you where. Link to comment Share on other sites More sharing options...
DarkLord Re\/an Posted June 18, 2004 Share Posted June 18, 2004 k... ill try that later as for now im trying to make a new model.. sofar... not at all successful Link to comment Share on other sites More sharing options...
DarkLord Re\/an Posted June 18, 2004 Share Posted June 18, 2004 but wouldent keeping them the same change the original ingame... or does it just sit as a new area??? Link to comment Share on other sites More sharing options...
Darth333 Posted June 18, 2004 Share Posted June 18, 2004 Originally posted by DarkLord Re\/an but wouldent keeping them the same change the original ingame... or does it just sit as a new area??? Evrything is packed in a .mod file that has a new name. If your module name is different, then the game will treat it as a new area. Link to comment Share on other sites More sharing options...
DarkLord Re\/an Posted June 18, 2004 Share Posted June 18, 2004 ok thanx Link to comment Share on other sites More sharing options...
BountyHUNTER12 Posted June 23, 2004 Share Posted June 23, 2004 I am making a module named custom01. Nice Name huh? Now I'm goinf to make the module for all the scripts and everything else. Do I need to name it custom01_s.mod because I do not know what to put before the _s.mod. _s.rim files have all the resources for the module in case u didn't know. Link to comment Share on other sites More sharing options...
Darth333 Posted June 23, 2004 Share Posted June 23, 2004 Originally posted by StormTrooper789 I am making a module named custom01. Nice Name huh? Now I'm goinf to make the module for all the scripts and everything else. Do I need to name it custom01_s.mod because I do not know what to put before the _s.mod. _s.rim files have all the resources for the module in case u didn't know. You can name your module whatever you want, even "stormtrooper789.mod" When you build the ERF, just include all the files you need in the package: the .are, .git, .ifo files, .ncs, .dlg, placeables, etc... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.