Jump to content


SUPPORT TOPIC File Information

  • Submitted: Jul 02 2017 05:26 PM
  • Last Updated: Jul 04 2017 03:36 AM
  • File Size: 296.89KB
  • Views: 1858
  • Downloads: 99

Previous Versions

  • 02 Jul 2017 Download NPC Auto-Leveller 1.0

Download NPC Auto-Leveller 1.0

* * * * * 4 Votes


» NPC Auto-Leveller 1.0 Read-Me
NAME: NPC Auto-Leveller
TYPE: Modder's Resource
DATE RELEASED: July 2, 2017


A while back, Darth Tyren was asking me about how the KotOR 2 balances the enemies to make them tougher as you go on through the game. We then spent a few hours running some tests and digging through the files, with the end result being that the game seems to just upgrade the enemies' Hit Points and Force Points.


I then theorized that one could use the extra functions Obsidian added for modifying your skills, attributes, feats, and force powers to work up a framework for levelling up the NPCs without actually assigning them levels. This is the result of that work.


The heart of this modder's resource is the "fs_level.nss" #include file, where I've one main function called LevelUp and several support functions that will randomly assign feats, force powers, skill points (including support for cross-class skills), and attribute points at the appropriate times and in the appropriate amounts. I've scoured the various .2da files and the all of the default values and rules that the player has to obey are obeyed by the script as well.


Also, there are 750 .uti files included. There are 50 for each class, and each item handles the defense, saving throw, and attack modifier increases that a given class would get as they level. These items are not accessible or equippable in-game, as they use the hidden creature slots (specifically, slots 14 and 15).


I've shown how to use the #include file in the included "k_ai_master.nss" in the source folder. The compiled form is included in the installation.


An installation which involves the TSL Patcher has been made ready for your use and is the simplest and easiest way to carry out installation.


You don't have to use the installer if you're just using parts of this or adapting it, but it's an easy way to get it all set up and ready to go.


Not exactly a bug, but the two slots I used may very well be used by animals like the Kinrath that have special properties to their attacks.


There are 2 ways to report bugs:
1: Post your issues in the Bug Reporting Thread.
2: PM your issues to Fair Strides at Deadlystream.




1) Go to DeadlyStream ( http://deadlystream.com/ ) and search for the user Fair Strides ( http://deadlystream....7-fair-strides/ )
2) Send a private message with as much detail as possible of what is occurring in your game. He will likely report back to you within a week.


1) Go to the Bug Thread ( http://deadlystream....uto-leveller/ )
2) Reply with as much detail as you can provide, and please list (and preferably link to) all the mods you're using.


Darth Insidious, Malkior, Markus Ramikin, Darth Tyren, and probably many others who were willing to discuss the topic with me over Skype. :D


Darth Tyren for the initial investigative work and the idea itself.


90SK for some installer help on my Fumble! mod, whose changes.ini file I edited in Notepad for this mod.


This mod may be re-distributed, but may not be re-uploaded. I request that proper credit be given to me for making the mod, even if you use parts of the mod instead of the whole thing.


I would also like to be contacted before you release your mod.

What's New in Version 1.0 (See full changelog)

  • 07/02/17 ~=~ Initial Release

I have a question regarding the exp points gained from the leveled up NPCs. Since their level is scaled up to the player's does it mean that you would be able to gain lvl 50 by the end of the game ?

Is this compatible with Improved Ai?

I have a question regarding the exp points gained from the leveled up NPCs. Since their level is scaled up to the player's does it mean that you would be able to gain lvl 50 by the end of the game ?

I'm not actually able to affect their real level, unfortunately.
I track levels using Local numbers 30 and 31. This method doesn't work with the exp distribution system.

Is this compatible with Improved Ai?

I had forgotten about that mod when I designed this. I'll have to go back and work on this to make it compatible with stoffe's mod. Same with my Fumble! mod.

Sounds great, but what about compatibility with mods like Increased Attributes and Skills? Or any feat/force mods? Cheers!

Lovely idea for a mod! Been looking forward to something like this. There's no "fs_lvl_sas_01.uti" by the way, unsure if that is an issue or not but something I noticed and might just be a problem on my end. Compatibility with "Improved AI" seems relatively easy to do, but I am not an experienced modder by any means so I may be missing something. I've already gone ahead and done my own quick & dirty fix to make them both work. I could provide you my tslpatchdata setup for you to determine if it's all in order, and then you could release a compatible version if you like.

After some additional testing I've determined my quick and dirty fix does not work at all, and breaks the AI in many ways. So I guess I'll keep fiddling with it and hope to make it work. Ha.

Other files you may be interested in ..

Random Files

20 user(s) are online (in the past 15 minutes)

1 members, 17 guests, 0 anonymous users

Google (2), GNihilus2