Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM Plugin]LuaPlugin V4
[SSGM Plugin]LuaPlugin V4 [message #367341] Wed, 14 January 2009 16:46 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
"Daniel"

After a long wait, I'm proud to release the LuaPlugin V4 (0.4.0)!

It has the same functions as V3, and I have also added a few. I have revamped the socket handler and added OnThink().

There is a new crash handler, this should handle any and all Lua errors and report them to the console.

So, new socket functions.

Socket = Client(Host, Port) --Connect to a host with port
Socket = Server(IP, Port) --Start listening on a port for client
Socket = Accept(Socket) --Accept a client (only works if Server was used)

String = Recv(Socket) --Receive data from a Socket
Send(Socket, String) --Send data to a Socket

Number = DataAvaliable(Socket) --Is there data available for Recv? Returns 0 if there is
Number = ClientAcaliable(Socket) --Is there a client waiting to be Accepted? Returns 0 if there is
Disconnect(Socket) --Forces the Socket to disconnect and cleans it up.


There is a new SLNode table which is demonstrated in Example_SLNode.lua

Installation is simple: Just unzip the contents of "Server Files" into your server's folder and edit SSGM.ini to load LuaPlugin.dll as an SSGM plugin.

http://www.dcomproductions.com/downloads/luaplugin/


Do not just run the example files.
Re: [SSGM Plugin]LuaPlugin V4 [message #367358 is a reply to message #367341] Wed, 14 January 2009 20:31 Go to previous messageGo to next message
slosha is currently offline  slosha
Messages: 1540
Registered: September 2008
Location: North Dakota FTW
Karma: 0
General (1 Star)
and this would be?

The road I cruise is a bitch now, baby.
Re: [SSGM Plugin]LuaPlugin V4 [message #367359 is a reply to message #367341] Wed, 14 January 2009 21:13 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
good job 3.0 kept crashing on my server this one doesn't.

http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: [SSGM Plugin]LuaPlugin V4 [message #367362 is a reply to message #367358] Wed, 14 January 2009 22:17 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

An SSGM plugin that implements the LUA language in Renegade, duh.

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: [SSGM Plugin]LuaPlugin V4 [message #367453 is a reply to message #367341] Thu, 15 January 2009 18:05 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Pretty awesome really, winsock for renegade server owners in a neat little plug-in that allows you to write it in LUA.
People could use this for allot of stuff, automated uploading of log files, doing away with log files and having it done via thread to a bot using TCP.
People need to see and realise the potential of this plug-in.

Awesome.



Re: [SSGM Plugin]LuaPlugin V4 [message #367504 is a reply to message #367341] Fri, 16 January 2009 06:02 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
I've updated the download to include an IRC client with a simple command.
The command lets you execute any Lua statment from IRC, without reloading or changing any files.

!lua Console_Input("msg hello world!")


for example.


[Updated on: Fri, 16 January 2009 06:21] by Moderator

Report message to a moderator

Re: [SSGM Plugin]LuaPlugin V4 [message #382309 is a reply to message #367504] Fri, 24 April 2009 05:03 Go to previous messageGo to next message
cpjok is currently offline  cpjok
Messages: 425
Registered: September 2007
Karma: 0
Commander
ok any other place to get Lua V4 from as the link provided dont work gose to a error page

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: The file '/masterpage.master' does not exist.

Source Error: 


Line 1:  <%@ Page Title="Lua Plugin" Language="C#" MasterPageFile="~/masterpage.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="Default2" %>
Line 2:  
Line 3:  <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

Source File: /downloads/luaplugin/default.aspx    Line: 1 

Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434


[Updated on: Fri, 24 April 2009 05:04]

Report message to a moderator

Re: [SSGM Plugin]LuaPlugin V4 [message #382348 is a reply to message #367341] Fri, 24 April 2009 09:40 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
http://www.dcomproductions.com/downloads/luaplugin/luaplugin-4.0.zip
Previous Topic: [Model Replacement] Nod Advanced Tiberium Refinery Interior :P
Next Topic: [Model Replacement] Nod Airstrip!!!
Goto Forum:
  


Current Time: Tue May 14 19:14:42 MST 2024

Total time taken to generate the page: 0.00726 seconds