480 Commits

Author SHA1 Message Date
Eduardo Bart
28786a3570 Update make_snapshop.sh 2013-11-13 14:33:29 -02:00
Eduardo Bart
b07a77f705 Changes to compile for Win64 2013-11-13 13:55:34 -02:00
Eduardo Bart
0d44942e8e Version 0.6.4 2013-11-13 13:07:37 -02:00
Eduardo Bart
dd829395e3 Merge pull request #376 from dalkon/master
Item phases & Fix party "bug" & Additions
2013-11-12 15:56:54 -08:00
dalkon
18fa54181a Format fix 2013-11-13 00:50:46 +01:00
dalkon
5b8ff29fa3 Fix party "bug" & Additions 2013-11-13 00:48:41 +01:00
dalkon
59e90e8f1e Item phases 2013-11-13 00:18:15 +01:00
Sam
5db37857bf Fix game zoom issue 2013-11-12 23:35:19 +01:00
Eduardo Bart
fc0297d6db Fix compile errors in ubuntu 2013-11-12 20:07:46 -02:00
Eduardo Bart
1060c6f78c Compilation for MSVC2013, thanks @dalkon
OTclient now compiles in "Microsoft Visual Studio 2013 Express for Windows Desktop"
All the needed libraries you can download at https://www.dropbox.com/s/2yfb1c763io8efy/otclient-msvc13-libs.zip
NOTE: You have to change VC++ Directories to the properly directories
NOTE: Latested MSVC 2013 or greated is required
2013-11-12 16:32:39 -02:00
dalkon
c9597d6682 Visual Studio 2013 Compatibility 2013-11-12 16:32:39 -02:00
dalkon
d3e97d33c7 Update .gitignore 2013-11-12 16:32:39 -02:00
Ahmed Samy
2b015d49d7 don't set bits twice 2013-11-12 20:06:59 +02:00
Ahmed Samy
f04b4a0b42 small fix 2013-11-12 20:02:24 +02:00
Ahmed Samy
ff5c22d4c0 Tiny fix
Saving newly made houses by the map editor is not even supported, so this
is not a bug
2013-11-12 17:15:09 +02:00
Sam
d6105a98d1 Fixed issue with deathwindow 2013-11-12 15:21:10 +01:00
Eduardo Bart
0938e22eb9 Fixes in stdext::format 2013-11-11 23:07:25 -02:00
Eduardo Bart
1868b235cb Implement creature marks 2013-11-11 01:45:18 -02:00
Eduardo Bart
9a30050340 Fix typo 2013-11-10 23:40:29 -02:00
Eduardo Bart
9d689f0c43 Add missing changes for protocol > 1000 2013-11-10 23:31:59 -02:00
Eduardo Bart
2b34c0ea0a Fix #337
The sound buffer was not being fully preloaded because it's size was incorrect
2013-11-10 20:35:00 -02:00
Eduardo Bart
d32f71c2b9 Partial support for protocol 1020 and minimize lag
I am able to login in global Tibia however there are game protocol errors
* there is a new opcode 167, which I dont know what it is
* there are changes in opcode 147 which handles text messages that I don't know too

Connection writing was optimized, playing "lag" should improve by 10ms,
and improve much more in systems with low fps
2013-11-10 20:10:04 -02:00
Eduardo Bart
3cff331723 Merge github.com:BrunoDCC/otclient 2013-11-10 19:36:06 -02:00
Eduardo Bart
9894f0c0b9 Merge github.com:conde2/otclient 2013-11-10 19:31:24 -02:00
conde2
e60372fdea A little fix! 2013-11-10 03:17:49 -02:00
conde2
d2473fd424 Login support for 10.21 ~ 10.22
Please someone test more it !
Not tested in real Tibia !
2013-11-10 03:13:51 -02:00
BrunoDCC
7d7bd00a63 minor fix :3 2013-11-09 22:48:29 -02:00
BrunoDCC
c81a623c43 Fixes for creatures name
fixes on save houses (Now open most generate some error)
First 10.22 commit (open dat to edit)
Add server id for new versions
2013-11-09 20:04:48 -02:00
Eduardo Bart
8b165b95fd non relevant change 2013-11-05 21:32:27 -02:00
Sam
6f9436dd60 UISprite widget added
Display single sprites
2013-10-30 21:35:29 +01:00
Henrique Santiago
ae95f51346 Merge pull request #367 from shdpl/patch-1
Polish locale update
2013-10-26 09:46:15 -07:00
shdpl
9b84570372 Polish locale update
UTF-8 or UTF-16 pls
2013-10-25 19:27:19 +02:00
Eduardo Bart
38dec168ee Fix boost::asio misuse that would cause lag
io_service::reset was not called before io_service::poll, meaning that new events would be really polled in the next Connection::poll call, this could lead to network lag in computers with low framerate (ie: a user with 10 fps would have 100ms lag just because of that)
2013-10-22 21:42:35 -02:00
Henrique Santiago
84b722f8c7 Merge pull request #365 from conde2/master
Fix - Writeable / Readable items Issues: #362 and #364
2013-10-21 17:29:13 -07:00
Joao Pasqualini Costa
b3717ceb93 Fix - Writeable / Readable items 2013-10-21 22:25:12 -02:00
Henrique Santiago
3340e06da6 Merge pull request #363 from conde2/master
Fix protocol error #362
2013-10-20 17:24:19 -07:00
Joao Pasqualini Costa
084ee45650 A little mistake 2013-10-20 20:33:44 -02:00
Joao Pasqualini Costa
7290ec3334 Some work on container pagination
Bind lua functions for containers
Update onAddItem now it have the pagination slot
Note: getSize as i see is equal to getItemsCount, but not sure thats why
I've added !
2013-10-20 20:21:20 -02:00
Joao Pasqualini Costa
971d90a596 Fix protocol error #362
TODO:
Handle the helpers in LUA, it could be added into Battle Window i think,
if someone know where should this be comment here !
2013-10-20 18:31:20 -02:00
Sam
8230bf2af4 Merge branch 'master' of https://github.com/edubart/otclient 2013-10-20 17:15:30 +02:00
Sam
241b54262a Updated lua consts 2013-10-20 17:15:24 +02:00
Ahmed Samy
63ce68b449 mapio: make sure we read the house tile flag 2013-10-12 11:38:30 +02:00
Ahmed Samy
f47ea05abc Merge https://github.com/BrunoDCC/otclient
# By BrunoDCC
# Via BrunoDCC
* https://github.com/BrunoDCC/otclient:
  Save houses and spawns fix
2013-10-11 11:38:03 +02:00
BrunoDCC
de3160c90d Save houses and spawns fix 2013-10-11 02:35:31 -03:00
Sam
67bd00556d Re-added "Don't stretch/shrink" option
Closes #345
2013-10-09 18:17:50 +02:00
Sam
778559c7b9 Protocol 10.10 fixed containers 2013-10-09 17:58:58 +02:00
Sam
3aac0ac0ec Reverting mapio.cpp change
Should not have been commited.
2013-10-07 21:38:55 +02:00
Sam
4adfafc67e Fix for Client 8.5 2013-10-07 21:32:13 +02:00
Sam
1b27a095a9 Hotkeys for Fluid Containers
Hotkeys now save subType for fluid containers instead of always trying
to use item with subType 0.
2013-10-05 18:08:49 +02:00
Sam
e6977b1b43 Improvement / Fix hotkeys
- Hotkeys now check items in inventory
- Fixed USEONETARGET hotkey bug
2013-10-05 02:31:44 +02:00
Sam
5843b78e87 Support for client version 7.6
Tell me if there are parts which I should change.

- Not everything is tested yet, feel free to report bugs in 7.6
- the data send in between login opcode and account data might not be
correct, but I could not find any documents showing the right protocol
yet
- Hotkeys working
2013-10-04 04:09:54 +02:00
Ahmed Samy
7cf645e715 Woops, fix operator less than 2013-09-02 19:12:12 +00:00
Ahmed Samy
537508021e Make g_map.findItemsById return a map instead of a vector 2013-09-02 17:53:32 +00:00
Ahmed Samy
e741a62ce9 g_map.findItemsByid 2013-08-31 01:18:17 +00:00
Ahmed Samy
56d6ef6642 Introduce 4 new functions:
- g_map.beginGhostMode(float opacity)
- g_map.endGhostMode()
- UIMap::movePixels(int x, int y)
- MapView::move(int x, int y)
2013-08-30 01:54:36 +00:00
Ahmed Samy
3db8f54aa9 Introduce 2 new functions to g_things
- g_things.findItemTypesByName
- g_things.findItemTypesByString
2013-08-29 17:53:21 +00:00
Ahmed Samy
9234030c1b Zone colors: add more tile flags to be checked for 2013-08-27 15:49:48 +00:00
Ahmed Samy
520baa28ea Move "getNPC" that was introduced in commit
00729bbc2e
from Spawn to CreatureType

I didn't have a closer look at how his code was structured, what he
basically did
is that he set all creatures in a spawn as NPC's even if it's a monster
which is
so erroneous.

Highlights:
- Add branch prediction macros
- Minor code style fixes & some others

Hopefully the branch prediction thing will speed up OTB since it's
awfully slow.
2013-08-27 03:40:18 +02:00
Ben Dol
bbdeac2e33 Merge pull request #353 from KnopersPL/master
Fix for protocol 850 errors, thanks @KnopersPL
2013-08-25 03:54:39 -07:00
KnopersPL
1f914351bb Update protocolcodes.cpp
Fix for server messages on 850
2013-08-25 12:24:18 +02:00
KnopersPL
eb68504dc1 Update protocolgameparse.cpp
Fix the slow animation move effect, some opcodes error and logging in as GM
2013-08-25 12:20:54 +02:00
Ahmed Samy
32647f11bf Introduce 2 new functions to Map
- g_map.colorizeThing
- g_map.removeThingColor
2013-08-24 00:09:56 +02:00
Ahmed Samy
644d4daeea More cleanups 2013-08-23 02:12:36 +02:00
Ahmed Samy
b27352c321 Merge branch 'master' of https://github.com/BrunoDCC/otclient
* 'master' of https://github.com/BrunoDCC/otclient:
  Add full npc read (it not cause bug)
  Fixed a npcs save Fixed a spawns and npcs load
