Caltinor / Project-MMO-2.0

A continuation of Harmony's Project MMO project
38 stars 22 forks source link

some pmmo bugs i found #65

Closed Tom28281 closed 2 years ago

Tom28281 commented 2 years ago

BUG 1: the exp gain with endurance and combat is bugged for some mobs. Creeper, skeleton, enderman, and spider dont give any endurance or combat exp, zombie works fine. All i did was go to the config and change some exp gain things and now they broke. Also the passive mobs dont give any combat exp either.

BUG 2: the very slow mining thing is not fixed.

expected results of BUG 1: i was supposed to get combat exp when i damaged them and endurance when i got hit from the mobs. expected results of bUG 2: you know, mine normally

Reproduction of BUG 1: idk, like i said i changed the exp gain for certain actions and all of the hostile mobs but the zombie are bugged

Reproduction of BUG 2: idk that, you said you fixed it but i am still facing the issue

MC version: 1.19 Forge:41.1.0 Pmmo: 0.3.3

Caltinor commented 2 years ago

@Tom28281 Could you please answer the following:

Bug 1

Bug 2

P.S. in the future, please make a report for each bug so that i can tag, manage, and resolve them independently.

Tom28281 commented 2 years ago

bug 1: i changed the [XP_Gains] in pmmo-server (pretty much all of them) i dealt melee to the passive mobs

bug 2:it just randomly gives me something like mining fatigue 1 for the one block that i am mining

Caltinor commented 2 years ago

For Bug 1, could you share your pmmo-server here so i can look at the settings more thoroughly and use it for testing?

For Bug 2, I was correct that is not the thing i fixed. The only things that can cause mining fatigue are biome debuffs if you in a biome you do not have the req for, or tool debuffs, for the same reason. If the biome you are in and the tool don't have debuffs or all the reqs are met, it's not pmmo giving you mining fatigue.

Tom28281 commented 2 years ago

bug 1: (github doesnt allow toml)

General settings on the server

[General]

how much extra reach should a player get in creative mode

#Range: 4.0 ~ 1.7976931348623157E308
"Creative Reach" = 4.0
#Which block should be used for salvaging
"Salvage Block" = "minecraft:smithing_table"

Settings related level gain

[Levels]

The highest level a player can acheive in any skill.

#NOTE: if this is changing on you to a lower value, that's intentional
#If your formula makes the required xp to get max level greater than
#pmmo can store, pmmo will replace your value with the actual max.
#Range: > 1
"Max Level" = 341
#shold levels be determined using an exponential forumula?
"Use Exponential Formula" = true
#How much experience should players lose when they die?
#zero is no loss, one is lose everything
#Range: 0.0 ~ 1.0
"Loss on death" = 0.0
#should loss of experience cross levels?
#for example, if true, a player with 1 xp above their current level would lose the
#[Loss on death] percentage of xp and fall below their current level.  However,
#if false, the player would lose only 1 xp as that would put them at the base xp of their current level
"Lose Levels On Death" = false
#This setting only matters if [Lose Level On Death] is set to false.
#If this is true the [Loss On Death] applies only to the experience above the current level
#for exmample if level 3 is 1000k xp and the player has 1020 and dies.  the player will only lose
#the [Loss On Death] of the 20 xp above the level's base.
"Lose Only Excess" = true

#Settings for Linear XP configuration
[Levels."LINEAR LEVELS"]
    #what is the base xp to reach level 2 (this + level * xpPerLevel)
    #Range: 1 ~ 9223372036854775807
    "Base XP" = 200
    #What is the xp increase per level (baseXp + level * this)
    #Range: 1.0 ~ 1.7976931348623157E308
    "Per Level" = 300

#Settings for Exponential XP configuration
[Levels."EXPONENTIAL LEVELS"]
    #What is the x in: x * ([Power Base]^([Per Level] * level))
    #Range: > 1
    "Base XP" = 250
    #What is the x in: [Base XP] * (x^([Per Level] * level))
    #Range: 0.0 ~ 1.7976931348623157E308
    "Power Base" = 1.1
    #What is the x in: [Base XP] * ([Power Base]^(x * level))
    #Range: 0.0 ~ 1.7976931348623157E308
    "Per Level" = 1.1

Settngs governing requirements at the macro level

[Requirements]

#Should requirements apply for the applicable action type
[Requirements.Req_Enabled]
    "WEAR Req Enabled" = false
    "USE_ENCHANTMENT Req Enabled" = false
    "TOOL Req Enabled" = false
    "WEAPON Req Enabled" = false
    "USE Req Enabled" = true
    "PLACE Req Enabled" = false
    "BREAK Req Enabled" = false
    "KILL Req Enabled" = true
    "TRAVEL Req Enabled" = true
    "RIDE Req Enabled" = true
    "TAME Req Enabled" = true
    "BREED Req Enabled" = true
    "INTERACT Req Enabled" = true
    "ENTITY_INTERACT Req Enabled" = true

#Should requirements be strictly enforced?
#if no, then requirements will have certain penalties applied
#proportionate to the gap between the player and the requirement
[Requirements.Strict_Reqs]
    "WEAR Req Strict" = false
    "USE_ENCHANTMENT Req Strict" = false
    "TOOL Req Strict" = true
    "WEAPON Req Strict" = false
    "USE Req Strict" = false
    "PLACE Req Strict" = false
    "BREAK Req Strict" = false
    "KILL Req Strict" = false
    "TRAVEL Req Strict" = false
    "RIDE Req Strict" = false
    "TAME Req Strict" = false
    "BREED Req Strict" = false
    "INTERACT Req Strict" = false
    "ENTITY_INTERACT Req Strict" = false

All settings related to the gain of experience

[XP_Gains]

