Garry's Mod

Garry's Mod

1,722 평점
Lua Patcher
5
2
8
4
6
3
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
파일 크기
게시일
업데이트일
46.012 KB
2021년 2월 20일 오후 11시 50분
2025년 11월 13일 오전 5시 05분
업데이트 노트 63개 (보기)

다운로드 위해 구독하기
Lua Patcher

설명
Formerly known as Piengineer's Lua Repair

This addon fixes the most common Lua errors, but has the potential to cause performance issues. Only use this when addon creators are unresponsive to your error reports.

Developer Note: If you want to just hide the error pop-up, follow this guide. This addon focuses more on fixing broken code.

This is basically only the Lua Error Fixer part of my old Lua and Model Error Fixers addon I made a while back as some people have requested me to separate the Lua Error Fixer from the Model Error Fixer.

What does the addon do?
The addon attempts to redefine Lua rules to prevent Lua errors from showing up by other addons. It does this by having certain Lua operations return an appropriate value instead of throwing an error.

You can think of this addon as providing a set of rules to the interpreter on how to deal with Lua errors before they even happen. As a plus, this sometimes allows broken addons to become functional again!

What can't this addon fix?
This addon does not fix model and texture errors. Try using the !*$%? ERRORS addon for fixing those.

This addon can only fix compiled Lua code. The script file itself must not have any syntax errors or it won't compile and will be invisible to this addon. I can't do anything to fix these, sorry.

Lua Repair also cannot fix errors that contain the phrase "attempt to compare X with number" or "attempt to compare X with string" due to how number and string comparisons are implemented in Lua 5.1. If Garry ever allows __lt and __le metamethods to be invoked for mixed types, this error will become fixed.

Other than the above, there will exist a way for this addon to deal with the error.

I still see Lua errors after installing this addon.
Sadly, each illegal Lua operation must be redefined one by one. If this happens, give me the first line of the error message as well as which addon did it so that I can see what operation Lua was trying to do.

Note that if you don't give me enough information about the error, I might not be able to fix it!

What chatbox is that?
The chatbox addon seen in the screenshots is the old SChat: 3D Chat Addon.

Will this trigger DRM on paid addons?
Maybe. This addon uses unavoidable getmetatable and debug.setmetatable calls for its operations. If the DRM detects the use of these functions then it will be triggered.

I don't trust this, where is your source code?
You can find / download it on my GitHub page[github.com]. You can also download this whole addon from GitHub instead of here if you're crafty enough.



If you like my work, you now have the option to donate on Ko-fi[ko-fi.com] so that I can keep working for another day. Every little bit helps!
인기 토론 모두 보기(6)
9
2025년 8월 24일 오후 9시 20분
Receiving Lua error with psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2762448732
coolkidfunnan
9
2025년 4월 5일 오전 5시 50분
Lua Error
Woody
2
1
2025년 4월 2일 오후 8시 25분
VJ SNPCs stuck or having troubles recognize me.
Woody
댓글 501
Pompadour Nautice 2025년 11월 28일 오후 4시 49분 
Much obliged for the continual maintaining of this addon, fellow honse.
дабстеп мытищи 2025년 11월 21일 오전 10시 21분 
nvm
дабстеп мытищи 2025년 11월 21일 오전 10시 20분 
what addon are you using in the 2nd screenshot
Piengineer12  [작성자] 2025년 11월 12일 오전 7시 21분 
I've recently tested this addon with a VJ Base SNPC and things seem to work completely fine. I need an example of an SNPC that doesn't work.
Gnilomord 2025년 11월 11일 오전 2시 18분 
I wish there was something similar for snpc on VJ base
GoreDoll 2025년 11월 10일 오후 12시 05분 
nvm
GoreDoll 2025년 11월 10일 오후 12시 01분 
what addon are you using in the 2nd screenshot
PixelTheCollie ΘΔ 2025년 11월 6일 오후 8시 19분 
@Piengineer12
Universal error coverage: catch and fix errors before, during, and after load.
is this always on, always detecting bugs and errors to always fix them even far into the game like after load up. right? and does it work on multiplayer? does it fix base game lua errors too, if it can? all questions i hope can be told. dont seem to catch later errors idk. please fix/ help? ik i hate ai too but wanted to ask and all that, and yeah lua patch can be better and mor gloabal so its more effective for all and all stages. sorry please and thanks: {링크가 삭제되었습니다}
PixelTheCollie ΘΔ 2025년 11월 6일 오후 8시 17분 
Universal error coverage: catch and fix errors before, during, and after load.
is this always on, always detecting bugs and errors to always fix them even far into the game like after load up. right? and does it work on multiplayer? does it fix base game lua errors too, if it can? all questions i hope can be told. dont seem to catch later errors idk. please fix/ help? ik i hate ai too but wanted to ask and all that, and yeah lua patch can be better and mor gloabal so its more effective for all and all stages. sorry please and thanks: {링크가 삭제되었습니다}
☭paradoxer☭ 2025년 11월 2일 오전 10시 58분 
anti-errors