summaryrefslogtreecommitdiff
path: root/src/net/charserverhandler.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-03-23Move all TMWServ-specific code to net/tmwservJared Adams1-227/+0
Also fix several instances where the same net handler was being used for both servers, and a few other related oddities.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-159/+151
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!
2009-02-18Introduced a toLower method and grouped string utilsBjørn Lindeijer1-2/+2
The string utility methods are now grouped together in the stringutils.h header. Also, a toLower method was added for convenience.
2009-02-05Put back the 0x06b packet, which apparently our server uses. WillIra Rice1-0/+21
investigate why we use it and what this packet is meant to do. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-05Added a few translation strings to the char server handler, as well asIra Rice1-43/+14
remove the need for extensions.h in it. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-1/+2
include anything not needed by that specific widget or window. This appears to have cleaned up system performance a bit on my current setup, where it went from idling on 45% in game with opengl down to 30% now. Also moved iptostring to the tostring header, as importing all of network.h is a little overkill to use that function, and it goes along with the basic functions that are in that header file anyways. TODO: find out a way to get rid of warnings when a class doesn't use this function. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-28Fix handling of packet 0x81Jared Adams1-22/+29
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-05Handling gender with an enum everywhere.Philipp Sehmisch1-2/+3
(cherry picked from mainline commit d3adc61aa4b4924f82d8cbc23bea26da7257da97) Conflicts: src/net/beinghandler.cpp src/net/charserverhandler.cpp src/player.cpp src/player.h
2008-12-07Added some initialization and removed ChargeDialogIra Rice1-3/+0
Many member variables of LocalPlayer were not being initialized properly. In general this shouldn't have caused any problems, but it's bad style. The ChargeDialog was removed. This class was long dead anyway. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl> Conflicts: src/Makefile.am src/game.cpp src/gui/chargedialog.cpp src/gui/chargedialog.h src/localplayer.cpp src/localplayer.h Signed-off-by: Ira Rice <irarice@gmail.com>
2008-12-07Merge commit 'a7c21e6f8add37af7412449742ec55c8daa8571a'Ira Rice1-1/+1
Conflicts: AUTHORS CMakeLists.txt ChangeLog INSTALL README aethyra.cbp configure.ac data/help/changes.txt data/help/commands.txt data/help/header.txt data/help/support.txt src/Makefile.am src/aethyra.rc src/being.cpp src/being.h src/equipment.cpp src/equipment.h src/floor_item.h src/game.cpp src/gui/buddywindow.cpp src/gui/char_select.cpp src/gui/char_server.cpp src/gui/chat.cpp src/gui/chat.h src/gui/equipmentwindow.cpp src/gui/equipmentwindow.h src/gui/gui.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/itemcontainer.h src/gui/minimap.cpp src/gui/ministatus.cpp src/gui/newskill.cpp src/gui/npc_text.cpp src/gui/npclistdialog.h src/gui/ok_dialog.cpp src/gui/setup_video.cpp src/gui/skill.cpp src/gui/skill.h src/gui/status.h src/gui/table_model.h src/gui/updatewindow.cpp src/gui/viewport.cpp src/inventory.cpp src/inventory.h src/keyboardconfig.cpp src/keyboardconfig.h src/localplayer.cpp src/localplayer.h src/logindata.h src/main.cpp src/map.cpp src/monster.cpp src/monster.h src/net/beinghandler.cpp src/net/beinghandler.h src/net/buysellhandler.cpp src/net/equipmenthandler.cpp src/net/loginhandler.cpp src/net/loginhandler.h src/net/network.h src/net/npchandler.cpp src/net/playerhandler.cpp src/net/protocol.h src/net/tradehandler.cpp src/npc.cpp src/npc.h src/particleemitter.cpp src/particleemitterprop.h src/player.cpp src/player.h src/player_relations.cpp src/resources/imageset.cpp src/resources/imageset.h src/resources/itemdb.cpp src/resources/mapreader.cpp src/resources/monsterinfo.h src/text.cpp src/text.h src/textmanager.cpp src/textmanager.h src/tileset.h src/utils/fastsqrt.h src/utils/strprintf.cpp src/winver.h tools/tmxcopy/Makefile tools/tmxcopy/base64.cpp tools/tmxcopy/base64.h tools/tmxcopy/tostring.h Signed-off-by: Ira Rice <irarice@gmail.com>
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-5/+2
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-11-16Got rid of CVS/Subversion $Id$ markersBjørn Lindeijer1-2/+0
I don't know why we dealt with these things for so long. Did we ever get anything out of it?
2008-09-12Fixed /where, added /cast for heal and gather, some changes to inventory to ↵Lloyd Bryant1-2/+14
support storage
2008-08-28Applied patch put together by Jaxad0127 with changes from the Aethyra project.Bjørn Lindeijer1-2/+5
Improves compatibility with the newer version of eAthena and works around an initialization bug.
2008-08-05Fixed alignment (patch by Scraggy - Mantis #384) and spelling error.David Athay1-2/+2
2008-07-24Added cape/misc1/misc2 code into character selection displayLloyd Bryant1-3/+3
2008-07-18Added support for animated shoe and glove spritesLloyd Bryant1-2/+5
2008-07-18Import of client treeLloyd Bryant1-1/+1
2008-06-04Display shield sprite also in character select window (patch by Sanga).Bjørn Lindeijer1-1/+1
2008-02-22 Handling gender with an enum everywhere.Philipp Sehmisch1-1/+1
2008-01-28Added weapon skill system and leveling system.Philipp Sehmisch1-1/+3
2007-12-10Simplified player subsprite handling by treating equipment, hairstyle and ↵Philipp Sehmisch1-4/+4
base sprites alike. Implementing female hairstyles is now a purely content-sided task.
2007-11-21Merged revisions 3705-3711,3714,3718,3721-3722,3729-3731,3735,3742 via ↵Bjørn Lindeijer1-2/+3
svnmerge from https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk (dynamic recoloring of sprites and related changes) ........ r3705 | gmelquio | 2007-11-03 10:58:25 +0100 (Sat, 03 Nov 2007) | 1 line Fixed double load of hair graphics. ........ r3706 | gmelquio | 2007-11-03 22:04:51 +0100 (Sat, 03 Nov 2007) | 1 line Added automatic recoloring of images. Inspired by fungos' ideas (PR #41). ........ r3707 | gmelquio | 2007-11-03 22:08:21 +0100 (Sat, 03 Nov 2007) | 1 line Experimented recoloring on scorpions. ........ r3708 | gmelquio | 2007-11-04 12:52:44 +0100 (Sun, 04 Nov 2007) | 1 line Tightened palette handling. ........ r3709 | gmelquio | 2007-11-04 12:54:31 +0100 (Sun, 04 Nov 2007) | 1 line Experimented with scorpions again. ........ r3710 | gmelquio | 2007-11-04 16:40:37 +0100 (Sun, 04 Nov 2007) | 1 line Applied recoloring to hair styles. ........ r3711 | gmelquio | 2007-11-04 17:50:37 +0100 (Sun, 04 Nov 2007) | 1 line Converted slimes to recoloring. ........ r3742 | gmelquio | 2007-11-16 14:16:00 +0100 (Fri, 16 Nov 2007) | 1 line Sped up recoloring of transparent pixels. ........
2007-11-21Renamed {read,write}{Byte,Short,Long} to {read,write}{Int8,Int16,Int32}. ThisBjørn Lindeijer1-11/+11
is less confusing in 64-bit context and less conflicting with the 0.0 client.
2007-11-21Small lingering changes made while merging to 0.0.Bjørn Lindeijer1-9/+5
2007-11-20Merged revisions 3629-3630 via svnmerge from Bjørn Lindeijer1-1/+1
https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/trunk (but kept looks in Being class, since eAthena works that way) ........ r3629 | gmelquio | 2007-10-18 21:00:38 +0200 (Thu, 18 Oct 2007) | 1 line Removed player looks from generic beings. Prevented client termination on missing sprites. Merged weapon-type and attack-type fields for items. ........ r3630 | gmelquio | 2007-10-18 21:30:57 +0200 (Thu, 18 Oct 2007) | 1 line Fixed changelog message. ........
2007-11-03Fixed double load of hair graphics.Guillaume Melquiond1-2/+2
2007-10-18Removed player looks from generic beings. Prevented client termination on ↵Guillaume Melquiond1-1/+1
missing sprites. Merged weapon-type and attack-type fields for items.
2007-08-30Merged equipment database with items database and got rid of the unused itemBjørn Lindeijer1-3/+1
art attribute. Removed the now unnecessary multiplication of weapon IDs with 10000. Added a fallback item icon and used it for unknown items or when an item image fails to load.
2007-08-23Changed XP gaining effect to appear on the player instead.Bjørn Lindeijer1-1/+1
2007-08-20Added monster killed xp notification effect.Joshua Langley1-1/+1
2007-07-11Weapon sprites are now (almost) threated like other equipment sprites ↵Philipp Sehmisch1-1/+1
through the equipment sprite database. (use -u to ignore updates)
2007-03-24Merged 0.0 changes from revision 3177 to 3234 to trunk.Bjørn Lindeijer1-2/+22
2007-03-24Go back to login or register state on error, depending on what the user wasBjørn Lindeijer1-0/+5
doing, and fixed the error message when registering an account that already exists. Also another crash fix following from previous commit.
2007-03-22Clarified the error message when character creation fails and made sure theBjørn Lindeijer1-35/+48
character creation dialog doesn't close when creation failed.
2007-03-22Redesigned the localplayer class to use getters and setters instead of ↵Philipp Sehmisch1-4/+4
direct access to the member variables. Implemented communication of attributes between server and client.
2007-03-20Implemented a GUI for distributing the characters attributes at character ↵Philipp Sehmisch1-3/+0
creation.
2007-02-25Fixed small issue concerning SDL timers, removed a useless variable.Rogier Polak1-2/+3
2006-12-01Monster sound effect patchPhilipp Sehmisch1-3/+3
2006-11-02Network layer refactoring.Björn Steinbrink1-4/+7
2006-09-02Switched to short IDs for beings.Guillaume Melquiond1-1/+1
2006-08-26Made the Network class a purely static interface, as there is only one instance.Guillaume Melquiond1-2/+2
2006-08-26Fixed player sprite not showing up.Bjørn Lindeijer1-1/+1
2006-08-20Changed MessageHandler::handleMessage to take a reference instead of a pointer.Bjørn Lindeijer1-14/+14
Removed unused Packet class. Added stub for handling GPMSG_BEING_ENTER.
2006-08-20Fixed selection of player character and implemented sending of game and chatBjørn Lindeijer1-3/+13
server tokens. It gets you in the game (or what's left of it), but not on any map yet.
2006-08-20The Network can now connect to the three servers and affected methods now takeBjørn Lindeijer1-8/+14
the server type as a parameter. The MessageOut gained a convenience constructor (same as was added server side). The game states during login sequence have been renamed and redone in order to ensure no communication is attempted to unconnected servers. This allowed the removal of the outgoing message queue. Connecting to the account server has been moved before the login/register phase (dialogs will still need to be updated). Quite a few things are expected to be broken since I'm rather tired at the moment. I've left many TODO entries in the code.
2006-08-15Fixed typo and forgetting to add APMSG_CHAR_SELECT_RESPONSE to the list ofBjørn Lindeijer1-1/+2
handled messages.
2006-08-14Some preparations towards supporting character select and response handling.Bjørn Lindeijer1-5/+25