2013-08-23 02:03:40 +02:00
BrunoDCC
a6be9ae525 Add full npc read (it not cause bug) 2013-08-22 21:00:48 -03:00
Ahmed Samy
5df3ec8cf2 More cleanups
Also, bind map descriptions auxiliar functions
2013-08-23 01:55:15 +02:00
BrunoDCC
00729bbc2e Fixed a npcs save
Fixed a spawns and npcs load
2013-08-22 20:54:09 -03:00
Ahmed Samy
3b2d8a2b5e Fix build 2013-08-22 23:20:44 +02:00
Ahmed Samy
d5298c1011 Cleanups 2013-08-22 21:15:17 +02:00
Allan Ference
aaad8ab8a0 Fix spawn loading and saving, thanks to @BrunoDCC 2013-08-20 12:14:52 +02:00
Allan Ference
efbd9ab693 Attempt to fix spawn loader 2013-08-19 18:57:25 +02:00
Allan Ference
092209c0bb Attempt to fix houses and spawns save 2013-08-19 10:38:22 +02:00
Allan Ference
05f7f6a4cf Introduce Item::getName() 2013-08-18 18:29:20 +02:00
Ben Dol
2c36ca7215 Merge pull request #350 from conde2/master
Fix Keyboard unbind, WASD walk, Mount Frames, Fix #349, #344, #304, #253 Thanks @conde2!
2013-08-17 19:23:06 -07:00
Joao Pasqualini Costa
926eb9f01e Fix #253
Message Mode 12
2013-08-17 22:57:38 -03:00
Joao Pasqualini Costa
96bb28e806 Fix Mount frame issue
This will fix mount for all protocols
2013-08-17 22:19:24 -03:00
Joao Pasqualini Costa
e15995e1eb Fix walk with WASD
This should be an alone bind, so any other control will not affect the
keys.
2013-08-17 21:56:37 -03:00
Joao Pasqualini Costa
719debfeae Fix keyboard unbind
Now this will unbind the right widget
2013-08-17 21:54:16 -03:00
Allan Ference
e7137c2535 Rework NPCs loader with g_resources (Untested) 2013-08-17 23:36:44 +02:00
Allan Ference
5eabf6f518 Optional and configurable zone colors 2013-08-17 23:06:58 +02:00
Allan Ference
5849136526 Introduce g_things.findItemTypeByName 2013-08-17 15:09:10 +02:00
Allan Ference
0451fd6b58 OTBM saver: don't escape version check for waypoints 2013-08-15 11:20:22 +02:00
Allan Ference
9cf878335a Minor changes
Mainly code style
2013-08-14 18:58:53 +02:00
BeniS
529b646316 Forgot to provide the widget for walk key bind, thanks conde2! 2013-08-13 10:22:34 +12:00
Allan Ference
1ea2b380ca Disregard progressbar 2013-08-09 17:35:56 +02:00
Allan Ference
914fe249ab Merge branch 'master' of https://github.com/BrunoDCC/otclient
* 'master' of https://github.com/BrunoDCC/otclient:
  Fix OTBM save Remove if(version > 1) { (it causes bug)
2013-08-09 14:54:09 +02:00
BrunoDCC
4d498ed0d8 Fix OTBM save
Remove if(version > 1) { (it causes bug)
2013-08-07 20:04:21 -03:00
Allan Ference
9aa667da26 MapEditor: more changes for ease of use 2013-08-04 14:21:12 +02:00
Allan Ference
e6db43ac3a MapEditor specific: Use colors for tile states 2013-08-04 14:19:10 +02:00
Eduardo Bart
b5911cf1de Use client version instead of entergame 2013-08-03 19:26:38 -03:00
BeniS
5fbb71157d Added enable/disable chat mode (allows for alphabetical key controls), battle window anchoring fixed (thank you River) & more:
* Added better walk key binding (for other uses, like the sample given WASD).
* Made string.ends part of the string meta table rather than parameter based.
2013-07-29 10:42:18 +12:00
Allan Ference
0ff36a1a0a Merge https://github.com/marksamman/otclient
* https://github.com/marksamman/otclient:
  Fix login with 9.83-10.10
2013-07-28 07:10:44 +02:00
Mark Samman
4a04a18835 Fix login with 9.83-10.10
This only adds protocol compatibility, the features aren't actually
implemented yet
2013-07-28 07:05:46 +02:00
Allan Ference
6fa9631d6a Merge https://github.com/marksamman/otclient
* https://github.com/marksamman/otclient:
  Fix compiling on OS X
2013-07-28 04:42:31 +02:00
Mark Samman
261642190b Fix compiling on OS X 2013-07-28 04:30:52 +02:00
BeniS
95abf2a1d2 Fix a bug with autowalking & add prompt param for tryLogout.
(We don't want to be prompted when pressing Ctrl + Q or  Ctrl + L).
2013-07-07 05:36:56 +12:00
Sam
c4adf2d817 Added whitelist
- Checkboxes to turn ignore/whitelist off
- Allow VIP messages
2013-07-04 18:03:21 +02:00
Sam
c7c259ef80 Game Menu / Attacking fixes
- No more "Attack" / "Follow" for creatures on different floor
- No rule violation for monsters, only players now
- Alt + Click to target works through roofs -> fixes #203
- Fixed battle list issue (check position when trying to attack)
2013-07-03 14:25:18 +02:00
Sam
987c6d6c91 Mount display issue
fixes #275
Not really needed but enables some cool stuff
2013-07-02 23:16:11 +02:00
Sam
c8185474de Implements battlelist sorting
Features:
Sort by age, name, health or distance
Sort ascending or descending
Button to toggle filters and sort options
http://i.imgur.com/cSCBwr4.png

closes 213
2013-07-02 22:43:52 +02:00
Sam
be071c7103 Fix deathwindow issue 2013-07-02 22:40:19 +02:00
Sam
2f9e2c3e33 Sorting VIP list by name
@ #209
What should sorting by type do?
2013-07-01 22:59:51 +02:00
Sam
b81590f297 Fixed Alt + F4 keycombo on Windows 2013-06-29 16:53:15 +02:00
BeniS
e062562888 Added sublime text 2 project file.
* Changed the order of the dofiles params.
2013-05-12 21:16:43 +12:00
BeniS
18d23653c4 Added some control params to dofiles lua method.
* File name contains string.
* Recursive file checking for deep searches.
2013-05-12 17:00:52 +12:00
Henrique Santiago
6c119627bb Merge pull request #330 from conde2/master
Improvement on styles
2013-04-30 13:26:56 -07:00
Joao Pasqualini Costa
d847a78a4d Improvement on styles
Added VerticalList
2013-04-30 17:21:04 -03:00
Eduardo Bart
0dccc870b5 Merge pull request #324 from TiagoTdA/master
Update/Refresh modules on unload
2013-04-13 18:11:47 -07:00
Tiago T. de Araujo
e4c7ca604b Fix update on unload module 2013-04-12 21:27:10 -03:00
Sam
d427560b98 Countwindow Fix [YAH]
Fixed typing amount in count window. Should be hidden again.
2013-04-12 19:15:28 +02:00
Sam
cc12db0d1f Reverted getTopMultiUseThing() change 2013-04-09 23:54:10 +02:00
Henrique Santiago
1ce6df99ac Merge pull request #318 from conde2/master
Fix #316
2013-04-09 14:21:15 -07:00
Joao Pasqualini Costa
57bb6ff974 Fix #315 by @pacmanis
Credits go to @pacmanis
2013-04-09 18:02:43 -03:00
Joao Pasqualini Costa
9bae1b9e25 Fix #316
It still have a bug when using string like this:

" teste {{}} teste"
2013-04-09 17:54:57 -03:00
Sam
1415de222c Merge pull request #313 from sn3ejk/sn3ejk
Fix extended opcodes for forgottenserver.
2013-04-05 18:50:02 -07:00
Kamil W
34ceb3c95e Fix extended opcodes for forgottenserver. 2013-04-05 22:03:17 +02:00
Eduardo Bart
b43a196eac Minor fixes and add auto resize for images 2013-03-15 21:59:22 -03:00
Eduardo Bart
a3a65d40ce Merge pull request #303 from conde2/master
Properly Fix #301
2013-03-15 08:35:04 -07:00
Joao Pasqualini Costa
6ef3508362 Properly Fix #301 2013-03-14 20:57:02 -03:00
Eduardo Bart
a71e07f063 Restore walk optimization 2013-03-14 00:16:57 -03:00
Eduardo Bart
4bdd1e79fd Fix compile error for win32 2013-03-13 21:18:17 -03:00
Eduardo Bart
e9e4dcd71b Improve walk when lagging 2013-03-13 20:55:20 -03:00
Eduardo Bart
0891e2b30a Add C++ traceback to errors 2013-03-12 01:36:36 -03:00
Eduardo Bart
24664714bd Fix rare but serious bug in Connection
* Implement output pooling for writing data in connection,
this should fix rare cases where sending would fail
2013-03-12 00:18:47 -03:00
Eduardo Bart
da51dd467e Minor fix 2013-03-11 15:00:31 -03:00
Eduardo Bart
64fc4570c9 Try to fix compilation for gcc 4.6 [3] 2013-03-06 15:47:38 -03:00
Eduardo Bart
392acc0b43 Try to fix compilation for gcc 4.6 [2] 2013-03-06 15:40:47 -03:00
Eduardo Bart
69f72b9c86 Try to fix compilation for gcc 4.6 2013-03-06 13:05:46 -03:00
Eduardo Bart
489688e9fb Merge branch 'sql' 2013-03-06 13:00:21 -03:00
Eduardo Bart
d911b38d68 defaults SQL to off 2013-03-06 12:59:59 -03:00
Eduardo Bart
61be2103ed Fix linkage 2013-03-06 12:54:27 -03:00
BeniS
a7b27ef8dd Forgot to add MySQLResult lua binding 2013-03-05 20:33:27 +13:00
Eduardo Bart
10a16169a4 Fix hotkeys reload and implement filters for console 2013-03-05 04:02:54 -03:00
Eduardo Bart
44bf4dcb6e Fix ubuntu compile errors 2013-03-05 02:54:08 -03:00
BeniS
9305053e34 Few issues with compilation and layout 2013-03-05 17:47:43 +13:00
Eduardo Bart
1dd558d57e Revert "Use boost::thread instead of std::thread"
This reverts commit 71b5c5f2e4.
2013-03-05 01:47:23 -03:00
BeniS
15ee7962f1 Some minor clean ups 2013-03-05 17:31:19 +13:00
Eduardo Bart
8c016b143a Fix #294 2013-03-04 23:59:37 -03:00
Henrique Santiago
a85ca0fb17 Merge pull request #296 from conde2/master
Fix spell cooldown
2013-03-04 18:58:47 -08:00
Joao Pasqualini Costa
115bf08364 Fix spell cooldown timer 2013-03-04 23:45:19 -03:00
Eduardo Bart
71b5c5f2e4 Use boost::thread instead of std::thread 2013-03-04 23:06:00 -03:00
Henrique Santiago
5396ea6231 Fix to last commit 2013-03-04 22:46:14 -03:00
Henrique Santiago
9955de573b Avoid infinite loop 2013-03-04 22:44:29 -03:00
Eduardo Bart
0be7bd5360 Implement async dispatcher #221 2013-03-04 18:56:22 -03:00
Eduardo Bart
c452e74e0c Implement stdext::shared_ptr
It's an alternative to stdext::shared_object_ptr
with weak pointers support and some other functionallity, however
it's heavier, uses more memory, more allocation and slower,
this class should be used when really needed, prefer
stdext::shared_object_ptr
2013-03-04 13:14:35 -03:00
Eduardo Bart
bdbe065c23 Add thread safety for std::shared_object_ptr 2013-03-04 10:47:07 -03:00
BeniS
f4263384bc Fix boost issue on Ubuntu and fix MySQL lib issue
* Add framework options for configuration
* libboost_chrono-mt.a dependency issue (with clock_gettime)
* MySQL lib must be added before zlib
2013-03-04 18:03:04 +13:00
BeniS
f50c63e9e5 Removed singleton instance & added more lua bindings
* Some tidying up
2013-03-04 04:11:29 +13:00
BeniS
48ac91d173 A few clean ups and also tested, its working fine 2013-03-04 01:27:07 +13:00
BeniS
8db85e4e3a Use stdext::millis not g_clock.millis 2013-03-03 19:43:25 +13:00
BeniS
02d32565e9 Work on sql framework classes 2013-03-03 19:19:22 +13:00
BeniS
3980f859b7 Forgot to remove header includes 2013-03-03 19:17:48 +13:00
Eduardo Bart
c392bcca90 Fix win32 alt bug 2013-03-03 00:00:13 -03:00
Eduardo Bart
62921dee9b Fixes in options, hotkeys and viplist 2013-03-02 17:01:52 -03:00
BeniS
3ca85cbe87 Removed Position dependencies inside the framework 2013-03-02 18:33:14 +13:00
Eduardo Bart
32df317163 Fix luajit on Mac OS X 2013-03-01 17:14:18 -03:00
Eduardo Bart
a145ad282b Add live_sprites_reload command 2013-03-01 17:14:18 -03:00
Samuel
884102833e OTB loading fix 2013-03-01 15:30:50 +01:00
Eduardo Bart
50b6cc69e1 Implement live_module_reload command 2013-03-01 06:38:05 -03:00
Eduardo Bart
8314b84f69 Add live_textures_reload command 2013-03-01 05:46:55 -03:00
Henrique Santiago
e85afd4b63 Platform modtime, little changes to entergame 2013-03-01 05:08:40 -03:00
Eduardo Bart
120c2b4231 Fixes in rule violations and private chat 2013-02-28 22:01:41 -03:00
Eduardo Bart
dad3026ba0 Optimize terminal buffering 2013-02-28 21:35:35 -03:00
Eduardo Bart
9312d20a0f More terminal improvements 2013-02-28 20:10:36 -03:00
Eduardo Bart
425bfd998b Add about_modules command 2013-02-28 19:05:53 -03:00
Eduardo Bart
b804dd6959 Fixes and new tuned terminal 2013-02-28 18:46:42 -03:00
Eduardo Bart
69e762385e Warn when shared_object_ptr misused 2013-02-28 12:19:42 -03:00
Eduardo Bart
e528fcc8f8 Minor fixes and improvements 2013-02-28 02:43:26 -03:00
Henrique Santiago
46aa0c005f Support to miniwindow margin, fix protocollogin connectCallback, pt translation 2013-02-27 23:45:03 -03:00
BeniS
eb46b96ffa Fix typo from last commit 2013-02-28 10:31:15 +13:00
BeniS
ccbe491e3c Should resolve #289 (please test and give feedback) 2013-02-28 10:23:22 +13:00
Henrique Santiago
864ac3fdd9 Pt translations, #286 2013-02-27 15:57:13 -03:00
BeniS
5f26303389 Added latest protocol/client support for cipservers 2013-02-28 04:38:48 +13:00
BeniS
0bf909d52f Fix #283 and more:
* Might have fixed death window issue but not confirmed
* Stop hotkey window from display while offline
* Moved some required features to >= 840 if statement
  (protocol 840/842 arent supported in otclient yet)
2013-02-28 01:01:51 +13:00
Eduardo Bart
ef20f59a98 Fix new line in utf8 conversion 2013-02-26 18:31:09 -03:00
Eduardo Bart
406c7bdae6 Fix #276 2013-02-26 18:13:50 -03:00
Eduardo Bart
41b81da76f Towards 0.6.2 2013-02-26 17:56:50 -03:00
Eduardo Bart
dc3559a5c0 Fix hotkey bug and compile error on Mac 2013-02-26 17:50:08 -03:00
Eduardo Bart
d0576da69d Implement dash walking and zoom out again 2013-02-26 16:37:02 -03:00
Eduardo Bart
2a225b99b7 Only show ping when available 2013-02-25 23:16:15 -03:00
Eduardo Bart
04f52d77d2 Walk ping is not supported anymore 2013-02-24 22:39:25 -03:00
Eduardo Bart
06e2b6eca2 Platform fixes and rework ping 2013-02-24 22:16:45 -03:00
Henrique Santiago
a8c175452b Pt translations 2013-02-23 20:15:12 -03:00
BeniS
92228e9553 Prompt user before removing server list entry 2013-02-24 01:26:49 +13:00
BeniS
67ed9e21ad Forget account/password when "Remember password" is unchecked 2013-02-24 01:14:30 +13:00
BeniS
01126eee62 Some fixes for the server list module
* Fixed an indexing issue in the settings
Note: Forgot to mention that it will store the last account/password used for that server
2013-02-24 01:02:24 +13:00
BeniS
8e9f65779c Implemented client_serverlist module! Close #200
* Will store servers that are not already in the list when logging in
* Can add servers manually if required too
* Fixed a bug in table.size
2013-02-24 00:41:21 +13:00
BeniS
2296e35174 Fix issue with closing containers
* Wasn't clearing references properly.
2013-02-23 19:38:52 +13:00
BeniS
28e70516a4 Use full path in SpelllistSettings
* Fix reload errors from previous commit
2013-02-23 19:23:18 +13:00
BeniS
039c3072dc Preload properly with g_textures.preload
* Thanks Baxnie for advising me of this method :)
2013-02-23 19:16:42 +13:00
BeniS
f4f9e319d8 Buffer condition/cooldown icons on module init
* This should hopefully avoid some lag with slow hdd computers
2013-02-23 18:53:27 +13:00
Eduardo Bart
035ce26728 Fix link error in Mac OS X 2013-02-22 19:42:28 -03:00
Eduardo Bart
04c4943fa8 Remove boost::filesystem dependency 2013-02-22 19:29:58 -03:00
Eduardo Bart
09c937998f Dont use boost locale anymore 2013-02-22 18:49:36 -03:00
Eduardo Bart
e4e3d7d053 New platform APIs and new OpenAL cmake 2013-02-22 16:53:49 -03:00
Eduardo Bart
5b573afdfc Change network errors message 2013-02-22 16:53:49 -03:00
Henrique Santiago
90d2032e9e More changes to painter 2013-02-22 03:31:13 -03:00
Henrique Santiago
3eeb5ae890 Painter became PainterOGL, new Painter generic class 2013-02-22 02:55:35 -03:00
Eduardo Bart
9a54bfcc90 Minimap, hotkeys and lot of other changes
* Begin working on a new layout system for UIMinimap and later UIMap,
this new layout system allows to add widgets to the minimap
* Add option to disable motd
* Rework hotkey binding
* Lots of fixes in hotkeys manager
* Add fullmap view using Ctrl+Shift+M
* Prevent some crashs in ThingType draw
* Add function to load minimap from PNG files
* Fixes in minimap saving
* Fixes in Tile::isClickable
* Add UIMapAnchorLayout, new layout for maps
* Fix freezes in win32 when pressing alt key
2013-02-21 17:03:05 -03:00
Henrique Santiago
f8b078ea91 Little fixes 2013-02-20 21:50:45 -03:00
Henrique
33ce0aa704 A few more changes to dx9 2013-02-20 19:12:52 -03:00
Henrique
bb304f9f4e Fixes to npc trade, begin native directx support 2013-02-20 15:41:28 -03:00
Ben Dol
a84d0bbf11 Update tools/tfs_extendedopcode.patch
Fixed issue with sending Player ptr in dispatcher (apparently causes issues in TFS)
2013-02-21 04:51:10 +13:00
BeniS
cb3f06358c Missed existing onInventoryChange hook 2013-02-21 04:34:06 +13:00
BeniS
3b91c4d509 Minor quantity fix from previous commit 2013-02-21 00:28:45 +13:00
BeniS
f4c7d98bd5 Fixes to trade npc module:
* Will now update player goods on inventory change
* Sell all no longer shows inventory items when ignore is checked
* Sell all tooltip now updates properly
* Will tell you the sell all total
2013-02-21 00:19:30 +13:00
BeniS
88c59afb8c Added 'sell all' tooltip to show items you can sell
* Now 'sell all' button with enable/disable
* Fixed display issue with 'sell all' button
* Also changed spinbox button click
2013-02-20 23:08:03 +13:00
BeniS
b61094c053 Minor fix to scroll bar 2013-02-20 15:03:45 +13:00
BeniS
3b9acab7a1 Fixed Market laoding and 'search all' issue. 2013-02-20 14:44:06 +13:00
Henrique Santiago
6d456994f4 Fix scrollbar 2013-02-19 21:34:50 -03:00
BeniS
e87e669c87 Few market UI fixes 2013-02-19 23:19:43 +13:00
Henrique Santiago
59a5b8115a Fix locale send, spelllist reload, few changes 2013-02-18 22:18:10 -03:00
Eduardo Bart
67fc77d507 Add sell all button to NPC trade 2013-02-15 16:38:57 -02:00
Eduardo Bart
28cdd6aa53 Fix minor walk delay 2013-02-15 16:38:29 -02:00
Henrique Santiago
4f423432fa Missing change for hotkeys 2013-02-14 18:29:35 -02:00
Eduardo Bart
62f38d678d Fix for chat commands #s #w #y
* Some progressbar changes
2013-02-14 16:34:55 -02:00
Henrique Santiago
07dd78002b Save console messages #263, change settings names 2013-02-14 15:30:45 -02:00
Henrique Santiago
5fc1ac8051 Save gamemap height #207. UISplitter needs a rework. 2013-02-14 13:54:51 -02:00
Eduardo Bart
d9ee4dccbe Version 0.6.1 2013-02-14 13:20:41 -02:00
Henrique Santiago
ffcb65f365 Draw minimap background without map 2013-02-13 18:40:15 -02:00
BeniS
adc01ab9e3 Proper fix for autowalk lag issue 2013-02-13 18:05:08 +13:00
BeniS
725a16e38e Fix a lag issue with auto walking
* Auto walking on unwalkable objects was still being processed
  by the findPath algorithm. Ed, if this algorithm shouldn't be causing
  lag spikes for the client, perhaps I should find the cause in findPath.
  For now this will fix the issue however.
2013-02-13 15:06:22 +13:00
BeniS
0b29a4b466 Fixed market selling 'amounts' 2013-02-13 05:30:00 +13:00
BeniS
cb42481edd Market fix, and a few other things:
* Added 'button' param to g_mouse.bindPress
* Added 'lower' param to table.contains
* UIComboBox:onOptionChange should signalcall?
* Changed the experience bar color
* Market buy/sell 'amount' window will now show the cost
  of the amount you are selecting
2013-02-13 05:14:16 +13:00
Henrique Santiago
8f9055f48b Fixed mouse bug, allow locales list 2013-02-10 03:24:51 -02:00
Henrique Santiago
b1bab32618 Fixes to lua 2013-02-10 02:05:02 -02:00
Henrique Santiago
dfb0150a7d Fix signalCall, healthinfo tooltips 2013-02-10 01:17:20 -02:00
Henrique Santiago
11cb287a21 Changes to UIProgressBar, simplified healthinfo module 2013-02-09 19:57:37 -02:00
Henrique Santiago
6f37361df0 Merge pull request #268 from ricardoianelli/master
Added experience bar to healthinfo
2013-02-09 11:36:39 -08:00
Ricardo Ianelli
9c0c19b5b2 Exp bar on healthinfo module 2013-02-10 03:31:12 -02:00
Ricardo Ianelli
b08d0ff157 One more small fix 2013-02-10 03:01:33 -02:00
Ricardo Ianelli
71c2ec5293 One more fix 2013-02-10 02:59:55 -02:00
Ricardo Ianelli
72d63673ca Identation Fixes 2013-02-10 02:54:20 -02:00
Ricardo Ianelli
cbeab6f9b0 Moving start messages to lua
Moved start log messages to lua, to make easier to enable/disable those
messages.
2013-02-10 02:28:47 -02:00
Henrique Santiago
25841e9c77 Merge pull request #267 from ricardoianelli/master
Rework on init/exit log messages.
2013-02-08 21:03:08 -08:00
Eduardo Bart
ea0d5f3d81 Fix compile error for OpenGL ES 2013-02-07 03:56:21 -02:00
Henrique Santiago
4f3be92208 Refix last commit 2013-02-07 03:37:57 -02:00
Henrique Santiago
3c3ba9ef4c Fix crash when clientid is invalid 2013-02-07 03:13:08 -02:00
Henrique Santiago
2f7a06e93e Full ground option in otml 2013-02-07 02:19:19 -02:00
Henrique Santiago
7f918a12a2 Old light method restored, it can be changed in lua now 2013-02-06 20:47:17 -02:00
Eduardo Bart
7f6a4bbbe5 Lightning is not additive anymore
Now otclient lightning may look like more tibia lights,
before this too many lights together would increase
brightness a lot, this won't happen anymore in cards
with OpenGL 1.4 or newer
2013-02-06 19:49:40 -02:00
Eduardo Bart
86c462eb4d Fix win32 compile errors 2013-02-06 18:48:23 -02:00
Eduardo Bart
7ece0ed8c7 Buttons for client options 2013-02-06 17:35:59 -02:00
Eduardo Bart
cf77df05ca Fix possible leaks in stdext::format 2013-02-05 20:00:28 -02:00
Eduardo Bart
dcd6249e8f Link ICU in Mac OS 2013-02-05 19:21:15 -02:00
Eduardo Bart
f0ac63eb5c Disable crash handler in Mac OS 2013-02-05 19:10:22 -02:00
Henrique Santiago
d4fb6127fc Add blink effect 2013-02-05 19:08:32 -02:00
Eduardo Bart
637b6ceca2 Trying to get it compiling on Mac OS X 2013-02-05 19:03:18 -02:00
Eduardo Bart
86d06057ca Fixes to compile with libc++ 2013-02-05 18:30:16 -02:00
Eduardo Bart
717832b791 Other minor fixes 2013-02-04 19:40:12 -02:00
Eduardo Bart
4c51009ed9 Minor fixes
* Fix focusing opened channel on login
* Add missing options to rule violation window
* Send rule violations messages in default channel
* Enable show private messages in console by default
* Fix battle issues with invisible creatures
* Allow to use hotkeys while trading
2013-02-04 17:38:36 -02:00
Eduardo Bart
0fc56c73cc Fix health colors 2013-02-04 15:50:15 -02:00
Henrique Santiago
db73bbdea2 Pt translations, uicombobox, options 2013-02-01 14:31:24 -02:00
BeniS
6cd71ea02e Closes #236 2013-02-02 03:38:17 +13:00
BeniS
7f5dda5c8f Re-add destroying for unloading, other clean up:
* Cleaned some module terminate code
* Fixed "reload all" issues
2013-02-01 17:32:15 +13:00
BeniS
35e5dd8af8 Topmenu fix
* Will no longer duplicate topmenu buttons (no need to destroy in the module now)
* Menu items will no longer change position when reloaded.
2013-02-01 14:47:15 +13:00
BeniS
b34cc18f98 Fix #259 2013-02-01 14:31:09 +13:00
BeniS
469df27d9b Implement #261 2013-02-01 14:21:20 +13:00
BeniS
e7012031eb Fix auto walking bug 2013-02-01 12:46:44 +13:00
Henrique Santiago
4c3c945bab Fix tooltip, minimap 2013-01-31 19:43:42 -02:00
Henrique Santiago
e370ffdb0f More changes to minimap 2013-01-31 18:34:27 -02:00
Eduardo Bart
36a60419ec Fix some issues when reloading entergame 2013-01-31 14:19:41 -02:00
Henrique Santiago
546007f1df UIImageView, fixes to minimap 2013-01-31 14:20:04 -02:00
Eduardo Bart
cb7f855fd8 Fix minimap crash 2013-01-31 13:39:56 -02:00
BeniS
859cb31f5d Fix #257 2013-02-01 01:30:36 +13:00
BeniS
de353e3b72 Should resolve #256 (please test, works for me) 2013-02-01 00:07:28 +13:00
BeniS
9e208fa792 Fix 255 also another cooldown bug:
* If you use the cooldown during the ping delay time it wouldn't init
  the cooldown again.
2013-01-31 20:31:21 +13:00
Eduardo Bart
a0b2504f11 More fixes in minimap 2013-01-31 04:15:10 -02:00
Eduardo Bart
89c012e81f Improvements in minimap drawing 2013-01-31 03:38:06 -02:00
Eduardo Bart
abcc95634e Redirect violations msgs to default channel 2013-01-31 01:11:36 -02:00
Henrique Santiago
8a2d2cd5ac Fixes to minimap 2013-01-31 01:09:56 -02:00
Eduardo Bart
654f71e75f Fix autowalk sometimes not being canceled 2013-01-31 00:50:20 -02:00
Eduardo Bart
1bf77c35c6 Fix some minor bugs in widgets events 2013-01-31 00:21:39 -02:00
Henrique Santiago
17d09f41be Rework UIMinimap 2013-01-30 23:44:57 -02:00
Henrique Santiago
ca9c33ff54 Fix getColor, add/get position 2013-01-30 19:08:53 -02:00
Eduardo Bart
da050a5630 Fix trade/use bug from previous commit 2013-01-30 18:57:37 -02:00
Eduardo Bart
5bf03c50d6 Rework hotkeys manager, fix many issues on it 2013-01-30 18:28:54 -02:00
BeniS
377c013dfe Cooldown particles! lol
* Changed some ui details in cooldown module.
2013-01-30 12:00:13 +13:00
Henrique Santiago
60986eb80f Minimap fix and remove option 2013-01-29 18:36:27 -02:00
Eduardo Bart
ff9f82d0c8 Fix other compile errors 2013-01-29 16:56:50 -02:00
Eduardo Bart
80a7ecb3a4 Speed up compilation time for luafunctions
* Other compile fixes for gcc
2013-01-29 15:27:59 -02:00
Eduardo Bart
8d6ccb8d83 Fixes to compile with clang 2013-01-29 14:35:20 -02:00
Eduardo Bart
4751941e4f Improve encrypt/decrypt algorithms 2013-01-29 11:51:15 -02:00
BeniS
f492d291eb More fixes to spell cooldown module:
* Fixed duration issues.
* Fixed referencing after destroyed issue.
* Using callbacks for progress rect now.
2013-01-30 02:01:52 +13:00
Eduardo Bart
26c6217bc3 Fix change of RSA keys 2013-01-29 10:37:15 -02:00
BeniS
ec30567d6b Some fixes to spells/cooldowns.
* Fixed 'progress' bug for spells in the cooldown module.
* Fixed a bug with GameForceFirstAutoWalkStep feature.
* Moved the spells ID to its SpellInfo row.
* Lower cased table functions (consistant).
2013-01-29 19:26:32 +13:00
Eduardo Bart
b7eef97239 Add flexibility in login packets
* It's now possible to add custom data in the login packet
* Add utility funciton to generate RSA keys
* Make the protocol able to use RSA keys with 2048 bits or more
2013-01-28 20:52:03 -02:00
Eduardo Bart
6c7a163197 Add missing file 2013-01-28 19:20:01 -02:00
Eduardo Bart
d6e8e92a45 Some fixes in hotkeys and other improvements
* Save last logged character and world instead of character name
* Make focused label always visible in character list and hotkeys
* Other fixes in hotkeys
2013-01-28 16:33:35 -02:00
BeniS
197a379933 Some minor things.
Just got back today, awesome progress ed :)
2013-01-29 00:02:44 +13:00
Eduardo Bart
773837da98 Minor changes in file type handling 2013-01-27 23:23:53 -02:00
Eduardo Bart
4536c68f00 Fix #249 2013-01-27 18:26:48 -02:00
Eduardo Bart
6966221e39 Fixes and improvements in find path 2013-01-27 16:58:44 -02:00
Henrique Santiago
2bd86d0695 Fix minimap zoom, blue name 2013-01-27 14:53:16 -02:00
Eduardo Bart
bcb3db4cdc Fix #250 2013-01-27 14:25:44 -02:00
Eduardo Bart
e81dd31ae3 New lightweight minimap format, finish #15 2013-01-27 14:06:47 -02:00
Henrique Santiago
cf0ecf418d Pt translations, small fix in console tabbar 2013-01-27 09:22:48 -02:00
Eduardo Bart
9aca1644e6 Implement rule violations, closes #218 2013-01-27 07:54:50 -02:00
Eduardo Bart
6c59124cb2 Reimplement smartwalk without events 2013-01-26 21:18:07 -02:00
Eduardo Bart
7c06a00f82 Improve logout speed via Ctrl+G 2013-01-26 20:52:37 -02:00
Eduardo Bart
9f69c71b6d Minimap navigation with Alt hotkeys 2013-01-26 20:20:26 -02:00
Eduardo Bart
4351f3c63f More improvements in walk 2013-01-26 20:12:00 -02:00
Eduardo Bart
4b1db2bcd6 Fix #235 and other changes 2013-01-26 18:40:03 -02:00
Eduardo Bart
2fd3c643c4 Rework smart walk, fix #247 2013-01-26 18:10:30 -02:00
Eduardo Bart
4f8f02acad Rework auto focus behavior, closes #222 2013-01-26 17:06:25 -02:00
Eduardo Bart
7e01306fc6 Improvements to popupmenus, fix #245 and #246 2013-01-26 16:05:34 -02:00
Eduardo Bart
835adfb4ce Fix a compile error 2013-01-26 15:17:32 -02:00
Eduardo Bart
6594b2d090 Fix #7 2013-01-26 14:54:19 -02:00
Eduardo Bart
4d0d62e364 Fix #244 2013-01-26 14:39:11 -02:00
Eduardo Bart
07959ddc04 Fix a vulnerability in password encryption
* There was an error in the encryption used to save passwords,
  now it's really harder to decrypt the password from the config file
* Other minor changes
2013-01-26 14:38:48 -02:00
Eduardo Bart
18af9a45ee Fix #166 2013-01-25 18:51:14 -02:00
Eduardo Bart
90f1244ab4 Fix #194 2013-01-25 18:28:44 -02:00
Eduardo Bart
9e4a9433ca Fix #243 2013-01-25 17:30:40 -02:00
Eduardo Bart
32c5f4285b Closes #210
* And minor adjustments
2013-01-25 17:26:51 -02:00
Henrique Santiago
c982ca81a5 Rework options visual 2013-01-25 13:33:51 -02:00
Eduardo Bart
a144174c41 Use push/pop mechanism for cursors 2013-01-25 11:47:51 -02:00
Eduardo Bart
3a47c4f2e1 Remake cursors, closes #219 and #237 2013-01-25 11:19:40 -02:00
Eduardo Bart
0a91fff82a Textedit improvements 2013-01-25 11:17:59 -02:00
Henrique Santiago
95f79b45dc Configure default hotkey, fix map release 2013-01-25 10:22:51 -02:00
Henrique Santiago
839495fa9b Another sort function for hotkeys 2013-01-25 09:36:57 -02:00
Henrique Santiago
42b05df717 Hotkeys order, minimap mark windw changes 2013-01-24 20:57:51 -02:00
Eduardo Bart
d5b4e0929f Improvements in textedit and hotkey manager
* Set textedit's cursor position to the end of text in some situations
* Send hotkey messages to the current channel instead of default channel
* Allow to overwrite sprites using otml and pngs
2013-01-24 18:36:04 -02:00
Eduardo Bart
a8fbd6cdfc Improve game map view modes 2013-01-24 17:15:07 -02:00
Eduardo Bart
5b65088426 Improve tab navigation and scrolling
* Fix with use with over creatures when you are over force use objects
* Fix textedit wrapping
2013-01-24 15:46:02 -02:00
Henrique Santiago
bc55cbbbd1 Pt translations, some helper functions 2013-01-24 14:01:28 -02:00
Henrique Santiago
c3eede9872 Changes to translations 2013-01-24 11:33:53 +00:00
Eduardo Bart
8d5cd95bc4 Update es translations, thanks @mattyx14 2013-01-24 11:11:30 -02:00
Eduardo Bart
50c2db100e Use boost::chrono instead of std::chrono 2013-01-23 19:31:14 -02:00
Eduardo Bart
d5d5e507af Update version to 0.6.0 2013-01-23 17:07:33 -02:00
Eduardo Bart
311bc220a8 Fix a warning 2013-01-23 16:55:10 -02:00
Eduardo Bart
992acd8873 Fix translations, there were all broken 2013-01-23 15:35:43 -02:00
Eduardo Bart
1674575dc0 Minor fix 2013-01-23 13:47:26 -02:00
Eduardo Bart
3f882d9e6c Disable path find debugging 2013-01-23 13:15:02 -02:00
BeniS
c7ff744dcd Fix to spin box button fit and npc trade:
* Fit spin box buttons properly
* NPC trade you can now look at items you can sell/buy
(Waiting for ed to implement a way to set item image color before its completed)
2013-01-23 22:23:28 +13:00
BeniS
a2ddb472f5 Fixed up movement controls again and fixed a typo.
* You can change direction while already moving
(There could be a better way for walking control, but this works fine for now)
2013-01-23 20:31:28 +13:00
BeniS
caf86a9fc6 Fixes! Closes #235 and more:
* Hotkeys now save by server & player rather than just player
* Added double clicking to module dialog options
* Fixed a bug in the modal dialog for > pv970 (protocol changed)
* Fixed a login bug for pv970.
WARNING: Will remove all your current hotkeys.
2013-01-23 13:15:46 +13:00
Eduardo Bart
27d5506262 Some fixes in entergame and widget clipping 2013-01-22 19:48:25 -02:00
Eduardo Bart
ca4caf7991 Fix text highlighting again 2013-01-22 18:29:18 -02:00
Eduardo Bart
dabc7548fe Fix keyword highlighting in chat 2013-01-22 18:06:48 -02:00
Eduardo Bart
fa8971498f Fix old bug #149 2013-01-22 17:28:44 -02:00
Eduardo Bart
e900a7679a Improve autowalk 2013-01-22 16:04:36 -02:00
BeniS
01e48fbcc8 More work towards autowalking (needs more work).
* Added tile minimap color override.
* Changed zoom in and out of minimap from inverted control.
2013-01-23 01:02:25 +13:00
Henrique Santiago
f470cba09e Fix compile on non window applications 2013-01-21 23:17:40 +00:00
BeniS
5a278ef4ec Few minor fixes.
* Fixed count window.
* Other small things.
2013-01-22 13:40:46 +13:00
Eduardo Bart
befe480ec3 Fixes #232 2013-01-21 20:04:52 -02:00
Eduardo Bart
71cccac3da Many changes
* IMPORTANT: dat/spr should now be placed in /data/things/
* Rename game_tibiafiles to game_things
* Make battle list algorithm much faster
* Split UITabBar into UITabBar and UIMoveableTabBar
* Fix other minor issues
2013-01-21 19:41:03 -02:00
Eduardo Bart
0729e35b50 Minor fixes 2013-01-21 14:15:36 -02:00
Henrique Santiago
2a2214991c Small changes 2013-01-21 00:40:47 +00:00
Eduardo Bart
ae731ddefc Rework minimap rendering 2013-01-20 21:17:56 -02:00
Eduardo Bart
18a37393c5 Limit path finding max complexity 2013-01-20 14:30:53 -02:00
BeniS
8c6d5a0f5c Finalizing auto walk enhancements, closes #63, also other fixes:
* Can now auto walk up to 1000 steps!
* Re-added sexy topmenu buttons :)
* Tooltip for logout/edit will now change
* Changed xxStackpos to xxStackPos
2013-01-21 05:09:14 +13:00
Eduardo Bart
c28596292f Text selection in chat
* Remove fancy stuff from background
* Improve text windows
* More improvements to textedit
2013-01-20 13:40:40 -02:00
Eduardo Bart
84dfd4f7f3 UITextEdit selection, closes #55 2013-01-20 11:38:02 -02:00
Eduardo Bart
9907e9e5c7 Fix particles and some fun in the background LOL 2013-01-19 18:24:59 -02:00
Sam
62bb91b5a6 Merge pull request #230 from edubart/otclient
Ignoremodule lowercase | German locale file
2013-01-19 10:11:38 -08:00
Samuel
e8d0996817 Ignoremodule lowercase | German locale file 2013-01-19 19:02:22 +01:00
Eduardo Bart
f389c3b3fe Widgets can now rotate :O 2013-01-19 14:44:07 -02:00
Eduardo Bart
2fcaf2cc40 Fix rotate,translate,rotate in ogl painters 2013-01-19 13:44:27 -02:00
Eduardo Bart
0f9cacdde5 Implement missing matrix operations 2013-01-19 12:21:00 -02:00
Henrique Santiago
8e9d137608 Rotate, translate and scale added to ogl2 2013-01-19 02:18:29 +00:00
Eduardo Bart
36e95b2f48 Fix minor mistake in client topmenu 2013-01-18 22:24:40 -02:00
Eduardo Bart
4f6c987d77 Fix regression in market 2013-01-18 21:29:10 -02:00
Eduardo Bart
28b5fc1d5a Refactor modules, closes #223
* All modules are sandboxed now
* All images,sounds,fonts,translations and styles were moved to "data" folder
* Reorganize image files folders
* Remove unmaintained modules: client_particles, client_shaders
* Implement new automatic way to load styles and fonts
* Add hide/show offline option in VipList
* Add invite/exclude to/from private channel in players menus
* Many other minor changes
2013-01-18 20:46:36 -02:00
Eduardo Bart
20d9176d10 Fixes #172 2013-01-18 16:49:41 -02:00
Samuel
806f543302 Premium time colored red <= 7 days #205 2013-01-18 16:48:48 +01:00
Henrique Santiago
ddaff8a46a Remove exit module, logout no longer at miniwindow side, always visible 2013-01-18 05:53:41 +00:00
BeniS
1500c1d2f2 Few minor fixes here and there:
* Fixed miniwindow cancelling (sorry Summ! :D)
* Fixed pathFind to check floor change tiles
* Fixed buying/selling stackable items in pv < 860
* Added force walk to the first step of auto walking for open tibia
2013-01-18 18:27:29 +13:00
Henrique Santiago
6ad7269e5a Fix skull blink 2013-01-17 18:57:03 +00:00
Eduardo Bart
7e52c4e449 Make otclient login into cipsoft servers again 2013-01-17 18:24:41 -02:00
Eduardo Bart
ada2c9efe9 Fix buy/sell of stackable items on 8.6 2013-01-17 16:10:55 -02:00
BeniS
b68df8336a Minor fixes to some previous commits.
* Fixed a bug with storing the protocol version.
* Fixed an issue with text windows cancelling.
* Fixed a typo in the source.
2013-01-18 03:23:01 +13:00
Eduardo Bart
cf77c2baf3 Fix text edits wrapping 2013-01-17 09:34:45 -02:00
BeniS
74ebd7f903 Finalizing #198
* Also changed the 'use with crosshair' hotkey color.
2013-01-18 00:12:17 +13:00
Eduardo Bart
95593964bb Fix audio enable/disable checkbox 2013-01-17 08:50:40 -02:00
Eduardo Bart
2fd8d4e580 Fix error in OTML casting from Lua, may fix #198 2013-01-17 08:38:44 -02:00
Eduardo Bart
8b14a91ed9 Fix save of MiniWindow positions, issue #163 2013-01-16 17:57:05 -02:00
Eduardo Bart
67c5b31225 Fix ICU linkage on ubuntu 2013-01-16 17:13:10 -02:00
Eduardo Bart
20231c1fc5 Fix ICU linkage on ubuntu 2013-01-16 17:01:02 -02:00
Eduardo Bart
773d093e68 Add missing file 2013-01-16 16:54:20 -02:00
Eduardo Bart
62cd3d04e1 Update sound engine with some sound fixes
* Refactor client module
2013-01-16 16:46:42 -02:00
Eduardo Bart
52ede065fc Make text windows stackable, fix #152 2013-01-16 16:27:02 -02:00
Eduardo Bart
a80e758e32 Improve tabs move in console chat, looks nice now 2013-01-16 15:41:12 -02:00
Eduardo Bart
2e75380218 Reimplement text edit scrolling in C++
* And update some corelib APIs
2013-01-16 14:20:17 -02:00
Eduardo Bart
a3fcf2e8e7 Fix error in FindICU cmake 2013-01-16 12:51:03 -02:00
Eduardo Bart
d2712fa218 Try to fix travis build 2013-01-16 12:42:06 -02:00
Ben Dol
4305b9e8f4 Merge pull request #197 from Quintinon/master
Fix for Issue #188 - Battle list ordering
2013-01-13 19:35:44 -08:00
Jeffrey
47d5e1d5e6 Fix for battle list sorting
All creatures were being removed and re-added, only add ones we don't
have, and then remove ones we shouldn't have.
2013-01-13 20:02:00 -06:00
Jeffrey
709fdb9e38 Merge branch 'master' of https://github.com/Quintinon/otclient
Conflicts:
	modules/game_console/console.lua
