• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Metastruct/luadev: Easens Garry's Mod development process

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Metastruct/luadev

开源软件地址(OpenSource Url):

https://github.com/Metastruct/luadev

开源编程语言(OpenSource Language):

Lua 100.0%

开源软件介绍(OpenSource Introduction):

LuaDev

A simple library to help developers run lua code in-game.

Build Status

SocketDev

LuaDev is now shipped with SocketDev extension. You'll need luasocket installed for this to work. It allows you to execute lua code on various destinations using your text editor. Currently there are some size limitations, but it will be fixed soon™.

Usage
  • lua_watch <filename.lua>
    • Run on self the file when its timestamp changes.
  • lua_send_sh <filename.lua>
    • Run on server and all clients.
  • lua_send_clients <filename.lua>
    • Run on a single client
  • lua_send_cl <client> <filename.lua>
    • Run on a single client
  • lua_send_sv <filename.lua>
    • Run on server
  • lua_send_self <filename.lua>
    • lua_openscript_cl through luadev
  • lua_run_client <part of name/steamid/userid> <code>
  • lua_run_clients <code>
  • lua_run_sh <code>
  • lua_run_sv <code>
  • lua_run_self <code>

Extra commands exist (lua_send_ent for direct entity code ending), unfinished.

Lua functions

(Desc is the string to identify errors)

  • luadev.RunOnServer (code,desc,extra)
  • luadev.RunOnShared (code,desc,extra)
  • luadev.Run (code,desc,extra)
  • luadev.RunOnClients (code,desc,extra)
  • luadev.RunOnClient (code,player,desc,extra)

Parameter extra is subject to change. It can essentially hold extra information to transfer with the code.

Notes
  • There is no player autocomplete yet
  • Embeds your steamid on errors. Does not prevent changing it though.
  • Only checks if you are superadmin. Be careful who you let to use this. There is a hook for luadev access check for override.
  • No GUI, use Sublime-LuaDev for example
Cvars
  • luadev_verbose 0-9
    • Console debug printing
Credits
  • CapsAdmin
  • Noiwex
  • Lixquid
  • Python1320
  • PotcFdk
  • Morten
  • Garry
  • Meta Construct
Extras



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Shadowrocket/lua-backend: lua backend发布时间:2022-08-17
下一篇:
uspgamedev/luasteam: Creating our own bindings to connect lua with steam api发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap