Commit Graph

59 Commits

Author SHA1 Message Date
Spp
cdef980af4 Core: Fix some warnings
--HG--
branch : trunk
2010-09-06 15:23:08 +02:00
Spp
23b5ae9d37 Core/Dungeon Finder: Fix an error that made restriction ignored when expanding a random dungeon to the related dungeons
- Fixes selecting a dungeon not in the level bracket of the players
- Fixes matching incompatible groups
- Fixes heroic binds being ignored (Fixes issue 3845)

--HG--
branch : trunk
2010-09-06 04:42:02 +02:00
Spp
c419c9f3cd Core/Dungeon Finder: Fix an error that made some groups being marked as compatibles when they are not
--HG--
branch : trunk
2010-09-06 03:51:08 +02:00
Spp
a27f077197 Core/Dungeon Finder: Autodismount players when teleported to dungeon
--HG--
branch : trunk
2010-09-06 03:40:30 +02:00
Spp
56940bb4a4 Core/Dungeon Finder: Fix an error that prevented lfg groups to find a new proposal with queued groups
- Also fix a typo in previous Dungeon Finder commit

Updates issue 3465

--HG--
branch : trunk
2010-09-06 03:03:21 +02:00
Spp
4c393dc36b Fix typo in previous commit
--HG--
branch : trunk
2010-09-05 23:20:55 +02:00
Spp
26e3c5eb20 Core/Dungeon Finder: Redo find group algorithm
- Cache compatibilities to avoid doing calcs twice
- Algorithm will get all proposals (again)

Updates issue 3415

--HG--
branch : trunk
2010-09-05 22:05:14 +02:00
Spp
b80e1b4b5b Core/Dungeon Finder: Minor cleanups
--HG--
branch : trunk
2010-09-05 21:29:52 +02:00
Spp
9e4dd760ba Code/Dungeon Finder: Move some packets from Mgr to Handler
--HG--
branch : trunk
2010-09-04 18:20:10 +02:00
Spp
d566f8cccc Core/Dungeon Finder: Minor fixes to Reward system.
- Check if its random dungeon before giving rewards
- Update achievement only for heroic dungeons
- Other minor fixes

--HG--
branch : trunk
2010-09-04 15:40:43 +02:00
silinoron
5179d3149a Core/Game: Fix remaining warnings on windows (and most likely almost all of the ones on *nix)
--HG--
branch : trunk
2010-09-03 21:55:57 -07:00
Shauren
8f1d660a4b Core/Dungeon Finder: Added missing check in previous revision and moved RewardDungeonDoneFor to proper place in the file
--HG--
branch : trunk
2010-09-03 20:25:03 +02:00
Shauren
d5115ca687 Core/Dungeon Finder: Added support for rewards for random dungeons
Core/Quests: Simplified rewarding money from quests, now ModifyMoney and UpdateAchievementCriteria are called only once per quest
Core/Achievements: Implemented ACHIEVEMENT_CRITERIA_TYPE_USE_LFD_TO_GROUP_WITH_PLAYERS

--HG--
branch : trunk
2010-09-03 20:11:14 +02:00
Spp
8333b1b23f Dungeon Finder: Fix incorrect use of guid
--HG--
branch : trunk
2010-08-27 19:27:50 +02:00
Spp
eedce26148 Dungeon Finder: Limit the number of groups added to queue to one per update
--HG--
branch : trunk
2010-08-24 10:37:55 +02:00
Spp
33f1c597a0 Remove trailing spaces in Dungeon Finder files
--HG--
branch : trunk
2010-08-24 10:32:53 +02:00
silinoron
8649bee17f Replace World::getConfig with World::getFloatConfig, World::getIntConfig, and World::getBoolConfig.
Also fix a warning from a previous commit.

--HG--
branch : trunk
2010-08-23 19:56:47 -07:00
Spp
c3343638cb Core: Remove lots warnings:
- All "'xxx' will be initialized after 'yyy' when initialized here"
- Some "unused variable"
- Some "enumeration value 'xxx' not handled in switch"

