Commit Graph

137 Commits

Author SHA1 Message Date
Eduardo Bart 8761220deb Refactoring and flexibility changes
* Split game module into game and game_interface
* Move core_lib to corelib
* Move miniwindow to corelib
* Introduce init.lua script for initializing the client, giving much more flexibility
* OTClient is no longer Application derived and is much simpler
2012-06-19 21:16:52 -03:00
Eduardo Bart 1c7bbaea89 Fix memory leaks
* Fix recursive reference memory leak in UIWidget
* Make Event/ScheduledEvent memory-leak safe
* Fix exit crashs by freeing graphics resources before destroying GL context
* Add many asserts to avoid any leak regression
2012-06-18 05:13:52 -03:00
Eduardo Bart ad04043a88 Lua binder compability changes
* A lot of changes in lua binder to compile with clang's libc++
* Add more portability to luabinder
* Remove const keyword from bound lua functions
* Deprecate std::bind usage with luabinder replace its usage with registerSingletonClass/bindSingletonFunction for binding singleton classes
* Fix a bug in lua binder where calling functions with bil object would make the client crash
* More fixes to compile with clang
2012-06-17 12:21:46 -03:00
Eduardo Bart bb1fb939c4 just fixes
* fix battle rendering
* fix rendering glitch when following creatures
* properly throw exceptions from C++ to lua and avoid exception crashs
* fixes rendering states in framebuffer
2012-06-06 11:10:35 -03:00
Henrique Santiago 3cb5216858 protocol login working 2012-06-05 18:27:37 -03:00
Henrique Santiago 6b9943447a protocol login at lua 2012-06-05 16:16:57 -03:00
Eduardo Bart e5000fa577 encrypt password and account number
* the encryption uses a unique machine key, this means that if anyone steals config.otml with a saved password,
he will not be able to decrypt the password without the machine UUID key
* the encrypt uses a simple XOR encryption method, encoded with base64 and adler32 summing
2012-06-04 09:38:25 -03:00
Eduardo Bart 14db1066fc change logger 2012-06-01 17:39:23 -03:00
Eduardo Bart c01b32b032 rework log function and protocol
* remove some protocol ifdefs, replace with game features system
2012-05-28 19:04:44 -03:00
Eduardo Bart 4c80d783d6 rewrite and reoganize tools functions
* create stdext namespace which contains additional C++ algorithms
* organize stdext in string, math, cast and exception utilities
2012-05-28 10:06:26 -03:00
Eduardo Bart 946ec64e7f new protocol system fixes 2012-05-14 21:04:04 -03:00
Eduardo Bart 7bca3de8eb allow usage of network messages in extended opcode 2012-05-14 20:13:48 -03:00
Eduardo Bart 2478809945 add lua flexibility for protocol
* use shared_ptr for InputMessage and OutputMessage and bind them
* allow sending network messages from lua
* implement extended opcode
* use own OS type  for otclient to allow server side detection
* fixes in input event bot protection
* move RSA to input/output network messages
* allow to capture opcodes before GameProtocol parsing with the event GameProtocol.onOpcode
* fixes in lua std::string pop/push to allow byte buffering
2012-05-14 18:39:31 -03:00
Eduardo Bart fa9c942471 basic protocol 953 support, logging in real tibia! 2012-05-12 01:52:16 -03:00
Eduardo Bart 5a47e9d8a9 support for protocol 810
* change in protocol/network classes to make compatible with older protocols
* use filestream for reading dat
* add many ifdefs for multi-protocol support
2012-05-11 15:02:57 -03:00
Eduardo Bart 02c5e7b8ff missing files
* add questlog icon
* add playertrade otui
* some protocol changes for extended messages
2012-05-01 21:41:42 -03:00
Eduardo Bart cb7bd521d2 fix compilation on win32 2012-04-13 21:14:25 -03:00
Eduardo Bart 8b184d3ce8 compile fixes for gcc 4.7 in 32bit platforms 2012-04-04 12:12:25 -03:00
Eduardo Bart d4afb71263 clean containers when relogging 2012-04-03 11:15:11 -03:00
Eduardo Bart a475384b73 ui fixes
* fix viplist
* fix skills update
* fix mouse grabber
* minimize send interval
* add api to get world name
2012-03-29 16:25:04 -03:00
Eduardo Bart b46d4c4d5f non relevant changes 2012-03-16 10:31:21 -03:00
Eduardo Bart 411ac72fdc change some comments 2012-02-03 02:18:54 -02:00
Eduardo Bart f1cba66b1e fix possible issue when disconnecting from the server 2012-02-03 00:54:33 -02:00
Eduardo Bart 4584ce5b86 bind Game.turn 2012-02-02 00:38:46 -02:00
Eduardo Bart 98ef0e4574 allow setting/getting nodes in g_configs 2012-02-01 21:37:40 -02:00
Eduardo Bart 289efe34cf fix tcp congestion 2012-02-01 20:46:31 -02:00
Eduardo Bart 87236ee780 add missing shader 2012-01-30 01:27:25 -02:00
Eduardo Bart 9db7bd2602 rework map rendering 2012-01-29 22:00:12 -02:00
Eduardo Bart f57d46de0e fix minor connection leak 2012-01-13 13:41:57 -02:00
Andre (Notebook) 8f466b432c add lua functions to support packet manipulation/send 2012-01-13 09:51:43 +08:00
Eduardo Bart ada5c031d6 fix critial network delay issue 2012-01-09 16:46:15 -02:00
Eduardo Bart 9104305f37 update copyright notice 2012-01-02 14:59:24 -02:00
Eduardo Bart d5e15d1f06 add clock, change exceptions, add network exceptions, fix some crashes 2011-12-01 20:26:21 -02:00
Eduardo Bart 9c55f18186 enable tcp_nodelay option 2011-11-08 21:03:17 -02:00
Eduardo Bart d5b4137ead add missing delcarations 2011-11-04 15:29:13 -02:00
Eduardo Bart a96659e9bc add server class to framework 2011-11-04 14:40:26 -02:00
Eduardo Bart fb6f07bfc4 fix possible bug 2011-10-19 19:10:06 -02:00
Andre Antunes 5e49fad1d9 fixing memory leak when connection fail 2011-09-11 13:03:20 -03:00
Eduardo Bart f41fd0576c login/logout/ctrl+g working correctly 2011-08-29 15:38:01 -03:00
Eduardo Bart c6b9aad87d fix protocol crash 2011-08-28 23:39:47 -03:00
Eduardo Bart e87297c1b5 reorganize all constants and place them into namespaces 2011-08-28 13:02:26 -03:00
Eduardo Bart dab483caab TODO file 2011-08-28 10:45:56 -03:00
Eduardo Bart f7eac377e7 restore copyright notice 2011-08-28 10:17:58 -03:00
Henrique f019818423 inputmessage buffer increase 2011-08-27 00:40:52 -03:00
Eduardo Bart 8007e37796 console max lines 2011-08-21 18:49:31 -03:00
Eduardo Bart 38529ea837 lua console and some changes 2011-08-20 17:30:41 -03:00
Eduardo Bart 65c1867f55 login protocol cancel 2011-08-16 01:24:20 -03:00
Eduardo Bart 3d4cfb793e net improvments 2011-08-16 00:27:46 -03:00
Eduardo Bart b90bb275b9 ... 2011-08-15 21:32:16 -03:00
Eduardo Bart f87b475f49 revise network system 2011-08-15 21:30:31 -03:00
Eduardo Bart 2e1a96c2df rework on dat and spr loader 2011-08-15 16:15:49 -03:00
Eduardo Bart d8cc37afdb reorganize sources 2011-08-15 11:06:15 -03:00
Henrique e8448cddb9 creatures, fixe 2011-08-15 02:09:27 -03:00
Eduardo Bart 55862b07ad merge total remake 2011-08-13 23:10:27 -03:00
Henrique a5cdf634b3 now is walking 2011-08-11 21:06:01 -03:00
Henrique f07648219c remove old todo 2011-08-01 01:31:58 -03:00
Henrique a38bd18280 init protocolgame 2011-08-01 01:28:41 -03:00
Eduardo Bart 586bcde915 add missing file 2011-07-28 10:21:03 -03:00
Eduardo Bart ea2645c151 some network refactoring 2011-07-27 20:01:33 -03:00
Henrique a62785911a connection fix 2011-07-27 15:13:59 -03:00
Henrique f34b6b1bab connection rework, entergame.lua fix 2011-07-27 15:10:49 -03:00
Eduardo Bart 70f0b0dace new script engine, and things maybe be bugged for a while 2011-07-26 20:13:27 -03:00
Eduardo Bart ab7394f357 add a new folder structure redesign organized by packages 2011-07-17 08:52:20 -03:00
Eduardo Bart 571801ae39 some refactoring 2011-07-16 21:13:53 -03:00
Eduardo Bart 8ef1b28546 many changes and refactoring 2011-07-13 18:12:36 -03:00
Henrique c490577ea8 connection fixes, motd fixed 2011-05-31 02:24:30 -03:00
Eduardo Bart 9b2d71f6d8 protocol via script 2011-05-30 22:55:34 -03:00
Henrique ad10754779 init protocol login 2011-05-30 00:11:12 -03:00
Henrique e258289edb network message 2011-05-21 16:02:37 -03:00
Eduardo Bart c6753747fb a bunch of stuff 2011-05-11 19:16:11 -03:00
Eduardo Bart 96e0b1e909 new logger
scripts are now more error prone
2011-04-22 15:48:02 -03:00
Henrique Santiago 8952bddb7a init network 2011-04-20 03:40:31 -03:00
Eduardo Bart 3de455fe7e remove bugged net files 2011-04-18 00:26:35 -03:00
Eduardo Bart c0fce81238 ahn? 2011-04-17 16:14:24 -03:00
Eduardo Bart beeb41dafd poll 2011-04-16 23:52:54 -03:00
Eduardo Bart da57770f88 network 2011-04-16 23:48:13 -03:00
Henrique Santiago 2070b94661 init protocol integ 2011-04-16 22:06:38 -03:00
Henrique Santiago 48896f81dd undef ascii, protocol code commented, must swap lambda 2011-04-13 22:10:25 -03:00
Eduardo Bart 83b166e91e use boost stuff 2011-04-11 18:22:01 -03:00
Eduardo Bart 1f78f93096 refactoring paths and includes 2011-04-10 12:37:15 -03:00
Andre Antunes 296d613f3b adding net files 2011-04-09 22:26:57 -03:00
Andre Antunes 2805a34267 begining tibia protocol 2011-04-09 22:25:13 -03:00
Andre Antunes 02c58f16cd connection update 2011-04-08 20:24:51 -03:00
Andre Antunes bda40b218a using lambda 2011-04-08 15:18:26 -03:00
Andre Antunes 6f952adae2 connection is now working properly 2011-04-07 15:02:06 -03:00
Eduardo Bart 21bcbf9a97 compilation fixes 2011-04-07 06:36:02 -03:00
Andre Antunes 86ed2ff287 adding net to framework 2011-04-07 05:42:57 -03:00