Commit Graph

703 Commits

Author SHA1 Message Date
Rochet2
849d26e3a0 Fix TC build 2016-02-14 22:20:19 +02:00
Rochet2
08b22dd5bb Fix uint32_t errors (VS 2013)
Thanks to Foereaper for testing.
2016-02-08 22:27:00 +02:00
Rochet2
a3b20b248e Hash enums with underlying type instead of int
Thanks to jameyboor
2016-02-01 21:37:25 +02:00
Rochet2
c1f342406f Merge pull request #183 from ElunaLuaEngine/mangosupdate
Fix some mangos and cmangos compatibility
2016-01-24 23:21:30 +02:00
Rochet2
33e3bf9de2 Fix some mangos compatibility 2016-01-24 19:29:42 +02:00
Rochet2
cc5f623b5c Update GlobalMethods.h
Fix some typos in documentation reported by Pursche
2016-01-24 11:52:38 +02:00
Rochet2
a316e1cdbe Adapt to TC changes 2016-01-14 19:43:03 +02:00
Rochet2
5a18a49535 Attempt fix linux 2016-01-06 15:04:58 +02:00
Rochet2
bd500868a7 Eluna attempt fix linux 2016-01-05 22:47:57 +02:00
Rochet2
b09e13b12e Try fix linux 2016-01-05 21:33:29 +02:00
Rochet2
d44fc8b3ae Fix linux 2016-01-05 20:47:15 +02:00
Rochet2
c214d4f37b Add missing new year 2016-01-05 20:27:21 +02:00
Rochet2
2fce645b7e new year 2016-01-05 20:19:47 +02:00
Rochet2
969c0bbbfa Fix documentation indentation and implement emote state method. Closes https://github.com/ElunaLuaEngine/Eluna/issues/181 2016-01-05 16:58:09 +02:00
Rochet2
086ad796fc Add new methods. Closes https://github.com/ElunaLuaEngine/Eluna/pull/176 and https://github.com/ElunaLuaEngine/Eluna/issues/171 2016-01-05 16:42:29 +02:00
Rochet2
972ff3d010 Some performance and warning fixes 2016-01-05 14:57:29 +02:00
Rochet2
3f3de007ef More AddTaxiPath documentation 2015-12-16 22:36:25 +02:00
Rochet2
2bb387dcff Update GlobalMethods.h 2015-12-16 21:06:37 +02:00
Rochet2
c94ef51cbe Remove DeleteBonesFromWorld method from corpse and fix build for TC 2015-11-09 17:56:17 +02:00
Rochet2
e41fed0c0d Add missing header for recursive ace mutex 2015-11-05 20:24:53 +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
77e09b4390 change char print to int print 2015-10-07 21:25:29 +03:00
Rochet2
0a7ceb2602 Add slot enum documentation 2015-10-06 00:56:58 +03:00
Rochet2
28161fa2fc Remove corpse methods (report if needing them) and made changes to objectaccessor required by TC
See 402a3c45ff for more
2015-09-30 22:01:36 +03:00
Rochet2
64a442a887 Fix error message
The error is using hhu and u and other unsupported format characters.
See http://www.lua.org/manual/5.2/manual.html#lua_pushfstring for more
2015-09-29 23:08:10 +03: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
72d0f8f13a Fix few typos in previous commit 2015-09-16 22:33:59 +03:00
Tommy
9d9e72e598 Updated method documentation and cleaned up
Method documentation should be completed. Only thing left now is polishing up (fixing typos, update wording, add enumerator data to method documentation that doesn't have it, etc)..

Cleaned whitespaces

Corrected/Fixed up some comments

Removed all known documented method comments in LuaFunctions.cpp. Commented out methods are now marked as undocumented until they are uncommented & documented in their respective header files.

Removed 'Getter, Setter, Boolean, Other' comments in method files

Documented VehicleMethods, the rest of PlayerMethods, UnitMethods, CreatureMethods and GuildMethods.

Refer to #101 for more information
2015-09-16 04:14:32 -04:00
Rochet2
34439b2ff3 Eluna fix TC taxi path node container 2015-09-15 01:20:39 +03:00
Rochet2
3cfa7ac575 Fix copy paste error: self = obj 2015-09-12 19:56:09 +03:00
Rochet2
581c176da1 Fix and unify GetCoreVersion
Fixed for cmangos (tbc)
2015-09-06 14:01:47 +03:00
Tommy
c40d16c9f8 Updated Merging doc 2015-08-28 17:59:02 -04:00
Rochet2
c80b80c206 Add some documentation and add map support back
Part of https://github.com/ElunaLuaEngine/Eluna/issues/167
2015-08-28 22:03:40 +03:00
Rochet2
83e001b2ac Remove functions not to be used or cant be used and fix TC build 2015-08-26 17:05:34 +03:00
Rochet2
2379c00711 Fix (c)mangos IsCasting and removefromworld 2015-08-20 01:54:09 +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
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