Commit Graph
99 Commits
Author SHA1 Message Date
n0n4m3 d8db56ec48 Add report unknown packets in the error log and close this packets.
--HG--
branch : trunk
2010-03-11 15:09:51 +03:00
n0n4m3 e5eaa46a7f Removed not needed #include AuthSocket.
--HG--
branch : trunk
2010-03-09 19:01:45 +03:00
n0n4m3 5411468f5d Removed unused function bool AuthSocket::IsLag, also small code cleanup.
--HG--
branch : trunk
2010-03-09 18:53:22 +03:00
n0n4m3 269728b9ae Implement ACE netcode for realm server. Original author derex.
--HG--
branch : trunk
2010-03-09 18:01:42 +03:00
Brian 486c00891b * Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.

--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
Anubisss d9cb070215 Implement QueryResult_AutoPtr type which is ACE's reference counted auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers.
Use this auto_ptr for every DB queries(except QueryNamedResult yet).

This patch guarantees NO memory leaks from QueryResult pointers.

Thanks to raczman for the idea and for the helping to make this patch.

--HG--
branch : trunk
2010-01-23 14:45:58 +01:00
n0n4m3 99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +03:00
XTZGZoReX f5998611c3 Backed out changeset: 52e769d95f14
--HG--
branch : trunk
2010-01-13 18:24:23 +01:00
n0n4m3 f7ad3aefc8 Removed all my commits for today, this is hack? really? okey
--HG--
branch : trunk
2010-01-13 19:11:46 +03:00
n0n4m3 aeb008d4ef Set close and delete unknown packets - helps with DDOS atack.
Print ip address and port for unknown packets(if debug mode on) - helps determine the ip address of the attacking.

--HG--
branch : trunk
2010-01-12 21:08:40 +03:00
Paradox e24386e698 Clean up trinitycore.conf.dist and trinityrealm.conf.dist
This is a purely cosmetic change, and isn't required
for proper server functioning.
If you are using windows and decide to merge it, I recommend
windiff32

All Lines have been kept at column 80 or less to help make the files
easier to read and edit in text mode editors.

--HG--
branch : trunk
2009-12-30 10:53:27 -05:00
XTZGZoReX d847e1db2a * Remove ConfVersion from the config files. It is considered the end-user's responsibility to check for config file changes.
--HG--
branch : trunk
2009-12-29 19:20:14 +01:00
n0n4m3 5b975766f5 Removed not needed gomp from cmakefiles
--HG--
branch : trunk
2009-12-29 17:56:43 +01:00
p0wer 7590479186 * Add support for different gmlevel's for different realms.
*
* Using the value -1 will add the same value for all realms.
* Make sure to apply the updates.
* Information regarding this patch will be posted on the database forums soon.
*
* Thanks to Sundark and the Ilixiuemu team(for original patch)

--HG--
branch : trunk
2009-12-21 21:08:29 -06:00
Brian 85a89ab301 * Added missing file in rev 6678 AuthCodes.cpp
--HG--
branch : trunk
2009-12-20 22:30:32 -07:00
Brian e55710fc68 * Massive cleanup of realmd
* Patch by w12x -- THANK YOU!

--HG--
branch : trunk
2009-12-20 22:15:24 -07:00
n0n4m3 8b95981ed0 Update DataBase and Realm code for 322a
--HG--
branch : trunk
2009-12-17 12:42:53 +01:00
Brian 2547e5c109 * Removed all unneeded Makefile.am files that were leftover from merges with
* MaNGOS

--HG--
branch : trunk
2009-12-11 13:52:46 -07:00
tartalo b19c7b0d85 Fix compile un *NIX, closes #53
--HG--
branch : trunk
2009-11-04 18:12:19 +01:00
tartalo 1eaf0396b2 Fix postgresql compilation on *nix, by itzamna. Fixes #33
--HG--
branch : trunk
2009-11-04 00:02:43 +01:00
maximius e585187b24 *Backed out changeset 3be01fb200a5
--HG--
branch : trunk
2009-10-17 15:51:44 -07:00
maximius 26b5e033ff *Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget

--HG--
branch : trunk
2009-10-17 15:35:07 -07:00
maximius b528d14e73 *Tried to combine a little too much code here I think :P
--HG--
branch : trunk
2009-09-26 16:56:35 -07:00
maximius c66005ea06 *Should fix Linux build, thanks Drahy
--HG--
branch : trunk
2009-09-26 16:52:54 -07:00
maximius ff3f556423 *Missed condition, thanks Zor :)
--HG--
branch : trunk
2009-09-26 13:00:40 -07:00
maximius 3416a6543d *Wintergrasp: Tenacity fixes by Spp
*Better Windows signal handling for services, by defacer
*Always hide triggers for players, by ogeraisi

