summaryrefslogtreecommitdiff
path: root/src/net
AgeCommit message (Collapse)AuthorFilesLines
2010-10-31Fix memory leak of localplayer classes in the charserverhandlerChuck Miller2-2/+2
They are initialized else where in the code Reviewed-by: Jared Adams
2010-10-19Heavy GUI fixes related to stats for Manaserv.Yohann Ferreira3-21/+114
Also tested to be compatible with tA. Now the Status window is much more nicer when using Manaserv. HP, max hp, ... are now working fine along with corrections made in the attributes.xml file (in next commit.) Reviewed-by: Thorbjorn.
2010-10-04Remove the following systemChuck Miller1-20/+0
The implamentation is poor, and this is something that would be better handled by the addon engine later down the road. Reviewed-By: Freeyorp < Freeyorp101@hotmail.com >
2010-09-25Merge branch '1.0'Thorbjørn Lindeijer10-15/+65
Conflicts: src/actorspritemanager.h src/beingmanager.cpp src/game.cpp src/gui/beingpopup.cpp src/gui/chat.cpp src/gui/chat.h src/gui/inventorywindow.h src/gui/itempopup.cpp src/gui/socialwindow.cpp src/gui/statuswindow.cpp src/gui/widgets/chattab.cpp src/gui/widgets/chattab.h src/net/tmwa/inventoryhandler.cpp src/net/tmwa/partyhandler.cpp src/party.cpp src/sound.cpp src/utils/stringutils.cpp src/utils/stringutils.h
2010-09-18Fixed attribute built-ins display at character's creation.Yohann Ferreira1-10/+21
Reviewed-by: Thorbjorn. Resolves: Mana-Mantis #229.
2010-09-19Fix a typo.Freeyorp1-1/+1
Trivial fix.
2010-09-15Avoid log message for unhandled SMSG_BEING_SPAWNStefan Dombrowski1-0/+8
This log message shows up in mana.log: "Unhandled packet: 7c". Later, the client will have to actually take care of it, though. Reviewed-by: Bertram, jaxad0127.
2010-09-13Fix loading of manaserv's attributes fileJared Adams1-6/+9
Reviewed-by: Bertram
2010-09-11Fixing misspelling in Setup_Video and removing empty lines from logStefan Dombrowski3-4/+4
Reviewed-by: Jaxad0127
2010-09-11Making sure the inventory window shows the correct number of used slotsStefan Dombrowski1-2/+10
The SlotsBar is updated, if InventoryWindow::slotsChanged() is called. This did not happen when an item disappeared from the inventory, because of using it. Then the item quantity was just set to 0, but the SlotBar was not notified. Reviewed-by: Jaxad0127
2010-09-08Adding missing updates for buttons in InventoryWindowStefan Dombrowski2-0/+12
Reviewed-by: Thorbjorn
2010-09-08Adding missing update for attributes in StatusWindowStefan Dombrowski1-0/+4
Reviewed-by: Thorbjorn
2010-09-06Changed CREATE_ATTRIBUTES_EQUAL_TO_ZERO to OUT_OF_RANGEYohann Ferreira2-3/+6
to fit manaserv latest changes. Reviwed-by: Freeyorp, Thorbjorn.
2010-09-05Fixing ghost characters in charselectdialogStefan Dombrowski1-0/+3
How to reproduce the bug: Switch the login to an account with fewer characters. Then those character slots are not empty, but show characters from the previous account. Reviewed-by: thorbjorn
2010-09-05Fixing segmentation fault if server is given on command lineStefan Dombrowski2-2/+12
If server and port was given on the command line, then the server type was unknown. The command line options do work now, but only if standard ports 6901 and 9601 are used. This resolves http://bugs.manasource.org/view.php?id=177 TODO: Query the server about itself and choose the server type based on that. Reviewed-by: Jaxad0127
2010-08-28Fixing omitted items in equipment windowStefan Dombrowski1-2/+1
Bug description: If a player has equipable items only, then the equipment backend gets not initialized. As a consequence the equipment window remains empty. This is particularly a problem for new characters. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-08-27Changing findBeingByName so that it searches case insensitiveStefan Dombrowski1-1/+1
Adding error message when trying to create a party with to long name. Removing non-existing files from C::B project. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-08-26Fixing segmentation fault when creating a new accountStefan Dombrowski1-0/+2
This resolves http://bugs.manasource.org/view.php?id=171 Reviewed-by: Bertram.
2010-08-26Fixing segmentation fault when creating a new accountStefan Dombrowski1-0/+2
This resolves http://bugs.manasource.org/view.php?id=171 Reviewed-by: Bertram.
2010-08-26Merged testing branch into master.Yohann Ferreira13-333/+477
2010-08-24Giving functionality to invite in socialwindow and allow enter key in textdialogStefan Dombrowski1-5/+11
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-08-23Fixing segmentation fault in partyhandlerStefan Dombrowski1-1/+1
Segmentation fault happens if a player leaves your party while he is out of sight. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-08-16Move more to the event systemJared Adams6-197/+165
Most of Net::InventoryHandler is now done through events. The ActorSpriteManager was also replaced by events. A few odds and ends were taken care of too. Reviewed-by: Bertram
2010-08-15Merge branch '1.0'Chuck Miller5-13/+33
Conflicts: mana.cbp mana.files src/CMakeLists.txt src/Makefile.am src/utils/xml.cpp
2010-08-13Add code to change gameservers to manaserv netcodeJared Adams2-6/+21
Reviewed-by: Freeyorp
2010-08-13Add missing setAttribute for moneyStefan Dombrowski1-0/+1
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-08-12Simplify working with the event systemJared Adams17-44/+44
EventManager has been merged into Event, with some new convinience methods added. Reviewed-by: Chuck Miller
2010-08-12Replace most of Net::NpcHandler with eventsJared Adams5-142/+99
Reviewed-by: Chuck Miller
2010-08-10Remove NpcDialog references from netcodeJared Adams6-175/+126
Reviewed-by: Chuck Miller
2010-08-09Fix enet version check *again*Jared Adams3-2/+8
Reviewed-by: Chuck Miller
2010-08-08Do proper checks on the ENet versionThorbjørn Lindeijer2-2/+2
The previous check broke compilation against ENet 1.2.2, which does define the version macros but does not have the API changes.
2010-08-05Have Being manage speech creation and add permissions to eventsJared Adams2-19/+28
The Being and Player Chat events now have the precomuted permissions for SPEECH_LOG and SPEECH_FLOAT. The Being class now acts on those events to show speech (if SPEECH_FLOAT is present). ChatWindow now checks for the SPEECH_LOG permission. Reviewed-by: Freeyorp
2010-08-04Remove some unused headers and fix some chat eventsJared Adams6-15/+14
Reviewed-by: Chuck Miller
2010-08-04Changed the stats.xml to attributes.xml according to the server commit.Yohann Ferreira3-7/+12
Also, fixed a compilation warning about passing a NULL value to a boolean parameter. The built-ins are kept for now. Reviewed-by: Jaxad0127.
2010-08-03Move Theme and UserPalette to the resources folderJared Adams2-4/+2
Reviewed-by: Yohann Ferreira
2010-08-03Merge remote branch 'origin/1.0'Jared Adams1-8/+26
Conflicts: src/net/tmwa/chathandler.cpp
2010-08-03Fix enet version checkJared Adams2-0/+8
Tested-by: BaseBallBoy
2010-08-02Fix enet version checkJared Adams2-10/+6
Tested-by: BaseBallBoy
2010-08-02Add support for enet 1.3Jared Adams2-0/+12
Reviewed-by: Yohann Ferreira
2010-08-02Convert most of the remaining chat system to use the event systemChuck Miller2-20/+47
Reviewed-by: Jared Adams
2010-08-01Remove isActive methods from buy/sell windowsJared Adams1-1/+1
Uses a state variable in PlayerInfo instead. Moves isTalking from Being to PlayerInfo. Also some small cleanups. Reviewed-by: Chuck Miller
2010-08-01Fix chat spoofing. Remove colors from nicks in public chat.Andrei Karas1-10/+29
Signed-off-by: Chuck Miller <shadowmil@gmail.com>
2010-08-01Reduce localChatTab presence replacing it with the event systemChuck Miller2-9/+9
Reviewed-By: Jared Adams
2010-07-30Fixed weapon animations for manaserv.Yohann Ferreira1-1/+1
The beinghandler didn't tell to the being::setSprite() function if the equipment was a weapon or not. Resolves: Manasource-Mantis #157. Reviewed-by: Jaxad0127.
2010-07-29Changed the items loading to handle a new 'attack-action' parameter.Yohann Ferreira1-1/+1
The old behaviour was to load the weapon-type value and do many unnecessary checks and transformation on it: The weapon-type was transformed using hard-coded values into an integer enum value. The exact same thing was done on the opposite side in the animation files before comparing the two. As both data were string values, I simplified all of it by using the value taken in items.xml to call the corresponding action. This now also permit to set up new attack animation in items.xml and in the playerset.xml without having the need to modify the client code. Last but not least, the weapon-type value was used by both the skills and the actions and avoided the possibility to set up a definite action for a weapon-type. Note: The weapon-type parameter will become deprecated for the server in favor of a 'skill' parameter to reflect more it's actual use. This patch is the first step to fix Manasource issue: #157.
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira3-5/+5
Please note that I didn't turned all the getValue() call into new ones, simply because I have to have config object initiated which is not forcefully the case the branding file. Resolves: Manasource Mantis #170.
2010-07-28Add some null being checks and cleanup some related codeJared Adams2-26/+23
Reviewed-by: Chuck Miller
2010-07-19Merge branch '1.0'Yohann Ferreira2-2/+6
Conflicts: src/gui/itempopup.cpp src/item.cpp src/monster.cpp src/net/manaserv/playerhandler.cpp src/net/tmwa/partyhandler.cpp src/npc.cpp src/player.cpp src/resources/itemdb.cpp src/resources/monsterdb.cpp src/resources/monsterinfo.cpp src/resources/npcdb.cpp src/resources/spritedef.cpp
2010-07-18Add event.h to eventmanager.h and listener.h to reduce total number of includesChuck Miller14-14/+0
You'll have to include it anyways 99% of the time
2010-07-18Move the majority of the netcode's server messages to the event systemChuck Miller12-87/+85
There is still a good way to go, but this should get us started Reviewed-by: Jared Adams