Commit Graph

1276 Commits

Author SHA1 Message Date
Shauren 5659db6f03 Core/Bnet: Fixed crash on shutdown happening when there were still players connected 2015-04-11 01:55:45 +02:00
Vincent-Michael 653954c14d Core/Misc:
- Update LocaleConstant enum
- Update Quest locale system for WoD
- Fix some rnd typo in quest template
2015-04-10 18:16:00 +02:00
Vincent-Michael 20ab76a2cb Core: Whitespace cleanup 2015-04-08 02:27:20 +02:00
Rat 9b746368db Core/Database: removed old questItem fields 2015-04-06 21:03:50 +02:00
Carbenium d1902b4095 Core/Player: Implement CharSections.dbc and serverside checks
Ported from 6d4c672fb1
Original work by @ariel-
2015-04-05 01:48:45 +02:00
Naios 9d6c837004 Core/DBUpdater: Remove some constructors accidently merged in 455eee9392 2015-04-05 01:02:19 +02:00
Naios 455eee9392 Core/DBUpdater: Exit clean if a query failed to apply.
* Fix some \W4 warnings about constructors.

(cherry picked from commit de490674ff)
2015-04-05 00:25:20 +02:00
Naios 2b6c086576 Core/Log: Remove some unnecessary std::move's.
* This are r-value references already.
* Thanks @Shauren for noticing

(cherry picked from commit 85d6ff9570)
2015-04-05 00:25:14 +02:00
Carbenium 6252330a77 Merge pull request #14491 from doctaweeks/fixes-for-6.x
Fixes for 6.x
2015-04-05 00:16:36 +02:00
Shauren 76cbf05a2e Misc: Fixed license header formatting 2015-04-04 13:11:32 +02:00
Daniel M. Weeks 573cda7b52 Rename variables to fix C++11 keyword collision 2015-04-02 22:27:18 -04:00
Naios 3e5025b773 Core/Database: Remove va_list from PreparedStatement::PAppend.
(cherry picked from commit 1939367108)
2015-04-02 22:55:54 +02:00
Naios 6d0f0bf5fa Core/Database: Remove va_args from DatabaseWorker::Execute methods.
* Also delegate SQLQueryHolder::SetPQuery into SetQuery.

(cherry picked from commit df4723af25)

Conflicts:
	src/server/shared/Database/QueryHolder.h
2015-04-02 22:55:52 +02:00
Rat 17bd724559 Core/Phases: phaseMask remove part 1 2015-03-29 19:25:13 +02:00
Rat dcd18eef2a Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into 6.x 2015-03-29 17:56:49 +02:00
Naios ed4722b6e6 CMake: Use source_groups to represent the source tree
* It let ide's (like vs) display the source tree.
* Disabled by default.
* Soft requirement is cmake >= 2.8.12 .
* Offers 2 modes: flat & hierarchical.
* For detailed description see #14471
* Thanks @click for help and advises.
* Closes #14471

(cherry picked from commit c386711972)

Conflicts:
	src/server/authserver/CMakeLists.txt
2015-03-29 16:13:22 +02:00
Naios 83bbe00785 Core/Database: Return an unknown error code instead of false (0) if mysql_init failed.
* Thanks @et65 for noticing.
* ref #14139
2015-03-29 15:03:32 +02:00
Naios 47410157b1 Core/Database: Fix a mistake in 54ee526724
* Also use proper errno instead of 0 when reconnecting.
* Thanks @et65 for reporting
* ref #14139
2015-03-29 14:25:10 +02:00
Rat 3660c3a37f Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into 6.x
Conflicts:
	src/server/game/Handlers/MiscHandler.cpp
	src/server/game/Server/Protocol/Opcodes.cpp
2015-03-29 11:25:48 +02:00
Shauren bed88e0dd4 Core/Networking: Fixed unsafe access to _worldSession member in WorldSocket 2015-03-28 21:45:27 +01:00
Shauren 5ac0b7844c Core/PacketIO: Implemented CMSG_ENABLE_NAGLE 2015-03-28 20:51:01 +01:00
Naios a2e280c8a8 Core/Log: Improve creation of log prefixes.
* this also fixes non whitespace seperated timestamps in logs after 95ebe4f31c @Aokromes
* remove an unnecessary stringstream in Log::outCommand
* delete copy constructor of LogMessage to prevent unwanted copies
2015-03-28 17:12:24 +01:00
Naios 54ee526724 Core/Database Improve commit 39bdd06446
* found a better way where no cast is needed.
* ref #14430
2015-03-28 17:12:02 +01:00
Naios 39bdd06446 Core/Database: Prepare statements at reconnect.
* Closes #14430
2015-03-27 15:34:13 +01:00
Naios b2b8de5786 Core/DBUpdater: Use correct formatter for size_t
* thanks @DDuarte pointing this out.
2015-03-24 22:00:19 +01:00
Rat eebc468e62 Merge branch '6.x' of https://github.com/TrinityCore/TrinityCore into 6.x
Conflicts:
	src/server/collision/Management/MMapManager.cpp
	src/server/game/Conditions/ConditionMgr.cpp
	src/server/game/Conditions/ConditionMgr.h
