Welcome to the Builder Academy

Question Theoretical maximum for experience?

More
06 Aug 2025 19:07 #10849 by wlessard1
I am playing around with the code for a function rather than a table for experience. What I am worried about is maxxing out exp.
Currently I have it at 15,000,000 but for the logarithmic change I am looking for, it seems to be a bit low over 51 levels. I just don't want to break the mud if I go too high for total XP.

I toyed with the idea of limiting XP gain based on how many levels above a mob a player is and just go with a static XP per level but that seemed a bit too much.

Bramage - Making a mud for nobody for some reason but still. hehehehe.

Please Log in or Create an account to join the conversation.

More
06 Aug 2025 20:00 #10850 by thomas
Max xp is 2,147,483,647 - INT_MAX :)
The following user(s) said Thank You: wlessard1

Please Log in or Create an account to join the conversation.

More
11 Sep 2025 14:38 #10888 by Salty
I changed to long ints for my experience. This gives me 8 bytes.

Exp values range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

I did this because my max level is 100, I track the total exp a character gains over their lifetime, and characters spend their earned exp to level, gain stat bonuses, etc.

And no, I don't NEED that much headroom, but I need more than a 4 byte int can provide.

-Salty

Please Log in or Create an account to join the conversation.

More
12 Sep 2025 01:43 #10890 by wlessard1
I just wanted to make sure I didn't go too high. I implemented a formula based XP progression.

Hit a total around 25 million I think.

Please Log in or Create an account to join the conversation.

Time to create page: 0.177 seconds