Commit Graph

1233 Commits

Author SHA1 Message Date
Henrique Santiago 4919bdf1bc Bind net functions 2012-08-07 14:05:55 -03:00
Henrique Santiago 0e67bd97a5 Moved some talk code to lua 2012-08-07 13:33:17 -03:00
niczkx 6feaeff8cc Fix NPC/Monster rendering for OTBM 2012-08-07 03:12:44 -06:00
Henrique Santiago a2db210012 Create stdext net, changes to outfit and exit windows. 2012-08-06 22:11:42 -03:00
Eduardo Bart 54f4e2b801 Fix console error 2012-08-06 20:54:56 -03:00
Eduardo Bart 5232501ecf Optimize dynamic storage 2012-08-06 20:52:55 -03:00
Henrique Santiago dcde317904 Fix dragable and npcto/from and remove margintop from entergame. 2012-08-06 20:43:25 -03:00
BeniS bd61a89675 Some fixes with layouts, NPC trade window, and market. 2012-08-07 11:13:33 +12:00
Henrique Santiago e6bd3907e1 Background label hide function, Skins fix and combobox hide, messagebox changes, show entergame when reload 2012-08-06 16:15:20 -03:00
Henrique Santiago 0f980ec18b Internal change to entergame, fix image-offset-y mistake, change the way default font is set in skins. 2012-08-05 18:43:45 -03:00
Henrique Santiago e78edad4c6 Widget text upper case option, change gimp plugin mode to executable 2012-08-05 15:26:08 -03:00
Henrique Santiago 18c882f1a0 Allow list bindings 2012-08-05 10:56:15 -03:00
niczkx 5abf8622e5 rewrite some parts of otbm saving and uncomment it for testing later 2012-08-05 05:26:27 -06:00
Eduardo Bart a01534e6a2 Add missing thread header 2012-08-04 13:07:21 -03:00
Eduardo Bart 176e97c3ce More compile fixes now for ubuntu... grr 2012-08-04 13:01:26 -03:00
Eduardo Bart 521adc308b Fix broken compilation in mingw32 2012-08-04 12:36:23 -03:00
Henrique Santiago 156ab9b879 More SHA encoding functions and add missing copyright 2012-08-04 11:37:55 -03:00
Henrique Santiago fb7ab21e71 Move RSA class to Crypt 2012-08-04 10:54:35 -03:00
Eduardo Bart fa15c25951 Implement support for coroutines in C++ 2012-08-04 01:46:04 -03:00
Eduardo Bart 6a68569319 Minor changes 2012-08-03 16:35:39 -03:00
Henrique Santiago 4e0642c814 Removed GMP and added OpenSSL. Rsa class might be moved to Crypto later. 2012-08-03 13:02:01 -03:00
Eduardo Bart fa27210d7f Remove lockWalks from game 2012-08-03 12:12:18 -03:00
Henrique Santiago d939ade06d Fix compile issue and miniwindows index 2012-08-03 10:26:04 -03:00
niczkx 092876d0e1 more fixes to compiling with gcc 4.6 2012-08-03 15:03:34 -06:00
Eduardo Bart 7d62763c92 Fix compile issue in gcc 4.6 2012-08-03 09:53:28 -03:00
Eduardo Bart c218f915ba Fix possible link issue in OS X 2012-08-03 09:53:28 -03:00
Henrique 4954d5fecb Some mysql stuff 2012-08-03 08:44:42 -03:00
Eduardo Bart 9e917ece88 Fix glitch caused by grounds with speed 1 2012-08-03 04:42:49 -03:00
Eduardo Bart ec1d5aa260 Minor changes
Update hovered widget when moving widget
Remove lockWalk from g_game.follow()
2012-08-03 03:16:14 -03:00
Eduardo Bart 325b711181 Fix some issues in battle 2012-08-03 02:58:48 -03:00
Eduardo Bart f397e6319c Reimplement battle using new events, no more scheduleEvents 2012-08-03 02:05:09 -03:00
Eduardo Bart 06388c5673 Fix compability with some servers fly systems 2012-08-03 00:05:29 -03:00
Eduardo Bart ea2fa55a25 Fix protocol 860 stackpos regression 2012-08-03 00:05:29 -03:00
Eduardo Bart 11387eb08f Fix floor change stackpos bug? 2012-08-02 11:47:32 -03:00
Eduardo Bart a64ebc7e7b Stop walk animation after changing floors 2012-08-02 10:39:08 -03:00
Eduardo Bart b9dfc7784c Fixed push of creatures in 9.6 2012-08-02 09:13:01 -03:00
Eduardo Bart f103f3ee62 Minor fix in packed_vector 2012-08-02 08:43:49 -03:00
Henrique 7116f6dea1 More sql stuff 2012-08-02 08:36:21 -03:00
Eduardo Bart ee4f155b92 Minor fix in std::packed_any 2012-08-02 06:27:16 -03:00
Eduardo Bart 57785d2001 More walk changes and creature events
Improve walking, no more random cancelWalks
Add 3 new creatures events onAppear/onDisappear/onWalk
Add algorithm that calculates walk ping
Fix paralyze animation while walking
2012-08-02 05:17:46 -03:00
Henrique 8a5195430a Add SQL extension, still in early stage 2012-08-01 22:56:50 -03:00
Eduardo Bart c9eaa73df5 Improve clicking on walking creatures 2012-08-01 22:47:55 -03:00
Eduardo Bart daea7cab65 Check walk collisions in client side 2012-08-01 22:34:19 -03:00
Eduardo Bart 773d58da01 Optimize lua object pushing 2012-08-01 22:34:19 -03:00
Henrique 3b345cf868 Add setXteaKey function 2012-08-01 21:25:11 -03:00
BeniS cadf07974a Fix to market module reloading, Changed the walk lock period when colliding with a block path object. 2012-08-02 11:04:29 +12:00
Eduardo Bart 103daa63e3 Fix compile issues with clang 2012-08-01 18:06:31 -03:00
Henrique 4f0e00fdfa Change to RSA decrypt function 2012-08-01 15:34:42 -03:00
Eduardo Bart 3bac3dcbb4 Rework stdext classes
Implement new classes:
* stdext::any => ligher replacement for boost::any
* stdext::packed_any => like any but optimized to use less memory
* stdext::shared_object => ligher replacement for std::shared_ptr
* stdext::shared_object_ptr => replacement for boost::intrusive_ptr
* stdext::fast_storage => for storing dynamic data
* stdext::packed_storage => same but with less memory
* stdext::packed_vector => std::vector with less memory

