Commit Graph

27 Commits

Author SHA1 Message Date
Rochet2
924b1baab3 Remove ACE and boost RW mutex requirements 2017-01-23 17:52:45 +02:00
Rochet2
af151e5c08 Try fix ace errors on cmangos linux 2016-11-27 21:19:20 +02:00
Rochet2
2fce645b7e new year 2016-01-05 20:19:47 +02:00
Rochet2
c94ef51cbe Remove DeleteBonesFromWorld method from corpse and fix build for TC 2015-11-09 17:56:17 +02:00
Rochet2
9847733a6b Try fix travis include error 2015-11-05 19:36:16 +02:00
Rochet2
cf39a5adab Remove defines that disturb cmangos compilation 2015-11-05 18:41:02 +02:00
Rochet2
8daaf04994 Fix TC build 2015-09-24 11:48:07 +03:00
Rochet2
7ec215b2d7 Enable GameObject faction check for worldobject searchers and fix a typo 2015-09-21 21:47:21 +03:00
Rochet2
f51217b0c4 Fix https://github.com/ElunaLuaEngine/Eluna/issues/164 and close https://github.com/ElunaLuaEngine/Eluna/issues/163 2015-08-19 23:17:00 +03:00
Patman64
31470c2cf7 Allow scripting of instances w/ persistent data
Some fixes for TC and changes overall

Pass map object to hook via function arguments

The map object is no longer stored inside the instance data table.

Fix mistake in base64 decoder

It was failing whenever it encountered a '=' character, which is
completely valid.

Make ElunaInstanceAI::Load always load something

When it failed to load data, it was leaving nothing on the stack. Since
subsequent code expected Load to always load something, this was causing
issues.

Now, when Load fails to load anything, it just leaves a new empty table on
the stack.

Also: the error messages for Load have been improved.

Modify lua-marshal to allow saving of functions/userdata.

Some additional code was needed to save functions due to the inclusion of
a reference to _ENV within their upvalues (since Lua 5.2).

During encoding, a placeholder is left where the _ENV reference would be.
During decoding, a reference to the current _G is swapped with the
placeholder.

Make ElunaInstanceAI::Load re-initialize if data failed to load.

Also improve error messages by not including the raw data.

Improve storage format of upvalues

Instead of storing the upvalues by name, store by index. A wrapper is
still used in case the upvalue is nil, to prevent holes in the upvalues table.

A special field in the upvalues table, "E", is used to store the index of
the _ENV reference (if there was one). A reference to the current globals
table is set as the upvalue upon decoding.

Remove wrapping from upvalue storing, instead save amount of upvalues
2015-08-01 00:35:41 +03:00
Patman64
7397c98a61 Merge new_bindings, closes #151
Refer to 6194ddb43c for new C++11 required changes for mangos based cores
2015-06-01 20:37:32 +03:00
Patman64
196a432e7d Fix Travis build 2015-05-01 21:28:58 -04:00
Patman64
3490d21bcd Make the register functions optionally return a cancel callback.
It's now possible to have complete flexibility with cancelling bindings,
i.e. it's possible to re-implement all of the other ways to cancel bindings
using the callback.

This sytem has been designed with complete safety in mind:
 - It is safe to call the callback more than once (does nothing after the
   first call).
 - The callback does not expire, and can be stored for as long as
   necessary.
 - If a callback is returned, there is no other way to cancel the binding
   (again, due to safety).
2015-05-01 20:29:48 -04:00
Rochet2
5e7b0ee0f7 Fix TC build, analysis warnings and triggering addon message hooks 2015-01-06 12:43:53 +02:00
Tommy
803a835668 Happy New Year 2015 2015-01-01 13:59:33 -05:00
Rochet2
07d25f5031 Eluna Fix static analysis noted warnings and errors 2014-12-23 23:21:13 +02:00
Rochet2
1a4eac6c3b Eluna fix warning
V690 The 'WorldObjectInRangeCheck' class implements a copy constructor, but lacks the the '=' operator. It is dangerous to use such a class. elunautility.h 103
2014-10-03 17:20:04 +03:00
Rochet2
4784c2052a Eluna: Correct whitespace 2014-09-20 22:07:24 +03:00
Rochet2
2f17600f43 Eluna: ObjectGuid is now used by all cores 2014-09-20 18:44:28 +03:00
Rochet2
16185423ab Eluna: fix compatibility with new guid changes, fix bg methods for cata 2014-09-20 17:27:42 +03:00
Rochet2
bc5d1b3f86 Update ElunaUtility.h 2014-09-14 17:26:30 +03:00
Rochet2
9db50e4772 Fix < c++11 compatibility for mangos 2014-09-14 11:10:39 +03:00
Rochet2
9add43bf2a Implement BG methods for TC and do other fixes 2014-09-13 23:18:53 +03:00
Rochet2
42ffd8aff8 Eluna: Implement utility GetRow() 2014-09-13 21:39:48 +03:00
Rochet2
44f80525c8 Update ElunaUtility.h
Fix typo for TC
2014-09-13 16:35:10 +03:00
Rochet2
06be9650bb Eluna fix crash in timed events and prepare some for future changes. Ditched EventProcessor 2014-09-13 16:05:16 +03:00
Rochet2
94528114c9 Eluna fix typo in filename thanks Antz :3 2014-07-17 16:41:48 +03:00