10.07.2015, 21:25
v0.2.2 released:
- I think that tests was successfull and the plugin no longer in Alpha state.
- Resources now need to be in the following folder: "lua/resources/".
- Resources can be loaded from server.cfg with the following setting: luascripts resourcename
- Inside the resource Lua files now load into the same virtual machine and therefore functions are shared within the same resource.
- Lua virtual machines were not perfectly stopped.
- Fixed the timer.
- New object manager implemented.
- Added makefile therefore it can be compile in Linux (usage: make LUASAMP). I didn't tested under Linux so there can be some issues/crashes with it.
- Fixed various crashes with timer when resource is being stopped.
- Some junk codes removed.
- New functions added to the argument reader.
- Added Lua stack debug function.
Added "call" function that allows to call a function from other resource (given resource need to running). i.e.:
If you don't like the previous method you can call function with the "export" global variable (it is similar to MTA "exports" global variable). i.e.:
- Added "isResourceRunning" function that allows to check if a given resource is running or not.
- Now you can load modules too that allows to implement several Lua function. Modules can be loaded from server.cfg with the following setting: luamodules modulename.dll
- Modules need to be placed in the following folder: "lua/modules/".
- Added Modul SDK which helps to make module (MTA mysql module imported for example).
- I think that tests was successfull and the plugin no longer in Alpha state.
- Resources now need to be in the following folder: "lua/resources/".
- Resources can be loaded from server.cfg with the following setting: luascripts resourcename
- Inside the resource Lua files now load into the same virtual machine and therefore functions are shared within the same resource.
- Lua virtual machines were not perfectly stopped.
- Fixed the timer.
- New object manager implemented.
- Added makefile therefore it can be compile in Linux (usage: make LUASAMP). I didn't tested under Linux so there can be some issues/crashes with it.
- Fixed various crashes with timer when resource is being stopped.
- Some junk codes removed.
- New functions added to the argument reader.
- Added Lua stack debug function.
Added "call" function that allows to call a function from other resource (given resource need to running). i.e.:
Код:
call("resourcename", "functioname", [arguments...])
Код:
export['resourcename'].testFunction("some string", 10, 20.0, true) export['resourcename']:testFunction("some string", 10, 20.0, true) export['resourcename']['testFunction']("some string", 10, 20.0, true)
- Now you can load modules too that allows to implement several Lua function. Modules can be loaded from server.cfg with the following setting: luamodules modulename.dll
- Modules need to be placed in the following folder: "lua/modules/".
- Added Modul SDK which helps to make module (MTA mysql module imported for example).