Compiling should be a little faster now because global boost including
is not needed anymore
2012-08-01 09:23:35 -03:00
Eduardo Bart 1dc7dc0cfc Fix tile skipping in 9.6 2012-07-31 19:29:33 -03:00
Henrique 3c1a5f24e8 Fix to protocolgame 2012-07-31 14:23:52 -03:00
Eduardo Bart 614d1544c0 Fix market reload and a crash when exiting 2012-07-31 11:42:26 -03:00
Eduardo Bart bca1af8f11 Add warning when trying to use invalid LuaObject class 2012-07-31 09:51:51 -03:00
Eduardo Bart f4641333f4 Fix a rare drag/drop issue 2012-07-31 06:34:45 -03:00
Eduardo Bart 90312965bc Avoid spr loading freeze when logging 2012-07-31 01:09:55 -03:00
Eduardo Bart 49a8c750f9 Fix opened channels saving 2012-07-31 00:53:15 -03:00
Eduardo Bart fbb3c9933a Fix audio stopping on buffer underruns 2012-07-31 00:12:04 -03:00
Eduardo Bart c879ed8642 Prevent a protocol warning caused by a server side bug 2012-07-30 22:03:34 -03:00
Eduardo Bart a1fb373b1b Revert protocol bug added in lasts commit 2012-07-30 21:08:32 -03:00
Eduardo Bart 3db0ae06a7 Add swedish language 2012-07-30 20:52:31 -03:00
niczkx e316c0b5cd Merge both getString functions in binarytree 2012-07-31 02:02:41 -06:00
Henrique 12e6602925 Bind connection and fix protocol recv without xtea 2012-07-30 17:12:38 -03:00
Henrique c969f5209f Some changes to server compatibility 2012-07-30 16:40:03 -03:00
niczkx 4c369bc823 fix compiling on gcc 4.6 (too early to use 4.7.1...) 2012-07-30 18:52:30 -06:00
Mark Samman 39db801f93 Fixed 9.6 otb loading 2012-07-30 18:38:23 +02:00
Eduardo Bart 03b8241bbc Rename stdext::shared_object_ptr to compile in gcc 4.6 2012-07-30 12:08:21 -03:00
Eduardo Bart 8e437e27c7 Fix walk interval calculation 2012-07-30 11:03:58 -03:00
Eduardo Bart 59b6abfa09 Implement message modes for 9.6
Fix possible crash when closing otclient
Fix private messages
Fix messages in 9.6
2012-07-30 09:33:52 -03:00
Eduardo Bart 52f81c53f9 More fixes for 9.6
And add ping bindings :D
2012-07-30 07:59:08 -03:00
Eduardo Bart 05436e135a Fix some bugs 2012-07-30 05:51:03 -03:00
Eduardo Bart 1e2d20d289 Fix typos 2012-07-30 04:18:05 -03:00
Eduardo Bart 487dafb8c0 Fix compile issue in mingw32 2012-07-29 17:18:39 -03:00
Eduardo Bart e2efbcffbe Fix crash in clang while casting enums 2012-07-29 09:58:25 -03:00
Eduardo Bart 68ebcb559f Fixes for compiling with clang 2012-07-29 09:04:47 -03:00
Eduardo Bart 73769c62e4 Just some refactoring 2012-07-29 07:32:54 -03:00
Eduardo Bart 29a4d467af Optimize map tile storage
Tiles are stored in blocks of 32x32 now, improving tile allocation and access speed
2012-07-29 03:23:27 -03:00
Eduardo Bart e0431021b5 Huge engine change, replace all std::shared_ptrs
Create a new shared pointer type stdext::shared_object_ptr and stdext::shared_obj
using boost::intrusive_ptr

