EricksOliveira
8f2455b766
Update PlayerbotCommandServer.cpp
...
Protection against race conditions: Added a global mutex (session_mutex) to synchronize access to the session() function when multiple threads are running. This avoids concurrency problems in environments with many simultaneous connections.
Thread pool usage: Replaced manual thread creation with boost::thread with a thread pool using boost::asio::thread_pool. The thread pool improves resource management and limits the number of simultaneous threads, optimizing performance.
Checking for socket errors: Added check to ensure the socket is not null or closed before trying to read it.
Implemented detailed error handling for readings and writings, including detailed logs to facilitate debugging.
Secure socket closure: Now sockets are correctly closed at the end of the session, even in the event of an error, preventing resource leaks.
2024-10-18 14:37:54 -03:00
EricksOliveira
9280188841
Merge branch 'master' of https://github.com/liyunfan1223/mod-playerbots
2024-10-18 09:29:02 -03:00
EricksOliveira
65b6e15ea1
Fix Crash - OnBotLogin
...
1. Improvements in error handling: Added detailed logs for cases where botAI or master are null, allowing better failure tracking.
2. Additional null pointer checks: Added checks to ensure that the botAI and master are valid before performing actions dependent on these objects, preventing potential crashes.
3. Optimization in bot login logic: Revised the bot input flow to ensure it is added to the group appropriately depending on its relationship to the master.
Added logic for handling different types of groups (raid, LFG, etc.), including the possibility of automatic conversion to raid if necessary.
2024-10-18 09:27:46 -03:00
Yunfan Li
4a85a44c02
Merge pull request #610 from Trus3683/patch-1
...
Visual update playerbots.conf.dist
2024-10-18 10:21:44 +08:00
bash
0dc7a844ea
Merge pull request #611 from hermensbas/feature/bugfix_and_back_orginal_values
...
minor bugfix and back to original cmangos values
2024-10-17 22:30:56 +02:00
bash
4eb40c0395
minor bugfix and back to original cmangos values
2024-10-17 20:28:56 +00:00
Trus3683
a3abc78c24
Visual update playerbots.conf.dist
...
Cleanup for readability on new scaling/bot tuning implements
2024-10-17 12:53:43 -07:00
bash
1c9115d2cf
Merge pull request #609 from hermensbas/feature/revert_rewrite_scaling
...
Revert "Rewrote scaling, moving away from cmangos solutions"
2024-10-17 20:20:08 +02:00
bash
12be2c9971
Revert "Rewrote scaling, moving away from cmangos solutions"
...
This reverts commit 62aef235d1 .
2024-10-17 17:52:05 +00:00
Yunfan Li
ca9bfc4b9c
Merge pull request #605 from Bobblybook/master
...
Halls of Stone implementation
2024-10-17 11:25:39 +08:00
Bobblybook
70c9bdbd9d
Halls of Stone implementation
2024-10-15 22:40:47 +11:00
Yunfan Li
58abb0d9ce
Merge pull request #597 from avirar/clean_quest_log
...
CleanQuestLog Updated
2024-10-14 18:22:36 +08:00
Yunfan Li
d4f3985de0
Merge pull request #602 from EricksOliveira/patch-3
...
Fix LFG Join bug
2024-10-14 18:22:16 +08:00
EricksOliveira
db395ae13c
Fix LFG Join bug
...
This PR adjusts the execution priority of bot actions in Dungeon Finder (DF), modifying the relevance logic to make responses faster. The relevance calculation formula was changed in RpgAction::SetNextRpgAction to reduce the delay between activating actions, especially to improve the acceptance time of bots in DF queues. With these changes, bots now accept vacancies in a more agile and efficient way, optimizing overall response time.
2024-10-13 20:17:18 -03:00
bash
6af6350f1e
Merge pull request #601 from hermensbas/feature/minor_istaxiflying_method_usage
...
Replaced isTaxiFlying check with new function
2024-10-14 00:49:52 +02:00
bash
6e4db7ee3b
Replaced isTaxiFlying check with new function
2024-10-13 22:48:33 +00:00
bash
6d37da89fc
Merge pull request #600 from hermensbas/feature/rewrite_scaling
...
Rewrote scaling moving away from cmangos solutions
2024-10-14 00:20:26 +02:00
bash
62aef235d1
Rewrote scaling, moving away from cmangos solutions
2024-10-13 22:05:39 +00:00
Bobblybook
651c5cdfb0
Merge pull request #599 from Bobblybook/master
...
Gundrak implementation
2024-10-13 23:58:11 +11:00
Bobblybook
608f9d1a68
Gundrak implementation
...
EASY one for once
2024-10-13 21:21:40 +11:00
bash
758bc9600a
Merge pull request #598 from hermensbas/feature/smartscale_added_missing_activity
...
[performance] Smartscale added missing acitivity impl
2024-10-13 02:04:16 +02:00
bash
77ba59ed54
[performance] Smartscale added missing acitivity
2024-10-13 00:00:41 +00:00
avirar
ef7d5d9255
Merge branch 'liyunfan1223:master' into clean_quest_log
2024-10-13 10:50:33 +11:00
Yunfan Li
c0dbdf00f8
Merge pull request #596 from Bobblybook/master
...
Dragon flanking & Violet Hold implementation
2024-10-12 23:44:49 +08:00
Bobblybook
23237d27e4
Update VioletHoldTriggers.h
2024-10-12 23:58:49 +11:00
Bobblybook
5e4764ee9c
Comment cleanup
2024-10-12 23:57:42 +11:00
Bobblybook
7b9da575ef
Violet Hold implementation
...
Violet Hold implementation
Consortium guy is missing, will revisit once I reach heroics so I can code it properly
2024-10-12 23:52:40 +11:00
Bobblybook
b526a07303
Generalise dragon flanking action
2024-10-12 23:51:00 +11:00
bash
22e4a94c80
Merge pull request #595 from hermensbas/feature/autoscale_profile_increase_slightly_more_aggrassive
...
[performance] SmartScale slighty more aggressive
2024-10-12 12:41:57 +02:00
bash
8c86c6b6d7
[performance] SmartScale slighty more aggresive, after testing i found some bots to active
2024-10-12 10:34:45 +00:00
avirar
98c084680c
Update DropQuestAction.cpp
...
Bots were not dropping trivial quests. Initially let them keep quests in progress, but their logs were still very full.
2024-10-12 17:50:42 +11:00
bash
1f85eaaecd
Merge pull request #594 from hermensbas/feature/autoscale_last_feature_latency_scaling
...
[performance] Autoscale latency scaling
2024-10-11 23:24:38 +02:00
bash
158d923c15
Autoscale latency modifier
2024-10-11 21:20:43 +00:00
bash
c2b41dcff1
Merge pull request #593 from hermensbas/feature/autoscale_tweaking
...
[performance] Tweaked autoscale; made it less agressive
2024-10-11 20:53:13 +02:00
bash
c6f9f43a33
[performance] Tweaked autoscale, too many rndbots were idle which defeats the purpose of having rndbots
2024-10-11 18:48:00 +00:00
bash
adf065cfbf
Merge pull request #591 from hermensbas/feature/BotActiveAlone_SmartScale_Toggle_Min_Max_level
...
[performance] Added min-max botLevel to apply smartScale on.
2024-10-11 20:01:02 +02:00
Yunfan Li
f17d07a4a9
Merge pull request #592 from Bobblybook/master
...
DTK Implementation
2024-10-11 22:43:33 +08:00
Bobblybook
161a29657b
corrections
2024-10-11 23:40:06 +11:00
Bobblybook
1a47bf429b
DTK Implementation
...
DTK Implementation
2024-10-11 20:57:58 +11:00
bash
90464ae3ed
Added min and max level for smartScale
2024-10-10 18:01:54 +00:00
Yunfan Li
1024f8c374
Merge pull request #588 from hermensbas/feature/BotActiveAlone_SmartScale_Toggle
...
[performance] BotActiveAlone SmartScale toggle
2024-10-10 23:11:56 +08:00
bash
c7197f0911
[performance] BotActiveAlone SmartScale toggle
2024-10-09 22:34:37 +00:00
Yunfan Li
4c13a11ff2
Merge pull request #586 from Bobblybook/master
...
Old Kingdom implementation
2024-10-09 00:42:52 +08:00
Bobblybook
16ea1777f4
Old Kingdom implementation
...
Ahn'kahet: The Old Kingdom bot AI
2024-10-08 22:35:16 +11:00
Yunfan Li
056c00f706
Merge pull request #580 from hermensbas/feature/increasing_server_memory_patch
...
AllowActive prioritizing and bracket scaling based on bot activity
2024-10-08 10:43:56 +08:00
bash
e8c8401b4a
Ported cmangos of allowAcitity and prority, removed autoscaled based on latency
2024-10-07 20:57:19 +00:00
Revision
62a9a6040a
Merge pull request #585 from Bobblybook/master
...
Azjol-Nerub implementation
2024-10-07 08:15:55 +02:00
Bobblybook
5838cc60ca
Remove debug #2
2024-10-07 10:09:36 +11:00
Bobblybook
66cd3489ed
Remove debug
2024-10-07 10:08:56 +11:00
Yunfan Li
2695b3378e
Merge pull request #583 from liyunfan1223/update_optimize
...
[Performance] Update optimize
2024-10-06 23:03:48 +08:00