Hex editing, dangerous but possible?

https://www.nwnx.org/phpBB2/viewtopic.php?t=2158

Anyone ever tried this? The hardcode cap appears to be 30 for now. Strange when the exp & xp 2da all have 40 as the last level.

Is this the old vault;

https://neverwintervault.org/rolovault/projects/nwn1/hakpaks/1692/index3.html

some of the links come to this site.

Any difference between nwn2 exe and nwn2main exe ?

1 Like

Cross fingers----------

Level cap edit works! Edit the nwn2main exe.

woot.

Wow really? That’s big… Can you post a screenshot of a level 40 character?

Hang on there

Right here we gooo

hexed char

I dont think its possible to post images directly here?

I played with the druid 2da, and well after removing levels it will not level up so I picked other classes. You can see this is obviously an illegal char.

Yes you can drag and drop images into the message edit window.

1 Like

Lets try it;

2 Likes

I guess I should continue here.

In order to go past level 40, there are 3 2da files; exptable, xpbaseconst, and xptable.

Add more rows\columns with the required numbers.

I dont quite understand xptable 2da, it seems to randomly increase values.

xptable is used for experience rewards for defeating encounters.

So I only have to edit exptable to accommodate the new levels to 60?

Hmm… I don’t know. Theoretically you’d need the full xptable so that the game knows how much xp is supposed to be rewarded to the player after he kills a monster. Though personally I bypass that by setting the module xp scale to 0 and than using script to kinda “manually” award player xp. That way you can reward the pc “per encounter” not “per monster”.

O dear, I hoped not to get scripting involved…

What if in xptable 2da, I just applied the same values from C40 up to C60?

I dunno dude - I’m pretty sure this is an uncharted territory :smiley: I’ll have to do some testing

Thats great I was thinking of trying it out for Storms campaign.

Tested it on a modified Jeg’s Training and can confirm it works, Thank you so much for this.

Btw, I think that the max will stay level 40 even if you edit the 2das, those hex edits on the link you provided were specific about changing it to 40 hardcap, unless you figured out the way to hex edit the nwn2main.exe file beyond level 40, that will stay the max level regardless of what you do to the 2das.

You just have to put the correct hex value. 28 is hex for 40.

so for 60, just put 3c instead of 28. and so on

But to add more than 40 you need to add data into exptable and xptable. Those 2 files came straight from NWN1 I guess since the last values are at 40.

exptable is easy, just create a formula in excel and drag fill the rows.

xptable is the harder part since you have to add one row for each new levelup, then add a column for each new level. I have not been able to figure out what logic/formula this file uses.

Once you get past those 2 files, mod the campaign accordingly.

Since hex can suppport a max value of 255, I wonder how far can we go…

Could the instructions be tagged into a tutorial or something, I fear the knowledge might be lost if the original site goes down.

I think this is the first game I have from gog that did not mess with the exe. They have a nasty habit of messing the exe and thus changing the checksums, thus destroying such things like hex editing since the addresses and values are completely changed.

Awesome find, zzc. I always wondered about trying this but I wasn’t sure where to edit. What line do I need to edit in order to make this work?

I wonder if this means we can also bypass the number of summonables limit as well.

You need to learn what is hex editing first.

Get a hex editor - i use HxD - Freeware Hex Editor and Disk Editor | mh-nexus

Use hex editor to open nwn2main.exe, make a copy of it before starting.

Follow the instructions at https://www.nwnx.org/phpBB2/viewtopic.php?t=2158 Dont mind the disassembly at the end, thats for experts.

HXD can search the whole hex string so it should be easy to find - theres only one of each group.

Save when done.

Go to toolset, plugins, campaign editor and change the maxlevel, and max xp.

1 Like

Yeah, thanks for pointing out the disassembly thing, I might have broken my computer if I didn’t know otherwise. :roll_eyes: I just needed the information in that thread; I know what Hex editing is… :neutral_face:

Well noo, you would only break the exe, which can be easily restored if you made a copy before starting.

Good to see more people using the knowledge, it was so hard to find.

1 Like