summaryrefslogtreecommitdiff
path: root/src/game-server/mapmanager.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-09-02Allow map objects as warp targetsErik Schilling1-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.
2011-10-19Took interpreting the objects out of the map readerThorbjørn Lindeijer1-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
2011-03-24Rely more on the functionality in XML::DocumentThorbjørn Lindeijer1-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
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-6/+6
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.
2010-10-22Made the servers check for positive id in xml db loading.Yohann Ferreira1-1/+13
Also fixed a memleak when loading an invalid monster attack. Resolves: Mana-Mantis #215. Reviewed-by: Thorbjorn.
2010-05-30Use XML::Document to automate memory cleanupThorbjørn Lindeijer1-50/+25
Makes the code a little nicer.
2010-05-29Only skip the UTF-8 BOM for Lua scriptsThorbjørn Lindeijer1-2/+1
libxml2 should be able to handle files with a BOM fine. Reviewed-by: Bertram
2010-05-28Added some more log infos, and made small cleanups.Yohann Ferreira1-3/+5
Reviewed-by: Thorbjorn, Jaxad0127
2010-05-16Changed and split up the default location for loading dataThorbjørn Lindeijer1-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
2010-04-25Added a Byte Order Mask (BOM) filter to the ResourceManager.Bertram1-1/+2
Reviewed by: Jaxad0127
2010-02-07Update Copyright date for Manaserv.Bertram1-1/+1
2009-12-06Fixed name of the project in copyright headersThorbjørn Lindeijer1-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.
2009-07-20Have the game server reconnect with the account-server if account-server is ↵Chuck Miller1-10/+46
restarted
2009-04-26Standardize on the position of the const keywordBjørn Lindeijer1-3/+3
Same as for the client.
2009-02-10Removed testing.cpp because all of its functionality can now be covered by ↵Philipp Sehmisch1-3/+0
LUA scripts
2008-12-06Fixes map warp issues, and has a better starting locationChuck Miller1-0/+11
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
2008-04-23Accepted fix by rodge, getting rid of assertion failure when an admin tries toBjørn Lindeijer1-2/+1
warp to a non-existing map.
2007-09-22Cleaned both configuration and resource managers.Guillaume Melquiond1-6/+5
2007-08-27Removed extensions from map names.Guillaume Melquiond1-2/+7
2007-07-17Implemented loading of warp and spawn areas from map files.Eugenio Favalli1-9/+4
2007-07-07Singleton managers do not need stateful classes. Changed them to namespace ↵Guillaume Melquiond1-2/+13
interfaces.
2007-07-07Simplified code by using map pointers only, instead of using both map IDs ↵Guillaume Melquiond1-38/+24
and map pointers.
2007-06-26Merged guilds-and-parties branch to trunkDavid Athay1-0/+5
2007-02-01Added graceful server shutdown, chose some more sane variables names for SQLBjørn Lindeijer1-3/+5
queries and fixed a possible character collision error (patch by Rogier Polak).
2007-01-05Simplified handling of verbosity levels. Optimized code by generating only ↵Guillaume Melquiond1-7/+7
needed messages.
2007-01-03Split persistent player data from game server data. Enabled inventory code back.Guillaume Melquiond1-1/+1
2007-01-02Simplified MapReader interface and code. Fixed some memory leaks.Guillaume Melquiond1-1/+1
2007-01-02Removed obsolete files. Added a generic trigger system.Guillaume Melquiond1-1/+1
2006-12-30Controlled map activation from the account server, so that clients are not ↵Guillaume Melquiond1-5/+20
kept on the wrong server when warped.
2006-12-30Added on-the-fly map loading.Guillaume Melquiond1-15/+18
2006-12-29Physically split the server into one tmwserv-acount program (account +Guillaume Melquiond1-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.