After hours of searching for an answer to this, I figured I might as well just ask.
I have been trying for my server to stop kicking out characters with “wrong appearance” according to the core. Long story short, I try to enable Death Knight skins for all classes. When I modify the skin value to one that shouldn’t be allowed, while it does save, when I enter the character select screen, a message on the worldserver appears, saying that X character has a wrong appearance value, and it forces recustomize. If I try to enter with this character without “recustomizing”, it just kicks me out. When I enter the recustomization screen, it shows up (Such as a human warrior with green undead skin), and if I try to save, the game brushes it off as “Could not customize character”. I have no clue on where to start, so even if you can’t provide an answer, maybe you can show me a bit the way to it.
— Canned message start —
This thread is not related to the official Trinity codebase and was moved to the Custom Code section.
Please read the stickies next time.
— Canned message end —
Hey. Thanks for helping me find it, but since I already have compiled the whole thing, is there a way to “de-compile” it so I can modify the thing without losing the things I did in the server? It’s a roleplay server and we did some customization, and we would prefer to not lose it.
(Sorry if I am asking trivial questions, but I’m no expert, I was helped to do the whole thing)
no there is no way to decompile.
Depending on what kind of custom things you have it is possible to compile a new server that has all the same custom things in it.
Yeah.
If your core has auto updater used then it could be easy. You would just need to compile a new core and let the auto updater handle the DB updates.
If not, then you would need to find out what your core version is ( what commit it is on or what was the newest DB update that was run to any of the DBs ) and then compile a new core and run any new SQL files that have been added since your version.
You could also try to just compile a new core and move the old data to the new one, but that can be considerably more difficult since character data is a bit more complex than just some creature rows and I believe the character DB has had at least some changes in it.
I believe I have tried this already, but I remember the server returning the error message, kicking out the character and forcing a recustomization. Will try again, though. Doing it right now, will compile and try it. Thanks.
Edit: I believe you are using the 3.3.5 branch, yes? My Player.cpp doesn’t appear to be exactly that. I’ll post a pastebin of my part when my laptop opens.