summaryrefslogtreecommitdiffstats
path: root/src/game-server/mapmanager.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Maps are now configured in settings.xml tooPrzemysław Grzywacz2013-05-031-57/+64
|
* Use nullptr instead of NULL everywhereErik Schilling2013-04-271-2/+2
|
* Allow map objects as warp targetsErik Schilling2012-09-021-0/+3
| | | | | | | | | | | | | | | | This patch allows map objects as warp targets. For use: - Create object in tiled with type="WARP_DEST" - Set name to anything you want - Create usual WARP object - Leave out the DEST_{X,Y} part - Add DEST_NAME property with the name of the first object This requires the game server to parse all maps at startup. Change is tested. Reviewed-by: bjorn.
* Took interpreting the objects out of the map readerThorbjørn Lindeijer2011-10-191-13/+8
| | | | | | | The map reader is now only concerned with parsing the XML, whereas the MapComposite turns some of the objects into Warps, Spawns and NPCs. Reviewed-by: Yohann Ferreira
* Rely more on the functionality in XML::DocumentThorbjørn Lindeijer2011-03-241-9/+3
| | | | | | | | By default XML::Document will use the ResourceManager to resolve the file name you pass to it. There is no point in disabling that functionality only to resolve it manually. Reviewed-by: Jared Adams
* Renamed .hpp files into .h for consistency.Yohann Ferreira2010-11-141-6/+6
| | | | | | Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
* Made the servers check for positive id in xml db loading.Yohann Ferreira2010-10-221-1/+13
| | | | | | | | Also fixed a memleak when loading an invalid monster attack. Resolves: Mana-Mantis #215. Reviewed-by: Thorbjorn.
* Use XML::Document to automate memory cleanupThorbjørn Lindeijer2010-05-301-50/+25
| | | | Makes the code a little nicer.
* Only skip the UTF-8 BOM for Lua scriptsThorbjørn Lindeijer2010-05-291-2/+1
| | | | | | libxml2 should be able to handle files with a BOM fine. Reviewed-by: Bertram
* Added some more log infos, and made small cleanups.Yohann Ferreira2010-05-281-3/+5
| | | | Reviewed-by: Thorbjorn, Jaxad0127
* Changed and split up the default location for loading dataThorbjørn Lindeijer2010-05-161-3/+3
| | | | | | | | | | | | | | | | | 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
* Added a Byte Order Mask (BOM) filter to the ResourceManager.Bertram2010-04-251-1/+2
| | | | Reviewed by: Jaxad0127
* Update Copyright date for Manaserv.Bertram2010-02-071-1/+1
|
* Fixed name of the project in copyright headersThorbjørn Lindeijer2009-12-061-7/+6
| | | | | | 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.
* Have the game server reconnect with the account-server if account-server is ↵Chuck Miller2009-07-201-10/+46
| | | | restarted
* Standardize on the position of the const keywordBjørn Lindeijer2009-04-261-3/+3
| | | | Same as for the client.
* Removed testing.cpp because all of its functionality can now be covered by ↵Philipp Sehmisch2009-02-101-3/+0
| | | | LUA scripts
* Fixes map warp issues, and has a better starting locationChuck Miller2008-12-061-0/+11
|
* Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer2008-11-161-2/+0
|
* Accepted fix by rodge, getting rid of assertion failure when an admin tries toBjørn Lindeijer2008-04-231-2/+1
| | | | | warp to a non-existing map.
* Cleaned both configuration and resource managers.Guillaume Melquiond2007-09-221-6/+5
|
* Removed extensions from map names.Guillaume Melquiond2007-08-271-2/+7
|
* Implemented loading of warp and spawn areas from map files.Eugenio Favalli2007-07-171-9/+4
|
* Singleton managers do not need stateful classes. Changed them to namespace ↵Guillaume Melquiond2007-07-071-2/+13
| | | | interfaces.
* Simplified code by using map pointers only, instead of using both map IDs ↵Guillaume Melquiond2007-07-071-38/+24
| | | | and map pointers.
* Merged guilds-and-parties branch to trunkDavid Athay2007-06-261-0/+5
|
* Added graceful server shutdown, chose some more sane variables names for SQLBjørn Lindeijer2007-02-011-3/+5
| | | | | queries and fixed a possible character collision error (patch by Rogier Polak).
* Simplified handling of verbosity levels. Optimized code by generating only ↵Guillaume Melquiond2007-01-051-7/+7
| | | | needed messages.
* Split persistent player data from game server data. Enabled inventory code back.Guillaume Melquiond2007-01-031-1/+1
|
* Simplified MapReader interface and code. Fixed some memory leaks.Guillaume Melquiond2007-01-021-1/+1
|
* Removed obsolete files. Added a generic trigger system.Guillaume Melquiond2007-01-021-1/+1
|
* Controlled map activation from the account server, so that clients are not ↵Guillaume Melquiond2006-12-301-5/+20
| | | | kept on the wrong server when warped.
* Added on-the-fly map loading.Guillaume Melquiond2006-12-301-15/+18
|
* Physically split the server into one tmwserv-acount program (account +Guillaume Melquiond2006-12-291-0/+112
chat + database) and multiple tmwserv-game programs (selected with respect to the maps). Cleaned the repository by moving server-specific source files into dedicated directories.