767 Commits

Author SHA1 Message Date
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
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
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
Eduardo Bart
d2b85bdba8 More modules fixes 2012-07-26 19:13:47 -03:00
Eduardo Bart
0a49f58e50 Fix crash when InputMessage is too large 2012-07-26 11:03:57 -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
Eduardo Bart
c9dce51458 Update otml and casts
Improve casts performance
OTML can now understand value escaped sequences
Use long instead of int for lua integer
2012-07-23 01:33:37 -03:00
niczkx
3461761739 comment out & remove untested stuff 2012-07-20 21:18:03 +02:00
niczkx
8a49d09b75 stop using pairs instead of index loops, please, it's so much slower 2012-07-20 20:56:08 +02:00
Eduardo Bart
a11d6e501e More refactoring and some changes
* Move protocol safeSend() to send()
* Bind some new functions
* Refactor lots of enums
2012-07-20 02:52:57 -03:00
Eduardo Bart
a6d53532d2 Rename ThingType classes 2012-07-19 22:25:55 -03:00
niczkx
9dc88de6b0 missed something in last commit 2012-07-19 17:28:40 +02:00
niczkx
f74b013da2 ignore this 2012-07-19 15:55:10 +02:00
Eduardo Bart
f289db3a9e Module sandboxing system
Sandboxing makes module scripts run inside an isolated lua environments,
making more easier and secure to script

Move and rework TextMessage using the new sandbox system
2012-07-19 06:15:23 -03:00
Eduardo Bart
b0e6b3b8fb Update item OTBM attributes reader
* Fix some lua errors generated by playMusic
* Fix possible crash when starting otcliet without dat loaded
2012-07-18 05:34:17 -03:00
niczkx
c8d1d5ecf2 rewrite xml stuff #2 - will be testing the monsters xml code soon 2012-07-18 02:58:28 -03:00
Eduardo Bart
cb1848d48d Fix error in start/stop music 2012-07-17 22:22:21 -03:00
Eduardo Bart
eb24d6776e Multi-protocol
Lots of chagnes to add multi protocol flexibility, not really
completed yet, still have to rework text messages opcodes and other stuff,
so this still a working in progress feature

* Rework dat reader, the dat reader can now
* dinamically detect dat version
* Split game into gamelib and game_interface
* Lots of other minor changes
2012-07-17 20:53:19 -03:00
niczkx
28825a3298 lalala 2012-07-18 00:03:46 +02:00
niczkx
02f89dd8be fixes 2012-07-17 16:12:29 -03:00
BeniS
b7ac6ce6d5 Added Market/MarketProtocol module to begin the construction of the Market! Fixed some Minor Issues, and Some Cosmetics
* Added new protocol lib.
* Added missing Game Features to game/const.lua
* Added new Market module that will handle the market/market protocols too.
* Finished Market protocol and begun on the market structure (MarketOffer etc).
* Removed any traces of market protocol in the core (I think).
* Moved minimap images to /images.
* Removed old zoom images for minimap.
* Fixed a bug with randomize outfit.
2012-07-18 02:36:27 +12:00
niczkx
12d30f7355 monsters 2012-07-17 12:00:22 +03:00
Eduardo Bart
c131d29b5f Fix some issues with the current working directory 2012-07-16 21:30:15 -03:00
Eduardo Bart
bc81c9c8bf Packages system with .otpkg files
When otclient initializes it tries to find all .otpkg files inside the
current search paths (./ ./modules ./addons) and then add them
to the front of current search paths. This way .otpkg can contains
many modules/addons and modifications in a single file that otclient
can recognize.

otpkg files can be compressed files supported by PhysFS, which
are ZIP (.zip) and LZMA (.7z).
2012-07-16 16:35:14 -03:00
Eduardo Bart
7a08fed689 Optimize overall memory usage
* Fixes in otbm loader
* Rework BinaryTree
2012-07-15 10:30:39 -03:00
Eduardo Bart
1b0c527ad6 Fix Thing::getTopThing 2012-07-15 03:17:31 -03:00
Eduardo Bart
98c4240446 Changes for the mapeditor 2012-07-15 03:17:31 -03:00
Eduardo Bart
ec5106e7ce Fix skin texture caching 2012-07-14 18:30:00 -03:00
Eduardo Bart
36e5a5a92f Remove if spaces 2012-07-14 14:29:42 -03:00
Eduardo Bart
70115e391d Merge fallen changes 2012-07-14 14:22:18 -03:00
niczkx
992cbf9d1d mapeditor changes 2012-07-14 16:20:38 -07:00
Eduardo Bart
e3298d561c Rework application class and framework
Make otclient's framework flexible enough to run console apps like
servers, so this mean is possible to build otclient versions without
graphical interface and use it's framework to code servers
2012-07-13 22:23:11 -03:00
Eduardo Bart
29ab28065b Fix alt tab issue on win32 2012-07-13 00:56:56 -03:00
Eduardo Bart
c0c2411854 Improve minimap 2012-07-12 16:16:23 -03:00
Kamil
8f492f7e06 Fixed bug with adding Vip from console or map, who is already on viplist. 2012-07-12 13:21:51 +02:00
Henrique
9523b5cde5 Changes to last commit. Maybe add FW_LUA, FW_SOUND, etc definitions further 2012-07-12 00:55:18 -03:00
Henrique
962e9c7d16 Allow logger usage on console applications 2012-07-12 00:21:26 -03:00
kilouco
aaf3351e87 Fixed so Shift-Tab functionality works properly. 2012-07-10 23:18:33 -03:00
Eduardo Bart
d39ca7de10 Restore periodicalEvent function
* and typo fixes
2012-07-10 14:36:18 -03:00