Commit Graph

805 Commits

Author SHA1 Message Date
leak
ced346076b Merge pull request #4567 from Kiperr/master
Happy new year!
2011-12-31 16:13:28 -08:00
leak
cdbeb42e0f Core/DBLayer: Refactor prepared statement defines to new format (char db) 2012-01-01 01:09:38 +01:00
kiper
8299627ed9 Update headers for 2012. HAPPY NEW YEAR!!! 2012-01-01 00:32:13 +01:00
leak
73cf793e56 Core/DBLayer: Refactor prepared statement defines Note:
The new format for the middle section is a 3-letter upper case abbreviation of the sql command being executed (select -> SEL, update -> UPD, etc.)
{DB}_{SEL/INS/UPD/DEL/REP}_{Summary of data changed}
2011-12-31 20:14:38 +01:00
leak
ff8874574f Core/DBLayer: Convert another Execute() query to a prepared statement 2011-12-31 19:51:48 +01:00
leak
b39857a15d Core/DBLayer: Convert PExecute() queries to prepared statements No. 4 2011-12-31 19:06:24 +01:00
Machiavelli
81914422e9 Core/DBLayer: Use column names in prepared statements to prevent avoidable prepare errors 2011-12-31 15:16:38 +01:00
leak
8adac3f246 Core/DBLayer: Convert PExecute() queries to prepared statements No. 3 2011-12-31 00:32:05 +01:00
Nay
bdab38b4cc Merge branch 'master' into 4.x 2011-12-27 15:37:06 +00:00
Spp
fa9daaf95b Merge branch 'master' into 4.x and some warning fixes 2011-12-27 10:15:27 +01:00
Venugh
882ebe2b8e Core/World: Convert Execute to PreparedStatement from Battleground random. 2011-12-27 01:04:12 +01:00
Venugh
cab508b4c8 Convert a Execute to a PreparedStatement. 2011-12-27 00:56:42 +01:00
leak
e646dbb3cd Core/DBLayer: Convert PExecute() queries to prepared statements No. 2 2011-12-27 00:29:48 +01:00
leak
ef17c05dec Core/DBLayer: Convert PExecute() queries to prepared statements No. 1 2011-12-25 18:13:21 +01:00
leak
64a2a29506 Core/DBLayer: Convert Execute() queries to prepared statements 2011-12-25 02:22:10 +01:00
leak
08bd2f1a54 Core/DBLayer: Convert callback queries to prepared statements No. 3 2011-12-25 01:27:44 +01:00
kandera
96f4ba29cd Fix compile error from 2d93bd07ba 2011-12-21 07:18:47 -05:00
Machiavelli
2d93bd07ba Core/DBLayer: More generic implementation of callback chains, instead of using this functionality local to CharacterCreatInfo class. Will be used in other places as well. 2011-12-21 10:22:03 +01:00
Machiavelli
17aeeaa9b5 Core/DBLayer: Fix a silly error in HandleStableSwapPet (synchronous query in async context). Fixes possible loss of pets when swapping. 2011-12-21 09:36:05 +01:00
leak
e1afd79b1e Core/DBLayer: Convert callback queries to prepared statements #2 2011-12-20 09:12:43 +01:00
Machiavelli
8e0be985fd Core/Netcode: Fix a possible infinite loop after 829be0b82 (which was accidentally merged in this morning) 2011-12-19 21:12:35 +01:00
Machiavelli
a06ba9e255 Update src/server/shared/Database/MySQLConnection.h 2011-12-19 11:25:58 +01:00
Machiavelli
a1683f20dc Fix SQL file name after pull request, and fix compile on linux. 2011-12-19 11:17:52 +01:00
Machiavelli
392baafed4 Core/DBLayer: Documentation update 2011-12-19 11:11:25 +01:00
Machiavelli
4069e45c5d Core/DBLayer: Fix crash caused in 7052fbf 2011-12-19 11:05:56 +01:00
leak
7052fbf5cc Core/DBLayer: Convert callback queries to prepared statements 2011-12-18 20:56:38 +01:00
Machiavelli
d237134d90 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x 2011-12-13 14:05:17 +01:00
Machiavelli
589f067101 Core/DBLayer: Terminate process if table/database structure is not compatible with the core. This will significantly reduce the amount of PEBCAK help and support threads on our forums.
Also added a 10 second window to WPFatal for users who never heard of command line before to read the error prior to process termination.
2011-12-13 13:59:00 +01:00
Shauren
6d1c770d8d Cosmetic changes and typo fixes 2011-11-27 17:46:05 +01:00
Nay
8eac7e3fdc Add missed change to previous commit and fix a typo in BitStream::Empty 2011-11-27 13:55:44 +00:00
Shauren
e8523b1c3c Core/Packets: Simplified ByteBuffer constructor 2011-11-27 14:41:16 +01:00
Shauren
3a855f3f38 Core/PacketIO: Fixed memory leak in HandlePlayerLoginOpcode and cleaned some tabs -> spaces 2011-11-27 12:17:24 +01:00
kaelima
50f8881494 Core/Player: Store guild id inside protected integer instead of fetching from db. Still have method GetGuildIdFromGuid though if player is offline. 2011-11-27 03:40:03 +01:00
Rat
ca03e79ce7 Merge branch '4.x' of github.com:TrinityCore/TrinityCore into 4.x 2011-11-26 20:38:25 +01:00
Rat
e97527c24e Core/Packets: Implemented BitStream helper class
- added Static BitConverter class
- upgraded the ByteBuffer class for easier usage
2011-11-26 20:32:32 +01:00
kaelima
aa215e5e80 Core/Misc: Fix compile and char creation
- Added very basic honor/conquest support, no idea if its works even a little since there's no possibility of testing yet
2011-11-26 01:46:41 +01:00
Shauren
e8c3a3ac9c Core/Items
* Updated ItemTemplate structure to 4.x
* Calculate armor, damage and disenchant loot from dbc files

