Commit Graph

805 Commits

Author SHA1 Message Date
click
6baf3f9a59 Buildsystem/CMake: Adjust headerlocations on Windows so that they are correctly detected.
- Remove caching of OpenSSL info (for you, zor!)
- Adjust MySQL header-location in a DB-file (haha to Machiavelli, more work for you!)
- Add OpenSSL-header location to the shared-library (Fixes build)

--HG--
branch : trunk
2010-08-07 21:48:20 +02:00
XTZGZoReX
946adf469c *** New core <-> script library interface - complete rewrite of the old one.
* Removed the misdesigned on_events script/hooks.
* Lots of related cleanups and assertions.
* The interface is now fully object-oriented.
** Scripts no longer use function pointers.
** Scripts no longer use the general-purpose Script struct for everything.
** Script types are split into separate classes which must be inherited depending on what functionality is desired.
* Several script types have been added to allow extending functionality in a code-only manner (some script types require
  assignment in the recently added ScriptName columns in the database, though).
** SpellHandlerScript: Wrapper around spell scripts (returns new SpellScript objects (`spell_script_names`.`ScriptName`)).
** ServerScript: Allows scripting events that occur in the network layer.
** WorldScript: Allows scripting certain world-global events.
** FormulaScript: Allows hooking and interfering with core formulas.
** *MapScript: Allows hooking different map types (including world, instance, and battleground maps (`instance_template`.`ScriptName`)).
** ItemScript: Allows scripting of items (like the old interface (`item_template`.`ScriptName`)).
** CreatureScript: Allows scripting of creatures/AI (like the old interface (`creature_template`.`ScriptName`)).
** GameObjectScript: Allows scripting of gameobjects (like the old interface (`gameobject_template`.`ScriptName`)).
** AreaTriggerScript: Allows scripting triggered area triggers (like the old interface (`areatrigger_scripts`.`ScriptName`)).
** OutdoorPvPScript: Script which should return OutdoorPvP objects for use by OutdoorPvPMgr (`outdoorpvp_template`.`ScriptName`).
** CommandScript: Allows extending the in-core command table.
** WeatherScript: Allows scripting of weather changes (`game_weather`.`ScriptName`).
** AuctionHouseScript: Allows scripting of auction events.
** ConditionScript: Allows scripting of conditions (`conditions`.`ScriptName`).
** DynamicObjectScript: Allows scripting of dynamicobjects.
** TransportScript: Allows scripting of transport events (`transports`.`ScriptName`).
* OutdoorPvP objects are now created through scripts. This effectively means that they'll need to be moved to scripts
  before the they're functional again.
* The whole idea with this new interface is to allow expanding core functionality without touching core code. If further
  hooks are needed to expand functionality of the core, let us know; we'll add them, if we agree that it is appropriate
  to do so.
*** NOTE: The scripts project will _not_ build before it has been adapted to the new interface.
*** Thanks to everyone who helped out with related preparations and suggestions!

--HG--
branch : trunk
2010-08-06 19:23:43 +02:00
Shauren
fda697a1e7 Implemented ACHIEVEMENT_CRITERIA_TYPE_EARN_ACHIEVEMENT_POINTS
Fixed timed achievements timer restarting on every map change
Added missed change in instance_template format

--HG--
branch : trunk
2010-08-06 14:56:41 +02:00
XTZGZoReX
dc6c3f96b1 * Add operator -= to HookList.
--HG--
branch : trunk
2010-08-04 11:55:40 +02:00
click
33829ed45e Clean up some crap - remove generated config.h (old junk) and also requirements for that in Error.h
--HG--
branch : trunk
2010-08-03 22:51:27 +02:00
QAston
73b481073d *Fix talent Will of the NEcropolis
*Backout unintentional change from ra299f0b248.

--HG--
branch : trunk
2010-07-31 23:39:03 +02:00
QAston
c26c128ba6 *Add data from r4bf7778333 to world_database.sql
*Add 22 sec internal cooldown to Lock and Load - by servet.

--HG--
branch : trunk
2010-07-31 20:11:07 +02:00
click
c298bdb662 Remove duplicate "Error:" from some outError messages...
--HG--
branch : trunk
2010-07-31 03:12:51 +02:00
QAston
48b360097c *use ASSERT macro instead of regular assert for better output.
--HG--
branch : trunk
2010-07-30 20:04:28 +02:00
click
f213f2c7d9 Buildsystem/CMake: Include core/script headerfiles in generated MSVC-projects.
- Still "work in progress", as in missing filters and MSVC folder layouts.
- external libraries not fully "headerified" (not really required)