--HG--
branch : trunk
2009-09-26 12:41:46 -07:00
Chaz Brown 15d85229fa Replace useless code with more useful code.
--HG--
branch : trunk
2009-09-19 00:51:47 -04:00
Chaz Brown 118e01a08e Fix some errors in last commit
--HG--
branch : trunk
2009-09-19 00:24:35 -04:00
Chaz Brown 9f23d8149f Make adding/removing realm builds easier for use in multirealm environments - original patch provided by Kudlaty
--HG--
branch : trunk
2009-09-18 22:58:37 -04:00
maximius 333f1c9d72 *[8475] fixed some gcc-warnings Author: balrok
*[8476] Revert some recent cleanup changes, some other fixes and cleanups. Author: VladimirMangos
*[8489] Fixed player visibility update in case view point different from player itself. Author: SilverIce
*[8493] Avoid unexpected multiply error messages at wrong `quest_template`.`RewSpell*` Author: VladimirMangos
*[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.
* Avoid possible problems for build mangos at different platform or compilers. Author: VladimirMangos.
*[8501] Apply code style and cleanups to some Player functions. Author: VladimirMangos.
*[8502] Disable quests related to specific game events at startup if event not active. Also rename member boolean variable. Author: NoFantasy
*[8506] Add check for IsAutoComplete() in SendPreparedQuest().
For cases where quest is repeatable but has Method!=0, QuestDetails must be sent instead of RequestItems.
Some additional code cleanup. Author: NoFantasy
*[8507] Check amount of spawned pools before decrement to avoid unexpected result. Also rename variable to more meaningful name. Signed-off-by: NoFantasy <[email protected]>

Thanks to Stryker and onkelz28!

--HG--
branch : trunk
2009-09-18 14:10:37 -07:00
Chaz Brown 755d0f5d21 Add Chinese 3.1.3 build to expected client builds, you will need to enter 10146 in the gamebuild column in realmd.realmlist for any realms allowing this client
--HG--
branch : trunk
2009-09-15 16:27:25 -04:00
Kudlaty 102069a3ef Change some variables from MANGOS to TRINITY
--HG--
branch : trunk
2009-09-14 00:18:47 +02:00
Chaz Brown b8dc3f55f0 Remove the remaining obsolete Zthread code
--HG--
branch : trunk
2009-09-13 06:01:45 -04:00
Kudlaty f55031b242 Add support for multirealm. Patch by streetrat.
--HG--
branch : trunk
2009-09-13 00:02:14 +02:00
megamage 790c5348a3 [8445] Fixed redundant calculation of v and s on every login Author: arrai
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.

--HG--
branch : trunk
2009-09-02 16:22:32 -05:00
Chaz Brown 2421d01f70 genrevision now generates revision and hash number #defines that are used in trinityrealm.rc and trinitycore.rc to correctly set the fileversion numbers in windows executables, major/minor numbers will be updated later.
--HG--
branch : trunk
2009-08-30 01:29:40 -04:00
Chaz Brown 2345c5ca8d Change default MOTD text in load from conf (how did this get overlooked?) comment out some nonsense in SetPlayerLimit that was causing the allowedSecurityLevel in realmd to be reset. (I think someone got confused between setting a limit on number of players allowed and the allowed security limit...) You can now Block Players from connecting to certain realms by setting the allowedSecurityLevel in the realmlist - Thanks, raczman for nudging me in the right direction
--HG--
branch : trunk
2009-08-29 05:17:55 -04:00
Chaz Brown 09682ed905 Change conf versions, check your conf files and make sure they have all the latest options, devs, don't forget to do this when adding/removing options.
--HG--
branch : trunk
2009-08-17 00:29:10 -04:00
megamage 24f906cfc0 *Do not allow to run the server if openssl lib is outdated.
--HG--
branch : trunk
2009-08-12 23:10:16 -05:00
megamage 1165b889a0 [8328] Fixed problem with crash at startup in result destroy anti-freeze thread runnable. Author: VladimirMangos
* Destroy runnable only if no references.
    * Some code cleanups

--HG--
branch : trunk
2009-08-08 12:37:33 -05:00
megamage f8a05d264f [8318] Deleted as expected runnable objects at related Thread deleting for avoid memory leaks. Author: VladimirMangos
[8319] Restore compile PGSQL support after last changes. Author: ApoC

--HG--
branch : trunk
2009-08-08 12:12:56 -05:00
megamage ed995581af *Fixed /played chat command. Author: tomrus88
--HG--
branch : trunk
2009-07-31 11:33:48 +08:00
megamage 0fcadd9d25 *Replace "LoginDatabase" with "loginDatabase"
--HG--
branch : trunk
2009-07-31 11:29:28 +08:00
Kudlaty 63fd4eda99 Some work on PostgreSQL support
note: still don't work, so use mysql

--HG--
branch : trunk
2009-07-12 04:32:34 +02:00
megamage e4cfd63181 [8067] Fixed tabs and trailing whitespaces in code. Author: VladimirMangos
--HG--
branch : trunk
2009-06-27 17:10:17 -05:00
megamage a49c2982ba *Merge.
*mtmap is disabled by default. To use it, define MULTI_THREAD_MAP in define.h
*mtmap support is not provided for windows users. Because there is no free openmp lib for windows. If you have openmp lib and want to use openmp, you need to manually change the setting.

--HG--
branch : trunk
2009-06-18 19:27:17 -05:00
raczman 19225e8880 Added basic support for multithreaded map updates using openmp standard.
Windows users need to install Platform SDK to use this feature,
linux users have everything they need in gcc.
Number of threads used to update world is set by confiuration file,
and can be changed dynamically without restarting core.
Thanks to megamage and Jeniczek for testing and helping out with this.

--HG--
branch : trunk
2009-06-15 09:07:51 +02:00
megamage ee9c12b480 *Some fix of vehicles. Thanks to Seizerkiller.
--HG--
branch : trunk
2009-06-13 09:18:54 -05:00
megamage 9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
panaut0lordv f6447e8f34 *Including style fixing - part 1
--HG--
branch : trunk
2009-06-04 21:41:07 +02:00