Commit graph

43 commits

Author SHA1 Message Date
Grinder
f244e68c59 [10102] Rename loginDatabase for consistence with other global db object names
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-24 02:55:26 +04:00
VladimirMangos
1eed65d5ac [10082] Drop now unused dotconfpp lib code. 2010-06-20 02:20:51 +04:00
Derex
47186c05ec [9940] Fix typo in AuthSocket.cpp 2010-05-20 02:10:45 +03:00
Derex
8a1fd9e086 [9935] ACE realmd, thanks to Zor and Vladimir for windows. 2010-05-19 23:37:35 +03:00
VladimirMangos
722135b326 [9838] More log filters and macro uses.
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
VladimirMangos
c5974b8a7e [9762] Init client build at reconnect (logout back to char list)
This fix bug with show all realms as offline at view relam list after logout.
2010-04-18 19:20:55 +04:00
VladimirMangos
822ec31cb9 [9746] Implement show realm version and build in realm list.
* Rename `realmlist`.`color` field to `realmflags`

* Client 2.x and later support show in realm list supported
  client version for specific realm.

  For client 1.x this implemented by adding version to name
  in similar way as it look in more recent clients.

  For enable version show each affected realm must have in `realmflags` set
  flag 4.

  For realm work with not officially supported builds (build > last suported)
  will show version 0.0.0 and correct build value.
2010-04-14 09:15:33 +04:00
VladimirMangos
6bcbbc321b Merge branch 'master' into 330 2010-04-07 06:58:42 +04:00
VladimirMangos
068fca0d74 [9678] Some comments for realmd data. 2010-04-06 06:24:51 +04:00
tomrus88
3f071ed1d2 Fixed realm flags enum. 2010-04-05 13:53:17 +04:00
tomrus88
68e73f105e Added some info about realm list and auth response packets.
Added few dbc structs and updated related enums.
2010-04-05 13:48:23 +04:00
tomrus88
6ee7875d2b Updated AuthResult enum. 2010-04-05 13:47:36 +04:00
VladimirMangos
7619b2ef4b Re-add current supported build to realmd list. 2010-04-05 02:08:17 +04:00
tomrus88
34b1bff6e8 Updated AuthResult enum. 2010-04-04 10:04:48 +04:00
tomrus88
55e7fb1b08 Fixed realm flags enum. 2010-04-04 02:29:32 +04:00
tomrus88
4535f78573 Added some info about realm list and auth response packets.
Added few dbc structs and updated related enums.
2010-04-04 01:14:16 +04:00
Zor
7b180e5fa8 [9631] Fix enum names.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2010-03-27 22:12:21 +03:00
hunuza
5d84477f7f [9564] Remove some trailing whitespace and add comment for last commit.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-03-10 13:45:41 +01:00
VladimirMangos
9d191da17d [9314] Add new explcitly supported build to realmd 2010-02-06 18:57:07 +03:00
VladimirMangos
573651435e [9290] Some cleanups in realmd, no functional changes 2010-02-03 14:24:43 +03:00
VladimirMangos
3b71868cd9 [9137] Add prev/new supported builds explcitly to realmd supported builds list. 2010-01-10 08:29:07 +03:00
VladimirMangos
fe6e2e1746 [9122] Updated copyright notice for new year.
Also fix some lost in past cases.
2010-01-08 00:02:21 +03:00
Laizerox
022524c1bb [9010] Implement realmd support realms for different client versions
* Supported 1.12.1, 1.12.2, 2.4.3, 3.2.2a in same time as relams in same realmlist
* mangosd by self check correct for it client build and reject all incorrect cases
* realmd know from mangosd what builds supported each realm and
  if realm not support it then in relamlist for specific client this relam show as offline.
  Not need any manual settings for this.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-12-17 03:40:29 +03:00
balrok
fbe9241a96 [8823] removed ban-cleanup queries from realmd at login
now they just getting executed when realmd is started

i think this will improve speed a bit.. cause we don't need to cleanup those
bans so often we just can check the conditions inside the select
2009-11-15 20:38:23 +01:00
VladimirMangos
ea7100ff63 [8798] Partly revert and optimize [8797]
* Revert realmd changes:
  - typos in prev. commit prevent correct work of realmd code.
  - useless log login packets
  - and really horrible idea log of patch packets (how nice convert some MB in hex strings)
* Revert output world packet format to more readable old but output timestamp
* Drop outWorld, but use explcit fprintf calls into new outWorldPacketDump.
  Not nice have 16 flush calls at hex line.
2009-11-09 15:18:16 +03:00
XTZGZoReX
07aa44992b [8797] Merge WorldLog class into Log class.
* Added AuthSocket::SendPacket() function.
 * Packet logging now also possible in realmd.
 * realmd.conf.dist.in updated (added "WorldLogFile" setting).
2009-11-09 02:24:29 +01:00
XTZGZoReX
b3f3ffa885 [8793] Don't do operations through singleton if already in singleton context.
* Also, some minor things:
   - Remove duplicate sWorldLog define.
   - Add sRealmList macro for RealmList::Instance().
   - Use sLog macro in scripting log functions.
2009-11-08 19:32:59 +01:00
XTZGZoReX
6abf7e7f58 Make RealmList proper singleton in realmd. 2009-11-08 03:54:27 +01:00
VladimirMangos
50d426e72c [8496] Resolve some #include cycles and unsafe code.
* Common.h  -> Threading.h ->  Errors.h -> Common.h
* Remove reduncdent #include "ByteBuffer.h" in headers
* Remove redundent #include "Auth/BigNumber.h" in headers
* Avoid multyply data copy at use some now dropped functions in BigNumber.
* Avoid copy fixed byte count from byte arrays with unknown real size created from BigNumber.
2009-09-14 05:59:57 +04:00
arrai
3b1b68595b [8445] Fixed redundant calculation of v and s on every login
The SRP-6 specifications clearly say, that v and s are only to be
calculated on registering a user and changing his password; calculating
them on every login is plain waste.
2009-09-01 02:42:50 +02:00
arrai
a24f39a36f [8378] Use exceptions instead of explicit size checking for each packet
CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd
could crash due to the asserts in ByteBuffer.h. That was exploitable by
malicious players.
Furthermore, there were duplicate checks: Additionally to
CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye
on not exceeding the packet boundaries - just to crash the server for
sure in such a case.
To prevent memory leaks or other undesirable states, please read in
every handler all variables _before_ doing any concrete handling.
2009-08-16 23:50:22 +02:00
VladimirMangos
0f364bf00a [8318] Deleted as expected runnable objects at related Thread deleting for avoid memory leaks. 2009-08-05 20:22:54 +04:00
tomrus88
7c52111fb1 Fixed /played chat command.
(cherry picked from commit 3e49bbe692ea5f44ea2daffdfe970a7201d501f5)

Conflicts:

	src/game/MiscHandler.cpp
	src/game/SharedDefines.h
	src/game/UpdateFields.h
	src/realmd/AuthCodes.h
2009-07-29 15:14:23 +04:00
VladimirMangos
634fda8475 [8067] Fixed tabs and trailing whitespaces in code. 2009-06-22 15:43:47 +04:00
tomrus88
42f8ce5f3e [7911] Applied coding style. 2009-05-29 19:07:28 +04:00
VladimirMangos
3beec18f4e [7873] Use same name for realmd DB connection in realmd code as used in mangosd/game. 2009-05-22 16:27:46 +04:00
Ambal
2aff48cc5d [7810] Moved ZThread related code on ACE framework.
Remove ZThread source code from mangos.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
2009-05-11 12:14:22 +04:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
hunuza
0f12997ef1 [6899] Pass const reference instead of value for some strings in some functions.
Signed-off-by: hunuza <hunuza@gmail.com>
2008-12-12 14:17:37 +01:00
arrai
3162a8dc61 Implemented realmd reconnect, backported from 303 branch
(cherry picked from commit ac6d01a6b0bf2ffd874db2097ade90ecfd7b1ff7)
2008-11-01 16:08:00 +01:00
arrai
dbb399d808 * Fixed mangos-realmds autopatching system 2008-10-18 00:11:12 +02:00
derex
2073ab6365 Replace some defines with more portable ones. 2008-10-16 21:38:42 +03:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00