2013-01-12 12:33:45 -06:00
BeniS
913cc801b6 Few minor fixes:
* Fix to tab margins when a tab is closed
* Changed the life bar colors of UICreatureButtons
* Added onDeath to Creatures class
2013-01-13 00:41:27 +13:00
BeniS
1b6be92cad Minor fix to previous commit and added mouse scroll option to UIScrollBar class. 2013-01-11 20:10:37 +13:00
BeniS
914b4bd5f3 Applied #189
* There was a bug in OTML saving hotkeys per player because of the way they are storing children and not a straight value. Perhaps you want to look at it ed.
Note: Your hotkeys will reset in this revision.
2013-01-11 17:03:48 +13:00
Henrique Santiago
adba4b0da9 Refix items on UIItem, cancel button to hotkeys 2013-01-10 16:45:35 -02:00
BeniS
00a574fe10 Fixed #178, and some others:
* Fixed a small issue in the ignore module (also please remember to use 2 spaces for tabulation and not tabs)
* Changed the order of count window buttons
* Added new player functions.
2013-01-11 06:25:32 +13:00
Jeffrey
57dc7d20b6 Fix for Ignore Private ignoring NPCs
Ignore Private message setting was ignoring NPC chat in the NPC window.
2013-01-10 07:46:32 -06:00
Ben Dol
d70b835464 Merge pull request #187 from Quintinon/master
Minor Fixes and Ignore/Unignore options in right click menus
2013-01-09 20:19:39 -08:00
Jeffrey
c43a97395a Fixed a Typo
Function name was misspelled
2013-01-09 21:46:30 -06:00
Jeffrey
c6ab6bc484 Ignore/Unignore options in right click menus
Added both Ignore and Unignore options in the right click menu for the
Game Window (which also added it for the Battle list), and in the right
click menu for the console (chat window).
2013-01-09 21:20:26 -06:00
Jeffrey
8de7873635 Fix spacing in NPC Trade Windows
Adjusted Text offset of the NPCItemBox for the NPC Trade Window so that
the text is no longer partially hidden behind the item.
2013-01-09 20:40:16 -06:00
Jeffrey
b72c1d2921 Fix whitespace
Forgot to replace tabs with spaces
2013-01-09 20:35:05 -06:00
Jeffrey
74d3214f74 Fix Ignore Module warning
Ignore list label was destroyed when removed, giving a warning when
closing the Ignore Window.
2013-01-09 20:33:05 -06:00
Samuel
59594b4ac2 Fix Ignore Module / NPC highlighting
Edu removed the spacer character.
Don't know if it was intentional or not, I will just add it here again.
2013-01-09 23:54:57 +01:00
Samuel
1784bd9f26 Ignore Window in Console / Fixes
Ignore List:
- Ignore Private Messages
- Ignore Yelling
- Ignore added Players fully

