mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
- Need to convert a list of functions and columns and should be ready to start intensive testing phase - All preliminary tests show things working great - All of player profile is saved and loaded from the database - DBAsync has been completely removed from all code - Removed zone/dbasync.cpp/.h - Removed common/dbasync.cpp/.h - Removed dbasync from cmake commmon and zone - Cleaned up a ton of functions - Added several tables to world CheckDatabaseConversions script: - `character_skills` - `character_languages` - `character_bind` - `character_alternate_abilities` - `character_currency` - `character_data` - `character_spells` - `character_memmed_spells` - `character_disciplines` - `character_material` - `character_tribute` - `character_bandolier` - `character_potionbelt` - Character select now loads from `character_data` - Character creation now creates to `character_data` - Updated function Database::UpdateName to use `character_data` - Updated function Database::CheckUsedName to use `character_data` - Updated function Database::MoveCharacterToZone to use `character_data` - Updated function Database::SetLoginFlags to use `character_data` - Updated function Database::SetFirstLogon to use `character_data` - Updated function Database::SetLFG to use `character_data` - Removed CopyCharacter functions and commands, to be recreated later since it never worked to begin with - Removed SharedDatabase::SetPlayerProfile - Trimmed down redundant case switch statements for World sendpackets to QueryServ - Added Character Methods to Database class: Loads: bool LoadCharacterBandolier(uint32 character_id, PlayerProfile_Struct* pp); bool LoadCharacterTribute(uint32 character_id, PlayerProfile_Struct* pp); bool LoadCharacterPotions(uint32 character_id, PlayerProfile_Struct* pp); Saves: bool SaveCharacterBindPoint(uint32 character_id, uint32 zone_id, uint32 instance_id, float x, float y, float z, float heading, uint8 is_home); bool SaveCharacterCurrency(uint32 character_id, PlayerProfile_Struct* pp); bool SaveCharacterData(uint32 character_id, uint32 account_id, PlayerProfile_Struct* pp); bool SaveCharacterAA(uint32 character_id, uint32 aa_id, uint32 current_level); bool SaveCharacterSpellSwap(uint32 character_id, uint32 spell_id, uint32 from_slot, uint32 to_slot); bool SaveCharacterSpell(uint32 character_id, uint32 spell_id, uint32 slot_id); bool SaveCharacterMemorizedSpell(uint32 character_id, uint32 spell_id, uint32 slot_id); bool SaveCharacterMaterialColor(uint32 character_id, uint32 slot_id, uint32 color); bool SaveCharacterSkill(uint32 character_id, uint32 skill_id, uint32 value); bool SaveCharacterLanguage(uint32 character_id, uint32 lang_id, uint32 value); bool SaveCharacterDisc(uint32 character_id, uint32 slot_id, uint32 disc_id); bool SaveCharacterTribute(uint32 character_id, PlayerProfile_Struct* pp); bool SaveCharacterBandolier(uint32 character_id, uint8 bandolier_id, uint8 bandolier_slot, uint32 item_id, uint32 icon, const char* bandolier_name); bool SaveCharacterPotionBelt(uint32 character_id, uint8 potion_id, uint32 item_id, uint32 icon); Deletes: bool DeleteCharacterSpell(uint32 character_id, uint32 spell_id, uint32 slot_id); bool DeleteCharacterMemorizedSpell(uint32 character_id, uint32 spell_id, uint32 slot_id); bool DeleteCharacterDisc(uint32 character_id, uint32 slot_id); bool DeleteCharacterBandolier(uint32 character_id, uint32 band_id);
338 lines
6.2 KiB
CMake
338 lines
6.2 KiB
CMake
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
|
|
|
SET(common_sources
|
|
base_packet.cpp
|
|
classes.cpp
|
|
condition.cpp
|
|
crash.cpp
|
|
crc16.cpp
|
|
crc32.cpp
|
|
database.cpp
|
|
dbcore.cpp
|
|
debug.cpp
|
|
emu_opcodes.cpp
|
|
emu_tcp_connection.cpp
|
|
emu_tcp_server.cpp
|
|
eq_dictionary.cpp
|
|
eqdb.cpp
|
|
eqdb_res.cpp
|
|
eqemu_exception.cpp
|
|
eqemu_config.cpp
|
|
eqemu_error.cpp
|
|
eq_packet.cpp
|
|
eq_stream.cpp
|
|
eq_stream_factory.cpp
|
|
eq_stream_ident.cpp
|
|
eq_stream_proxy.cpp
|
|
eqtime.cpp
|
|
extprofile.cpp
|
|
faction.cpp
|
|
guild_base.cpp
|
|
guilds.cpp
|
|
ipc_mutex.cpp
|
|
item.cpp
|
|
logsys.cpp
|
|
logsys_eqemu.cpp
|
|
md5.cpp
|
|
memory_mapped_file.cpp
|
|
misc.cpp
|
|
misc_functions.cpp
|
|
moremath.cpp
|
|
mutex.cpp
|
|
mysql_request_result.cpp
|
|
mysql_request_row.cpp
|
|
opcode_map.cpp
|
|
opcodemgr.cpp
|
|
packet_dump.cpp
|
|
packet_dump_file.cpp
|
|
packet_functions.cpp
|
|
perl_eqdb.cpp
|
|
perl_eqdb_res.cpp
|
|
proc_launcher.cpp
|
|
ptimer.cpp
|
|
races.cpp
|
|
rdtsc.cpp
|
|
rulesys.cpp
|
|
serverinfo.cpp
|
|
shareddb.cpp
|
|
spdat.cpp
|
|
string_util.cpp
|
|
struct_strategy.cpp
|
|
tcp_connection.cpp
|
|
tcp_server.cpp
|
|
timeoutmgr.cpp
|
|
timer.cpp
|
|
unix.cpp
|
|
worldconn.cpp
|
|
xml_parser.cpp
|
|
platform.cpp
|
|
patches/client62.cpp
|
|
patches/patches.cpp
|
|
patches/sod.cpp
|
|
patches/sof.cpp
|
|
patches/rof.cpp
|
|
patches/titanium.cpp
|
|
patches/underfoot.cpp
|
|
SocketLib/Base64.cpp
|
|
SocketLib/File.cpp
|
|
SocketLib/HttpdCookies.cpp
|
|
SocketLib/HttpdForm.cpp
|
|
SocketLib/HttpdSocket.cpp
|
|
SocketLib/HTTPSocket.cpp
|
|
SocketLib/MemFile.cpp
|
|
SocketLib/Mime.cpp
|
|
SocketLib/Parse.cpp
|
|
SocketLib/socket_include.cpp
|
|
SocketLib/Utility.cpp
|
|
StackWalker/StackWalker.cpp
|
|
tinyxml/tinystr.cpp
|
|
tinyxml/tinyxml.cpp
|
|
tinyxml/tinyxmlerror.cpp
|
|
tinyxml/tinyxmlparser.cpp
|
|
)
|
|
|
|
SET(common_headers
|
|
base_packet.h
|
|
base_data.h
|
|
bodytypes.h
|
|
breakdowns.h
|
|
classes.h
|
|
condition.h
|
|
crash.h
|
|
crc16.h
|
|
crc32.h
|
|
database.h
|
|
dbcore.h
|
|
debug.h
|
|
deity.h
|
|
emu_opcodes.h
|
|
emu_oplist.h
|
|
emu_tcp_connection.h
|
|
emu_tcp_server.h
|
|
eq_constants.h
|
|
eq_dictionary.h
|
|
eq_packet_structs.h
|
|
eqdb.h
|
|
eqdb_res.h
|
|
eqemu_exception.h
|
|
eqemu_config.h
|
|
eqemu_config_elements.h
|
|
eqemu_error.h
|
|
eq_packet.h
|
|
eq_stream.h
|
|
eq_stream_factory.h
|
|
eq_stream_ident.h
|
|
eq_stream_intf.h
|
|
eq_stream_locator.h
|
|
eq_stream_proxy.h
|
|
eq_stream_type.h
|
|
eqtime.h
|
|
errmsg.h
|
|
extprofile.h
|
|
faction.h
|
|
features.h
|
|
fixed_memory_hash_set.h
|
|
fixed_memory_variable_hash_set.h
|
|
guild_base.h
|
|
guilds.h
|
|
ipc_mutex.h
|
|
item.h
|
|
item_fieldlist.h
|
|
item_struct.h
|
|
languages.h
|
|
linked_list.h
|
|
logsys.h
|
|
logtypes.h
|
|
loottable.h
|
|
mail_oplist.h
|
|
md5.h
|
|
memory_mapped_file.h
|
|
misc.h
|
|
misc_functions.h
|
|
moremath.h
|
|
mutex.h
|
|
mysql_request_result.h
|
|
mysql_request_row.h
|
|
op_codes.h
|
|
opcode_dispatch.h
|
|
opcodemgr.h
|
|
packet_dump.h
|
|
packet_dump_file.h
|
|
packet_functions.h
|
|
platform.h
|
|
proc_launcher.h
|
|
profiler.h
|
|
ptimer.h
|
|
queue.h
|
|
races.h
|
|
rdtsc.h
|
|
rulesys.h
|
|
ruletypes.h
|
|
seperator.h
|
|
serverinfo.h
|
|
servertalk.h
|
|
shareddb.h
|
|
skills.h
|
|
spdat.h
|
|
string_util.h
|
|
struct_strategy.h
|
|
tcp_basic_server.h
|
|
tcp_connection.h
|
|
tcp_server.h
|
|
timeoutmgr.h
|
|
timer.h
|
|
types.h
|
|
unix.h
|
|
useperl.h
|
|
version.h
|
|
worldconn.h
|
|
xml_parser.h
|
|
zone_numbers.h
|
|
patches/client62.h
|
|
patches/client62_constants.h
|
|
patches/client62_itemfields.h
|
|
patches/client62_ops.h
|
|
patches/client62_structs.h
|
|
patches/patches.h
|
|
patches/sod.h
|
|
patches/sod_constants.h
|
|
patches/sod_itemfields.h
|
|
patches/sod_ops.h
|
|
patches/sod_structs.h
|
|
patches/sof.h
|
|
patches/sof_constants.h
|
|
patches/sof_itemfields.h
|
|
patches/sof_opcode_list.h
|
|
patches/sof_ops.h
|
|
patches/sof_structs.h
|
|
patches/ss_declare.h
|
|
patches/ss_define.h
|
|
patches/ss_register.h
|
|
patches/rof.h
|
|
patches/rof_constants.h
|
|
patches/rof_itemfields.h
|
|
patches/rof_ops.h
|
|
patches/rof_structs.h
|
|
patches/titanium.h
|
|
patches/titanium_constants.h
|
|
patches/titanium_itemfields.h
|
|
patches/titanium_ops.h
|
|
patches/titanium_structs.h
|
|
patches/underfoot.h
|
|
patches/underfoot_constants.h
|
|
patches/underfoot_itemfields.h
|
|
patches/underfoot_ops.h
|
|
patches/underfoot_structs.h
|
|
SocketLib/Base64.h
|
|
SocketLib/File.h
|
|
SocketLib/HttpdCookies.h
|
|
SocketLib/HttpdForm.h
|
|
SocketLib/HttpdSocket.h
|
|
SocketLib/HTTPSocket.h
|
|
SocketLib/IFile.h
|
|
SocketLib/MemFile.h
|
|
SocketLib/Mime.h
|
|
SocketLib/Parse.h
|
|
SocketLib/socket_include.h
|
|
SocketLib/Utility.h
|
|
StackWalker/StackWalker.h
|
|
tinyxml/tinystr.h
|
|
tinyxml/tinyxml.h
|
|
)
|
|
|
|
SOURCE_GROUP(Patches FILES
|
|
patches/client62.h
|
|
patches/client62_itemfields.h
|
|
patches/client62_ops.h
|
|
patches/client62_constants.h
|
|
patches/client62_structs.h
|
|
patches/patches.h
|
|
patches/sod.h
|
|
patches/sod_itemfields.h
|
|
patches/sod_ops.h
|
|
patches/sod_constants.h
|
|
patches/sod_structs.h
|
|
patches/sof.h
|
|
patches/sof_itemfields.h
|
|
patches/sof_opcode_list.h
|
|
patches/sof_ops.h
|
|
patches/sof_constants.h
|
|
patches/sof_structs.h
|
|
patches/ss_declare.h
|
|
patches/ss_define.h
|
|
patches/ss_register.h
|
|
patches/rof.h
|
|
patches/rof_itemfields.h
|
|
patches/rof_ops.h
|
|
patches/rof_constants.h
|
|
patches/rof_structs.h
|
|
patches/titanium.h
|
|
patches/titanium_itemfields.h
|
|
patches/titanium_ops.h
|
|
patches/titanium_constants.h
|
|
patches/titanium_structs.h
|
|
patches/underfoot.h
|
|
patches/underfoot_itemfields.h
|
|
patches/underfoot_ops.h
|
|
patches/underfoot_constants.h
|
|
patches/underfoot_structs.h
|
|
patches/client62.cpp
|
|
patches/patches.cpp
|
|
patches/sod.cpp
|
|
patches/sof.cpp
|
|
patches/rof.cpp
|
|
patches/titanium.cpp
|
|
patches/underfoot.cpp
|
|
)
|
|
|
|
SOURCE_GROUP(SocketLib FILES
|
|
SocketLib/Base64.h
|
|
SocketLib/File.h
|
|
SocketLib/HttpdCookies.h
|
|
SocketLib/HttpdForm.h
|
|
SocketLib/HttpdSocket.h
|
|
SocketLib/HTTPSocket.h
|
|
SocketLib/IFile.h
|
|
SocketLib/MemFile.h
|
|
SocketLib/Mime.h
|
|
SocketLib/Parse.h
|
|
SocketLib/socket_include.h
|
|
SocketLib/Utility.h
|
|
SocketLib/Base64.cpp
|
|
SocketLib/File.cpp
|
|
SocketLib/HttpdCookies.cpp
|
|
SocketLib/HttpdForm.cpp
|
|
SocketLib/HttpdSocket.cpp
|
|
SocketLib/HTTPSocket.cpp
|
|
SocketLib/MemFile.cpp
|
|
SocketLib/Mime.cpp
|
|
SocketLib/Parse.cpp
|
|
SocketLib/socket_include.cpp
|
|
SocketLib/Utility.cpp
|
|
)
|
|
|
|
SOURCE_GROUP(StackWalker FILES
|
|
StackWalker/StackWalker.h
|
|
StackWalker/StackWalker.cpp
|
|
)
|
|
|
|
SOURCE_GROUP(TinyXML FILES
|
|
tinyxml/tinystr.h
|
|
tinyxml/tinyxml.h
|
|
tinyxml/tinystr.cpp
|
|
tinyxml/tinyxml.cpp
|
|
tinyxml/tinyxmlerror.cpp
|
|
tinyxml/tinyxmlparser.cpp
|
|
)
|
|
|
|
INCLUDE_DIRECTORIES(Patches SocketLib StackWalker TinyXML)
|
|
|
|
ADD_LIBRARY(common ${common_sources} ${common_headers})
|
|
|
|
IF(UNIX)
|
|
ADD_DEFINITIONS(-fPIC)
|
|
SET_SOURCE_FILES_PROPERTIES("patches/sod.cpp" "patches/sof.cpp" "patches/rof.cpp" "patches/underfoot.cpp" PROPERTIES COMPILE_FLAGS -O0)
|
|
ENDIF(UNIX)
|
|
|
|
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|