summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add enet files to codeblocksStefan Dombrowski2010-08-173-2/+45
| | | | | | | | | Because of compiler warnings generated by enet, warnings are switched of for: * unknown #pragmas, which are for MSVC compiler * enumeration with missing case Reviewed-by: Bertram
* Add static libraries to .gitignoreBernd Wachter2010-08-151-0/+3
|
* Add included enet to CMakeBernd Wachter2010-08-153-3/+65
|
* Add enet filesBernd Wachter2010-08-1522-0/+5862
|
* Fix enet check macros.Freeyorp2010-08-132-3/+3
| | | | | | Not a good idea to have #if checks in a #ifdef check. Trivial fix.
* Fix enet version checkJared Adams2010-08-092-3/+15
| | | | Reviewed-by: Chuck Miller
* Worked around a typo in the update script from version 7 to 8Thorbjørn Lindeijer2010-08-072-2/+3
|
* Also provide an update script for MySQLThorbjørn Lindeijer2010-08-071-0/+3
|
* Fixed index creation on mana_char_kill_stats tableThorbjørn Lindeijer2010-08-073-2/+11
| | | | Reviewed-by: Philipp Sehmisch
* Fixed typoThorbjørn Lindeijer2010-08-071-1/+1
|
* Revert "Added a method of updating the passwords of an existing database"Thorbjørn Lindeijer2010-08-072-50/+0
| | | | | | Assumed to be no longer necessary. This reverts commit a09d4aa14c6a7b4486080b4cfbe1c76c4fae6fd2.
* Renamed modifiedAttribute to updateDerivedAttributesThorbjørn Lindeijer2010-08-076-17/+17
| | | | This describes the purpose of the method better.
* Fix enet version checkJared Adams2010-08-022-13/+7
| | | | Tested-by: BaseBallBoy
* Add support for enet 1.3Jared Adams2010-08-022-0/+27
| | | | Reviewed-by: Yohann Ferreira
* Added back the forgotten Being::attackType enum in the server.Yohann Ferreira2010-07-281-1/+15
| | | | | It has to be in sync with the client, even now, and explains the return value of the Being::getAttackType() function.
* Added a simple sanity check to avoid a gameserver crash at login.Yohann Ferreira2010-07-231-5/+11
| | | | No review asked.
* Fixing compatibility with cmake 2.6.0Renato Alves2010-07-231-2/+2
| | | | | | The syntax IF ((condition) OR (condition)) is not accepted by cmake prior to 2.6.4. The patch should address this without affecting newer versions.
* Upgraded Skill Map loading.Yohann Ferreira2010-07-224-19/+151
| | | | | | | | | | | - Added a new 'default' boolean parameter in mana-skills.xml. If set to true, unknown weapon types will be defaulted to the given value. - Added better checks on skill id and names and improved error reporting. - Corrected minor typos, and made small cleanups. Reviewed-by: jaxad0127
* Added LUA script bindings for manipulating the specials available to a ↵Philipp Sehmisch2010-07-0918-32/+374
| | | | | | | | | | character. Added script call for getting the cost of a special (recharge only for now) Deleting specials works server-sided but the client isn't informed about it properly. Specials without recharge cost don't appear for the player. Both of these features require an additional netcode message. Reviewed-by: Freeyorp
* Made Manaserv accept parameters enclosed with double-quotes.Yohann Ferreira2010-07-081-3/+34
| | | | | | Reviewed-by: Jaxad0127. Resolves: Manasource-Mantis #22
* Fixed the up down monster attack direction and comment trivial fixes.Philipp Sehmisch2010-06-222-4/+4
| | | | | | Resolves: Manasource Mantis #144. Signed-off-by: Philipp Sehmisch <mana@crushnet.org>
* Update Code::Blocks project filesJared Adams2010-06-072-2/+4
|
* Arbitrary cleanups and marked GameHandler::getClientByNameSlow constThorbjørn Lindeijer2010-06-064-21/+18
|
* More const correctness and small code cleanupsThorbjørn Lindeijer2010-06-0613-86/+65
|
* Made methods of GuildManager const where appropriateThorbjørn Lindeijer2010-06-062-42/+18
| | | | Also removed some pointless null pointer checks.
* Made methods of the Guild class const where appropriateThorbjørn Lindeijer2010-06-063-37/+24
|
* Added minimal example global_events.luaPhilipp Sehmisch2010-05-311-0/+57
| | | | Reviewed-by: Thorbjorn
* Use XML::Document to automate memory cleanupThorbjørn Lindeijer2010-05-3011-153/+74
| | | | Makes the code a little nicer.
* Copied basic Lua libs back from tmwserv-data and added dummy dataThorbjørn Lindeijer2010-05-3013-15/+752
| | | | | | | The dummy data is currently mostly empty data though, so still nothing to see as far as the example content is concerned. Reviewed-by: Bertram
* Use const std::string & to avoid a copyThorbjørn Lindeijer2010-05-292-6/+5
|
* Only skip the UTF-8 BOM for Lua scriptsThorbjørn Lindeijer2010-05-2911-49/+24
| | | | | | libxml2 should be able to handle files with a BOM fine. Reviewed-by: Bertram
* Made the logLevel be taken from configuration for both servers.Yohann Ferreira2010-05-293-51/+85
| | | | | | | | | | The new parameters in the manaserv.xml file can be used to do so: log_accountServerLogLevel log_gameServerLogLevel Also, updated the sample manaserv.xml accordingly. Reviewed-by: Thorbjorn.
* Set example paths to those documented on the wikiPhilipp Sehmisch2010-05-291-2/+2
|
* Added path and hp regen in combat config options to example manaserv.xmlPhilipp Sehmisch2010-05-291-3/+7
|
* Made disabling of HP regeneration during combat configurablePhilipp Sehmisch2010-05-291-1/+2
| | | | Reviewed-by: Bertram
* Added some more log infos, and made small cleanups.Yohann Ferreira2010-05-287-34/+59
| | | | Reviewed-by: Thorbjorn, Jaxad0127
* Modified the npc_trade() lua function to permit selling the whole player ↵Yohann Ferreira2010-05-285-20/+133
| | | | | | | | | | | | | | | | | | inventory. It permits to open a sell box with every items in the player inventory as requested by Striker. Also added different return value support to both the buy selling functions, and made fixes where relevant. The test.lua script will be upgraded to show examples in a next commit. What's left to be done is to fix the inventory handling for both selling functions. (Sigh...) Concerns: Manasource mantis: #78, #101. Reviewed-by: Jaxad0127
* Fixes the random drops made by monsters once they've reached their lifetime ↵Yohann Ferreira2010-05-271-11/+12
| | | | | | | | | | limit. This contributes to avoid maps full of loot after a week or so. This also resolves TMW-Mantis: #708 Reviewed-by: Jaxad0127
* Fixes based on cppcheck errors report.Yohann Ferreira2010-05-212-2/+3
| | | | Reviewed-by: Jaxad0127
* Some cleanup in StatusEffect classThorbjørn Lindeijer2010-05-212-14/+14
| | | | No functional changes.
* Added a package loader that goes through the resource managerThorbjørn Lindeijer2010-05-213-1/+41
| | | | | | | | | | Fixes issues with finding Lua scripts after changing the way client and server data paths are set up. Lua scripts can now use 'require' with paths relative from the serverDataPath to include other Lua scripts. Reviewed-by: Jared Adams
* Removed unused parameter from being_get_speed Lua functionThorbjørn Lindeijer2010-05-201-4/+4
| | | | | Also updated the link to the documentation and fixed the documentation for being_set_speed.
* Added .mailmap file to clean up shortlogThorbjørn Lindeijer2010-05-171-0/+4
| | | | | Removed some duplicate entries like Bjørn and Thorbjørn, three different variations of Blue and two for Bertram.
* Fixed CMake build by removing now unused defineThorbjørn Lindeijer2010-05-171-2/+0
|
* Changed contact email address to the Mana developer listThorbjørn Lindeijer2010-05-161-1/+1
| | | | Reviewed-by: Jared Adams
* Random cleanups, adding const, removing unnecessary clear callsThorbjørn Lindeijer2010-05-169-49/+29
| | | | Reviewed-by: Jared Adams
* Added some documentation about the dependenciesThorbjørn Lindeijer2010-05-161-0/+9
| | | | Reviewed-by: Jared Adams
* Don't return configuration value by referenceThorbjørn Lindeijer2010-05-162-3/+3
| | | | | | | | | | | | The lifetime of the default value is often not long enough to survive to the next statement, so returning it by reference is dangereous. At the moment there may not be any place that actually tries to use the returned value as a reference, but it's better not to wait on it to happen. This was already fixed on the client after it lead to strange crashes. Reviewed-by: Jared Adams
* Changed and split up the default location for loading dataThorbjørn Lindeijer2010-05-1619-177/+248
| | | | | | | | | | | | | | | | | Instead of loading data from a 'data' directory in the current working directory, the server now uses clientDataPath and serverDataPath as specified in the configuration. This removes the need to set up symbolic links in order to merge these two types of data. The default values point to example/clientdata and example/serverdata, where a minimal example world can be developed to make setting up an initial server quick and easy. The XML::Document convenience class was copied over from the client. Also, the ResourceManager is now shared between both servers, since the account client is reading items.xml. Reviewed-by: Jared Adams
* Fixed a forbidden use of char bomBuffer[utf8Bom.length()]; with ISO C++Bertram2010-05-121-8/+8
| | | | | Made-by: thorbjorn Reviewed-by: Bertram