Fixes:
- Fixed cutoff text in spelllist module
- You cannot open a private chat channel with yourself now
2013-01-09 23:03:04 +01:00
Eduardo Bart
cce2976156 Many enhancements in client API
* Fix issues in item use
* Stack animated texts values
* Add utility functions for changing creature color and jumping
* Add some new extended functionality
* Improve map shader API
2013-01-09 17:29:58 -02:00
Eduardo Bart
aeb31f0669 Fix boost locale linkage 2013-01-09 14:57:34 -02:00
Ben Dol
a8c9adb052 Merge pull request #184 from Quintinon/master
Fix for Issue #162 - NPCs Trade window showing Sell items correctly
2013-01-09 00:51:54 -08:00
Jeffrey
607a6a13bc Fix Sell tab of NPC Trade
If an item had both a sell and buy price, it was only being added to the
buy list.
2013-01-08 23:26:56 -06:00
Eduardo Bart
0120b7554c Restore support for animated png files
* Rework resource manager
* Add missing files
* Improve some graphics classes
2013-01-08 19:31:41 -02:00
Eduardo Bart
fdcad184f9 Fix platform issues regarding charsets
* IMPORTANT: A new dependency is required, boost_locale, comes with boost 1.50.0 or later
* Copying and pasting special characters should now work
* Running otclient from filepaths with special characters should work now too
2013-01-08 18:45:27 -02:00
Eduardo Bart
b52c52cd36 Fix possible crashs when using server class 2013-01-08 18:05:24 -02:00
Eduardo Bart
5344a179a4 Many UI improvements and minor fixes 2013-01-08 18:01:47 -02:00
Eduardo Bart
a8d3bb97ea Minor changes in sql classes 2013-01-08 17:44:05 -02:00
Eduardo Bart
9d5abb0243 Fix minor issues in item drawing
* Add some utilities functions
2013-01-08 17:40:25 -02:00
Eduardo Bart
122577a916 Just rename some files
* Fix a server ping issue
2013-01-08 16:32:05 -02:00
BeniS
8d07f8eaf6 New sexy 'move stackable item' window! 2013-01-09 06:59:03 +13:00
BeniS
a1a8d28f5c Auto walker update must be done from C++ not lua due to bot protection.
* Moved the auto walk checker to the source.
* Implemented a temporary fix for findPath method (will now choose other tiles over null tiles).
2013-01-09 04:32:37 +13:00
Ben Dol
493202afcf Merge pull request #176 from Quintinon/master
Minor Tweaks to UI and Fixed an error in NPC Trade
2013-01-08 03:47:38 -08:00
Jeffrey
52f0b21ea6 Fixed error in the NPC Trade system error message
item[1] was user data, so the error message now prints out the item
name.
2013-01-08 00:30:33 -06:00
Jeffrey
a1f5a88fe7 Minor Edits to UIMiniWindow
Allow for a double click on the Top Bar of a UIMiniWindow to function
the same as pessing the minimize/maximize button.
2013-01-07 23:09:00 -06:00
Jeffrey
9610106088 Merge remote-tracking branch 'upstream/master'
Conflicts:
	modules/game_viplist/viplist.lua
