Commit Graph

50 Commits

Author SHA1 Message Date
Shauren
0147f37eb0 Core/Battlenet: Fixed possible shutdown crash 2015-04-22 00:03:49 +02:00
Shauren
4c7c2abf03 Core/Misc: Removed gcc specific packing pragma syntax - only unsupported (now) versions required it 2015-04-20 01:54:18 +02:00
Shauren
ee6e060be8 Core/Battle.net: Fixed accessing freed memory 2015-04-18 17:01:02 +02:00
Shauren
a024b80a7f NOPCH Build fix 2015-04-13 18:34:25 +02:00
Shauren
ea7cf85588 Build fix 2015-04-13 18:28:05 +02:00
Shauren
ff101cd100 Core/Battle.net: Query optimizations part2 - made all queries asynchronous 2015-04-11 18:58:13 +02:00
Shauren
685a310103 Core/Battle.net: Query optimizations part1 - reduced the amount of queries during authentication 2015-04-11 16:25:21 +02:00
Shauren
5659db6f03 Core/Bnet: Fixed crash on shutdown happening when there were still players connected 2015-04-11 01:55:45 +02:00
Daniel M. Weeks
2951e0ccb1 Add missing override keyword in bnetserver 2015-04-02 22:27:43 -04: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
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
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
433bc289c2 Core/Misc: Fix some issues detected by static analysis
* Assignment of function parameter has no effect outside the function. Did you forget dereferencing it?
  -> This argument is passed by value, it makes no sence so set it to null here.

* Member variable 'instance_violet_hold_InstanceMapScript::bWiped' is not initialized in the constructor.

* Mismatching allocation and deallocation: Data
2015-03-18 20:20:04 +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
jackpoz
b35578bac3 Revert "Core/Server: Catch exceptions in int main()"
This reverts commit e68ca82d4d.

Closes #14329
2015-03-11 21:07:08 +01:00
Shauren
e15ba34444 Core/Misc: Cleaned up data truncation warnings 2015-03-08 22:04:34 +01:00
Duarte Duarte
e68ca82d4d Core/Server: Catch exceptions in int main()
The exceptions is rethrown on debug mode.

Ref Coverity CID 1010213, 1022574, 1227501, 1227502,
1227503, 1227504, 1227505, 1254536 and 1254612
2015-02-15 14:56:12 +00:00
Shauren
c9ca81f806 Core/Auth: Fixed clients being disconnected if taking too long to select game account for login
Closes #13782
2015-02-11 15:35:51 +01:00
Vincent-Michael
ab90f74486 Update copyright note for 2015
Happy new year
2015-01-01 00:28:09 +01:00
joschiwald
9ecc578cb1 Core/Scripts: multiple changes
- fixed non pch build
- fixed some warnings
- fixed some coverity issues
- some random things here and there
2014-12-29 01:00:16 +01:00
Shauren
12ef5ad90a Core/Battle.net: Fixed another client crash happening when logging out to character list 2014-12-28 15:02:20 +01:00
Shauren
911d0cf400 Core/Battle.net: Fixed client crashes happening when reconnecting too soon after being kicked 2014-12-24 13:48:52 +01:00
Shauren
c3e959b9db Core/Battle.net: Decrypt remainder of the packet that arrives together with EnableEncryption 2014-12-20 00:25:11 +01:00
joschiwald
b68b6417f6 Core: fixed few coverity issues and warnings 2014-12-07 01:24:00 +01:00
MorganaOP
158028a2f8 BNet GetStreamItemsRequest::Read
Wrong call
2014-11-19 11:08:20 +03:30
Intel
b08b54c8bb Core/Packets: CMSG_CREATURE_QUERY and SMSG_CREATURE_QUERY_RESPONSE handler 2014-11-14 01:55:29 +00:00
DDuarte
90c53e8c84 Core: Nuke authserver
It has been replaced by bnetserver since grunt was deprecated
2014-11-10 20:57:39 +00:00
Shauren
0c27ffaa49 Core/Commands: Battle.net account command changes
* All commands renamed from "battlenetaccount" to "bnetaccount"
* bnetaccount create now also creates and links initial game account
* Added new commands bnetaccount link/unlink to manage relations between existing accounts
2014-11-10 01:19:24 +01:00
Shauren
ddc549518f Core/Battle.net: Added more logs to auth process 2014-11-09 19:18:54 +01:00
Shauren
e8576e5d71 Core/Battle.net: Fixed a copypaste mistake in packet name logging 2014-11-09 00:38:58 +01:00
Shauren
bacc90b6ba Core/NetworkIO: Added second connection to WorldSession, handle AuthContinuedSession and enabled ConnectTo and ResumeComms 2014-11-09 00:37:33 +01:00
Shauren
e401f9c9e2 Core/PacketIO: Added SMSG_REDIRECT_CLIENT/ConnectTo packet structure 2014-11-06 18:49:19 +01:00
Shauren
6584995c11 Auth/Battle.net Added missing build check to JoinRequest handler 2014-11-01 11:40:17 +01:00
Shauren
585f17b5e8 Battle.net: Fixed JoinRequestV2 and JoinResponseV2 structures 2014-10-20 01:20:44 +02:00
Shauren
8936723291 Merge branch '4.3.4' of https://github.com/TrinityCore/TrinityCore into 6.x
Conflicts:
	dep/PackageList.txt
	src/server/bnetserver/Packets/WoWRealmPackets.cpp
	src/server/bnetserver/Server/Session.cpp
2014-10-18 17:03:30 +02:00
Shauren
69a17346d4 More build fixes, everyone loves pch 2014-10-18 00:26:41 +02:00
Shauren
863eac9c1a Fixed nopch build 2014-10-18 00:01:00 +02:00
Shauren
f773a9e053 Core: Implemented IPC (Inter-process communication) between worldserver and bnetserver using ZeroMQ library.
* Implemented ToonReady and ToonLoggedOut battle.net packets
2014-10-17 22:48:06 +02:00
Shauren
cc27497ea7 Battle.net: Removed not implemented comment from stream items opcodes 2014-10-14 16:53:44 +02:00
Shauren
1ef31ba752 Battle.net: Implemented cache stream items 2014-10-13 17:22:24 +02:00
Shauren
cf521de9cb Battle.net/Packets: Added packet name mapping for logging 2014-10-12 20:58:25 +02:00
Sebastian Valle Herrera
679e663df1 Bnet/Friends: Send the "proper" error message in SocialNetworkCheckConnectedResult 2014-10-12 10:32:49 -05:00
Shauren
7679ecd7b3 Core/Battle.net: Improved logging - use separate filters instead of throwing everything to one logger 2014-10-12 15:34:01 +02:00
Vincent-Michael
241fdc49a7 Core: Fix non pch build 2014-10-12 02:02:40 +02:00
Shauren
cbabfe9920 Core/Battle.net: Handle ConnectionClosing 2014-10-11 22:45:01 +02:00
Shauren
26e4b67e85 Core/Battle.net: Removed remaining authserver references 2014-10-11 15:16:06 +02:00
Shauren
56cf7ff2a8 Core/Battle.net: Implemented updating realm list after initial login 2014-10-11 15:13:30 +02:00
Shauren
00603772df Core/Battle.net: Added missing includes and changed default config file name 2014-10-10 23:48:01 +02:00
Shauren
f52e921521 Core/Config: Removed bnet port from authserver and authserver port from bnet config giles 2014-10-10 23:22:11 +02:00
Shauren
a04393f554 Core/Auth: Moved battle.net handling to separate project 2014-10-10 23:19:40 +02:00