Question about a text mod I made to expand the amount of levels per character

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

Post Reply
Lunos
Posts: 4
Joined: Tue Mar 28, 2023 9:20 am
Uruguay

Question about a text mod I made to expand the amount of levels per character

Post by Lunos » Fri Mar 31, 2023 5:54 am

Hi!

I just created a text mod to introduce new character levels to the game beyond Lv99 following these indications written by HellSpawn, but I'd like to know if I did this correctly or if there were changes that I may have missed.

What I did was to modify the experience.txt file raising the "maxlvl" of each character to 250, and then added experience values for each level from 100 to 250.
Then I modfied the itemstatcost.txt file and changed the number of bits assigned to the "level" variable to 8 in order to hold a max of 255 units.

What I'd like to know is whether there's any other change I need to make or if I'm good to go.
I'll leave a copy of the mod attached to this post for anyone curious, and/or in case it helps visualize things better.

Thanks in advance for reading!
Attachments
Extra Levels.7z
Increases the characters' level cap from Lv99 to Lv250.
(8.48 KiB) Downloaded 12 times

User avatar
Cypress
Moderator
Champion of the Light
Posts: 446
Joined: Fri Dec 01, 2017 2:08 am

Re: Question about a text mod I made to expand the amount of levels per character

Post by Cypress » Sat Apr 01, 2023 10:15 pm

The maxlvl in your experience.txt is still set to 99, not 250.

You set the experience requirements for lvl 250 to 51743057230, which is well beyond the 32-bit limit of Diablo 2. You'll need to divide those numbers until they are less than or equal to 4294967295. The lazy way I'd do this (with AFJ Sheet Editor) is to multiply those columns by 10, divide by 121 and then round or truncate. You can do the same multiply by 10, divide by 121 and then round or truncate on monlvl.txt L-XP, L-XP(N), L-XP(H) to adjust XP given by monsters.

Lunos
Posts: 4
Joined: Tue Mar 28, 2023 9:20 am
Uruguay

Re: Question about a text mod I made to expand the amount of levels per character

Post by Lunos » Mon Apr 03, 2023 4:09 am

Cypress wrote:
Sat Apr 01, 2023 10:15 pm
The maxlvl in your experience.txt is still set to 99, not 250.
Gah. I totally did set them to Lv250 at first, but I did grab a clean copy of the file while I was doing this because I screwed up my sheet editing, and focused on adding all the exp. amounts and entries for the new levels, that I forgot to set them back to 250 :lol:
Thanks!
Cypress wrote:
Sat Apr 01, 2023 10:15 pm
You set the experience requirements for lvl 250 to 51743057230, which is well beyond the 32-bit limit of Diablo 2. You'll need to divide those numbers until they are less than or equal to 4294967295. The lazy way I'd do this (with AFJ Sheet Editor) is to multiply those columns by 10, divide by 121 and then round or truncate. You can do the same multiply by 10, divide by 121 and then round or truncate on monlvl.txt L-XP, L-XP(N), L-XP(H) to adjust XP given by monsters.
Alrighty, I'll give it a shot. Thanks!

EDIT: Alright, how does this look?
Attachments
Extra Levels.7z
(12.58 KiB) Downloaded 9 times

User avatar
Cypress
Moderator
Champion of the Light
Posts: 446
Joined: Fri Dec 01, 2017 2:08 am

Re: Question about a text mod I made to expand the amount of levels per character

Post by Cypress » Tue Apr 04, 2023 10:26 pm

Looks good to me, although you only have 249 levels rather than 250. Not sure if that would even really matter though.

Post Reply

Return to “General Mod Making”