2013-01-07 21:23:14 -06:00
BeniS
702fce0be8 Fixed #169 Thanks Quintinon and #170! Also some other fixes:
* Fixed calling local in an if statement where it is not required (lol).
* Fixed an issue with the auto walk checker.
2013-01-08 15:55:41 +13:00
Jeffrey
5921c8e420 Fixed Exit button not being created
It will now show/hide appropriately instead of not being created and
thus throwing errors.
2013-01-07 20:22:32 -06:00
Jeffrey
4c0c6e635e Fix Vip List sorting
Fixes Vip list sorting issues for both alphabetical sorting and
online/offline sorting. Fixes Issue #169
Tested in 8.61
2013-01-07 19:38:23 -06:00
BeniS
3ed2eeb104 Oops fixing this from last commit. 2013-01-08 06:17:58 +13:00
BeniS
bb139955dc More fixes and edits!
* Fixed a bug with client_exit module button appearing on full reload.
* Fixed the battle window to work properly now (left click: attack, right click: menu).
* Added auto walk checker for more accurate aut walking:
  - It will always find the path now, except in rare occasions gets stuck running back and forward
  - Re-calculates path every 10 steps and also when you hit an object that cancels your step.
  - Right now this is just a temporary method.
  - Cancels the checker when you move or press escape (has to be done client-side).
