BenDol
ef7f94ac76
Some minor changes/additions.
10 years ago
BenDol
3343919c92
Added GameEnhancedAnimations to lua
10 years ago
BenDol
4eb7668922
Can now login to official tibia servers.
10 years ago
BenDol
1f272b7aba
Added preview state packet.
10 years ago
BenDol
09d830d02e
Fix build error
10 years ago
BenDol
d7429c201c
Started 1050 implementation and fix ups:
...
* Dat now loads (new animations aren't yet functional).
* Fixed the way we reference client versions.
TODO: Write new animation functionality & find out protocol changes.
10 years ago
Sam
fe585d27d8
Cleanup dat loading, fix version 8.6+
10 years ago
Sam
153cf3e859
Container fix
10 years ago
Sam
6b46370d1a
7.4 .dat support, playing an actual server might not work yet
10 years ago
Sam
2a57a5f7d0
Browse field, locked & paginated container support
10 years ago
BenDol
9e0ddb08e3
More debug prints and avoid null pointer.
10 years ago
BenDol
0f362f80e3
Added easy menu hooking, fixed terminal default size/pos & more:
...
* Added autowalk style option to Minimap style.
* Added onCreate for setting up variables before styling is applied etc.
10 years ago
BenDol
07ac5c27ca
Added some missing lua functions.
10 years ago
BenDol
9f7aafac0b
Fix a crash issue when attempting to draw invalid item.
...
This can happen when using UIItem as interfaces etc.
10 years ago
djayk1
8fccc1eb63
Little fix
10 years ago
djayk1
10438c21ff
Update game.cpp
10 years ago
djayk1
ec99d35cee
Update game.cpp
10 years ago
djayk1
85fe5867f3
Update protocolgameparse.cpp
10 years ago
djayk1
1a77473e13
Update const.h
10 years ago
djayk1
cc483fba5a
Update game.cpp
10 years ago
djayk1
94686d3fe8
Update protocolgameparse.cpp
10 years ago
djayk1
468ac9cbd2
Update game.cpp
10 years ago
BenDol
2df51622ba
Some improvements to some things.
10 years ago
BenDol
0ad45d6826
Added 2 global functions for Position & g_map.getTiles().
10 years ago
Henrique Santiago
72b3403728
Fix filestream read
10 years ago
Nail
25fb3113fa
Fix calculate patterns.
10 years ago
BenDol
24acf8855f
Now possible to create effects and missiles via lua.
10 years ago
BenDol
65d556ef4e
Fixed issue with isAttacking and isFollowing on older protocols.
...
Some protocols don't send a cancel attack/follow packet to the client when a creature dies.
10 years ago
BenDol
45b41b88bd
Merge branch 'master' of https://github.com/edubart/otclient
10 years ago
BenDol
1baad726ae
Just use g_configs.unload(config) to unload config files.
...
Avoids concurrent modification errors.
10 years ago
Nail
8dec9cd835
Fix alpha at color key.
10 years ago
Nail
41b2f9b911
Per-pixel transparency.
10 years ago
BenDol
a02c091376
Fix stop crashing with UIWidget::moveChildToIndex.
10 years ago
BenDol
01e6169cfb
Fix to setText method.
10 years ago
BenDol
1074b6b787
Provide the option to suppress lua call in setText
10 years ago
BenDol
3ce37dacbd
Removed onUnload from corelib and added more lua bindings for resources.
10 years ago
BenDol
166eb7614f
Fix accidental cmake changes.
10 years ago
BenDol
8b3f3b11f0
Can now unload a Config by config:unload()
10 years ago
BenDol
2d84fae2c8
Can now create new configs on the fly using: local config = g_configs.create(file)
10 years ago
BenDol
5204e3ac03
Proper termination and initialization of the ConfigManager.
10 years ago
BenDol
547b18db9a
Update copyright for 2014
10 years ago
BenDol
37f9d3e200
Fix building issues.
10 years ago
BenDol
b295053662
Finished stable implementation (as far as tested), still requires more testing.
10 years ago
BenDol
61059e66ec
Started implementing ability to load custom config files (currently unstable).
...
Feel free to help out with this if you like :)
10 years ago
Shawak
d20c263912
Ability to get buffer from inputmessage
10 years ago
Shawak
07e40afa3d
Ability to get buffer from inputmessage
10 years ago
Shawak
8179915e06
Ability to get buffer from inputmessage
10 years ago
Sam
a58a3e90c8
Implement purse slot ( closes #208 ), add version 10.37 (could not find protocol changes)
10 years ago
Sam
8d8f32b081
Partial 10.36 support, also fix #499
10 years ago
Sam
9d866a3616
Merge pull request #501 from conde2/master
...
Fix protocol erros and try to fix walk delay
10 years ago
conde2
0fbba70003
Fix protocol erros and try to fix walk delay
...
Not implemented CreaturesType, just fixed the protocol error reported in
#493 , also try to fix #499 and #461
10 years ago
Henrique Santiago
598a7edf6b
Merge pull request #497 from Faith2531/patch-1
...
Update game.cpp
10 years ago
Sam
b415b73b4a
Fix creature marks. Thanks to @dalkon
10 years ago
Faith2531
b6d8ede854
Update game.cpp
...
changed max supported protocol to 10.35
10 years ago
conde2
d080432e14
Support for newer versions and light draw fix
...
Avoid drawing light under covered tiles.
10 years ago
LordHepipud
82a5989f5c
Fix Tile::getTopLookThing()
...
Fixing an issue which returned splash items instead of real usable items.
In case a blood splash is inside an open door, you are unable to close it. This patch will ignore splash items and return the real usable item correctly.
~~~~Lord Hepipud~~~~
10 years ago
Eduardo Bart
bb514d3acb
Optimize path finding upto 100x performance again
10 years ago
Henrique Santiago
b7b8fdfd0c
Fix BinaryTree skip, small otb changes
10 years ago
Eduardo Bart
57a330e589
Fix path finding issue introduced by PR #470
10 years ago
Ahmed Samy
96f3bcb42b
Merge https://github.com/shirayukikitsune/otclient
...
* https://github.com/shirayukikitsune/otclient :
And do not delete curly brackets.
Meh, spacing.
Even more fixes
Optimizations in Map::findPath
More fixes in Map::findPath
Fixes heap corruption in Map::findPath
10 years ago
Ahmed Samy
c8b4566194
TextEdit: If cursor pos reaches end, move to start, and the opposite
10 years ago
sakagushi
f0fbd4790f
And do not delete curly brackets.
10 years ago
sakagushi
cb1f28a3a3
Meh, spacing.
10 years ago
sakagushi
cc1e3c534e
Even more fixes
...
Forgot to clean the garbage generated in the last commit.
10 years ago
sakagushi
f4f79f47bd
Optimizations in Map::findPath
10 years ago
sakagushi
ff617c3fab
More fixes in Map::findPath
...
Fixed the styling, std::unique and removed the priority_queue comment
10 years ago
sakagushi
43524a9127
Fixes heap corruption in Map::findPath
10 years ago
Sam
48ff67dc06
Fix useWith issue
10 years ago
Sam
8bd154b604
Merge pull request #452 from conde2/master
...
Temporary fix for async
10 years ago
conde2
9da018fdff
Temporary fix for async
...
This should be fixed in server side, until that we just don't need to
use.
10 years ago
Sam
4f4788c1c3
Fix WritableDate to correct version (at least I hope so), fixes #446
10 years ago
Sam
d0d8c9a081
Bind adjustments, some fixes
10 years ago
Henrique Santiago
f3b5adbf40
Merge pull request #447 from conde2/master
...
Fix compilation under MSVC, bind some fucntions
10 years ago
Sam
38c9b6b0b2
Luacasts for Light
10 years ago
conde2
79be0eca73
Fix compilation under MSVC, bind some fucntions
10 years ago
Sam
9bd02ca8ba
Added method to export a ThingType as png :exportImage(fileName)
10 years ago
Sam
f12ecd8404
Implemented a function to save .dat file
10 years ago
Sam
53803b2218
Implemented a function to save .spr file
10 years ago
Sam
67c2453c82
savePNG method for Image
10 years ago
Sam
455000c02d
Fix save_png definition / New UISprite function
10 years ago
Sam
27ae54d7d6
Lua call for loading .spr, .dat, .otb
10 years ago
Sam
aec577a4b4
Merge pull request #442 from d33tah/master
...
Get rid of trailing whitespace.
10 years ago
Ahmed Samy
6f467d5a1b
Sort town/house names
10 years ago
Jacek Wielemborek
e6c9e78935
Get rid of trailing whitespace.
...
Commit generated by command:
find -type f ! -path '*.git*' ! -path '*.png' ! -path '*.ico' ! -path \
'*.ogg' | xargs -I '{}' sed -i '{}' -e 's/\t*$//g' -e 's/ *$//g'
10 years ago
Sam
3750a85c5f
Fix for version 8.40
10 years ago
Sam
03de13d618
Duplicate lua function removed
10 years ago
Sam
20b68c6a42
Vip functionality, closes #83
10 years ago
Ahmed Samy
e4ba805e00
deleteSpawn()
11 years ago
Ahmed Samy
93be0f975f
getCreatures / getSpawns
11 years ago
Sam
cbfeef39bc
Effects now use x and y pattern, fixes #433
11 years ago
Sam
d7dfa2220e
GMAction fix
11 years ago
Ahmed Samy
edf17a44ca
Code cleanup
11 years ago
Sam
6db2458c1d
Adding 10.31 to version list
11 years ago
Ahmed Samy
2556bfcbf2
Tab -> space
11 years ago
Ahmed Samy
9bdce800d8
Bind Container item code to lua
11 years ago
Ahmed Samy
9adab5f9bf
Item serialization: Write description & text
11 years ago
Ahmed Samy
a6f998d406
Fix typo & bind ItemType::isWritable
11 years ago
Ahmed Samy
ab21558c47
Do not test for TILESTATE_NONE
...
This flag is ALWAYS set, cause it's always 0 i put there by mistake.
It causes an issue by simplying drawing everything dark, cause of
the opacity...
11 years ago
Sam
17c4d59b15
Enabling versions 7.8 to 8.0
11 years ago
Sam
da959aca28
Support for protocol 7.7/7.72 / Tiny fix
11 years ago
Ahmed Samy
6745bff132
Introduce g_resources.getDirectoryFiles
...
This can recursively find files in a directory that's not in physfs search
path, this is needed for mapeditor needs, esp the file browser.
We do not want to limit users to the application run directory
so we have to use this.
This function uses boost filesystem.
Prototype:
g_resources.getDirectoryFiles(directory STRING, filenameOnly BOOL,
recursive BOOL)
filenameOnly is there if we want to just get the filenames in the
directory.
recursive if we want to loop directories in the directory.
11 years ago
Sam
27db78567b
Fix writables in 7.6, fixes #416
11 years ago
Sam
9d8cf33acc
Fix 7.60 login protocol
11 years ago
LordHepipud
aa84ee4362
Fix 7.70 RSA / XTEA encryption
...
RSA / XTEA encryption was implemented with Client 7.70
~~~~Lord Hepipud~~~~
11 years ago
Henrique Santiago
1e17919a26
Use of createTable on containers
11 years ago
Ahmed Samy
df3546b073
lua: now we have a function to static allocate an array
...
lua_newtable() definition:
#define lua_newtable(L) lua_createtable(L, 0, 0)
This simply allocates space for 0 fields, meaning, if we push any
values into this array, it will re-allocate the array, which is bad.
This function statically allocates an array, so it's ready to have
X fields into it.
Performance tests:
lua_newtable
1428161
1426992
1413513
lua_createtable
2004544
1974117
1957533
These tests were done on an AMD 8350fx CPU, single thread used.
narr: This is for fields that just have an index, e.g. arr[0] etc.
nrec: For fields which needs like arr.a, arr.b etc.
This is how many times each of the functions can run per second, as
you can see about 1.7x the calls to lua_newtable.
All credits goes to @dalkon, he was too lazy to do it by himself, and
asked me to do it for him.
11 years ago
Ahmed Samy
24e26e190b
Also unbind g_minimap.updateTile
11 years ago
Ahmed Samy
ad7cda534d
Fix minimap tile update for item removal
11 years ago
Sam
863bece70b
VC12 fixes by @dalkon
11 years ago
Ahmed Samy
22f97aa00b
More binds to lua
11 years ago
Ahmed Samy
e32607b05c
Tiny fixes
11 years ago
Ahmed Samy
1790eee1c6
Add selection to tile
11 years ago
Ahmed Samy
ec2518525a
Add more tile flags to be checked for
11 years ago
Ahmed Samy
eb4fb4ff41
Animations are now optional
...
The default behaviour is still there though.
11 years ago
Ahmed Samy
4f997a3826
Only request tile cache to be updated once for both x & y
11 years ago
Ahmed Samy
c54015a60d
Fixup movePixels a little bit
...
Thanks to @dalkon for dis.
11 years ago
Ahmed Samy
57c432d3ea
Increase maximum move offset to be 64 instead of 32
11 years ago
Ahmed Samy
bd8c883e13
Take out debug message
11 years ago
Ahmed Samy
b5c3b37b3c
Tiny fix for movePixels
11 years ago
Ahmed Samy
ece6507df2
Bind g_minimap.updateTile to lua
...
This is needed to update tile removals from minimap widget.
11 years ago
Ahmed Samy
04515ffbb8
Fix map move pixels function
...
Thanks to @dalkon for this.
11 years ago
Ahmed Samy
ed24a0735a
Bind {un,}lockVisibleFloor to lua
11 years ago
Ahmed Samy
2498129ff3
mapio: don't add saved with line in description
11 years ago
Ahmed Samy
066638e7c0
mapio: don't add description twice
11 years ago
Ahmed Samy
95610de5f3
bind set{Width,Height} of g_map to lua
11 years ago
Ahmed Samy
9154c0a678
mapio: fix load on new maps
11 years ago
Ahmed Samy
772ec208c0
don't throw error on fail
11 years ago
Sam
99500c9c91
Protocol 8.40-.42 fixes, closes #272
11 years ago
Ahmed Samy
b9b9a32b83
Spawns: add function to find a spawn to place a creature on
11 years ago
conde2
ba091c9f5b
Indentation
11 years ago
conde2
3288711d16
Mistake
11 years ago
conde2
8b0509a5c3
Try to fix compilation
11 years ago
conde2
d7612e9304
Little mistake
11 years ago
conde2
4dcb30110f
Use of clamp
11 years ago
conde2
7ff73d1064
Fix indentation
11 years ago
conde2
ca2fe9cf45
Fix compilation under MSVC
...
Use template for std::min and std::max
11 years ago
Sam
ec012cb137
Fix 7.6 protocol issue / Typo
11 years ago
Sam
69ae324676
Tiny setPVPMode fix
11 years ago
Sam
4d656f8bd1
New pvp modes to combat controls
11 years ago
Sam
c98439ae65
onOutfitChange fix
11 years ago
Sam
4f9f04206d
Added enter / escape button to minimap flag window
11 years ago
Sam
fc54a6e418
Full modal dialog functionality
11 years ago
Ahmed Samy
25d3019d1a
force use of template version of std::min/max
11 years ago
Ahmed Samy
1711d8bdaf
Revert "replace all std::min/std::max with just min/max"
...
This reverts commit 28d967ccce
.
11 years ago
Ahmed Samy
28d967ccce
replace all std::min/std::max with just min/max
...
This errors out in MSVC since the inclusion of winsock2.h, CL uses the
macro not the template version.
11 years ago
BrunoDCC
4bfe9b640e
Fix houses and monsters
11 years ago
Eduardo Bart
28786a3570
Update make_snapshop.sh
11 years ago
Eduardo Bart
b07a77f705
Changes to compile for Win64
11 years ago
Eduardo Bart
dd829395e3
Merge pull request #376 from dalkon/master
...
Item phases & Fix party "bug" & Additions
11 years ago
dalkon
18fa54181a
Format fix
11 years ago