2015-03-24 20:01:02 +01:00
Naios 3ad7776d50 Core/DBUpdater: Fix some warnings introduced in 966282fbed 2015-03-24 12:55:45 +01:00
Naios 966282fbed Core/DBUpdater: Add the possibility to limit the remove of orphaned entries.
* This will save you from loosing your update history if you use a repository in bad state (revision or branch) by mistake.
* Also turned 1 error message into a warning
2015-03-24 12:31:52 +01:00
Shauren cc4d79495f Core/Misc: Warning fixes 2015-03-22 13:47:55 +01:00
Naios 8e48ef7863 Core/DBUpdater: Use correct uint64 to store timestamps.
* Thanks @Shauren for pointing out.
* Also removes an invalid argument thanks @jackpoz for noticing.
2015-03-22 01:28:50 +01:00
Shauren 495af75b7e Core/DBUpdater: Fixed compile errors with boost 1.55 and VS 2013 2015-03-22 00:14:54 +01:00
Naios cff3910ec8 Core/Database: Fix some warnings on gcc
* warning: when initialized here [-Wreorder]
* thanks to @Vincent-Michael
2015-03-21 21:07:20 +01:00
Nayd 5be0cf7120 TDB 6.0.1 - 2015/03/21
Closes #13816
Closes #13792

Ref #14139
2015-03-21 17:09:25 +00:00
Naios 352012e531 Core/Updates: Add an automatic database update system. Automatically detects new and edited sql updates through file lists and hashing. Detects renames, deletes and is able to create and auto import full databases. * cleanups in main.cpp of world & bnetserver * refactoring in DatabaseWorkerPool.h & MySQLConnection.cpp
Make sure you re-run cmake, because boost::iostreams was added as dependency.
Maybe you need to install libboost-iostreams1.55-dev on unix as well.

Import every update manual until (included) those INSERT IGNORE updates for each database.

Thanks DDuarte and Shauren for your amazing ideas, help and advises.

In hope that nobody gets a "Your database structure is not up to date..." anymore ,-)

Signed-off-by: Naios <naios-dev@live.de>
Signed-off-by: Nayd <dnpd.dd@gmail.com>
2015-03-21 14:09:38 +00:00
Naios d64e6ffade Core/Log: Readd include of <stdarg.h> to fix compile issues under gcc 2015-03-18 15:29:56 +01:00
click be078fd8a9 Core: WARN instead of INFO - this is actually something we'd want to be informed of...
(cherry picked from commit d5718f3372)
2015-03-18 00:33:20 +00:00
Carbenium cc0c9add5a Merge pull request #14317 from Naios/typesafelog
Type safe logging
2015-03-18 01:25:38 +01:00
jackpoz 22d655451c Shared/Logs: Add support to .server set loglevel command after 003d67708b
Update the lowest log level when using ".server set loglevel" command.

(cherry picked from commit 43f74fd8cf)
2015-03-18 00:10:19 +00:00
jackpoz 064b6a4c84 Shared/Logs: Improve log performances
Improve Log::ShouldLog() performances by saving the lowest log level across all loggers and discarding any log with lower level than that.

(cherry picked from commit 003d67708b)
2015-03-18 00:10:02 +00:00
jackpoz 1a583703c5 Core/CrashHandler: Fix char[] without '\0' handling
Fix char[] without a NULL character '\0' in the array reading over the char[] bounds

(cherry picked from commit fd844e3d7e)
2015-03-18 00:08:49 +00:00
Rat 8f3a80c1cf Core/Phases: Ported new phasing system from 4.3.4 branch and fixed some map swap logic 2015-03-16 07:28:49 +01:00
Naios 95ebe4f31c Core/Log: Add type safe formatting
* improves safety and log speed through:
  - variadic templates
  - perfect forwarding
* fixes a newline in db logs
* improve performance of Appender::write by using std::ostringstream && std::move
2015-03-13 09:15:42 +01:00
Naios 8882a6ca78 Core/Log: Fix some issues detected by static analysis.
* Either inefficient or wrong usage of string::find(). string::compare() will
  be faster if string::find's result is compared with 0, because it will not scan the whole string.
  If your intention is to check that there are no findings in the string,
  you should compare with std::string::npos.

* C-style pointer casting detected. C++ offers four different kinds of casts as replacements:
  static_cast, const_cast, dynamic_cast and reinterpret_cast.
2015-03-11 08:20:12 +01:00
Carbenium 37a14bc2d5 Core/Support: Update the support/ticket system to 6.x
Core/Mail: fix a logic error introduced in 829e11b662
2015-03-10 21:09:21 +01:00
leak c61548a17b CMake: Remove unused source reference 2015-03-09 14:55:20 +01:00
Shauren e15ba34444 Core/Misc: Cleaned up data truncation warnings 2015-03-08 22:04:34 +01:00
Shauren 0ba2e0d5ee Core/Spells: Implemented multiple spell power costs 2015-03-08 13:31:57 +01:00
Shauren 854917a31a Core/DataStores: Added an extra safeguard for loading db2 hotfix locale tables - invalid row will no longer cause crashes 2015-03-06 18:52:58 +01:00
joschiwald 2955a1f595 Core/Player: fixed some leftovers in db after player delete
* character_arena_stats
* character_battleground_random
* character_cuf_profiles
* character_currency
* character_stats
* character_void_storage
2015-03-06 03:52:05 +01:00
Shauren 5e860daa22 Core/Crypto: Fixed output of BigNumber::AsByteArray when generated array is shorter than requested size
(cherry picked from commit e52b46abba)
2015-03-04 12:22:10 +01:00