-
Notifications
You must be signed in to change notification settings - Fork 147
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
BREAKING CHANGE: Feat(Multistate): Add MultiState #249
base: master
Are you sure you want to change the base?
Conversation
This PR is going to require intensive testing. Thanks for the effort, I'm looking forward to some testers. |
Compilation failed. The log is:错误 MSB3073 命令“setlocal |
Your screen gives no indication of a possible error, there's nothing to help you understand the error or to help you, there's no usable information. |
I just tried giving this a compile by pulling https://github.com/iThorgrim/azerothcore-wotlk/tree/ElunaMultiState and https://github.com/iThorgrim/mod-eluna/tree/MultiStates but had to iron out a few kinks to get it functional:
|
Update: I'm stuck on booting with the following issue now, any clue what might cause this? Wiping the game event tables and starting afresh doesn't seem to resolve it. Will take me some time to get to look into it and onto testing multithreaded mod-eluna, so if you guys have any pointers or clues, they're much appreciated!
|
I see you have this error's:
Except that I haven't made any changes that involve GameEvent in any way :-/ |
✨ MultiState Support for mod-eluna
📝 Description
This pull request introduces MultiState support in
mod-eluna
, allowing each map in AzerothCore to have its own independent Lua state.Note
Implementation based on this PR.
Warning
Require this PR.
⚡ Features
📊 New API Methods
1.
GetStateMapId()
Retrieves the map ID associated with the current Lua state.
Example:
In this example, players logging into map 530 will receive a different notification than players on other maps.
2.
GetStateByMap(mapId)
Fetches the Lua state for a given map.
Example:
🔧 Implementation Details
💡 Why MultiState?
🎨 Testing
Results:
Desktop.2025-01-30.18-55-01.mp4