summaryrefslogtreecommitdiffstats
path: root/src/account-server
Commit message (Collapse)AuthorAgeFilesLines
...
* Added config options to set stats and log files and paths.Yohann Ferreira2010-09-071-18/+24
| | | | | | | Also turned the absence of an inter-server password into a fatal error while documenting it in the manaserv.xml example file. Reviewed-by: Jaxad0127.
* Added <points> tag handling in attributes.xml.Yohann Ferreira2010-09-061-46/+89
| | | | Reviewed-by: Freeyorp, Thorbjorn.
* Added a --config manaserv.xml file path options to both servers.Yohann Ferreira2010-08-311-24/+69
| | | | | | | Now, it's possible to set a different config filename and path on the command line. Reviewed-by: Jaxad, Kage.
* Change primary and secondary tags in attributes.xml from stats and stat to ↵Freeyorp2010-08-301-2/+2
| | | | attributes and attribute respectively.
* Merge branch 'testing'Freeyorp2010-08-298-189/+361
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/account-server/storage.cpp src/game-server/being.cpp src/game-server/being.hpp src/game-server/character.cpp src/game-server/character.hpp src/game-server/gamehandler.cpp src/game-server/inventory.cpp src/scripting/lua.cpp src/sql/mysql/createTables.sql src/sql/sqlite/createTables.sql
| * Change references from database version 10 to version 11 to reflect changes ↵Freeyorp2010-08-181-1/+1
| | | | | | | | made to mainline
| * Set the database ID of a new character immediately after creating it.Freeyorp2010-08-141-3/+3
| | | | | | | | (Ooops.)
| * Allow default values for attributes at character creation time.Freeyorp2010-08-032-1/+24
| | | | | | | | | | | | | | | | | | | | TODO: The game-server also needs to keep track of this for when new attributes or attributes not in the default scope need to be created. Also hopefully fix attribute calculation order for derived attributes. Still hardcoded for now. Reviewed-by: Bertram.
| * Changed the stat file name to attributes.xml.Yohann Ferreira2010-08-023-11/+15
| | | | | | | | | | | | I also made it required to start properly since it's now the case. Reviewed-by: Jaxad0127.
| * New attribute system and major changes to many low-level areas.Freeyorp2010-07-106-194/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attribute system: Structure is no longer completely hardcoded. Attributes and structure is defined by new xml file (defaulting to stats.xml) Structure defines non-base modifications to an attribute, to be used by modifiers from items, effects, etc. Calculating the base value for core attributes is still done in C++ (and for such fundamental elements the only reason I can think of to do it any other way is perhaps being able to quickly change scripts without a compile could be useful for testing, but such things are a low priority anyway) Item structure: Modifiers are now through triggers rather than single events. This also removes hardcoded types - an item could be both able to be equipped and be able to be activated. Item activation no longer consumes by default, this must be specified by the property <consumes /> inside the trigger. Currently only attribute modifications, autoattacks, and consumes are defined as effects, but stubs for others do exist. Autoattacks are currently non-functional, and this should be rectified with some urgency. Auto Attacks: AutoAttacks are now separate entities, though not fully complete, nor fully integrated with all beings yet. Integration with the Character class is urgent, integration with other Being children less so. When fully integrated this will allow for multiple autoattacks, through equipping multiple items with this as an equip effect or even through other means if needed. Equipment structure: As ItemClass types are no longer hardcoded, so too are equip types. An item have multiple ways to be equipped across multiple equipment slots with any number in each slot. Character maximums are global but configurable. Miscellaneous: Speed, money, and weight are now attributes. Some managers have been changed into classes such that their associated classes can have them as friends, to avoid (ab)use of public accessors. The serialise procedure should also be set as a friend of Character (both in the account- and game- server) as well; having public accessors returning iterators is simply ridiculous. Some start for such cleanups have been made, but this is not the primary focus here. Significant work will need to be done before this is resolved completely, but the start is there. BuySell::registerPlayerItems() has been completely disabled temporarily. The previous function iterated through equipment, yet in the context I think it is intended to fill items? I have been unable to update this function to fit the modifications made to the Inventory/Equipment/Possessions, as I am unsure what exactly what it should be doing. ItemClass::mSpriteId was previously unused, so had been removed, but I notice that it was used when transmitting equipment to nearby clients. Experimentation showed that this value was never set to anything other than 0, and so has been left out of the ItemManager rewrite. I am not entirely sure what is happening here, but it should be worth looking into at a later time, as I am not sure how equipment appearences would be sent otherwise.
* | Another small simplificationThorbjørn Lindeijer2010-08-221-7/+1
| |
* | Avoid collision with type 'int' in SQL queryThorbjørn Lindeijer2010-08-221-12/+7
| | | | | | | | | | | | | | Was causing the account server to crash when using MySQL backend. Mantis-issue: 188 Reviewed-by: Yohann Ferreira
* | Changed the location of configuration, logs and statsThorbjørn Lindeijer2010-08-221-45/+13
| | | | | | | | | | | | | | | | | | | | | | Instead of searching for the configuration file in ~/.manaserv.xml, the file is now expected to be in the working directory of the server. The logs and statistics will also be written there. This should make it easier to run differently configured servers on the same machine, and should also be a bit more straight-forward to setup. Reviewed-by: Yohann Ferreira
* | Fixed index creation on mana_char_kill_stats tableThorbjørn Lindeijer2010-08-071-1/+1
| | | | | | | | Reviewed-by: Philipp Sehmisch
* | 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.
* Added LUA script bindings for manipulating the specials available to a ↵Philipp Sehmisch2010-07-092-5/+76
| | | | | | | | | | 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
* Use XML::Document to automate memory cleanupThorbjørn Lindeijer2010-05-301-1/+1
| | | | Makes the code a little nicer.
* Made the logLevel be taken from configuration for both servers.Yohann Ferreira2010-05-291-27/+38
| | | | | | | | | | 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.
* Added some more log infos, and made small cleanups.Yohann Ferreira2010-05-281-0/+5
| | | | Reviewed-by: Thorbjorn, Jaxad0127
* Random cleanups, adding const, removing unnecessary clear callsThorbjørn Lindeijer2010-05-163-9/+8
| | | | Reviewed-by: Jared Adams
* Changed and split up the default location for loading dataThorbjørn Lindeijer2010-05-162-35/+18
| | | | | | | | | | | | | | | | | 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
* Removed some unnecessary log messagesPhilipp Sehmisch2010-02-231-1/+0
|
* Send update host also with registration responseThorbjørn Lindeijer2010-02-221-3/+8
| | | | | | | | | | The client would otherwise not know which update host to use after registration. Also, the update host is now always sent, even if it is empty. This makes the message contents more deterministic. Reviewed-by: Jared Adams
* Update Copyright date for Manaserv.Bertram2010-02-0713-13/+13
|
* Rename enum elements to avoid clashing with macrosBernd Wachter2010-01-291-1/+1
|
* Reverted the accountserver-affecting changes of commits a9a87aea and ↵Philipp Sehmisch2010-01-182-6/+2
| | | | dfc6875e - doesn't work out the way I planned.
* Removed last traces of hardcoded access levels form game-server, begun with ↵Philipp Sehmisch2010-01-172-2/+6
| | | | using the permission manager in the account-server.
* Added tracing of kill count for each monster per characterPhilipp Sehmisch2010-01-083-3/+101
|
* Instead of sending http://update.manasource.org/ don't send any update host ↵Chuck Miller2009-12-181-1/+3
| | | | if defaultUpdateHost is not set
* Makes server send the update host from defaultUpdateHost config (defaults to ↵Chuck Miller2009-12-181-0/+1
| | | | http://update.manasouce.org/ when non is set)
* Added a method of updating the passwords of an existing databaseThorbjørn Lindeijer2009-12-062-4/+51
| | | | To be removed sometime soon.
* Moved storagesql.hpp into storage.hppThorbjørn Lindeijer2009-12-062-152/+44
| | | | | Also removed the not very useful documentation, so that the list of constants is more readable.
* Renamed DALStorage to StorageThorbjørn Lindeijer2009-12-066-71/+72
| | | | | The only reason it was a DALStorage was because it used to implement the Storage interface, but that interface got removed a long time ago.
* Moved DALStorage documentation into source fileThorbjørn Lindeijer2009-12-063-302/+208
| | | | | | | | | Some methods were documented twice. Stuff moved to source file since this keeps the header more readable, and makes it easier to keep the documentation up to date with the implementation. Also, my IDE jumps to the definition when navigating. Removed two methods that were without an implementation.
* Removed obsolete commented out code from DALStorageThorbjørn Lindeijer2009-12-061-79/+6
|
* Fixed name of the project in copyright headersThorbjørn Lindeijer2009-12-0614-147/+141
| | | | | | Also updated the headers to refer to the GPL by URL instead of suggesting to contact the FSF by snail mail, as per the latest GPL usage instructions.
* Removed "TMW" and "TMWSERV" from header guardsThorbjørn Lindeijer2009-12-067-17/+17
|
* A host of code style changesThorbjørn Lindeijer2009-12-062-80/+54
| | | | | | Removed pointless void in method parameter lists, fixed methods and variables that started with upper case, removed pointless 'const' for stuff passed by value, made some getters const, etc.
* Added server-sided SHA256 encryption of passwords as discussed.Philipp Sehmisch2009-12-041-8/+4
|
* Moved password hashing during registration to the client.Philipp Sehmisch2009-12-041-3/+3
|
* register credential information service and basic code structure for captcha ↵Philipp Sehmisch2009-12-041-9/+46
| | | | support
* Rebranding tmwserv to manaservThorbjørn Lindeijer2009-10-243-40/+40
| | | | | Includes a database update. Use update_6_to_7.sql to update existing sqlite databases.
* Some random cleanupsThorbjørn Lindeijer2009-10-182-3/+3
|
* Also close gracefully on receiving the TERM signalThorbjørn Lindeijer2009-10-171-0/+1
| | | | Probably the most important signal to handle gracefully...
* Synced the protocol file with client in protocol.h, letting other defines in ↵Bertram2009-10-093-2/+3
| | | | defines.h, and removing some overheading along the way.
* Added a warning to accountserver when using the default inter-server password.Philipp Sehmisch2009-10-071-0/+7
|
* Adds server auth, also adds the "net_password" configure optionChuck Miller2009-10-071-1/+14
|
* Limit login attempt frequency based on IP addressThorbjørn Lindeijer2009-10-035-59/+27
| | | | | | | | | | | | The previous method was broken because it set the "last time" to the current time when the client connected. So login would fail when the username and password were sent within a second from connecting, which is not desirable. If I'd have fixed this by setting the "last time" to login time minus one second, then an attacker would just need to reconnect for each login attempt. So now it uses an IP address based approach, where each IP can only try to log in once per second.
* Some cleanupThorbjørn Lindeijer2009-10-031-133/+143
| | | | | | | | | * Removed unsigned/signed warning by just using signed integers. * Made AccountHandler message handler functions members again instead of static functions. * Renamed 'computer' to 'client' since that is a less confusing name.
* Adds code for saving and getting status effects from the databaseChuck Miller2009-10-013-0/+101
|