Advantages:
 * half memory usage
 * faster and lightweight

Disadvantages:
 * using weak_ptr is not supported anymore
 * compiling seems slower
2012-07-29 00:34:40 -03:00
Eduardo Bart 3ca6494343 Remove unused func 2012-07-28 20:45:16 -03:00
Eduardo Bart 17dd08d983 More compatibility with OS X in CMake
Optimize Tile
2012-07-28 16:04:40 -03:00
Eduardo Bart 497902736c Enable widget debugging 2012-07-28 08:43:48 -03:00
Eduardo Bart 4566472662 Allow to use more than 2GB of memory on win32 2012-07-28 03:24:40 -03:00
Eduardo Bart d85dd3e20f Normalize source code
Add .gitattributes
Remove trailing whitespaces
2012-07-28 02:07:57 -03:00
niczkx a240429cb8 Fix possible gcc optimizations to binary reading 2012-07-28 02:54:25 -06:00
niczkx 26e20da938 Fixes to creatures 2012-07-28 02:06:16 -06:00
Eduardo Bart a88e9f9e0f Avoid crashs of invalid item ids in otb files 2012-07-27 18:25:41 -03:00
Eduardo Bart 564463fa01 Minimize talk messages spam on screen 2012-07-26 19:56:46 -03:00
Eduardo Bart d2b85bdba8 More modules fixes 2012-07-26 19:13:47 -03:00
Eduardo Bart 5f1e58c138 Fix sending os type, bind some functions 2012-07-26 13:41:13 -03:00
Eduardo Bart f5c97c8e8b Remove protocol config from cmake 2012-07-26 12:58:35 -03:00
Eduardo Bart 9ad9d88e10 Fix npc trade and npc chat 2012-07-26 12:42:15 -03:00
Eduardo Bart 0a49f58e50 Fix crash when InputMessage is too large 2012-07-26 11:03:57 -03:00
Eduardo Bart 619305cc6d Fix creatures with item outfits 2012-07-26 10:48:35 -03:00
Eduardo Bart 0eb7c166c0 Fix console blue messages 2012-07-26 09:19:30 -03:00
Eduardo Bart 657640c270 Mounts
Show creature mounts
Fix outfit window
Fix some 9.6 protocol issues
2012-07-26 09:19:30 -03:00
Eduardo Bart 36c029fc69 Multiprotocol 8.1-9.6 finally working
Still have many minor issues, tests are needed
No recompilation needed anymore
9.60 messages is not fully implemented
2012-07-26 06:12:20 -03:00
Eduardo Bart 98c279c10b Fix a stackpos bug in 9.6 2012-07-26 03:19:22 -03:00
Eduardo Bart c795eb91ab More multiprotocol support 2012-07-26 03:10:28 -03:00
Eduardo Bart c54cd1fdf1 Use new coding style in game modules
Lots of refactoring and changes
Remove docs folder
2012-07-24 02:30:08 -03:00
Eduardo Bart 1c3e630237 Improve modules and sandbox system 2012-07-23 21:22:38 -03:00
Eduardo Bart 61d64c7417 Support for OTML inline sequences 2012-07-23 17:51:19 -03:00