--HG--
branch : trunk
2010-08-21 20:08:47 +02:00
click
a7498d2f56 Core/Includes: Include ACE as an external dependency, not local (#include "ace/something.h" -> #include <ace/something.h>)
--HG--
branch : trunk
2010-08-21 02:27:12 +02:00
Spp
c75ab7fd28 Dungeon Finder: Add a check to avoid rolechecks with no dungeon (Only happen with groups loaded from DB)
This fixes a crash in UpdateProposal.

Updates issue 3465

--HG--
branch : trunk
2010-08-20 01:27:05 +02:00
Spp
fb9c6c96c7 Dungeon Finder: Some optimizations to find algorithm
* Select first match as valid (Before it was storing all possible and later selecting one)
* Add some checks to make sure no unnecessary calcs are done

--HG--
branch : trunk
2010-08-18 22:50:04 +02:00
Spp
eebb36ba58 Dungeon Finder: Fix a possible crash in UpdateProposal
--HG--
branch : trunk
2010-08-18 22:32:11 +02:00
Spp
1ab2bd6d58 Dungeon Finder: Update wait time after a successful proposal
--HG--
branch : trunk
2010-08-18 00:30:17 +02:00
Spp
7a13043af4 Dungeon Finder: Properly remove from current and new queues after a proposal was found (Better fix than b70906fded)
--HG--
branch : trunk
2010-08-18 00:32:11 +02:00
Spp
c23bb8c58d Dungeon Finder: Add null check log to track an error (Will only appear after a server crash with Lfg groups)
--HG--
branch : trunk
2010-08-17 13:36:09 +02:00
Spp
54b4345481 Dungeon Finder: Fix proposals when joining the queue as LfgGroup with 5 members. Success was never possible
This fixes a inconsistency and a possible deadloop

--HG--
branch : trunk
2010-08-17 13:18:18 +02:00
Spp
0c7f37dab3 Dungeon Finder: Properly remove a player/group from queue after a proposal is formed
This should fix some of the inconsistencies

--HG--
branch : trunk
2010-08-17 11:38:30 +02:00
Spp
6009ac3f45 Dungeon Finder: Simplify 'Offer to continue' checks and allow to join non-random dungeon after a random one is assigned
--HG--
branch : trunk
2010-08-17 11:26:31 +02:00
Spp
46d06a859b Dungeon Finder: Drop use of config value CONFIG_INSTANCE_IGNORE_LEVEL
--HG--
branch : trunk
2010-08-17 10:24:52 +02:00
Spp
d1d7c64c43 Typo in my previous commit that broke (again, sigh!) Dungeon Finder.
Thanks to Tali for the warn

--HG--
branch : trunk
2010-08-14 21:06:38 +02:00
Spp
9e2d863894 Dungeon Finder: Move cleaner to a new separate function as it's a teporal add.
* Add new check before adding group to new queue (will avoid having a group multiple times queued)

--HG--
branch : trunk
2010-08-14 19:30:15 +02:00
Spp
a32f0e7e9d Dungeon Finder: Add minor optimization to FindNewGroups
--HG--
branch : trunk
2010-08-14 15:04:52 +02:00
Spp
ff726c2792 Dungeon Finder: Add config value to Enable/Disable Dungeon Finder
Note: Default value = Disable (while is WIP)

--HG--
branch : trunk
2010-08-14 03:25:43 +02:00
Spp
f12b51c218 Dungeon Finder: Mark obsolete kick as failed (missing code from ce404e62b3)
--HG--
branch : trunk
2010-08-14 02:21:07 +02:00
Spp
1d77667ff7 Dungeon Finder: Fix a typo that made all people being removed from queue when someone didn't accept
--HG--
branch : trunk
2010-08-14 02:08:00 +02:00
Spp
1bc842e0d7 Dungeon Finder: Add Consistency cleaner
This is temporaly added to check if there are inconsistencies in dungeon finder. Will be removed after a period of time with no reports

* Check if guids in proposal queue exists before readding
* Change operator [] with find in queueMap when checking if queue info exists.

--HG--
branch : trunk
2010-08-14 02:05:05 +02:00
Spp
3e29ae1ee8 Dungeon Finder: Add vote kick support
--HG--
branch : trunk
2010-08-13 15:38:10 +02:00
Spp
4558ac1d2a Fix typo in previous commit that broke Dungeon Finder
--HG--
branch : trunk
2010-08-13 08:54:01 +02:00
Spp
663bd9404a Dungeon Finder: Change ASSERT with returns wherever is possible. If it affects packets then make sure it fills the correct data.
Thanks to a553r7fa1|3d for spotting the packet problem

--HG--
branch : trunk
2010-08-13 08:06:04 +02:00
Spp
999bae68a4 Add null check to prevent a crash.
Closses issue 3405

--HG--
branch : trunk
2010-08-12 20:31:49 +02:00
Spp
eec9212ee4 Dungeon Finder: Fix bad dungeon selection being show at offer continue rolechecks
--HG--
branch : trunk
2010-08-12 00:02:15 +02:00
Spp
5b1b713aa6 Dungeon Finder: Fix rolechecks. All checks with less that 5 players were being rejected
--HG--
branch : trunk
2010-08-12 00:06:53 +02:00
Spp
f482bb1cd5 Dungeon Finder: Fix proposal window dungeon display
--HG--
branch : trunk
2010-08-11 17:31:34 +02:00
Spp
c53bec73f1 Dungeon Finder: Use DisableMgr and dungeon Saves in dungeon lock list
--HG--
branch : trunk
2010-08-11 16:17:05 +02:00
Spp
41534a1324 Dungeon Finder: Add proposals, find group algorithm and teleport support
Note: Adds hability to find a group and be teleported to dungeon, but no rewards yet (WIP)

--HG--
branch : trunk
2010-08-11 15:55:27 +02:00
Spp
f9468e7e5d Dungeon Finder: Add LFG support to groups
--HG--
branch : trunk
2010-08-11 15:20:20 +02:00
Spp
23c4b1be25 Dungeon Finder: minor improvements and code clean-ups
- Initialize all packet size properly
- Updated all function documentation
- Add placeholders to all LFG opcodes
- Use lowguids wherever is possible

--HG--
branch : trunk
2010-08-11 13:25:14 +02:00
Spp
ac4df5204b Dungeon Finder: Improve Join and UpdateRoles and move queue to main class
--HG--
branch : trunk
2010-08-11 12:44:49 +02:00
Spp
4b62042b28 Dungeon Finder: Make player internal Lfg data private and some minor cleanups
--HG--
branch : trunk
2010-08-11 11:54:03 +02:00
Spp
2638d24926 Dungeon Finder: redo CheckGroupRoles, sometimes it was accepting wrong roles as valid
--HG--
branch : trunk
2010-08-11 11:27:36 +02:00