Project MMO

Project MMO

10M Downloads

[1.19.2] Mob Scaling and Linear Levels

SomewhatDamaged opened this issue · 5 comments

commented

Describe the bug
If linear level scaling is selected, mob scaling can start setting negative values at high combat skill.

Expected behavior
Mobs should become exceptionally hard as your skill increases.

To Reproduce
Steps to reproduce the behavior:

  1. Set scaling to linear
  2. Give self 200 combat skill
  3. Spawn a zombie in a hole
  4. See error

Screenshots

[08Dec2023 14:52:11.725] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: NearbyPlayers on Spawn: [ServerPlayer['SomewhatDamaged'/289, l='ServerLevel[New World]', x=51.59, y=70.00, z=85.16], ]
[08Dec2023 14:52:11.725] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Modifier Value: 3988.134
[08Dec2023 14:52:11.725] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Entity=Zombie Attribute=minecraft:generic.movement_speed value=-0.01125
[08Dec2023 14:52:11.725] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Modifier Value: 398813.4
[08Dec2023 14:52:11.725] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Entity=Zombie Attribute=minecraft:generic.attack_damage value=-15.36
[08Dec2023 14:52:11.725] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Modifier Value: 3988134.0
[08Dec2023 14:52:11.725] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Entity=Zombie Attribute=minecraft:generic.max_health value=-7168.0

Versions:

  • Minecraft: 1.19.2
  • Loader: Forge-43.3.0
  • PMMO: 1.19.2-3.3.10
commented

May also be a thing in regular scaling too.

commented

the only code that would invert the value of the scaling would be the boss multiplier (if a boss mob) or the dimension/biome modifiers. I am also unable to reproduce the issue even in a biome with negative values

commented

Okay, created fresh instance and followed instructions—and it didn't happen.

Now to examine the instance that is and try to figure out what's going on.

commented

Okay, going over it, I can't recreate the bug that I recreated before. /o\

I have tried copying config files to new instances. I have tried building new instances. I have compared files and tried to figure out what the heck is going on—to no avail.

commented

https://xkcd.com/583/

Can't and shouldn't.