--HG--
branch : trunk
2010-07-29 21:08:16 +02:00
click
969bf213b8 Fix windows-build and change some warnings if configuration-files can not be read properly
- Add proper warning about missing [authserver] -tag in authserver configuration file if not found.
- Add proper warning about missing [worldserver] -tag in worldserver configuration file if not found.
Thanks to Qaston for finding the redefininition of strdup!

--HG--
branch : trunk
2010-07-29 09:00:55 +02:00
click
3296a944e7 Convert to using ACE for reading configurationfiles, and remove dependency on dotconfpp configuration library and related files
(patch by astellar - and a thankyou to vladimir for being a russian teddybear)

--HG--
branch : trunk
2010-07-29 01:22:45 +02:00
Shauren
0137a8c193 Add better crash dump output for windows
--HG--
branch : trunk
2010-07-28 12:51:04 +02:00
QAston
2352fc7cdf *Add base scripting interfce for spells - thanks to Brian for help in making it compile with GCC.
*Add hook for handling spell effects in new scripting system.

--HG--
branch : trunk
2010-07-24 22:41:42 +02:00
Brian
4320b10901 * Implement the ability to delete characters without them being removed from
* the DB, so they can be unerased
* Original patch by DasBlub
* Ported to Trinty by Az@zel

--HG--
branch : trunk
2010-07-21 12:13:23 -06:00
click
673c652ba6 change "IN_MILISECONDS" to proper english "IN_MILLISECONDS"
--HG--
branch : trunk
2010-07-12 00:30:17 +02:00
Shauren
2ea043484d It is now possible to use CMake on windows for proper build (PCH support included)
Merged PCH header into gamePCH since they became the same after these changes

--HG--
branch : trunk
rename : src/server/game/PrecompiledHeaders/NixCorePCH.cpp => src/server/game/PrecompiledHeaders/gamePCH.cpp
rename : src/server/game/PrecompiledHeaders/NixCorePCH.h => src/server/game/PrecompiledHeaders/gamePCH.h
2010-06-30 13:10:13 +02:00
Machiavelli
b6e180c17c Add PreparedStatementHolder class that will be used for registering and calling prepared statements on the MySQL server.
Information about prepared statements can be found here: http://dev.mysql.com/tech-resources/articles/4.1/prepared-statements.html
In short: better performance shall ensue.

--HG--
branch : trunk
2010-06-28 16:09:06 +02:00
Machiavelli
0f7657b68c Get rid of Trinity Singleton and Threading patterns and replace them with ACE_Singletons and ACE_GUARD_x macro´s with ACE_Thread_Mutex´es respectively.
Also get rid of unused CountedReference class that used Trinity threading pattern.

--HG--
branch : trunk
2010-06-25 00:18:01 +02:00
click
0b2dad9c97 Remove a possible NaN-value in WorldObject::HasInArc (thanks to arrai)
+ do some hack'n'slash-work on the CMakeLists with my trusted axe ( I just LOVE being a viking - I get to wield an axe for free!)

--HG--
branch : trunk
2010-06-24 17:32:50 +02:00
Xanadu
ffaffe3fd7 * Renamed several VS projects and the executables they produce to reflect the new naming convention.
* Cleaned up some useless and redundant preprocessor definitions.
* Fixed the win build so that it correctly uses the mysql lib it built from the sources.
* Note that you still need to use 8615_mysql_openssl_libs.zip for the OpenSSL binaries.
* Also note that Win x64 build from the existing VS files is still fubar (mysql lib...).

--HG--
branch : trunk
2010-06-23 01:47:41 +02:00
Xanadu
c9b20170a3 Cleanup of logging - removed a few duplicit functions from olden times, fixed a typo.
--HG--
branch : trunk
2010-06-22 02:53:04 +02:00
click
1c96f52568 Add more CMake-related support for building g3dlib, zlib, bzip2, ace on Windows
--HG--
branch : trunk
2010-06-21 07:17:26 +02:00
Brian
2db4af3949 * Changed references to Trinityd.conf / trinitycore.conf to proper
* worldserver.conf

--HG--
branch : trunk
2010-06-19 13:54:19 -06:00
click
43f527b94f Fix compile-errors on older versions of GCC (missing definitions - thanks to lynx3d for the heads up)
(users are adviced to upgrade to a MORE RECENT version of GCC that supports the standardized tr1::unordered_map functionality though)

--HG--
branch : trunk
2010-06-14 02:43:18 +02:00
Shauren
7195abfad0 Fixed TrinityRealm compile on windows
Fixed shared build on windows fully

