LanguageWriter123

KotOR 1 Level Cap Mod (To Level 50)

Recommended Posts

Posted (edited)

So this was a long time coming, way too long I was working on this but finally got it to a relatively good state. I mean it's still messed up in some ways but the biggest thing that gave me trouble was the experience points in alignment to the level-ups. I got that to work but you can't auto-level up lol sorry. But for the exp, I essentially needed to create code caves and track down a struct where the experience points for level-ups were stored. I had to change that offset when the game parses the exptable.2da at the beginning and in a function when you load a character.

Other problems are that you can't see the "experience needed" for level ups but it's the same exact equation for calculating the needed exp for level-ups regardless and the same exact needed amounts like in KotOR 2 so peek at the exptable.2da for that I guess lol. And the other problems I know are that you can't get feats and force powers past level 21. You could always mess with the featgain.2da and classpowergain.2da for levels before 21. You can still get attributes and skills past level 21. And you could still be pretty op with all those attribute points, health point, and force power point increases. To install, make a backup of your old K1 exe and 2da files that would be replaced by this mod. Then just put the 2da files in the Override and replace the exe of course.

Here is how I worked on it before, but I just fixed the exp problem today.

I could go further than level 50, hell the code cave I made can fit way more exp storage data, I could go thousands more but I think 50 in itself is a bit overkill even lol. But no one says you have to keep leveling up anyways. And I just always thought that level 20 was a little too low and just figured matching KotOR 2's level cap was the way to go. I can do this same mod for KotOR 2 btw but I don't think it's needed that much. But if someone really wanted it I could put it out there too of course like raising that cap to 75 or something. Other purposes you can use for this mod are other mods in combination with this like Brotherhood of Shadow, other planet mods, and other mods that add more to the game. You can mod Malak's utc file on the last Star Forge module and make him a lot tougher and stronger to match your higher level character too!
There could be other problems too so I might need to make patches for this more down the road. 



Edit: I fixed a lot of things now. You can download from here again I updated the downloads in this post too.

2das.rar

swkotor.exe xptable.2da

Edited by LanguageWriter123
  • Like 1
  • Thanks 2

Share this post


Link to post
Share on other sites

Hello I just noticed that every enemy you defeat in the beginning of the game only gives 25 exp, I think the game thinks you are a higher level than you actually are in some ways. Replace the xptable.2da with this one I sent here. I raised the every 25, 50, 75 exps to 100s to fix this.
...
And just now upon investigating this I noticed near the one "percentXP" string in the exe that there is another area I missed to connect the xptable.2da to the struct where the exptable values are stored. I basically fully fixed this problem now and I'm pretty sure every enemy killed would have given 100 XP when killed even with this new xptable.2da. That would not be fair especially for very challenging opponents. So please get the new EXE too here. Like I hinted at, there will be many patches for this.
Now I need to figure out how to fix the actual experience needed area with the exp. 
...
Holy smokes! I did it now! I found most of the offsets needed to fix the exp adjustments. Please try this mod it's a lot better now. The exp needed will show for all the levels and the scripts will activate with the exp now. 

xptable.2da swkotor.exe

Share this post


Link to post
Share on other sites

