npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

luamon

v1.0.0

Published

luamon 是 unity for lua 实时运行工具。

Downloads

4

Readme

luamon

luamon 是 unity for lua 实时运行工具。

在游戏开发过程中,很多时候游戏的当前状态不是那么容易重现,需要经过一系列的诸如登录、选服、添加机器人、匹配之类的操作,才能回到上次的状态,非常耗费时间。如果每次修改代码都要经历以上阶段,那可太痛苦了。

luamon 可在当前游戏状态快速修改逻辑或验证方法。理论上来说,如果项目框架允许,可完全实现所有 lua 文件的热重载。同时 luamon 也集成了游戏日志输出功能,方便开发阶段的真机调试。

其原理非常简单,在游戏中启动一个 Socket 服务。Client 端运行时自动与服务进行连接,本地修改的 *.lua 文件将实时提交到服务器 lua 虚拟中执行,并将结果返回本地。

常见问题

  • 为什么客户端是命令行(CLI)形式的?
    • 方便与任何 IDE 集成,充分利用起 IDE 现成的自动提示、断点、调用堆栈等功能
    • 跨平台(Mac上暂未测试,理论上支持)
  • 如何只监听部分文件?
    • 添加参数 --test 启动,则只监听 *@test.lua 的文件
  • 接入日志方法了,如何查看日志?
    • 添加参数 --log 启动才会输出日志到终端
    • 只输出错误日志 --log 0
    • 只输出警告日志 --log 1
    • 只输出正常日志 --log 2
  • 如何启用热重载?
    • 添加参数 --hotload 将告诉服务器需要使用热重载(功能需要根据框架自行实现,实现方式参照上文)
    • 热重载过程中 *@test.lua 文件依然不会被热重载,仅将其内容丢进 lua 虚拟机运行(以方便测试)
  • 如何连接真机?
    • 运行 luamon 时指定真机IP即可,如:luamon 192.168.1.3luamon 192.168.1.3:43996