summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade database version to 12 as it should have been from the latest update.Yohann Ferreira2010-11-153-3/+3
| | | | Trivial fix.
* Updating C::B projectStefan Dombrowski2010-11-156-12/+28
| | | | | | * Adding missing protocol.h * Switching debugger symbols and compiler optimization on * Show the Mana icon for executable files
* Fix a potential memleak related to binds when disconnecting with MySQL.Yohann Ferreira2010-11-142-5/+16
| | | | Trivial fix.
* Simplified the use of binding when using MySQL.Yohann Ferreira2010-11-142-47/+82
| | | | | | | | | | This permits to avoid a memleak with the former vector form and to use the 'place' variable when binding. The badly prepared statements are also a bit better handled now. With this patch, IMHO, the MySQL support is in shape. Reviewed-by: Jaxad0127.
* Finally fix the logPerDay log option.Yohann Ferreira2010-11-141-6/+17
| | | | | | | | | | | | | The static std::string date variable had two nasty problems. Would it have been static or be named 'date', and it would have not worked right. I also made the logger add the proper date on the archived log when changing the current day. Resolved: TMW-Mantis #530. Reviewed-by: Jaxad0127.
* Renamed .hpp files into .h for consistency.Yohann Ferreira2010-11-14145-691/+730
| | | | | | Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
* Add a warning about the experimental state of PostgreSQL support.Yohann Ferreira2010-11-131-0/+1
| | | | Trivial fix.
* Readd the calculation of base attributes at character's login.Yohann Ferreira2010-11-131-0/+3
| | | | Reviewed-by: CodyMartin.
* Fix code indentation in the sql related files.Yohann Ferreira2010-11-105-100/+107
| | | | Trivial fix.
* Fixed unregistering on the server-side.Yohann Ferreira2010-11-092-9/+20
| | | | | | | | | | | | | | | | When registering or logging, The client is hashing the password for sending it safely. And the server is hashing it also to store it the same way. Hence, the password ends hashed twice, which is correct because the server can't trust the client anyway. At unregister attempt, the server wasn't hashing the password before comparing it. Also while on it, I made the corresponding SQL query use the try catch method and only delete the account in memory when it's also done on the Db. Reviewed-by: thorbjorn, Freeyorp.
* Fully shift being scope attributes into being.Freeyorp2010-11-044-66/+115
| | | | | | Also split updateDerivedAttributes and remove the calc check workaround. Reviewed-by: Bertram.
* Fix some errors in dispelling non-timed attributesFreeyorp2010-11-043-17/+48
| | | | Reviewed-by: Bertram.
* [PATCH 1/3] Alter the way attribute dependencies are updated.Yohann Ferreira2010-11-041-32/+50
| | | | | | Also fix movement speed dependency. Reviewed-by: Bertram
* Renamed write{Byte,Short,Long} to writeInt{8,16,32}Thorbjørn Lindeijer2010-11-0318-525/+523
| | | | | Mainly for consistency with the client, and the general consensus was that these numbered versions were clearer.
* Trivial code convention fix, promised to thorbjorn ;)Yohann Ferreira2010-11-021-2/+4
|
* Some random code cleanups.Yohann Ferreira2010-11-024-72/+112
| | | | | | | | Also renamed MonsterClass::getType() to getId() since it was misleading with the use of ThingType::getType() and didn't represent the actual meaning, IMHO. Trivial.
* Prevented a crash in the monster loading code.Yohann Ferreira2010-11-012-1/+12
| | | | | | | The server was trying to insert attributes value not in monster scope. The monster code is to be rewritten anyway. Resolves: Mana-Mantis #212.
* Have the PerformTransaction class automatically handle nestingThorbjørn Lindeijer2010-10-307-84/+91
| | | | | | No need to fiddle around with "startTransaction" booleans now that the helper class is a little more intelligent. When the database is already performing a transaction, no new one will be started.
* Introduced a helper class for performing transactionsThorbjørn Lindeijer2010-10-304-14/+54
| | | | | | Avoids having to remember to call rollbackTransaction and makes transactions exception-safe (since the destructor of PerformTransaction will be called when an exception is thrown).
* Use a transaction when handling a GAMSG_PLAYER_SYNC messageThorbjørn Lindeijer2010-10-302-11/+21
| | | | | | | | | | | This message can contain a lot of small database updates, which at least on my system are way more efficient when performed in a transaction (now it takes no more than 1 second vs. about 14 seconds before). Not saying this is normal, my guess is that it's due to using full partition encryption. I've also prevented the thing from entering an infinite loop in the case of a wrong message, and corrected some variable names.
* Documented the net_clientDataUrl optionThorbjørn Lindeijer2010-10-261-1/+9
|
* Some none-changesThorbjørn Lindeijer2010-10-261-75/+33
| | | | | Mainly merging a lot of short lines and removing pointless comments that are just repeating what the code says.
* Added an empty npcs.xml file to the client dataThorbjørn Lindeijer2010-10-261-0/+10
| | | | Needed for the Mana client to reach the character selection dialog.
* Always check for zlib and add the necessary library flagsThorbjørn Lindeijer2010-10-261-4/+3
| | | | | | | Not only necessary on Windows, but also on Ubuntu (and probably Fedora) This seems to be due to a recent change in how things are packaged. Reviewed-by: Bernd Wachter
* Send a client data URL in addition to the update hostThorbjørn Lindeijer2010-10-261-0/+7
| | | | | | | | | | This is for developing/testing an experimental new resource manager that downloads only the files it needs on demand. Currently only used by the Mana Mobile project. Regular Mana client ignores the setting. Reviewed-by: Jared Adams
* Avoid assertion when removing unknown itemsThorbjørn Lindeijer2010-10-251-3/+3
| | | | | | | Don't try to notify the client when automatically removing unknown items, since at this point the client hasn't connected yet. Reviewed-by: Freeyorp
* Fixed crash when the server tries to remove unknown itemsThorbjørn Lindeijer2010-10-253-24/+29
| | | | | | | Whether it's a good idea to automatically remove unknown items from the inventory in the first place is something to be considered. Reviewed-by: Freeyorp
* Removed obsolete autoconf filesThorbjørn Lindeijer2010-10-258-1090/+3
| | | | Replaced by cmake.
* Updated link to roadmap in TODO fileThorbjørn Lindeijer2010-10-241-1/+1
|
* Added example equip.xmlPhilipp Sehmisch2010-10-231-0/+12
|
* Made the servers check for positive id in xml db loading.Yohann Ferreira2010-10-227-45/+96
| | | | | | | | Also fixed a memleak when loading an invalid monster attack. Resolves: Mana-Mantis #215. Reviewed-by: Thorbjorn.
* Fixed syntax error in Code::Blocks gameserver projectA.R. iceslice2010-10-201-1/+1
| | | | | | 12 files were missing because of this. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
* Fixed the append behaviour of logger::setLogFile().Yohann Ferreira2010-10-203-3/+4
| | | | | | | | | Also made both servers appends on the main log at start if they aren't empty. This permits not to lose the previous logs when quicky restarting the servers. Trivial fix.
* Added missing files to the Code::Blocks accountserver projectA.R. iceslice2010-10-191-0/+2
| | | | Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
* Changed the mana_accounts.email field length to 64 characters.Yohann Ferreira2010-10-173-1/+24
| | | | | | Reviewed-by: Crush. Resolves: Mana-mantis #251.
* Dehardcode the tileWidth and height, except for the speed conversion.Yohann Ferreira2010-10-1711-52/+92
| | | | | | | | The speed conversion needs a standard tile length anyway and can be improved later once the movement code will start to handle beings size. Reviewed-by: Crush.
* Fix hp regeneration units.Freeyorp2010-10-171-2/+2
| | | | Reviewed-by: Bertram
* Get rid of some unneeded direct calls to setBase for attributes.Freeyorp2010-10-171-8/+5
| | | | | | | setAttribute should be used for this, which also calls updateDerivedAttributes as needed. Reviewed-by: Bertram
* Synchronise defaults between configuration file and source.Freeyorp2010-10-174-13/+13
| | | | Reviewed-by: Bertram
* Hopefully fix the logging rotation this time.Yohann Ferreira2010-10-143-25/+89
| | | | | | | Added an extension to the ResMan::exist() function in order to get file existence even not in search path. Reviewed-by: CodyMartin.
* Added the new log options in the manaserv.xml.example file.Yohann Ferreira2010-09-291-0/+14
| | | | Trivial fix.
* Add log file rotation support based on ExceptionFault's work.Yohann Ferreira2010-09-295-19/+212
| | | | | | | | | This patch adds options to enable log rotations base on files size and or change of date. Note: Zip support will be added in a second commit. Reviewed-by: CodyMartin, Thorbjorn.
* SQLite: Do a proper upgrade of the mana_characters tableThorbjørn Lindeijer2010-09-271-11/+80
| | | | | | | | | | | | We can't leave the obsolete columns around since they are marked as NOT NULL, so insertion to the table fails if no values are provided for them. With SQLite, our only option is to create the table and copy the data over, which is what the update script now does. The script was modified so that it is fine to run it again on a database that was already updated to version 11 before.
* Added options to disable the server log to standard output to the minimum.Yohann Ferreira2010-09-222-19/+26
| | | | | | | | Also made some small cleanups. Resolves: Mana-Mantis #241 Reviewed-by: Jaxad0127.
* Centralized the servers' exit values.Yohann Ferreira2010-09-226-42/+79
| | | | | | | | Also made random code format clean-ups. Resolves: Mana-Mantis #217 Reviewed-by: Jaxad0127.
* Converted CRLF to LF in attributes.xmlThorbjørn Lindeijer2010-09-181-82/+82
| | | | Somebody needs to check his core.autocrlf setting.
* Small fixes.Freeyorp2010-09-194-16/+11
| | | | | | | | | | | | | | | There is no longer any need to send attribute change information for character or correction point changes to the account server. This is now handled elsewhere in a dedicated function. The account server was already doing this but the game server hadn't been updated. This wasn't causing any major problems since this data was being sent at the end of the packet. Update documentation for the functions accordingly. Also adjust a misplaced opening curly brace in attribute calculation which could cause modifiers to be applied wrongly in certain cases. Reviewed-by: Kage
* Changed maxSkillCap to game_maxSkillCap as I forgot in last commit.Yohann Ferreira2010-09-161-42/+54
| | | | | | Also made some random code format cleaups. Trivial fix.
* Upgraded the attributes.xml example to something actually usable.Yohann Ferreira2010-09-161-38/+82
|
* Fixed characters not being returned at character selection when using MySQL.Yohann Ferreira2010-09-152-12/+12
| | | | | | | | | | | | | | The table mana_char_equips wasn't created due to an SQL error, this led the account server to not return the player's characters. Seen in the logs: [19:40:41] [ERR] (DALStorage::getCharacter #1) SQL query failure: Table 'bertram.mana_char_equips' doesn't exist [19:40:41] [ERR] Failed to get character 11 for account 1. Resolves: Manasource mantices: 189, 230. Reviewed-by: Thorbjorn.