-
Notifications
You must be signed in to change notification settings - Fork 513
Add bot skin generation #3019
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
base: development
Are you sure you want to change the base?
Add bot skin generation #3019
Conversation
I think this way is easier. |
that loop is unchecked and can theoretically loop infinitely. the best way to do it would be accessing CharSections dbc data from the cache but this is straightforward and does the job just as well. |
I'm sorry, but how can this loop be unchecked? It uses the verification function. core/src/game/Objects/Player.cpp Line 362 in 2dae0ef
This verification function is used when creating a character. How can this cycle run indefinitely? |
it randomly rolls a skin, attempts to validate it, and if it's not valid it re-runs the loop. it could fail to roll a valid skin infinitely, in theory. |
It sounds almost impossible. |
using a loop here isn't clean, it's unnecessary cycles when the data is static and can be hardcoded or pulled from the DBC storage. And there should never be any potential for infinite loops. Non-deterministic behavior leads to crashes. |
Well, that's your right to think so. |
Well, if you're interested in being the one to fix this issue, then you should look at how DBC data is stored. All the valid combinations exist already but aren't currently accessed by the bot generator. Write a function that does this and PR it so I can close mine. |
Adds proper bot skin generation.