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

Armor disappears on disconnect on a server #86

Open
A00826925 opened this issue Feb 11, 2023 · 8 comments
Open

Armor disappears on disconnect on a server #86

A00826925 opened this issue Feb 11, 2023 · 8 comments

Comments

@A00826925
Copy link

the mod is installed on both client and server, getting a cosmetic and disconnecting from the game will remove it from existence

@zlainsama
Copy link
Owner

Could you provide versions of the mods? also Forge version, and if the server software is purely Forge or mixed?

@A00826925
Copy link
Author

A00826925 commented Feb 12, 2023

im using CosmeticArmorReworked-1.19.2-v1a.jar in the following modpack: https://www.curseforge.com/minecraft/modpacks/better-forever

tested the void of the items on a server, using a turtle helmet and a sombrero from alexs mobs. it might be an incompatibility with another mod. As far as i know this is only a forge mod, idk what you mean by mixed.

@zlainsama
Copy link
Owner

zlainsama commented Feb 12, 2023

I mean it if you are using a Forge + plugins software...

Does this also happen in Singleplayer in that modpack?

Edit: most mods in that modpack I have played with in my personal pack, didn't have problems. The only mod that touches saves I think is Smooth Chunk Save, Could you try without it? (Although I don't think it would affect player saves, just in case)

@A00826925
Copy link
Author

nothing wrong on singleplayer and cant really test without smooth chunk since theres people playing on the server atm, also theres no plugins, but the server is running on docker

@zlainsama
Copy link
Owner

zlainsama commented Feb 12, 2023

You could start a server on your local machine to test.
Do you have access to your server world files? to check if there are .cosarmor files inside "root/world/playerdata/".

@A00826925
Copy link
Author

A00826925 commented Feb 12, 2023

there are cosfile there, however i noticed something. Theres one that was updated, along with 2 other files, an hour ago, probably from a friend, then theres my files, normal inventory files say updated seconds ago, but the cosarmor file has not been updated in 5 days. ill try to delete it and regenerate it.

@A00826925
Copy link
Author

i have fixed it, this world was ported from singleplayer to multiplayer, early after switching i lost my inventory server side, so i decided to move my inventory from singleplayer into the server, for some reason cosmetic armor did not recognize my cosmetic armor file i imported from singleplayer and it also wouldnt write over it, never updating it. After deleting the file, equiping cosmetics and logging out, a new file was created and after logging back in my item did not disappear. sorry on my end. (this also shows cosmetic armor not overwriting / writing on previously created / imported files, this could be fixed but since its such a specific problem idk if its worth your time)

@zlainsama
Copy link
Owner

zlainsama commented Feb 12, 2023

Hmm, It would be because it failed in loading/saving those data.
It should have logged some information in server logs, try searching "Failed to load CosmeticArmor data" and "Failed to save CosmeticArmor data".
Data from other saves generally are not compatible, because item ids are not same, it would need proper conversion to be able to use in another save.
Adding/Removing/Editing/Updating mods in the same save work because Forge keep tracks of old ids.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants