Commit Graph

715 Commits

Author SHA1 Message Date
Rochet2
2517ed6442 Fix TC new cmake paths and GitRevision changes 2015-08-17 20:54:37 +03:00
Rochet2
a0e5e623c3 Update ObjectVariables.ext
Added proper support for mangos
Removed map specific variables
2015-08-15 22:24:03 +03:00
Rochet2
b6740496bf Try fix https://github.com/ElunaLuaEngine/Eluna/issues/161 2015-08-10 01:18:36 +03:00
Rochet2
b9bc5343b4 Enable null as CastSpell target and Add IsCasting
Closes https://github.com/ElunaLuaEngine/Eluna/issues/160
2015-08-10 01:11:01 +03:00
Rochet2
1bc22faa7f Add some bug and warning fixes as well as some enchantment from mthread branch 2015-08-08 15:37:22 +03:00
Rochet2
301869b8fb Add documentation about global method tables 2015-08-01 23:46:00 +03:00
Patman64
402cf6d89d Remove dead variable ElunaInstanceAI::canSave
It was used during development of instance scripting to smooth over
differences between loading instances on CMaNGOS and Trinity. However,
another workaround was used and it was no longer needed.
2015-08-01 16:20:48 -04: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
Rochet2
d57ca139b7 Add Eluna documentation: features and getting started 2015-07-31 23:18:27 +03:00
Rochet2
f62c655d40 Add forgotten changes from a49f6f03ac 2015-07-30 20:30:51 +03:00
Rochet2
a49f6f03ac Update documentation and enable for TC the methods implemented for https://github.com/ElunaLuaEngine/Eluna/issues/80 2015-07-30 19:47:51 +03:00
Rochet2
410fa4059f Add documentation for SpawnCreature types. Fix https://github.com/ElunaLuaEngine/Eluna/issues/114 2015-07-30 18:12:42 +03:00
Rochet2
00e18adfac Fix https://github.com/ElunaLuaEngine/Eluna/issues/157 2015-07-30 17:59:48 +03:00
Rochet2
e3dad741a5 Fix AddThreat typos 2015-07-27 20:25:29 +03:00
Rochet2
561e38e037 Fix some documentation 2015-07-15 18:23:31 +03:00
Rochet2
2e56ee8863 Fix RemoveItem documentation 2015-07-08 11:15:32 +03:00
Rochet2
8fdd75cf4e Add inheritance comments 2015-07-08 11:09:20 +03:00
Rochet2
02c7a06410 Add GetDBTableGuid method 2015-07-05 10:03:05 +03:00
Foereaper
447021e849 Fix RegisterGroupEvent hooks
Thanks to Grandelf, see http://emudevs.com/showthread.php/4953 for more info.
2015-06-22 19:13:57 +02:00
Rochet2
d4ca8bddda Fix comment on guild hook
Thanks to Freddan
2015-06-22 15:19:22 +03:00
Rochet2
85cd8e1900 Rework group methods, fix warnings and fix typos 2015-06-22 01:40:14 +03:00
Patman64
51d6454f04 Fix cMaNGOS build 2015-06-08 00:10:10 -04:00
Rochet2
3aa6d0544b Fix TC compile 2015-06-04 12:30:43 +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
Rochet2
5c68b7301a Fix few doc types 2015-05-11 21:19:52 +03:00
Rochet2
f3cd70c401 Enhance documentation
fix [] errors in types
fix int not set as basetype
add generated date to bottom of page
Rename Crates to All Classes and remove it from the class view
2015-05-10 01:43: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
b01d441dbd Fix links 2015-05-02 03:12:02 +03:00
Rochet2
f88d57f599 Fix mangos build 2015-05-02 02:19:51 +03:00
Rochet2
b0d68e5e0e Fix copy paste 2015-05-02 02:15:07 +03:00
Rochet2
564cf2b15b Add quest add and remove commands and make questcomplete try satisfy the requirements and act like quest complete command. Merge SetLevel and GiveLevel for player methods. 2015-05-02 02:07:50 +03:00
Rochet2
adccf1ef36 Update LuaFunctions.cpp 2015-04-30 11:48:31 +03:00
Rochet2
1be27d59d0 Merge branch 'master' of https://github.com/ElunaLuaEngine/Eluna 2015-04-30 10:48:03 +03:00
Rochet2
633e3abcdc Documentation and minor fixes 2015-04-30 10:47:06 +03:00
Rochet2
d80159127c change ifdef to fix cmangos build 2015-04-23 13:51:40 +03:00
Foereaper
3aba229cee Revert temporary fix for Mangos One
Mangos One is now up to date, removed temporary elif.
2015-04-10 22:27:59 +02:00
Rochet2
edfbaab68d Update CONTRIBUTING.md 2015-04-10 23:13:03 +03:00
Rochet2
586e5f8e9b Update README.md 2015-04-10 23:12:31 +03:00
Rochet2
fd51e1158f Update DOC_GEN.md 2015-04-10 23:11:20 +03:00
Rochet2
3eb1331aa5 Fix readme: Never trust preview 2015-04-10 23:07:52 +03:00
Rochet2
d50a52ccb3 Enhance readme and docs 2015-04-10 23:00:33 +03:00
Foereaper
0b3bbc70f0 Mangos build fix 2015-04-10 02:23:16 +02:00
Foereaper
60952d2a7f Fix for Mangos One build
This is temporary until SendAttackStateUpdate is updated on Mangos One+
2015-04-10 02:17:23 +02:00
Rochet2
456684ebc3 Merge branch 'RStijn-master' 2015-04-07 11:06:59 +03:00
RStijn
e8b9ae9d4f Added support for GameObject::GetLootRecipient() 2015-04-07 11:06:20 +03:00
Rochet2
fdf574955f Add new logging cmake changes for TC (only for wotlk atm) 2015-04-05 13:44:44 +03:00
Foereaper
48e5d45d9c Added required playerbot includes 2015-04-04 01:17:40 +02:00
Foereaper
8b744ec5bd Missed include previous commit 2015-03-31 19:54:57 +02:00
Foereaper
c093690c3b Added include for Mangos threading 2015-03-31 19:50:02 +02:00