Skip to content

Commit

Permalink
v0.2.2 Released
Browse files Browse the repository at this point in the history
I think that tests was successfull and the plugin no longer in Alpha
state.
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.
Resources now need to be in the following folder: "lua/resources/".
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...])

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.:
- 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)

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
Added Modul SDK which helps to make module (MTA mysql module imported
for example).
  • Loading branch information
drakeee committed Jul 10, 2015
1 parent b78d7ed commit dfe0b50
Show file tree
Hide file tree
Showing 233 changed files with 100,164 additions and 1,497 deletions.
25 changes: 25 additions & 0 deletions Imported MTA module/mta-mysql/Backup/mta_mysql.sln
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mta_mysql", "mta_mysql.vcproj", "{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Debug|Win32.ActiveCfg = Debug|Win32
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Debug|Win32.Build.0 = Debug|Win32
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Debug|x64.ActiveCfg = Debug|x64
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Debug|x64.Build.0 = Debug|x64
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Release|Win32.ActiveCfg = Release|Win32
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Release|Win32.Build.0 = Release|Win32
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Release|x64.ActiveCfg = Release|x64
{132A627F-058D-46F8-BCBB-63B6C8D2CC1A}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
27 changes: 27 additions & 0 deletions Imported MTA module/mta-mysql/LICENSE
@@ -0,0 +1,27 @@
Copyright (c) 2008, Alberto Alonso

All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.
* Neither the name of the mta-mysql nor the names of its contributors may be used
to endorse or promote products derived from this software without specific prior
written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1 change: 1 addition & 0 deletions Imported MTA module/mta-mysql/Makefile.am
@@ -0,0 +1 @@
SUBDIRS=luaimports src

0 comments on commit dfe0b50

Please sign in to comment.