TODO: Use dbc disenchant ids in disenchant_loot_template
2011-11-25 23:24:40 +01:00
kaelima
ec54bb4895 Core/Misc:
Clearing compile errors since UpdateFields were changed:
- Completely remove ammo (Cataclysm change)
- Revert some changes with power/maxpower and only store the 5 needed powers in db (the rest is useless)
- Remove GuildId from corpse
- Move PLAYER_GUILDID to character db (removed updatefield)

Note: Compile is still not working as we need to change currency handling
2011-11-25 18:54:59 +01:00
Nay
f8ffe0f1e3 Core/DB: Fix a typo in commit 72675d55d8
Closes #4068
2011-11-25 15:41:06 +00:00
kaelima
9696d6ba7b Core/Mechanics:
- Add basic support for focus used by players (hunters)
- Drop all support for pet happieness (as it has been completely removed)
- Add new fields to characters db to store new power values
(Should now be able to create characters again)
2011-11-25 15:28:36 +01:00
Machiavelli
ec3880a1d0 Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x 2011-11-25 15:14:38 +01:00
Machiavelli
72675d55d8 Core/DBLayer: Use prepared statements in Player::SaveToDB. Also split the function up between an INSERT part (new character creation) and UPDATE part (existing character). 2011-11-25 15:14:00 +01:00
Rat
05880cc748 Core/DataStores:
-dropped dbcstring/db2string, use simple nonconstant char* (will be useable when loading custom data from db to dbc)
-fixed most dbc string related errors (you can now turn on logging)
2011-11-24 13:43:41 +01:00
Rat
47d0a7f3af Merge branch 'master' of github.com:TrinityCore/TrinityCore
Conflicts:
	src/server/game/DataStores/DBCStores.cpp
	src/server/game/DataStores/DBCfmt.h
	src/server/game/Server/Protocol/Opcodes.cpp
2011-11-23 20:23:04 +01:00
Shauren
638693e78f Core: Fixed more warnings (C6246: Local declaration of 'x' hides declaration of the same name in outer scope.) 2011-11-23 17:55:16 +01:00
Rat
a12df963b9 -updated all DBC formats, except spell* ones
-added dbc.zip (all 4.2.2 files + 3.3.5 spells)
-hardcoded map 0's entry for mapdifficulty (dbc has no data for it)
2011-11-22 13:32:11 +01:00
Rat
d1affc4340 Initial Commit for client version change to 4.2.2 (14545)
- added known opcodes (handlers are commented till not updated)
- added bitstream support to bytebuffer
- updated realm auth for 14545
- updated world auth
- fixed char_enum,create,delete handlers
- added DB2 reader
- added opcode logging to debuglogmask (ignores loglevel)
- fixed compile in win64, others not yet tested
- using db2 values for item models at char_enum to prevent client crash

Lots of Thanks to All SingularityCore Members
2011-11-20 18:28:18 +01:00
megamage
847fc35e6d Fix compile in linux. 2011-11-10 18:14:07 -05:00
megamage
31a88d4fe5 Fix the crash when removing object from an unloaded grid. Object should always be unlinked from grid no matter if the grid is loaded. 2011-11-10 17:31:45 -05:00
megamage
e3fa04823d Use TRINITY_GUARD to replace ACE_GUARD. ASSERT(false) if failed to acquire the lock. 2011-10-31 17:25:12 -04:00