* Added a new setting to UIComboBox class 'mouse-scroll' to enable/disable mouse wheel scrolling.
* Added support for no ping in cooldowns.
* Added missing PlayerStates (hungry and bleeding).
2013-01-08 06:17:01 +13:00
BeniS
fddbafebd3 Fixed #165, Fine tune fixes!
* Fixed an issue with the cooldown timing.
* Fixed issue with 'right click' using items under players.
* Some changes to the minimap control (ctrl + mouse wheel to
  change floors and tweaked the zoom/move speeds).
* Fixed some bugs in the trade module.
* Added new Spells table for spell related functions
  (Also added getSpellByName and getSpellByWords).
* Fixed an issue with follow/attack cancelling (wasn't calling
  onFollowChanged for updates in battle, etc).
2013-01-07 04:04:49 +13:00
BeniS
3fa5993177 Changed scrollbar style, and some other changes:
* Changed the scrollbar style to look a bit nicer.
* Fixed a typo in the EventDispatcher class.
* Added PlayerStates to player.lua.
* Minor tweak to console tab spacing.
* Add unbinding key 'Ctrl+Shift+D' in the options.
2013-01-05 20:57:31 +13:00
BeniS
ca46b5033e More progress on cipserver login for pv973 and a few fixes.
* Fixed the "options" module hotkey (changed boost walker to Ctrl+Shift+D).
* Fixed a small issue with UIMiniWindow:setup() function (was setting parent before its pos).
* Pic signature has changed for cipsoft client.
* Fixed 'client type' byte position in the login packet.
* Changed the ping function to execute every 4 seconds rather than 2.
* Changed some protocolgame for pv973 support.
2013-01-04 11:42:02 +13:00
BeniS
c47641d7e1 Merge branch 'master' of https://github.com/edubart/otclient 2013-01-03 21:25:00 +13:00
BeniS
fc55c6b524 Interface edits, additions, and fixes:
* Added a new module for exiting the client (client_exit).
* Added tab spacing to the UITabBar class.
* Added tab popup menus for things like channel tabs.
* Impelemented channel tab popup menus (still need to be finished).
* Fixed UITabBar tab draging (will now change after dragged half way over the
  next tab, not 2 pixels).
