aboutsummaryrefslogtreecommitdiff
path: root/src/shared
AgeCommit message (Collapse)Author
2010-06-05fixed compile on winRat
--HG-- branch : trunk
2010-06-05Add ACE includepath to linux buildfiles when not using a sitewide installclick
--HG-- branch : trunk
2010-06-05HIGHLY EXPERIMENTAL - USE AT YOUR OWN RISKclick
Implement the use of the new vmap3-format by Lynx3d (mad props to you for this, and thanks for the talks earlier) + reduced Vmap size to less than one third, and improve precision + indoor/outdoor check which allows automatic unmounting of players + additional area information from WMOAreaTable.dbc, removed existing "hacks" + WMO liquid information for swimming and fishing correctly in buildings/cities/caves/instances (lava and slime WILL hurt from now on!) - buildfiles for windows are not properly done, and will need to be sorted out NOTE: Do NOT annoy Lynx3d about this, any issues with this "port" is entirely our fault ! THIS REVISION IS CONSIDERED UNSTABLE AND CONTAINS WORK IN PROGRESS - USE AT YOUR OWN RISK! --HG-- branch : trunk
2010-05-29*Properly initialize members to prevent DB logging before the DB is started. ↵Xanadu
Fixes a rarely seen startup crash. *Code cleanup. --HG-- branch : trunk
2010-05-26Use ´manual´ ACE_Thread_Mutex objects in SQLTransaction class instead of ↵Machiavelli
using ACE_Based::LockedQueue. This will either result in a crash fix caused by underlying operations of ACE_Based::LockedQueue, or at least give us a clearer view at where the crash is coming from. --HG-- branch : trunk
2010-05-26Add another ACE_Thread_Mutex in Database class for threadsafe operations on ↵Machiavelli
m_transQueues. Fixes crash specified in comment #8 on issue #2214 --HG-- branch : trunk
2010-05-19Implement a signalhandler via ACE.Anubisss
Thanks to Diver for test compiling under WIN. --HG-- branch : trunk
2010-05-16Fix a possible crash in SqlTransaction::Execute(), using post-iterating on ↵Machiavelli
the LockedQueue instead of pre-iterating. Thanks to click for the insight and Spp for testing. --HG-- branch : trunk
2010-05-15Reimplement ACE_Based::LockedQueue as SQL holder for the SqlTransaction ↵Machiavelli
class, since std::queue is not safe when multiple threads are reading/writing to it at the same time (SqlDelayThread and a MapUpdate Thread). Original patch by thenecromancer, was removed for ungrounded reasons. Thanks to Zor for the insight. Please give feedback on how this affects mtmaps usage. --HG-- branch : trunk
2010-05-15Use delete[] on object allocated with new[x+y*z] in TileAssembler.Machiavelli
--HG-- branch : trunk
2010-05-13Fix crash introduced in 4610bbf047.Machiavelli
- Update SqlAsyncTask´s destructor, properly NULLpoint SqlOperation* m_op so other threads can deal with it accordingly. - Don´t keep NULL´d elements in transaction queues, remove them instead. This now means you should be able to run a stable server with > 2 MapUpdate threads. Please leave feedback. Courtesy of click and myself. --HG-- branch : trunk
2010-05-13Fix a crash in SqlAsyncTask::call caused by the fact that the SQLOperation ↵Machiavelli
to be called was a NULL pointer. The crash was mostly noticable on servers with relatively high MapUpdate Threads, since the window between SqlAsyncTask::call()´s NULLpointer check for m_op and the usage of this pointer was larger when more map threads are calling Database::CommitTransaction()´s and NULLing this pointer. Fixes crash specified in comment #24 in issue #1259, and most likely will affect other crashes specified there as well. Courtesy of click and myself, and our lengthy and deep brainstorming session. --HG-- branch : trunk
2010-05-13Some warning fixSpp
Tab to spaces Remove trailing spaces --HG-- branch : trunk
2010-05-08Cleanup on some database-related files: merge some DB-related files, add ↵click
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-06Cleanup : Remove postgreSQL-support (not used and has also been broken for a ↵click
long time) --HG-- branch : trunk
2010-05-05Use ACE_GUARD_RETURN macro in LockedQueue::next to guarrantee the lock is ↵Machiavelli
acquired before changing the queue´s properties --HG-- branch : trunk
2010-05-02Fix locale selection at server load.Spp
--HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--HG-- branch : trunk
2010-04-15Another fix quest flags, Implement support weekly quests cooldowns(Original ↵n0n4m3
patch by GriffonHeart), also code cleanups. --HG-- branch : trunk
2010-04-11Tab to Spaces and remove of trailing spacesSpp
--HG-- branch : trunk
2010-04-11Fix Auth on server also some fixes and cleanups. Big thx to TOM_RUS.n0n4m3
--HG-- branch : trunk
2010-04-08*fix an sql-dbc load bug, patch by QastonRat
--HG-- branch : trunk
2010-04-07Code Style: Remove trailing spacesSpp
--HG-- branch : trunk
2010-04-07Code Style: tab to spacesSpp
--HG-- branch : trunk
2010-04-07Include ACE headers in case they are not in system path.raczman
Thanks for spotting the bug guys: GL.AntiDiavol, next3x, Aokromes --HG-- branch : trunk
2010-04-06Cleaned up include directories in cmakes.raczman
--HG-- branch : trunk
2010-04-05* Only call Database::ThreadStart()/ThreadEnd() once per thread.XTZGZoReX
* Some cleanups in MapUpdater/DelayExecutor. --HG-- branch : trunk
2010-03-21Add additional field for storage of speed_run rate of creature_manuel_
This allow independent rate of walk vs run speed. Existing field renamed to explicit speed_walk. Note that default database rate for run is a result of the most common value seen, 8.0/7.0 Author: NoFantasy. --HG-- branch : trunk
2010-03-21Add support field 'allowMount' to instance_template table (see ↵Machiavelli
http://trinitydatabase.org/index.php?/topic/14994-7656-instance-template/), this will define whether or not mounting is allowed in an instance, instead of defining it hard coded in the core. --HG-- branch : trunk
2010-03-09Cleanup and applying code style to some Database files.n0n4m3
--HG-- branch : trunk
2010-03-03store unit's level in uint8 formatsilver1ce
TODO: may be change db format too --HG-- branch : trunk
2010-02-27Update visibility systemsilver1ce
*visibility updates and ai relocations processed simultaneously for each grid *these operations now are not synchronized for different grids *some changes into structure of visibility notifiers --HG-- branch : trunk
2010-02-23Dump characters to separate files config option, by azazel.konTartalo
Resolves #744 --HG-- branch : trunk
2010-02-15* Changed TrinityCore2 to TrinityCore. There is no TrinityCore2 anymore.Brian
* Removed unused SystemConfig.h.in --HG-- branch : trunk
2010-02-14* Core switch to client 3.3.2 (11403)Brian
* 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-10Fix compile warning on win.n0n4m3
--HG-- branch : trunk
2010-02-10Revert revision: 053bfe8ad9, this cause some crash.n0n4m3
Use dynamic_cast more is safer. I think no more crash on db code. --HG-- branch : trunk
2010-02-07Implement async class for database operations for better performance, remove ↵n0n4m3
10ms sleep, fixed some crash on sql execute. --HG-- branch : trunk
2010-02-05A great purge of obsolete macros.Xanadu
--HG-- branch : trunk
2010-02-01Use normal ace thread mutexthenecromancer
--HG-- branch : trunk
2010-02-01Use recursive thread mutex for SQL transaction queuethenecromancer
--HG-- branch : trunk
2010-01-23Implement QueryResult_AutoPtr type which is ACE's reference counted ↵Anubisss
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-21* Backed out changeset c7c6faf26cbdBrian
* A different solution to damage will be implemented * You will need data from your DB provider if you don't have a backup --HG-- branch : trunk
2010-01-21* Add support for basedmg and baserangeddmg values in creature_classlevelstats.win32
* Remove mindmg, maxdmg, attackpower and ranged field in creature_template and add Dmg_Mod, Rangeddmg_Mod field. --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-10* Add support for base armor values in creature_classlevelstats.XTZGZoReX
* Change the table structure to be more core-friendly. * Remove armor field in creature_template and add Armor_mod field. * Also add static CreatureBaseStats::GetBaseStats() function for scripts. --HG-- branch : trunk
2010-01-10Update aura system:QAston
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras: * Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type * Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras * Aura data is shared for all units which have AuraApplication of the Aura * Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now) * Remove spell source and AreaAuraEffect classes * Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant) * Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation * AreaAura updates are done in owner _UpdateSpells cycle * Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list * And you can access area aura target list * Add basic support for aura amount recalculation * Save recalculation state and base amount of auras to db * Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db * Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets * Sort aura effect handlers in SpellAuras.cpp and .h by their use * Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal * SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly * Send aura application client update only once per unit update - prevent unnecesary packet spam * Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet * Fix memory leak at player creation (not deleted auras) * Updated some naming conventions (too many to mention) * Added Unit::GetAuraOfRankedSpell() function * Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead * Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc) * Implement AURA_INTERRUPT_FLAG_LANDING * Implement EffectPlayerNotification (thanks to Spp) * Remove wrong aura 304 handler * Add better handler for death runes * Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura * Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script * Add many assert() procection from idiots using some functions in wrong way * I am to lazy to write here anything more Thanks to Visagalis for testing this patch PS: Do not make patches like this, please --HG-- branch : trunk
2010-01-06fixed the bug that GetVmapHeight returns incorrect height on terrains(flying ↵silver1ce
units fall below map etc) also unlocked max ray lenght for getHeight, by default it's 10 yards --HG-- branch : trunk
2010-01-02Removed moveflags column from creature_addon and creature_template_addon. ↵_manuel_
Thanks to Zor and raczman. --HG-- branch : trunk
2009-12-29* Partial revert of [6833 : 970affc03278] - code style fixes + a warning fix ↵XTZGZoReX
preserved. Don't ask me why, but apparently time CAN be negative in TC. Funny stuff. --HG-- branch : trunk