Commit graph

41 commits

Author SHA1 Message Date
Antz
1997c1e903 Rebase resync 2020-02-17 09:19:44 +00:00
billy1arm
ef445ea523 [12632] Revert previous commit (see Notes) 2020-02-17 00:54:15 +00:00
Schmoozerd
a27787851c [c12537] Update Authorship information
(based on commit [12388] - 037f217)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
2020-02-16 21:27:46 +00:00
Schmoozerd
a05738717a [c12536] Happy New Year 2013
Update authorship information and prepare for easier ways next year

Signed-off-by: Schmoozerd <schmoozerd@cmangos>

(based on commit [12325] - b7dbcda)
2020-02-16 21:25:01 +00:00
Salja
320e38b25b [0184] Fix ScriptDev2 Build under Windows.
NOTE:
 *ByteBuffer.cpp/.h need Sync with mangos/master and Update some for 4.3.4

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 20:36:05 +00:00
Yaki Khadafi
0e630a3639 [0005] Implement ResetBitReader() method for ByteBuffer and get rid of random unintended read bugs
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
2020-02-16 02:54:04 +00:00
Yaki Khadafi
936404c101 Update ObjectGuid to cata, remove ref in ByteBuffer::WriteGuid*
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:53:50 +00:00
Salja
3e5895f2f5 Fix CMSG_CHAR_ENUM
Note: VC80/VC90 need update =)

Signed-off-by: Salja <salja2012@hotmail.de>
2020-02-16 02:25:26 +00:00
zergtmn
af349b4bdd Move some methods from .h to .cpp 2012-08-03 20:12:15 +06:00
LordJZ
9daa9ad472 Possibly fix ByteBuffer when no ACE_Stack_Trace available.
Testing required as I do not have access to a system that lacks ACE_Stack_Trace."
2012-08-03 05:14:11 +04:00
LordJZ
1ae8dee2c2 Print stack trace in ByteBufferException::PrintPosError. 2012-07-31 00:44:19 +04:00
Schmoozerd
835d1c7479 [12069] Cleanup comment style 2012-07-22 14:39:31 +02:00
Schmoozerd
e32b9953a1 Cleanup Operator padding 2012-07-20 17:38:23 +02:00
Schmoozerd
aeff8f9d1a [12062] Cleanup MaNGOS sources 2012-07-19 22:05:00 +02:00
Schmoozerd
8068dcf6dd [11875] Update Copyright notice to year 2012
Start timemachine and a Happy new year to all!
2012-01-16 17:43:59 +01:00
Vinolentus
d99e9dc611 [11604] Drop outDebugInLine, outMenu.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-06-05 18:44:14 +04:00
VladimirMangos
bf0ecf6e71 [10947] Update copyright notice for 2011 year. 2011-01-01 20:33:43 +03:00
DasBlub
57a88d2e3f [10613] A bit of cleanup in ByteBuffer::hexlike 2010-10-16 16:00:10 +02:00
VladimirMangos
15e6c17158 [10583] Remove dual ERROR in logs 2010-10-07 01:59:07 +04:00
VladimirMangos
acd0716297 [10432] Rename ASSERT -> MANGOS_ASSERT and related fixes
ASSERT hard use in predictable way because diff. 3rd party libs code
redefine it inf different ways and hard make sure that used in end
of mangos define version. This is real detected problem make some
expected assert checks ignored and so bugs not detected as expected from code.

In addition made related changes:
* Common.h header expected to be first include in any src/game/header except most simple cases.
* Related FILE.h header expected to be first include in FILE.cpp
* Fixed some absent includes and type forwards for safe build without PCH enabled.
* Avoid using MANGOS_ASSERT in src/framework code
2010-09-02 05:13:16 +04:00
hunuza
68abd76c97 [9844] Fix some whitespace errors.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-05-07 12:25:12 +02:00
VladimirMangos
6dec6c8a9f [9836] Make log output code more consistent for diff build modes.
* Make possible have debug output if build in release mode.
* But preserver current optimization in avoid debug output args
  calculation if debug ouput disabled if done using DEBUG_LOG
