Commit Graph
262 Commits
Author SHA1 Message Date
click ea3760066b Initialize the random logonhash on world startup to avoid socket hang on Windows platform. Patch by scarymovie87.
Update issue 1611
The "fix" itself will require further testing, though I'm suspecting this occurs due to that the loginhash
(to a realm that has just been restarted) isn't properly initialized. Consider this as a temporary workaround.

--HG--
branch : trunk
2010-05-29 17:26:43 +02:00
Xanadu d104f19469 *Properly initialize members to prevent DB logging before the DB is started. Fixes a rarely seen startup crash.
*Code cleanup.

--HG--
branch : trunk
2010-05-29 03:16:39 +02:00
click 3718dfa94f Fix statistics for random battlegrounds (by footman) + add missing configoption for when to reset random BGs
--HG--
branch : trunk
2010-05-26 13:15:35 +02:00
click aaf6b425fc Allow accounts to create characters in both horde and alliance factions by default (now blizzlike)
--HG--
branch : trunk
2010-05-25 10:50:11 +02:00
Anubisss a5840e9286 Implement a signalhandler via ACE.
Thanks to Diver for test compiling under WIN.

--HG--
branch : trunk
2010-05-19 21:16:59 +02:00
Machiavelli 98a5c09af0 Add config option SessionAddDelay to replace the hard coded 10ms default Networkthread sleep time after WorldSocket::HandleAuthSession calls and adding the session to the world session map.
--HG--
branch : trunk
2010-05-14 00:50:26 +02:00
Spp a3a8e6da2c Some warning fix
Tab to spaces
Remove trailing spaces