NOTE: TrinityRealm config file has been renamed to authserver.conf!

--HG--
branch : trunk
2010-06-10 16:39:51 +02:00
Tartalo
2457c5a174 Add copyright notes to CMake files
--HG--
branch : trunk
2010-06-09 15:39:34 +02:00
Brian
dd5583e962 * Removed static revision.h from src/server/shared
* This is a dynamically generated file

--HG--
branch : trunk
2010-06-09 07:02:24 -06:00
Rat
4cdb5c78f2 added revision.h O.o
game.vcproj update , game.lib now buildable
todo: auth+world server

--HG--
branch : trunk
2010-06-09 14:05:50 +02:00
Brian
b76b6700ed * Linux compile with and without PCH fixed
* Script library compile fixed
* --todo: fix all scripts themselves :)

--HG--
branch : trunk
2010-06-08 13:05:47 -06:00
click
332b0f3c8e Properly build and link core (yay!)
- Not done yet : Sorting out the PCH-system on *nix
- Not done yet : Sorting out scriptcompilation (still broken)

--HG--
branch : trunk
2010-06-08 08:59:38 +02:00
Tartalo
a5f4e3de94 more cmake fixes. comment collision compilation until fixed
--HG--
branch : trunk
2010-06-08 01:20:06 +02:00
Tartalo
156f4c3057 Merge cmake files from shared/
--HG--
branch : trunk
2010-06-07 22:34:36 +02:00
Brian
d9127cdee7 * Reverted to the old Mersenne Twister till the new one can be properly added
--HG--
branch : trunk
2010-06-07 14:13:56 -06:00
Brian
f1d39c2aa2 * Fixed damn copy / paste type from my last commit. It is still very broken
* though :P

--HG--
branch : trunk
2010-06-07 13:33:31 -06:00
Brian
1a3f840a17 * broken
--HG--
branch : trunk
2010-06-07 13:20:46 -06:00
Brian
15f8bbe9ca * More cleanup
--HG--
branch : trunk
2010-06-07 12:08:15 -06:00
Brian
2e0f8fb6e5 * Nope not yet
--HG--
branch : trunk
2010-06-07 09:23:19 -06:00
Brian
2435b4152d * Nope still won't build yet
--HG--
branch : trunk
2010-06-07 09:04:14 -06:00
Brian
12dc250bf0 * Lib trinitydatabase builds again
--HG--
branch : trunk
2010-06-07 07:58:31 -06:00
Brian
36584926e6 * Auth lib builds again.
--HG--
branch : trunk
2010-06-07 07:43:20 -06:00
Brian
cbaf5587d6 * shared lib builds again under Linux.
--HG--
branch : trunk
2010-06-07 07:13:35 -06:00
Tartalo
bef0ed9a7f Fix some paths on shared/ includes and CMakeLists.txt
--HG--
branch : trunk
2010-06-07 12:57:21 +02:00
Tartalo
ce1b22ed0c More cmake fixes. Now cmake runs without errors with -DO_SCRIPTS=0
--HG--
branch : trunk
2010-06-07 12:41:57 +02:00
Tartalo
74b3fb53c0 Some fixes for shared/CMakeLists.txt
Adjust game/CMakeLists.txt to the new structure (needs more work)

--HG--
branch : trunk
2010-06-07 12:13:15 +02:00
XTZGZoReX
22950963e9 * Get rid of framework and move the files to game and shared.
--HG--
branch : trunk
2010-06-06 23:44:21 +02:00
XTZGZoReX
7cb74345e0 * Move VMap code to game.
--HG--
branch : trunk
2010-06-06 23:30:25 +02:00
Tartalo
5358270186 Case sensitive renames on shared/ Fuck windows and insensitiveness
--HG--
branch : trunk
rename : src/server/shared/Cryptography/md5.c => src/server/shared/Cryptography/MD5.c
rename : src/server/shared/Cryptography/md5.h => src/server/shared/Cryptography/MD5.h
rename : src/server/shared/Cryptography/Sha1.cpp => src/server/shared/Cryptography/SHA1.cpp
rename : src/server/shared/Cryptography/Sha1.h => src/server/shared/Cryptography/SHA1.h
2010-06-06 23:29:55 +02:00
XTZGZoReX
309333ffff * Rename some cryptographic files.
--HG--
branch : trunk
2010-06-06 23:23:22 +02:00
XTZGZoReX
6cb5f529d6 * Useless files.
--HG--
branch : trunk
2010-06-06 23:19:22 +02:00