aboutsummaryrefslogtreecommitdiffstats
path: root/Lua/src/lua/ULuaCore.pas (follow)
Commit message (Collapse)AuthorAgeFilesLines
* usdx module prefix (Usdx.) is now case insensitive (in require statement)whiteshark02009-08-221-2/+46
| | | | | | | | | replaced luas require function with a custom one to allow more compact require statement. the custom function does not return loaded modules, but is able to load more than one module at once, e.g.: require('math', 'Usdx.Log') luas standard require function is in _require and can still be used. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1933 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fix crash in last revision when an error is raised during plugin_initwhiteshark02009-05-171-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1750 b956fd51-792f-4845-bead-9b4dfca2ff2c
* better error reporting during plugin loadwhiteshark02009-05-171-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1749 b956fd51-792f-4845-bead-9b4dfca2ff2c
* resolve some warningswhiteshark02009-05-161-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1735 b956fd51-792f-4845-bead-9b4dfca2ff2c
* some crash preventionwhiteshark02009-05-161-7/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1733 b956fd51-792f-4845-bead-9b4dfca2ff2c
* add Lua_GetOwner to ULuaUtils (function returns plugin by lua state)whiteshark02009-05-161-33/+57
| | | | | | | use new function in ULuaParty and ULuaUsdx new lua function: Usdx.ShutMeDown to give plugins the ability to unload git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1732 b956fd51-792f-4845-bead-9b4dfca2ff2c
* svn properties changedwhiteshark02009-05-131-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1723 b956fd51-792f-4845-bead-9b4dfca2ff2c
* automaticaly remove hooks from unloaded pluginswhiteshark02009-05-041-1/+23
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1712 b956fd51-792f-4845-bead-9b4dfca2ff2c
* prevent functions from plugins w/ unopened lua state from being calledwhiteshark02009-05-041-1/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1711 b956fd51-792f-4845-bead-9b4dfca2ff2c
* old lua test stuff by hawkear removed or commentedwhiteshark02009-05-041-2/+28
| | | | | | | | | | | | | new function: Party.SetWinner sets winner of current round new unit ULuaUtils w/ some functions that are or may become useful moved Lua_ClearStack and Lua_ToBinInt to ULuaUtils added first hooks (have a look at hooks.txt in game/plugins until documentation is finished) lua module for TextGl written and finished lua testfile (game/scripts/main.lua) ported to new interface, see game/plugins/LuaTest.usdx git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1709 b956fd51-792f-4845-bead-9b4dfca2ff2c
* hookable event nearly finished(unhook function missing)whiteshark02009-04-201-1/+6
| | | | | | | plugin Id now written to the lua states registry Usdx.Version added, Usdx.Hook added git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1689 b956fd51-792f-4845-bead-9b4dfca2ff2c
* fixed lua module loadingwhiteshark02009-04-191-12/+19
| | | | | | Usdx table will be created and has one function (Time()) for now git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1687 b956fd51-792f-4845-bead-9b4dfca2ff2c
* lua plugin interface implementedwhiteshark02009-04-171-0/+864
it offers some basic environment to the loaded plugins see ./game/plugins/PluginDescription.odt for further explantation. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1674 b956fd51-792f-4845-bead-9b4dfca2ff2c