--HG--
branch : trunk
2010-05-13 00:15:21 +02:00
Rat 6f06008f6b make BG kill XP configable, default off
--HG--
branch : trunk
2010-05-12 07:53:13 +02:00
click f60d534b73 Cleanup on some database-related files: merge some DB-related files, add some consistency to callhandles in sourcetree (M
+ combine MySQL-specific files into main database-files (click)
+ fix vcproj-files, adjust handler-function names for consistency (Machiavelli)

--HG--
branch : trunk
2010-05-08 05:03:32 +02:00
click cb84d3e617 Cleanup : Remove postgreSQL-support (not used and has also been broken for a long time)
--HG--
branch : trunk
2010-05-06 09:53:09 +02:00
Trazom62 0a4d79ef39 Fix command .server plimit.
Fix obsolete comment for PlayerLimit in trinitycore.conf.dist
Thanks Phil.Pigeon and Johnholiver.

Fixes issue #534.
Fixes issue #295.

--HG--
branch : trunk
2010-05-02 16:48:18 +02:00
click 50ac994cf2 Revert changes done in re6b772bbb596137e7f83dabaab46fc501fb6a8f5 - reason: breaks readline-history capability on linux
This is essentially a bug in MySQLs InnoDB database storage engine where connectionhandlers does not decrement the servers threadcount
while trying to exit properly. Bugreport exists on mySQL bugtracker.

--HG--
branch : trunk
2010-04-20 19:51:20 +02:00
raczman 1532a2f9a2 Use jemalloc as memory allocator on linux.
In comparison to standard glibc allocator,
jemalloc fargments adress space less,
and scales linearly in multithreaded environment.
Author: Jason Evans, mad props to him.

--HG--
branch : trunk
2010-04-20 10:58:41 +02:00
click ed2e64af4c Add snippet to fix thread-hangs-on-exit on server exit
Closes issue #842

--HG--
branch : trunk
2010-04-19 18:15:41 +02:00
n0n4m3 a6af93c3d6 Create new table character_stats for external tools(website,etc). This table use only when player logout. Original code by hunuza.
--HG--
branch : trunk
2010-04-14 13:29:56 +04:00
Spp b27ce42704 Code Style: Remove trailing spaces
--HG--
branch : trunk
2010-04-07 18:09:10 +02:00
raczman bcb67eb490 Include ACE headers in case they are not in system path.
Thanks for spotting the bug guys:
GL.AntiDiavol, next3x, Aokromes

--HG--
branch : trunk
2010-04-07 13:09:07 +02:00
raczman e30e9a45cb Cleaned up include directories in cmakes.
--HG--
branch : trunk
2010-04-06 15:53:27 +02:00
XTZGZoReX 7c277c87d8 * Only call Database::ThreadStart()/ThreadEnd() once per thread.
* Some cleanups in MapUpdater/DelayExecutor.

--HG--
branch : trunk
2010-04-05 13:08:47 +02:00
Brian c86b228668 * Removed check for SSL version requirement of .98k or higher (works just fine
* with .98e).
* Thanks raczman for testing.

--HG--
branch : trunk
2010-04-02 10:56:30 -06:00
XTZGZoReX 2c3aaee502 * Remove unused config option Rate.XP.PastLevel70.
--HG--
branch : trunk
2010-03-27 20:26:35 +01:00
Spp ff89bad0fe Allow Battlegrounds and arenas to be disabled by DB.
wtlk arenas disabled by default.

- Player will continue to see all bgs using UI, but won't be able to join disabled bg's
- Gossip menu not shown for disabled Bgs/arenas
- Id 6 disabled = all arenas disabled.
- Only id 6 arena enabled = Gossip shown but unable to join any arena

--HG--
branch : trunk
2010-03-13 00:47:24 +01:00
Spp e1a8e1b2c9 Fix compile after 7548.
Also reorder the columns of account onlinelist command

--HG--
branch : trunk
2010-03-12 20:43:46 +01:00
Spp 2cac9671ca Add map and zone to account onlinelist command.
Closes issue 466

--HG--
branch : trunk
2010-03-12 18:55:41 +01:00
Spp cef249ff2c Add level restrictions to some commands:
say, yell, emote, whisper, channel use, trade, auction, mail, tickets
By azazel. Closes issue #598

--HG--
branch : trunk
2010-03-09 12:58:48 +01:00
Spp 9dd9096d57 Fix a typo in trinitycore.conf.dist added in rev 8529262de6.
Closes #887

--HG--
branch : trunk
2010-03-05 12:42:03 +01:00
Tartalo c6bdcb6b7c Dump characters to separate files config option, by azazel.kon
Resolves #744

--HG--
branch : trunk
2010-02-23 00:05:10 +01:00
Brian ca10925d41 * Changed default for MinRecordUpdateTimeDiff from 10ms to 100ms.
* Even on a local LAN, you are lucky to get 50ms with gigabit LAN

--HG--
branch : trunk
2010-02-15 08:31:45 -07: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
Machiavelli ce2d71e1d9 Add config option that determines the maximum allowed time between the last received CMSG_CHAR_ENUM and another incoming packet, and will disconnect the peer if this time limit is exceeded.
In other words, a time limit in which idlers can stay logged in on the character selection screen before they are disconnected.
Fixes issue #335

--HG--
branch : trunk
2010-02-12 19:59:44 +01:00
Xanadu f8d1920fa5 Yet more cleanup, mostly in the script system. This should conclude the script integration into core.
--HG--
branch : trunk
2010-02-05 13:01:32 +01:00
Xanadu a5d1bc77ab A great purge of obsolete macros.
--HG--
branch : trunk
2010-02-05 00:31:28 +01:00
Brian 6a3cd98529 * Fixed the console in Linux so the prompt doesn't get hung, that was so
* annoying. Original idea by stump

--HG--
branch : trunk
2010-01-30 09:26:56 -07:00
XTZGZoReX a385ea64b0 * Call Database::ThreadStart()/Database::ThreadEnd() for all databases in all threads.
--HG--
branch : trunk
2010-01-29 19:24:14 +01:00
Rat 523dae2f63 *added new CMakeLists
-should speed up building on linux systems

--HG--
branch : trunk
2010-01-24 20:02:05 +01: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
Brian bbdca0aa43 * Cleaning Wintergrasp from the core part 1
* When someone feels like coding it properly, it can be added back in.

--HG--
branch : trunk
2010-01-20 06:26:13 -07:00
Rat 0cc053ea4d *Integrate Script system to Core
-added ScriptMgr for loading scripts
-removed bindings
-moved script system to src/game
-moved scripts to src/scripts
-VC project files updated
-cmakes updated (not 100% done yet)

NOTE to Devs:
-file locations changed
-precompiled renamed to ScriptedPch
-ecsort_ai renamed to ScriptedEscortAI
-follower_ai renamed to ScriptedFollowerAI
-guard_ai renamed to ScriptedGuardAI
-simple_ai renamed to ScriptedSimpleAI
-sc_creature renamed to ScriptedCreature
-sc_gossip renamed to ScriptedGossip
-sc_instance  renamed to ScriptedInstance

*use the new headers in scripts, thank you

NOTE to ALL:
cmake not fully tested, please report any errors with it
could make creashes, incompability
USE AT YOUR OWN RISK before further tests!!

--HG--
branch : trunk
2010-01-19 11:36:05 +01:00
n0n4m3 99f66a6bc9 Updated copyright for new year.
--HG--
branch : trunk
2010-01-16 20:19:18 +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
XTZGZoReX 8ca7410c35 * Little leftover...
--HG--
branch : trunk
2009-12-29 19:03:25 +01:00
XTZGZoReX 2159602f27 * Remove useless CheckDB functionality. This does not belong in core in any shape or form.
--HG--
branch : trunk
2009-12-29 18:25:21 +01:00
n0n4m3 5b975766f5 Removed not needed gomp from cmakefiles
--HG--
branch : trunk
2009-12-29 17:56:43 +01:00
n0n4m3 d82d10ff36 Added new config options chat channel level limit, option to disable player commands of any kind
--HG--
branch : trunk
2009-12-27 16:10:15 +01:00
n0n4m3 4a707509b9 Set Wintergrasp disable by default(now unstable).
--HG--
branch : trunk
2009-12-26 09:47:52 +01:00
n0n4m3 531945f8ad Fixed RA auth. by toshik
--HG--
branch : trunk
2009-12-25 11:43:39 +01:00
n0n4m3 250a00cc1c Temporary revert 6743 commit. I fix this patch across 1-2 days.
--HG--
branch : trunk
2009-12-24 10:20:15 +01:00
n0n4m3 73a849ae1d Fixed some typos
--HG--
branch : trunk
2009-12-23 09:05:17 +01:00
p0wer f637efa908 * Require all RA use to have -1 (equal power across all realms) to prevent abuse
* of people using RA to assign powers to themselves on other realms. Thanks Sundark.

--HG--
branch : trunk
2009-12-22 22:27:15 -06:00