How to create a custom Races and Classes
Caomh
Member Posts: 40
With Patch 1.75 new races could be added to a list in the same way new classes could be added. This is great news allowing people like me to start building the game I want. For the past few hours I have been searching on the forums for the How-to-guide of doing this. Sadly I haven’t even found the patch notes.
One of my professors taught me there are many right ways to code things. So I am asking for the community to add to my knowledge in helping me (and others like me) in creating a simple to follow guide for adding new classes and races.
In another post a kind user provided the PDF which showed what was in the 2DA. I would request that such is taken a step further. For example:
1) Download X from _______.
2) Open up the 2da which default location is X.
From there explain the terms, show a sample class, mention if creating new spells list (such as merging arcane and spell caster or adding a new domain) is possible. Finally how to add it to a module.
Yes this would be some work and if I knew how to do it I would. I don’t so I ask one of you who are more knowledgeable to create such a guide for me and others such as myself who would love to be able to do such.
One of my professors taught me there are many right ways to code things. So I am asking for the community to add to my knowledge in helping me (and others like me) in creating a simple to follow guide for adding new classes and races.
In another post a kind user provided the PDF which showed what was in the 2DA. I would request that such is taken a step further. For example:
1) Download X from _______.
2) Open up the 2da which default location is X.
From there explain the terms, show a sample class, mention if creating new spells list (such as merging arcane and spell caster or adding a new domain) is possible. Finally how to add it to a module.
Yes this would be some work and if I knew how to do it I would. I don’t so I ask one of you who are more knowledgeable to create such a guide for me and others such as myself who would love to be able to do such.
0
Comments
I think you're in a perfect position to create such a guide learning as you go. I can give you a broad overall approach to get you started. I suggest you start it easy by trying to make a clone of an existing "simple" class such as Fighter before trying caster classes or racialtypes.
You'll need to add entries to classes.2da, packages.2da, racialtypes.2da, appearances.2da at a minimum. These files should go into your top hak file for your module or you can put them in override to make development and testing easier. If you don't know where to get the these .2das files, the quickest is to download them from @Zeroark on the Vault https://neverwintervault.org/project/nwn1/other/neverwinter-nights-enhanced-edition-base-2das
Check the NWN Wiki to understand what the different columns in the .2da means
http://nwn.wikia.com/wiki/Racialtypes.2da
http://nwn.wikia.com/wiki/Appearance.2da
http://nwn.wikia.com/wiki/Classes.2da
http://nwn.wikia.com/wiki/Packages.2da
You can edit these .2das as simple text files using editors such as Notepad++. If you need to read up on what .2das are in general http://nwn.wikia.com/wiki/.2da
You will also need a .tlk editor. See here to see what .tlk files are about http://nwn.wikia.com/wiki/.tlk
and here for a pretty good .tlk editor https://neverwintervault.org/project/nwn1/other/tool/axe-murderers-killer-tlk-editor
My goal is to learn how to do the very thing you requested help with. In the future I may create some guides, however I will need to know how what I am doing. Here are three guides I created for an adventure kit I made in Unity as an example.
1. Player Setup
2. Player Movement
3. Player Script
In the first guide I set up how to create a new player. The second guide shows how to add animations. The third guide was for editing the script itself. It defined what everything is and how it works. In addition to those notes being in the script itself.
All three combined allowed for users to easily create an player character and if an error happened they could easily look back and see what they did wrong. As a benefit I can still use this code over a year later and know what everything does as I have a nice cheat sheet.
Another saying my professor had was weeks of coding can save hours of planning. What this means is if you know what you are doing by planning it can save you a lot of time of fixing any errors. In this case if I learn how to properly add a class then add a class. It will save me (and others) the time spent looking for what went wrong and fix it.
Note: I fully documented every script too!
CODI New Prestige Classes Tutorial Beta by Papermonk
https://neverwintervault.org/sites/all/modules/pubdlcnt/pubdlcnt.php?file=https://neverwintervault.org/sites/neverwintervault.org/files/project/1463/files/codi_new_prestige_class_tutorial.7z&nid=1463
See also Custom Content Guide v3.0 by Eligio_Sacateca, it has a chapter on creating custom races.
https://neverwintervault.org/sites/all/modules/pubdlcnt/pubdlcnt.php?file=https://neverwintervault.org/sites/neverwintervault.org/files/project/1463/files/custom_content_v3_0.7z&nid=1463
https://neverwintervault.org/project/nwn1/other/nwn-university-document-help-pdf-reference-guide-tutorial-xls-collection
Download Custom Content Guide v3.0 by Eligo_Sacateca
This is exactly the sort of guide I was looking for. It does have one issue that I have ran into. It was written in 2003 before the ee version. I need to begin with finding the 2da files. In NWN 1.69 this was an easy find. So far I failed to find it in the EE version.
Any help finding the 2DA will be appreciated.
https://neverwintervault.org/project/nwn1/other/neverwinter-nights-enhanced-edition-base-2das
You can use the gffeditor for 2da's and nwhak is to bundle the files together in a hak file for distribution.
I made a quick edit of the Sorcerer class in package turning it into a WIS based class in both the classes2da as well as the packages2DA. The results are the following:
When choosing the class the name displays as Sorcerer (I didn’t edit the dialog.tlk so this is expected).
The starting gold is not the 800 gold. (I believe I will need to edit the Equip2DA to fix this).
The character is unable to take any spells (CHA and WIS are the proper level unsure why).
Familiar is not selectable, yet shows one is available.
Note: Special thanks to @T0R0 for posting how to find the 2DA files.
I downloaded the TlkEdit from the vault.
I copied the Elf Race to a new row, and changed the name. It loaded properly. I created a new feat list and directed the racial types to look at that. That too worked properly. I went in using the tlk editor. The new race name is not displaying properly.
Is there a different tlk editor for NWN:EE that anyone has used for NWN:EE that has worked.
Don't forget to associate your altered tlk file to the module in module properties in the toolset.
Thank you for your answer. I would like to thank all of you for providing insight on how to sort things out. I appreciate all of you for taking out the time to provide some trouble shooting on this task.
Firstly I have been able to download the 2da files from the NWN Vault and been able to edit them
However as @Caomh stated im trying to figure out how to extract these from the game itself.
Hopefully @T0R0 can help out here because I feel like I must be doing something wrong.
When I use NWNexplorer it seems to be opening an old GOG NWN that has some of my old modules in it.
When I use NWNexplorer and target the steam files for the game it wont accept the path.
The only way i can find something similar to the downloaded 2das is when I open this file but they all have nondescript names.
If I understand the general idea here its just to edit and have a secondary copy of any of the 2das and tlk files you will need for you module.
Im just getting back into NWN after a long while and am really excited to try and create a custom class any help would be greatly appreciated.
Link to Thread: TLK Files [Solved]
Thank you for your time.
And a year later I return! It seems the link you posted is dead. Might you be able to link some of the tools your referring to?
TLK Files Solved
i read through here and i got a question or two if thats ok with you.
in the 2nd post of this thread, pscythe wrote a wonderful post with much help for creating a custom class. But:
i am planning to create a class which fits into the prc. And i have to include a new spellbook or two.
The idea is: there is one new category of spells: unique spells, which will have new spells (10 of them).
the 2nd shall be similar to divine spells, with the exception that i just wanna take a few spells of the levels 0-9. for example level 0 shall have 4 spells and the other ones arent even listed to be selected so that i can try to balance out things.
the 3rd and last category is similar to arcane spells and just like with divine spells, i wanna take only 4 spells out of lv. 0 and only those are availabe so that only those 4 are selectable and visible and usable. the class shall not know the other spells.
of course i did take a look at pscythes post and the nwn wikia is incredibly helpful, but
1. it only explains the base nwn things if i read correctly. because in the prc.2da hak file there is a classes.2da file which has other colums not explained in the wikia. And thats exactly problem number 1. if there would be a wikia which describes the prc versions and the new / unknown colums, there would be no problem at all because all i would have to do is read and learn without having to write these posts and depending on others to help me. i like it more of course to do my thing without others having to help me. plus, i wanna do this new class for everyone , too aside from myself naturally. so is there a homepage which describes everything from the prc files so that i know how to handle a 2da file and its values, colums and even if i can add colums without the game causing bluescreens and without the pc having to go boom ?
2. problem number 2 would be: i did take a look at the column "PreReqTable" in the classes.2da of the prc_2das hak file. and i read the entry "CLS_PRES_DRU" for example. (no problem so far, because it is obvious what it means and the file is present in the prc_2das hak file) then i did take a look at the file by opening it with the standard editor and i read, that it is handled by a script variable which should be a seperate nss file named "PRC_AllowDruid", right? but i cannot find this file anywhere in the prc_scripts hak file. so i dont know where to find the neccessary files to continue working on the class.
can someone please help me out here ? i am very sure i could handle a class which uses spells , even if i am a beginner, as long as I have enough resources to learn from which give me 100% accurate information on all steps and problems so that everything is only a matter of learning and doing.