Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Armor Effects and Color crash #1382

Open
4 tasks done
GrayServers opened this issue May 6, 2024 · 0 comments
Open
4 tasks done

[BUG] Armor Effects and Color crash #1382

GrayServers opened this issue May 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GrayServers
Copy link

GrayServers commented May 6, 2024

I have checked...

  • I am using the latest version of Oraxen
  • I am using the latest version of any dependencies
  • I am using ProtocolLib 5.0
  • I have checked if any similar bug reports exist

Description

I have a problem, sometimes after a restart the plugin resets all armor characteristics in 1 file, I write down the error log

[13:11:29] [Server thread/INFO]: KTOymep issued server command: /o reload all
[13:11:29] [Server thread/INFO]: SOE | Papers block-updates.disable-noteblock-updates is not enabled.
[13:11:29] [Server thread/INFO]: SOE | It is recommended to enable this setting for improved performance and prevent bugs with noteblocks
[13:11:29] [Server thread/INFO]: SOE | Otherwise Oraxen needs to listen to very taxing events, which also introduces some bugs
[13:11:29] [Server thread/INFO]: SOE | You can enable this setting in ServerFolder/config/paper-global.yml
[13:11:29] [Server thread/INFO]: SOE | Papers block-updates.disable-tripwire-updates is not enabled.
[13:11:29] [Server thread/INFO]: SOE | It is recommended to enable this setting for improved performance and prevent bugs with tripwires
[13:11:29] [Server thread/INFO]: SOE | Otherwise Oraxen needs to listen to very taxing events, which also introduces some bugs
[13:11:29] [Server thread/INFO]: SOE | You can enable this setting in ServerFolder/config/paper-global.yml
[13:11:29] [Server thread/INFO]: SOE | Updating all items in player-inventories...
[13:11:30] [User Authenticator #64/INFO]: UUID of player MrLololowka_21 is 002cd2e7-7acb-3380-9d31-4735a8cb1e61
[13:11:30] [Server thread/INFO]: SOE | Slicing gui-textures to 1.20.2-format...
[13:11:30] [Server thread/INFO]: SOE | Successfully sliced gui-textures for 1.20.2
[13:11:30] [Server thread/INFO]: SOE | Assigned color 261256 to emerald_helmet
[13:11:30] [Server thread/INFO]: SOE | Assigned color 261256 to emerald_chestplate
[13:11:30] [Server thread/INFO]: SOE | Assigned color 261256 to emerald_leggings
[13:11:30] [Server thread/INFO]: SOE | Color 662276 is already used! Reassigning metheorite with a new color...
[13:11:30] [Server thread/INFO]: SOE | Assigned color 662277 to metheorite_helmet
[13:11:30] [Server thread/INFO]: SOE | Assigned color 662277 to metheorite_chestplate
[13:11:30] [Server thread/INFO]: SOE | Assigned color 662277 to metheorite_leggings
[13:11:30] [Server thread/INFO]: SOE | Assigned color 662277 to metheorite_boots

Before:
image

  displayname: <gradient:#89E59D:#37C6BA>Изумрудный шлем
  material: LEATHER_HELMET
  color: 3,252,136 # rgb
  lore:
  - <#6f737d>» <#D5D6D8>Дает 1 доп. <glyph:heart>
  Mechanics:
    durability:
      value: 437 # 20% more than diamond helmet
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_MAX_HEALTH
    amount: 2
    operation: 0
    uuid: 3a25f0b5-dbda-4e38-b097-9e75e37ae464
    slot: HEAD
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 3
    operation: 0
    uuid: 3a25f0b5-dbda-4e38-b097-9e75e37ae464
    slot: HEAD
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 2
    operation: 0
    uuid: 3a25f0b5-dbda-4e38-b097-9e75e37ae464
    slot: HEAD
  Pack:
    custom_model_data: 1
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/emerald_helmet
      - default/armors/emerald_helmet

emerald_chestplate:
  displayname: <gradient:#89E59D:#37C6BA>Изумрудный нагрудник
  material: LEATHER_CHESTPLATE
  color: 3,252,136
  lore:
  - <#6f737d>» <#D5D6D8>Дает 1,5 доп. <glyph:heart>
  Mechanics:
    durability:
      value: 635
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_MAX_HEALTH
    amount: 3
    operation: 0
    uuid: e06fc6c9-f06a-4b58-b1e2-10d6b282ac04
    slot: CHEST
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 8
    operation: 0
    uuid: e06fc6c9-f06a-4b58-b1e2-10d6b282ac04
    slot: CHEST
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 2
    operation: 0
    uuid: e06fc6c9-f06a-4b58-b1e2-10d6b282ac04
    slot: CHEST
  Pack:
    custom_model_data: 1
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/emerald_chestplate
      - default/armors/emerald_chestplate

emerald_leggings:
  displayname: <gradient:#89E59D:#37C6BA>Изумрудные поножи
  material: LEATHER_LEGGINGS
  color: 3,252,136
  lore:
  - <#6f737d>» <#D5D6D8>Дает 1,5 доп. <glyph:heart>
  Mechanics:
    durability:
      value: 595
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_MAX_HEALTH
    amount: 3
    operation: 0
    uuid: 389ad53a-76be-4101-9ed1-e8da4845d5d2
    slot: LEGS
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 6
    operation: 0
    uuid: 389ad53a-76be-4101-9ed1-e8da4845d5d2
    slot: LEGS
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 2
    operation: 0
    uuid: 389ad53a-76be-4101-9ed1-e8da4845d5d2
    slot: LEGS
  Pack:
    custom_model_data: 1
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/emerald_leggings
      - default/armors/emerald_leggings

emerald_boots:
  displayname: <gradient:#89E59D:#37C6BA>Изумрудные сапоги
  material: LEATHER_BOOTS
  color: 3,252,136
  lore:
  - <#6f737d>» <#D5D6D8>Дает 1 доп. <glyph:heart>
  Mechanics:
    durability:
      value: 516
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_MAX_HEALTH
    amount: 2
    operation: 0
    uuid: 7bfcf804-b75a-40a5-97f5-f23282703d0e
    slot: FEET
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 3
    operation: 0
    uuid: 7bfcf804-b75a-40a5-97f5-f23282703d0e
    slot: FEET
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 2
    operation: 0
    uuid: 7bfcf804-b75a-40a5-97f5-f23282703d0e
    slot: FEET
  Pack:
    custom_model_data: 1
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/emerald_boots
      - default/armors/emerald_boots

metheorite_helmet:
  displayname: <#D5D6D8>Метеоритовый шлем
  material: LEATHER_HELMET
  color: 0,0,0
  lore:
  - <#808080>Энергия космоса
  - <#808080>усиливает твои
  - <#808080>глаза.
  - ''
  - <#808080>Ты видишь в темноте
  Mechanics:
    durability:
      value: 7500
    armor_effects:
      night_vision: # the potion effect type
        duration: 320
        amplifier: 0
        ambient: true # Makes potion effect produce more, translucent, particles.
        particles: false # whether this effect has particles or not
        icon: true # whether this effect has an icon or not
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 8
    operation: 0
    uuid: 6a036f7d-7970-4647-877c-fdd4a5cb4d30
    slot: HEAD
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 4
    operation: 0
    uuid: 6a036f7d-7970-4647-877c-fdd4a5cb4d30
    slot: HEAD
  Pack:
    custom_model_data: 3
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/metheorite_helmet
      - default/armors/metheorite_helmet

metheorite_chestplate:
  displayname: <#D5D6D8>Метеоритовый нагрудник
  material: LEATHER_CHESTPLATE
  color: 0,0,0
  lore:
  - <#808080>Энергия космоса
  - <#808080>усиливает твоё
  - <#808080>туловище
  - ''
  - <#808080>Ты защищен сильнее
  Mechanics:
    durability:
      value: 7500
    armor_effects:
      DAMAGE_RESISTANCE: # the potion effect type
        duration: 60
        amplifier: 1
        ambient: true # Makes potion effect produce more, translucent, particles.
        particles: false # whether this effect has particles or not
        icon: true # whether this effect has an icon or not
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_MAX_HEALTH
    amount: 2
    operation: 0
    uuid: ebdeda71-bf2b-48b1-9727-de079b9557b5
    slot: CHEST
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 10
    operation: 0
    uuid: ebdeda71-bf2b-48b1-9727-de079b9557b5
    slot: CHEST
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 4
    operation: 0
    uuid: ebdeda71-bf2b-48b1-9727-de079b9557b5
    slot: CHEST
  Pack:
    custom_model_data: 3
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/metheorite_chestplate
      - default/armors/metheorite_chestplate

metheorite_leggings:
  displayname: <#D5D6D8>Метеоритовые поножи
  material: LEATHER_LEGGINGS
  color: 0,0,0
  lore:
  - <#808080>Энергия космоса
  - <#808080>усиливает твои
  - <#808080>ноги.
  - ''
  - <#808080>Ты быстрее бегаешь
  Mechanics:
    durability:
      value: 7500
    armor_effects:
      SPEED: # the potion effect type
        duration: 60
        amplifier: 2
        ambient: true # Makes potion effect produce more, translucent, particles.
        particles: false # whether this effect has particles or not
        icon: true # whether this effect has an icon or not
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_MAX_HEALTH
    amount: 2
    operation: 0
    uuid: 9e49958a-911d-4c6b-9fd7-a40efcf7b0b3
    slot: LEGS
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 8
    operation: 0
    uuid: 9e49958a-911d-4c6b-9fd7-a40efcf7b0b3
    slot: LEGS
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 4
    operation: 0
    uuid: 9e49958a-911d-4c6b-9fd7-a40efcf7b0b3
    slot: LEGS
  Pack:
    custom_model_data: 4
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/metheorite_leggings
      - default/armors/metheorite_leggings
metheorite_boots:
  displayname: <#D5D6D8>Метеоритовые ботинки
  material: LEATHER_BOOTS
  color: 0,0,0
  lore:
  - <#808080>Энергия космоса
  - <#808080>усиливает твои
  - <#808080>ступни.
  - ''
  - <#808080>Ты выше прыгаешь
  Mechanics:
    durability:
      value: 7500
    armor_effects:
      JUMP: # the potion effect type
        amplifier: 1
        duration: 60
        ambient: true # Makes potion effect produce more, translucent, particles.
        particles: false # whether this effect has particles or not
        icon: true # whether this effect has an icon or not
  AttributeModifiers:
  - name: oraxen
    attribute: GENERIC_MAX_HEALTH
    amount: 2
    operation: 0
    uuid: 307cf783-d906-4bc6-ba2c-41e15d3ba655
    slot: FEET
  - name: oraxen
    attribute: GENERIC_ARMOR
    amount: 8
    operation: 0
    uuid: 307cf783-d906-4bc6-ba2c-41e15d3ba655
    slot: FEET
  - name: oraxen
    attribute: GENERIC_ARMOR_TOUGHNESS
    amount: 2
    operation: 0
    uuid: 307cf783-d906-4bc6-ba2c-41e15d3ba655
    slot: FEET
  Pack:
    custom_model_data: 3
    generate_model: true
    parent_model: item/generated
    textures: # duplicate because we use the overlay of the leather armor
      - default/armors/metheorite_boots
      - default/armors/metheorite_boots

After:
image

emerald_leggings:
  color: 3,252,136
theorite_helmet:
  color: 10,27,5
metheorite_leggings:
  color: 10,27,5
metheorite_chestplate:
  color: 10,27,5
metheorite_boots:
  color: 10,27,5
metheorite_helmet:
  color: 10,27,5
emerald_helmet:
  color: 3,252,136
emerald_boots:
  color: 3,252,136

my developer says that maybe the reason is the color, which is in the configuration of the armor, maybe I did it wrong?

Steps to reproduce

after /reload all and armor effects they disappear after a while

Plugin Version

1.174.0

ProtocolLib Version

5.2.0-SNAPSHOT-679

Server Software & Version

[14:09:45 INFO]: Current: git-Purpur-2094 (MC: 1.20.2)*
Previous: git-Pufferfish-61 (MC: 1.19.3)

How breaking is the bug?

Breaking Bug - Plugin unusable

@GrayServers GrayServers added the bug Something isn't working label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant