palworld-server-toolkit icon indicating copy to clipboard operation
palworld-server-toolkit copied to clipboard

Item edit Problem

Open FunjaPlays opened this issue 1 year ago • 7 comments

Hey i have the Problem if i make a new item (PAL Armor all weapoms or Hyper Glider) that they count 1 But i can Not Shoot the weapons And the armor dont give me and armor as well The dont Even have a repair bar image

FunjaPlays avatar Feb 16 '24 07:02 FunjaPlays

I cant use rocket, arrows or any weapons. is their an edit item stats feature in the future? it will be a good thing to change some of the item stats

bordzee avatar Feb 17 '24 04:02 bordzee

Thats because the weapons have the Little 1 in the Right corner and Not a repair bar There glitched of u have that on ur armor that the dont raise Ur DEF

FunjaPlays avatar Feb 17 '24 09:02 FunjaPlays

Do you know how to fix it?

bordzee avatar Feb 17 '24 13:02 bordzee

No thats why i make this issue

FunjaPlays avatar Feb 17 '24 13:02 FunjaPlays

ah i see what you mean on the 1 at the bottom right corner, cause most items have 1 in it probably thats the reason why its not working. Hopefully they will add edit item stats so we can change the stats of the items like damage etc

bordzee avatar Feb 17 '24 14:02 bordzee

Yes thats the reason But with the thermal undershirt it worked

FunjaPlays avatar Feb 17 '24 19:02 FunjaPlays

not sure if anyone is still working on this one, but for crafted equippable weapon/armor/shield/glider, you need to add the item entry to "DynamicItemSaveData" and give it a unique value in "LocalIdInCreatedWorld", then use the value in your newly added item in "LocalIdInCreatedWorld"->"value" field

for example for my hyper shield (Shield_04), i added this to the "DynamicItemSaveData" with unique id of "21deaa5f-48cf-25c5-2b08-0995ef69ae49" { "ID": { "struct_type": "PalDynamicItemId", "struct_id": "00000000-0000-0000-0000-000000000000", "id": null, "value": { "CreatedWorldId": { "struct_type": "Guid", "struct_id": "00000000-0000-0000-0000-000000000000", "id": null, "value": "00000000-0000-0000-0000-000000000000", "type": "StructProperty" }, "LocalIdInCreatedWorld": { "struct_type": "Guid", "struct_id": "00000000-0000-0000-0000-000000000000", "id": null, "value": "21deaa5f-48cf-25c5-2b08-0995ef69ae49", "type": "StructProperty" } }, "type": "StructProperty" }, "StaticItemId": { "id": null, "value": "Shield_04", "type": "NameProperty" }, "RawData": { "array_type": "ByteProperty", "id": null, "value": { "id": { "created_world_id": "00000000-0000-0000-0000-000000000000", "local_id_in_created_world": "21deaa5f-48cf-25c5-2b08-0995ef69ae49", "static_id": "Shield_04" }, "type": "armor", "durability": 1743.0 }, "type": "ArrayProperty", "custom_type": ".worldSaveData.DynamicItemSaveData.DynamicItemSaveData.RawData" } }

then in my "Slots" for the shield, change the localId to match: { "SlotIndex": { "id": null, "value": 4, "type": "IntProperty" }, "ItemId": { "struct_type": "PalItemId", "struct_id": "00000000-0000-0000-0000-000000000000", "id": null, "value": { "StaticId": { "id": null, "value": "Shield_04", "type": "NameProperty" }, "DynamicId": { "struct_type": "PalDynamicItemId", "struct_id": "00000000-0000-0000-0000-000000000000", "id": null, "value": { "CreatedWorldId": { "struct_type": "Guid", "struct_id": "00000000-0000-0000-0000-000000000000", "id": null, "value": "00000000-0000-0000-0000-000000000000", "type": "StructProperty" }, "LocalIdInCreatedWorld": { "struct_type": "Guid", "struct_id": "00000000-0000-0000-0000-000000000000", "id": null, "value": "21deaa5f-48cf-25c5-2b08-0995ef69ae49", "type": "StructProperty" } }, "type": "StructProperty" } }, "type": "StructProperty" }, "StackCount": { "id": null, "value": 1, "type": "IntProperty" }, "RawData": { "array_type": "ByteProperty", "id": null, "value": { "permission": { "type_a": [ 3, 4, 10 ], "type_b": [ 51 ], "item_static_ids": [] }, "corruption_progress_value": 0.0 }, "type": "ArrayProperty", "custom_type": ".worldSaveData.ItemContainerSaveData.Value.Slots.Slots.RawData" } }

theclueless1 avatar Apr 08 '24 17:04 theclueless1