* Fixes to the client_options module.
* Edited some UI settings.
* Changed game_cooldown and game_spelllist menu button icons.
* Fixed some typos.
2013-01-03 21:24:07 +13:00
Henrique Santiago
2aeec22ef8 Fix items draw inside uiitem 2013-01-03 04:24:07 -02:00
BeniS
644241badb Fixed issue #160 and an issue with entergame module. 2013-01-01 05:34:15 +13:00
BeniS
8cdab5c814 Tested and fixed #155
* Also fixed a typo in the game_tibiafiles module.
2012-12-31 00:32:09 +13:00
BeniS
fcdf2286b6 Fix issue #155 (only tested on pv973)
Please let me know if pv870+ works now.
Note:
 * pv = protocol version,
 * cv = client version
For people wondering.
2012-12-30 20:53:24 +13:00
BeniS
abf0ee4303 More walk control optimization and fixes:
* Finished off the walking control optimization! (Should be smooth controlling now).
* Fixed issue #151
* Fixed an issue with the character list.
* Fixed a bug in the g_keyboard.isKeySetPressed function.
2012-12-30 19:14:49 +13:00
BeniS
1782de7336 Game control precision edits and many other fixes:
* Updated the walking(mouse/keys) control to be a lot more responsive/smooth!
* Updated creature diagonal steps to animate faster (due to demand).
* Added a warning popup for boost walker option in cipsoft servers.
* Added KeyUp event controls in the g_keyboard class.
* Fixed an issue with the minimap not reconfiguring.
* Fixed a bug with creature lights drawing properly.
* Fixed refreshContainer method.
* Some layout edits.
* Some minor typo fixes.

TODO:
* Add walk event stack.
* Test new walking edits extensively.
* Finish pending state feature.
2012-12-30 06:41:14 +13:00
BeniS
8961f4dfd4 Some fixes and design tweaks:
* Fixed the game_viplist module to work with the latest vip protocols.
* Fixed a referencing error in the game_cooldown module
* Started editing the design of the popupmenu (needs more work).
2012-12-29 05:15:57 +13:00
BeniS
034c768994 Compatibility fix to cv981 new speed law.
* Also a minor fix to setting client version.
2012-12-29 02:34:36 +13:00
BeniS
44e428bccb Progress updating to cv981/pv973:
* Implemented the new client AND protocol version methods.
* Implemented the new speed laws added in cv980 (http://www.tibia.com/news/?subtopic=newsarchive&id=2251).
* Added more missing bytea to login packets (client version/type and some unknown bytes).
* Fixed the InputMessage::getDouble method.
* Cleaned up some of the const values.
* Started on the pending state features.

TODO:
* Pending game state feature.
* Ensure version compatibility hasn't been compromised.
2012-12-29 00:05:45 +13:00
BeniS
619285069c Started updating to 9.8+ features, not yet finished (unsafe version).
Need to finish:
* Pending login state
* New creature speed changes
* Vip state displays

Fixed:
* Creature light
* Missing lua constants

If someone can finish this off that would be good,
I will be busy for a while :)
2012-12-27 02:56:06 +13:00
Samuel
a86449dea9 Fix to minimap navigating
Navigating now uses left mouse button (right mouse button for map mark
menu)
2012-12-15 13:26:27 +01:00
Eduardo Bart
ec8d50497b Fix http://otland.net/f494/otclient-error-171679/ 2012-12-08 16:14:10 -02:00
Eduardo Bart
7c48a98b67 Minor fixes
* Fix auto openning channels with id 0 (guild chats)
* Minor fix in print
* Fix use of items behind creatures with classic control
* Fix teleports of 1sqm
2012-12-08 16:08:54 -02:00
Eduardo Bart
5de031fb8b Workaround for issue #146 2012-12-03 21:26:58 -02:00
Eduardo Bart
f5b3bfda11 Lights minor fixes 2012-12-03 21:18:39 -02:00
BeniS
dc6d2bb078 8bit color shouldn't be higher than 216, by mistake. 2012-12-03 16:47:21 +13:00
BeniS
617e6b302b Fix for creature lights.
* Will now load the dat values for creature lights (ed if you know a more conventional way for this please let me know).
* No need to draw light for the outfit the creature draw will handle it.
Note: not sure if the from8bit method should limit at 256 or not, but tibia dat contains colors 216+.
2012-12-03 13:17:41 +13:00
Eduardo Bart
b806b57628 Fix issue #143 2012-12-01 20:15:22 -02:00
Eduardo Bart
6d6f600c44 Fix creatures light 2012-12-01 14:04:10 -02:00
Eduardo Bart
ce6423320e Add ambient light in graphics options 2012-11-30 14:47:53 -02:00
Eduardo Bart
5fed08b17e Bind functions for minimum ambient light 2012-11-30 14:31:19 -02:00
Eduardo Bart
f851bb7777 Minor fixes in lights 2012-11-30 09:03:42 -02:00
Eduardo Bart
6e154f6b2c Lights now are looking really good
* Draw lights beneath holes
* Improve light particle
* Light intensityvaries inversely with the square of the distance
* Local player always have a minimum light in complete darkness
* Creature names are behind lights now
2012-11-29 19:38:39 -02:00
Eduardo Bart
d7a45311ed Fix issue #145, #29 and #39 2012-11-29 00:52:10 -02:00
Eduardo Bart
81068f820d Implement lights, thanks @Tarjei400
Now otclient have lights! This code was originally made
by @Tarjei400, I have improved it and merged into otclient
master. Many thanks for tarjei for the contribution.

Warning, this still experimental, fixes may come in the next days.
2012-11-28 23:47:36 -02:00
Samuel
eb979ef7cd Modal Dialogs / Support for 9.70
OTC now supports showing and answering modal dialogs.

addDialog(modaldialog, dialogId, cid, callback)

TODO:
-find out what the "popup" value does.. (Maybe someone knows)
2012-11-27 14:48:48 +01:00
Eduardo Bart
bce8e90ede Next version will be 0.5.6 2012-10-24 19:07:52 -02:00
Eduardo Bart
d4370e7c5d Fix issue #127 2012-10-24 18:51:57 -02:00
Eduardo Bart
8bb115d6d4 Fix issue #134 2012-10-24 18:03:15 -02:00
Eduardo Bart
c7890e7a49 Fix issue #124 2012-10-23 18:16:14 -02:00
Eduardo Bart
a6424f3022 Fix issue #118 2012-10-23 17:32:04 -02:00
Eduardo Bart
7114946278 Fix issue #112 2012-10-23 17:15:59 -02:00
Eduardo Bart
5f72488eba Fix issue #121 2012-10-23 17:09:39 -02:00
Eduardo Bart
6acdb0fd64 Fix issue #132 2012-10-23 16:00:12 -02:00
Samuel
7f864003d8 Converted cooldownbar to miniwindow 2012-10-13 21:33:04 +02:00
Samuel
053d29a64b Finishing Minimap Icons
Added rightclick menues:
- on map mark: 'Delete Mark'
- on minimap: 'Create Mark'

Dialog:
http://i.imgur.com/BY33k.png
2012-10-12 01:42:10 +02:00
Samuel
3990ee76e7 Minimap Icons
Now server can call:
doPlayerAddMapMark(cid, pos, icon, description)
and it will be parsed.

TODO:
Adding map icons by rightclick on minimap menu.
Removing icons.