how much of the original XP should be awarded when a player breaks a block they placed

#Range: 0.0 ~ 1.7976931348623157E308
"Reuse Penalty" = 0.1
#Should xp Gains from perks be added onto by configured xp values
"Perks Plus Configs" = true

#Settings related to certain default event XP awards.
[XP_Gains.Event_XP_Specifics]

    [XP_Gains.Event_XP_Specifics.Damage_Received]

        [XP_Gains.Event_XP_Specifics.Damage_Received."FROM_ENVIRONMENT Skills and Ratios"]
            endurance = 25.0

        [XP_Gains.Event_XP_Specifics.Damage_Received."FROM_IMPACT Skills and Ratios"]
            endurance = 20.0

        [XP_Gains.Event_XP_Specifics.Damage_Received."FROM_MAGIC Skills and Ratios"]
            magic = 35.0

        [XP_Gains.Event_XP_Specifics.Damage_Received."FROM_PROJECTILE Skills and Ratios"]
            endurance = 25.0

        [XP_Gains.Event_XP_Specifics.Damage_Received."RECEIVE_DAMAGE Skills and Ratios"]
            endurance = 25.0

    [XP_Gains.Event_XP_Specifics.Damage_Dealt]

        [XP_Gains.Event_XP_Specifics.Damage_Dealt."DEAL_MELEE_DAMAGE Skills and Ratios"]
            combat = 30

        [XP_Gains.Event_XP_Specifics.Damage_Dealt."DEAL_RANGED_DAMAGE SKills and Ratios"]
            archery = 30

    [XP_Gains.Event_XP_Specifics.Jumps]

        [XP_Gains.Event_XP_Specifics.Jumps."JUMP Skills and Ratios"]
            agility = 2.5

        [XP_Gains.Event_XP_Specifics.Jumps."SPRINT_JUMP Skills and Ratios"]
            agility = 2.5

        [XP_Gains.Event_XP_Specifics.Jumps."CROUCH_JUMP Skills and Ratios"]
            agility = 2.5

    [XP_Gains.Event_XP_Specifics.Player_Actions]

        [XP_Gains.Event_XP_Specifics.Player_Actions."BREATH_CHANGE Skills and Ratios"]
            swimming = 2.5

        [XP_Gains.Event_XP_Specifics.Player_Actions."HEALTH_CHANGE Skills and Ratios"]
            endurance = 25

        [XP_Gains.Event_XP_Specifics.Player_Actions."SPRINTING Skills and Ratios"]
            agility = 250.0

        [XP_Gains.Event_XP_Specifics.Player_Actions."SUBMERGED Skills and Ratios"]
            swimming = 2.5

        [XP_Gains.Event_XP_Specifics.Player_Actions."SWIMMING Skills and Ratios"]
            swimming = 250.0

        [XP_Gains.Event_XP_Specifics.Player_Actions."DIVING Skills and Ratios"]
            swimming = 150.0

        [XP_Gains.Event_XP_Specifics.Player_Actions."SURFACING Skills and Ratios"]
            swimming = 50.0

        [XP_Gains.Event_XP_Specifics.Player_Actions."SWIM_SPRINTING Skills and Ratios"]
            swimming = 200.0

All setings governing party behavior

[Party]

How close do party members have to be to share experience.

#Range: > 0
"Party Range" = 200
#How much bonus xp should parties earn.
#This value is multiplied by the party size.
#Range: 1.0 ~ 1.7976931348623157E308
"Party Bonus" = 1.25

settings related to how strong mobs get based on player level.

[Mob_Scaling]

Should mob scaling be turned on.

"Enable Mob Scaling" = true
#How far should players be from spawning mobs to affect scaling?
#Range: > 0
"Scaling AOE" = 200
#what is the minimum level for scaling to kick in
#Range: > 0
"Base Level" = 0

#How should mob attributes be calculated with respect to the player's level.
[Mob_Scaling.Formula]
    #shold levels be determined using an exponential forumula?
    "Use Exponential Formula" = true

    #Settings for Linear scaling configuration
    [Mob_Scaling.Formula.LINEAR_LEVELS]
        #What is the xp increase per level ((level - base_level) * this)
        #Range: 0.0 ~ 1.7976931348623157E308
        "Per Level" = 1.0

    #Settings for Exponential scaling configuration
    [Mob_Scaling.Formula.EXPONENTIAL_LEVELS]
        #What is the x in: (x^([Per Level] * level))
        #Range: 0.0 ~ 1.7976931348623157E308
        "Power Base" = 1.104088404342588
        #What is the x in: ([Power Base]^(x * level))
        #Range: 0.0 ~ 1.7976931348623157E308
        "Per Level" = 1.0

#These settings control which skills affect scaling and the ratio for each skill
#HP Scale: 1 = half a heart, or 1 hitpoint
#SPD Scale: 0.7 is base for most mobs.  this is added to that. so 0.7 from scaling is double speed
#DMG Scale: is a multiplier of their base damage.  1 = no change, 2 = double damage
#negative values are possible and you can use this to create counterbalance skills
[Mob_Scaling.Scaling_Settings]

    [Mob_Scaling.Scaling_Settings."HP Scaling and Ratios"]
        combat = 0.01

    [Mob_Scaling.Scaling_Settings."Speed Scaling and Ratios"]
        combat = 0.001

    [Mob_Scaling.Scaling_Settings."Damage Scaling and Ratios"]
        combat = 0.001

Settings related to the Vein Miner

[Vein_Miner]

If true, default consume will be ignored in favor of only allowing

#veining blocks with declared values.
"Require Settings" = false
#how much a block should consume if no setting is defined.
"Vein Mine Default Consume" = 1

BUG 2: its weird since i dont any warning for requirements and the mining fatique ish thing happens randomly and everywhere