Holy cow if you Have successdfully done this, then I could kiss you. You sir (or ma'am) are my hero! I have been wanting this in the game since it came out and I played it all those years ago. I will  defenitely have to restart kotor again and try this out in the near future. Thank you for your important contribution to the kotor modding scene. Please keep working on this as it is a great accomplishment!

  • Thanks 1

Share this post


Link to post
Share on other sites

It will work don't worry and thank you. Glad you might be able to get use out of this mod, that's great to hear. Hopefully others will too. It took me a while but I just made a huge amount of progress on this in the last few days. Though someone did help point something out to me in a game reverse engineering discord server in a voice chat. Once they pointed out a piece of code I was scanning for in Cheat Engine the whole thing clicked. I realized what I needed to do and changed a bunch more offsets after that and aligned the exp to the code cave with all the new exp storage for all the levels including past level 20. There may be a few more areas but I just tested it for all the classes jedi included and it worked. Only things left to test are the scripts that interact with the levels now. But I think those work too anyways. And I think Malak is leveled to the player still because even at level 50 he was putting up a fight but I did have basic gear on.

Share this post


Link to post
Share on other sites

Would it be possible to get mac compatible version of this mod please and possibly android for others.  The reason i am asking is becuase the .exe file , as i understand it, is not compatible with other sytems other than windows. So far this is looking awesome! thanks. 

Share this post


Link to post
Share on other sites

Does this need a new game to work?

On 8/26/2025 at 12:42 PM, rj464 said:

Would it be possible to get mac compatible version of this mod please and possibly android for others.  The reason i am asking is becuase the .exe file , as i understand it, is not compatible with other sytems other than windows. So far this is looking awesome! thanks. 

He kinda explains that he tried the Mac version in the video.

Share this post


Link to post
Share on other sites

Your right about that sorry i missed that. Regardless, I am very appreciative of the mod author.  Thank you for pointing that out Panther. 

Share this post


Link to post
Share on other sites
On 9/5/2025 at 6:11 PM, Ethan00110 said:

Would it be possible to get more force powers after like level 22? and more feats as well. 

In what regard? Are you talking about new ones? I have the mod, but I couldn't get to that point yet, because my game crashed due to another mod.

Share this post


Link to post
Share on other sites
On 8/26/2025 at 7:42 AM, rj464 said:

Would it be possible to get mac compatible version of this mod please and possibly android for others.  The reason i am asking is becuase the .exe file , as i understand it, is not compatible with other sytems other than windows. So far this is looking awesome! thanks. 

Yes it would be. I know this because I looked at the Mac, Android, Linux, and Xbox binaries and seen they have basically identical code. As to if the relatively same changes work everywhere I do not know yet. Thank you too and no problem. I'm sorry for the really long wait, I just been depressed atm, exhausted from work a lot of the days, and busy with other things too. I was working on the Xbox version very recently. Modified the first footlocker you open, the script for it, to give millions of exp. But with my certain changes to the XBE (xbox version of exe) it won't work right with the 2da files. I looked at the game in a debugger with these changes and that's where it breaks, when loading the 2das at the second logo screen. As for attempting the changes for the Mac version I did a little bit months and months ago (maybe a little over a year) and was able to make some changes without the game crashing so I should be able to do relatively the same exact stuff. I disassembled the Android and Linux versions too and they basically had the same exact code. So yeah, if I hurry and make the edits I should be able to distribute those soon too.

On 9/5/2025 at 1:11 PM, Ethan00110 said:

Would it be possible to get more force powers after like level 22? and more feats as well. 

Yes it would be but I just had a very hard time editing featgain and force power gain in the exe without it breaking the game in some way. The feats as you may already know are very hardcoded in the exe and changing some of the structs and bytes in these functions and structs breaks things. In the meantime however, you can modify the featgain and class power gain 2das with a 2da editor here:
2DA Editor Alpha - Modding Tools - Deadly Stream

And you can increase the progression gains for different levels with the tool and when editing these two files *before* level 22. That's something that works in the meantime. Like I told RJ, I'm really sorry for the long wait I just been very depressed and have been pretty busy.

On 9/9/2025 at 3:38 PM, Panther said:

In what regard? Are you talking about new ones? I have the mod, but I couldn't get to that point yet, because my game crashed due to another mod.

Yes I think he is. And I tested after level 20 to level 50 with the built-in console commands so no worries. I appreciate your feedback btw with the other two and responding back to them too when I didn't. At least you gave them some answer in the meantime. What mod is conflicting with this one if you don't mind me asking? Is it a 2da modification one? I can show you how to get my mod to work with those ones. You need the 2da editor I mentioned to Ethan:
https://deadlystream.com/files/file/1335-2da-editor-alpha/

Then you can modify them however you want to.
 

Share this post


Link to post
Share on other sites

Unbelievable! Just yesterday I remembered that for many years I have been trying to find a mod that increases the maximum level of character development above 20, and here I am so happy! @LanguageWriter123 Tell me, please, does this mod need to be installed exclusively on a "clean game", or can it be used together with the "Kotor community patch"?

Share this post


Link to post
Share on other sites
1 hour ago, Zasranec said:

Unbelievable! Just yesterday I remembered that for many years I have been trying to find a mod that increases the maximum level of character development above 20, and here I am so happy! @LanguageWriter123 Tell me, please, does this mod need to be installed exclusively on a "clean game", or can it be used together with the "Kotor community patch"?

Glad you can find this mod useful then thank you. I don't see why it couldn't be used with that. Just make sure the community patch is installed first then this mod. If it replaces any 2das in the Override, let me know. But I think you should be fine even if it did.

  • Light Side Points 1

Share this post


Link to post
Share on other sites
1 hour ago, LanguageWriter123 said:

Glad you can find this mod useful then thank you. I don't see why it couldn't be used with that. Just make sure the community patch is installed first then this mod. If it replaces any 2das in the Override, let me know. But I think you should be fine even if it did.

Great, in that case I will try to check it out. It remains only to find time for it)).

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.

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.