* Implement in same way BASIC_LOG, DETAIL_LOG. Recommended use
  its instead explicit access to sLog
* Use variadic macros for DEBUG_LOG and other new defines.
  All supported VS/GCC have its support as C++ extension.
* Add DEBUG_FILTER_LOG and semilar defines for filered log output and use its.
* Also move recent added debug output for transport events under LOG_FILTER_TRANSPORT_MOVES
2010-05-04 22:29:11 +04:00
QAston
f7e7e6b849 [9616] Fix ByteBuffer::appendPackGUID appending a superfluous byte. 2010-03-25 11:25:08 +01:00
ApoC
583e37e5c9 [9555] Makes some arguments as references in some ByteBuffer operator methods.
Signed-off-by: ApoC <apoc@nymfe.net>
2010-03-08 22:34:36 +01:00
VladimirMangos
17d8c4d075 [9553] Make GCC really happy... 2010-03-08 23:42:28 +03:00
VladimirMangos
c8fd454a79 [9551] Add and use PackedGuid wrapper.
Also
* use more wide bytebuff << >> operators for objects
* use at read packet faisl alsways exception way instead some time used bool results.
2010-03-08 20:23:16 +03:00
VladimirMangos
ad9243ebd0 [9550] Hide unsafe templated ByteBuffer::append function only for internal use. 2010-03-08 19:41:41 +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
VladimirMangos
35121cdd34 [8389] Implement check really read received packet size and warning it not all data read.
* This let more easy catch packet structure chnages at client switch.
* Fixed structure CMSG_GUILD_BANK_SWAP_ITEMS
* Fixed structure CMSG_SPLIT_ITEM, CMSG_SELL_ITEM
* Added read data amount fixes for some other packets.

Thanks to TOM_RUS in help check correct packets structure.

Note: not all packets possible fixed. Please report for not fixed cases at errors:
"opcode %s (0x%.4X) have unprocessed tail data (read stop at %u from %u)"
2009-08-19 00:45:24 +04:00
VladimirMangos
2372623a5b [8384] Restore build mangos at Unix/Linux.
* Also fixed wrong read_skip<char*>() code.
* Also fixed some warnings in related code.
2009-08-18 16:58:48 +04:00
VladimirMangos
2b534cbc23 [8382] Implement ByteArray functions for skip read of fields not needed for server in received packets.
* Use this fucntions in some case.
* Change some packets to form: read fields first check later for better control recieved packets structure.
* Fix CMSG_STAND_STATE_CHANGE packet structure to more correct.
2009-08-18 03:49:50 +04: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
tomrus88
90d4d70f0c [7999] Added appendPackXYZ to ByteBuffer class. 2009-06-12 16:11:20 +04:00
VladimirMangos
ef2d0df05d [7968] In packet compression use real writed data size. 2009-06-06 08:54:34 +04:00
VladimirMangos
fb45529eff [7929] Some fixes and optimizations for work with packet guids.
* Allocate only minimal required buffer size for object packet guid cache, avoid it realocation.
* At adding aboyher buffer content copy only until wpos (really writed to buffer data)
* In appendPackGUID check buffer size before data write.
2009-05-31 22:18:48 +04:00
Naicisum
60e450166d [7925] Correct minor output format error inside ByteBuffer class
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-05-31 09:33:10 +04:00
VladimirMangos
f4482f247f [7532] Avoid warnings at use size_t with printf fromat strings. 2009-03-24 06:03:22 +03:00
arrai
c6f48843ad [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
VladimirMangos
9c5dab1248 [6953] Cleanup packed guids write/read code.
* Remove unused function writeGUID and move function readGUID (with some changes) to ByteBuffer class.
* Remove now empty Tools.cpp/Tools.h from project.
2008-12-27 17:27:20 +03:00
TheLuda
92441a0241 Applied new coding standard, see http://github.com/mangos/mangos/wikis/codingstandards for more. 2008-10-15 18:25:33 +02:00
TheLuda
800ee76535 Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00