Commit Graph

77 Commits

Author SHA1 Message Date
click
461590832a Core: Generic cleanup (tab2spaces/whitespace removal)
--HG--
branch : trunk
2010-09-25 22:03:57 +02:00
Spp
8ef673eda8 Core/Dungeon Finder: Check if system is enabled in some functions before doing anything else
--HG--
branch : trunk
2010-09-21 10:16:54 +02:00
Spp
cd40ab6776 Core/Dungeon Finder: Change all debug msgs to error.
--HG--
branch : trunk
2010-09-20 14:55:01 +02:00
Spp
33dc6b9d5f Core/Dungeon Finder: Multiple changes
- Code Style
- Explicit removal of the proposal if player leaves the queue (do not waits to ::Update)
- Force to leave LFG system if group/player is joining and its already in
- Change some debug msgs and fix some typos (error --> debug)
- Offer to continue: Remove duplicate checks
- Move body functions from .h to .cpp
- Revert 11e39d620d and check if group recently joined by comparing joinTimes

--HG--
branch : trunk
2010-09-20 14:06:21 +02:00
Spp
502a813720 Core/Dungeon Finder: Use correct guids to readd or remove players when removing a failed proposal
- Also add Some debug and Error msgs

--HG--
branch : trunk
2010-09-16 18:55:24 +02:00
Spp
c7354dd66b Core/Dungeon Finder: Ignore multiple join queue petitions while joining
--HG--
branch : trunk
2010-09-16 18:55:00 +02:00
Spp
0f4f00c592 Core/Dungeon Finder: Extend error info about duplicate player in queue
--HG--
branch : trunk
2010-09-16 18:54:36 +02:00
Spp
1531ef20e2 Core/Dungeon Finder: UpdateProposal: Use the proper guid when finding queue info
- Also add log info if system is inconsistent

--HG--
branch : trunk
2010-09-16 18:54:00 +02:00
Spp
5ec5d5b6be Core/Dungeon Finder: add safe check in first call to FindNewGroup (Avoids Thousands of recursive calls
)

--HG--
branch : trunk
2010-09-16 18:53:25 +02:00
Spp
3a890a16fc Core/Dungeon Finder: Redo update proposal algorithm when a group is found
- Store wait times earlier to form new group to ensure we don't miss it
- Fixes earlier removal of group/player from LFG system
- Fixes issue 4009

--HG--
branch : trunk
2010-09-14 20:04:00 +02:00
Spp
9a7990e4ed Core/Dungeon Finder: Restore consistency after an inconsistency is found while checking compatibilities
Closes issue 3950

--HG--
branch : trunk
2010-09-13 09:43:59 +02:00
Spp
1f9b2b5af7 Core/Dungeon Finder: Use proper function to find players
--HG--
branch : trunk
2010-09-13 09:20:07 +02:00
click
bf664b7a44 Cleanup/Core: Remove whitespace and tabs
--HG--
branch : trunk
2010-09-12 01:40:27 +02:00
Machiavelli
a41e99223e Core/DBLayer:
* Rename QueryResult class to ResultSet
* Rename QueryResult_AutoPtr to QueryResult
* Declare ACE refcounted auto pointer for PreparedResultSet class

--HG--
branch : trunk
2010-09-11 21:10:54 +02:00
Spp
fd14d7195f Core: Minor code cleanup before next commits
--HG--
branch : trunk
2010-09-10 13:37:33 +02:00
Spp
a9782329ab Core/Dungeon Finder: Move all packet handling from Mgr to Handler (also minor cleanups)
--HG--
branch : trunk
2010-09-09 14:49:52 +02:00
Spp
8509d50a39 Core/Dungeon finder: Missing changes from previous commit
--HG--
branch : trunk
2010-09-08 13:44:57 +02:00
Spp
fcc8d1e4a8 Core/Dungeon Finder: Properly expand random dungeons before adding to queue and minor cleanup
- Groups were being added to queue even with no dungeons. Client was not informed so group couldn't join queue anymore
- Some cleanup in error msgs and function order
Fixes issue 3851

--HG--
branch : trunk
2010-09-08 13:19:05 +02:00
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