Needs to be tested when switching between different versions.
2012-10-11 17:36:00 +02:00
Samuel
f48fb4343f Moveable Tabbars, Stretch/Shrink Fix
Added key 'moveable' to tabbars
(tabbars are ordered with margins now, not with anchors to the previous
widget)

If stretching is forbidden by options the mapPanel will now update when
the window is resized
2012-10-10 22:20:32 +02:00
Samuel
478e796dbd Option: Don't Stretch/Shrink Game Window
Sets gameMapPanel to size 480 x 352
Prevents resizing.
2012-10-10 01:25:50 +02:00
Samuel
95e46dbbaf Fix: Multiline npc messages
- Multiline npc messages with curly braces will now display correctly
- Curly braces are no longer shown in screen
- Removed some tabs  in spellsystem :S My bad ..

TODO: Hightlight text in screen area not only in console?
2012-10-09 20:34:39 +02:00
Samuel
c0a3b083f6 Fix loading, style, tooltip 2012-10-09 03:43:52 +02:00
Eduardo Bart
ba407072a5 Merge https://github.com/TheSumm/otclient 2012-10-08 22:00:53 -03:00
Samuel
286a0fea58 Update to cooldown panel
- Removed cooldowns from game interface
- Using UIProgressRect
2012-10-09 02:46:23 +02:00
TheSumm
adc89f132f Merge pull request #116 from TheSumm/spellSystem
Spell Cooldowns for 8.70+
2012-10-08 12:50:10 -07:00
Samuel
01993c133d Merge branch 'master' of https://github.com/TheSumm/otclient 2012-10-08 21:45:03 +02:00
otfallen
5227a65d74 The smallest change of 2012 2012-10-08 21:41:26 +02:00
Samuel
af6a32263c Spell Cooldowns for 8.70+
- Moved SpelllistSettings to spells.lua
- Added cooldownbar for 8.70+
2012-10-08 21:32:25 +02:00
TheSumm
efdfb0e946 Merge pull request #115 from TheSumm/spellSystem
Custom spell support & tweaks
2012-10-07 21:59:45 -07:00
Samuel
b4642f9038 Custom spell support & tweaks
- Description available
- Easy setup for custom spells
- Sample custom spells
2012-10-08 06:51:25 +02:00
otfallen
f26b359ae5 The smallest change of 2012 2012-10-08 01:04:14 +00:00
Eduardo Bart
ec8a9eddf2 Next version will be 0.5.5 2012-10-07 15:37:57 -03:00
784 changed files with 23533 additions and 9259 deletions

73
.gitignore vendored
View File

@@ -35,3 +35,76 @@ otclient.map
otclient.layout
LOCALTODO
tags
Thumbs.db
.directory
src/framework/graphics/dx/
modules/.project/modules.sublime-workspace
#################
## Visual Studio
#################
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

View File

@@ -2,7 +2,7 @@ language: cpp
compiler:
- gcc
before_script:
- sudo apt-get install libboost-all-dev libphysfs-dev libssl-dev liblua5.1-dev libglew1.6-dev libvorbis-dev libopenal-dev libz-dev
- sudo apt-get install libboost1.48-all-dev libphysfs-dev libssl-dev liblua5.1-dev libglew1.6-dev libvorbis-dev libopenal-dev libz-dev -y
script: |
cmake . -DCMAKE_BUILD_TYPE=Release
make

View File

@@ -1,18 +1,21 @@
cmake_minimum_required(VERSION 2.6)
project(otclient)
set(VERSION "0.5.4")
set(VERSION "0.6.4")
option(FRAMEWORK_SOUND "Use SOUND " ON)
option(FRAMEWORK_GRAPHICS "Use GRAPHICS " ON)
option(FRAMEWORK_XML "Use XML " ON)
option(FRAMEWORK_NET "Use NET " ON)
option(FRAMEWORK_SQL "Use SQL" OFF)
set(FRAMEWORK_SOUND ON)
set(FRAMEWORK_GRAPHICS ON)
set(FRAMEWORK_XML ON)
set(FRAMEWORK_NET ON)
#set(FRAMEWORK_GIT ON)
include(src/framework/CMakeLists.txt)
include(src/otclient/CMakeLists.txt)
include(src/client/CMakeLists.txt)
# functions map for reading backtraces
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,-Map=otclient.map")
if(NOT APPLE)
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,-Map=${PROJECT_NAME}.map")
endif()
option(USE_PCH "Use precompiled header (speed up compile)" OFF)
@@ -32,25 +35,25 @@ endif()
add_definitions(-D"VERSION=\\"${VERSION}\\"")
# add otclient executable
add_executable(otclient ${framework_SOURCES} ${otclient_SOURCES} ${executable_SOURCES})
# add client executable
add_executable(${PROJECT_NAME} ${framework_SOURCES} ${client_SOURCES} ${executable_SOURCES})
# target link libraries
target_link_libraries(otclient ${framework_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${framework_LIBRARIES})
if(USE_PCH)
include(cotire)
cotire(otclient)
cotire(${PROJECT_NAME})
message(STATUS "Use precompiled header: ON")
else()
message(STATUS "Use precompiled header: OFF")
endif()
# installation
set(DATA_INSTALL_DIR share/otclient)
install(TARGETS otclient RUNTIME DESTINATION bin)
install(FILES README.md BUGS LICENSE AUTHORS init.lua otclientrc.lua DESTINATION ${DATA_INSTALL_DIR})
install(DIRECTORY modules DESTINATION ${DATA_INSTALL_DIR} PATTERN ".git" EXCLUDE)
set(DATA_INSTALL_DIR share/${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
install(FILES README.md BUGS LICENSE AUTHORS init.lua ${PROJECT_NAME}rc.lua DESTINATION ${DATA_INSTALL_DIR})
install(DIRECTORY data modules DESTINATION ${DATA_INSTALL_DIR} PATTERN ".git" EXCLUDE)
# add "make run"
add_custom_target(run COMMAND otclient DEPENDS otclient WORKING_DIRECTORY ${CMAKE_PROJECT_DIR})
add_custom_target(run COMMAND ${PROJECT_NAME} DEPENDS ${PROJECT_NAME} WORKING_DIRECTORY ${CMAKE_PROJECT_DIR})

13
data/cursors/cursors.otml Normal file
View File

@@ -0,0 +1,13 @@
Cursors
target:
image: targetcursor
hot-spot: 9 9
horizontal:
image: horizontalcursor
hot-spot: 9 4
vertical:
image: verticalcursor
hot-spot: 4 9
text:
image: textcursor
hot-spot: 4 9

View File

Before

Width:  |  Height:  |  Size: 230 B

After

Width:  |  Height:  |  Size: 230 B

View File

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 266 B

View File

Before

Width:  |  Height:  |  Size: 198 B

After

Width:  |  Height:  |  Size: 198 B

View File

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 238 B

View File

@@ -0,0 +1,6 @@
Font
name: sans-bold-16px
texture: sans-bold-16px_cp1252
height: 20
glyph-size: 24 24
space-width: 3

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,8 @@
Font
name: terminus-10px
texture: terminus-10px
height: 12
y-offset: 0
glyph-size: 16 16
fixed-glyph-width: 6
space-width: 6

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@@ -1,6 +1,6 @@
Font
name: terminus-14px-bold
texture: terminus-14px-bold.png
texture: terminus-14px-bold
height: 16
y-offset: 2
glyph-size: 16 16

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -1,6 +1,7 @@
Font
name: verdana-11px-antialised
texture: verdana-11px-antialised_cp1252.png
texture: verdana-11px-antialised_cp1252
height: 14
glyph-size: 16 16
space-width: 4
default: true

View File

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@@ -1,6 +1,6 @@
Font
name: verdana-11px-monochrome
texture: verdana-11px-monochrome_cp1252.png
texture: verdana-11px-monochrome_cp1252
height: 14
glyph-size: 16 16
space-width: 3

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -1,6 +1,6 @@
Font
name: verdana-11px-rounded
texture: verdana-11px-rounded_cp1252.png
texture: verdana-11px-rounded_cp1252
height: 16
glyph-size: 16 16
y-offset: -2

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

BIN
data/images/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

Before

Width:  |  Height:  |  Size: 518 B

After

Width:  |  Height:  |  Size: 518 B

BIN
data/images/flags/de.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
data/images/flags/en.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
data/images/flags/es.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
data/images/flags/pl.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
data/images/flags/pt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
data/images/flags/sv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 245 B

View File

Before

Width:  |  Height:  |  Size: 669 B

After

Width:  |  Height:  |  Size: 669 B

View File

Before

Width:  |  Height:  |  Size: 300 B

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

View File

Before

Width:  |  Height:  |  Size: 271 B

After

Width:  |  Height:  |  Size: 271 B

View File

Before

Width:  |  Height:  |  Size: 285 B

After

Width:  |  Height:  |  Size: 285 B

View File

Before

Width:  |  Height:  |  Size: 255 B

After

Width:  |  Height:  |  Size: 255 B

View File

Before

Width:  |  Height:  |  Size: 255 B

After

Width:  |  Height:  |  Size: 255 B

View File

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

View File

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 385 B

View File

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

View File

Before

Width:  |  Height:  |  Size: 386 B

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 836 B

After

Width:  |  Height:  |  Size: 836 B

View File

Before

Width:  |  Height:  |  Size: 819 B

After

Width:  |  Height:  |  Size: 819 B

View File

Before

Width:  |  Height:  |  Size: 352 B

After

Width:  |  Height:  |  Size: 352 B

View File

Before

Width:  |  Height:  |  Size: 522 B

After

Width:  |  Height:  |  Size: 522 B

View File

Before

Width:  |  Height:  |  Size: 516 B

After

Width:  |  Height:  |  Size: 516 B

View File

Before

Width:  |  Height:  |  Size: 404 B

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

View File

Before

Width:  |  Height:  |  Size: 377 B

After

Width:  |  Height:  |  Size: 377 B

View File

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 512 B

View File

Before

Width:  |  Height:  |  Size: 494 B

After

Width:  |  Height:  |  Size: 494 B

View File

Before

Width:  |  Height:  |  Size: 407 B

After

Width:  |  Height:  |  Size: 407 B

View File

Before

Width:  |  Height:  |  Size: 482 B

After

Width:  |  Height:  |  Size: 482 B

View File

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

View File

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

View File

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 421 B

View File

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 437 B

View File

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 437 B

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Some files were not shown because too many files have changed in this diff Show More