Garry's Mod
1,615 人が評価
Lua Patcher
5
2
4
7
6
3
   
アワード
お気に入り
お気に入り
お気に入りから削除
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
ファイルサイズ
投稿日
更新日
46.627 KB
2021年2月20日 23時50分
5月22日 14時47分
62 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
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
8月24日 21時20分
Receiving Lua error with psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2762448732
coolkidfunnan
2
1
4月2日 20時25分
VJ SNPCs stuck or having troubles recognize me.
Woody
9
4月5日 5時50分
Lua Error
Woody
482 件のコメント
PixelTheCollie ΘΔ 1 時間前 
This isnt a mod to make settings save dude
Its to fix the game or try to
That is not what the modnis intended for I bet. To Save settings? Its a lusa patcher
AToM1C 7 時間前 
Make my settings save
Sick and Dizzy Gacha 9月24日 8時15分 
fix
[Lua Patcher] 'csd' isn't a valid font
1. pcall - [C]:-1
2. SetFont - lua/autorun/+piengineers_lua_patcher_rewrite.lua:478
3. GetSize - lua/includes/modules/killicon.lua:91
4. DrawDeath - gamemodes/base/gamemode/cl_deathnotice.lua:227
5. Run - gamemodes/base/gamemode/cl_deathnotice.lua:278
6. HUDPaint - gamemodes/base/gamemode/cl_init.lua:84
7. unknown - gamemodes/sandbox/gamemode/cl_init.lua:106
Birk 9月15日 11時14分 
could you add an option to see the fixed lua code like in data folder or sum? cus im tryna make an addon and im getting errors that i dont know how to fix but this addon fixes them, and i want to take the code it fixed to my addon so i can publish it
PixelTheCollie ΘΔ 9月15日 10時26分 
@archive its not
PixelTheCollie ΘΔ 9月15日 10時26分 
mimega19 works fine for me, this dont mess with texture or models, are you on 64bit branch beta or? as the other person also asked
Spywagen 9月15日 8時59分 
mimega19 are you maybe not playing on the 64 bit version of gmod?
Pyro 9月14日 13時43分 
totally a gmod destroyer
ChaoticSpaceKitten 8月16日 10時49分 
Pie, can you please fix the old VJ base addons using this?
PixelTheCollie ΘΔ 8月8日 22時54分 
UH i never had that happen and i have like 2k mods, are you sure its this mod and not another or maybe corrupts game files, try validating them sometimes thats why, but from waht ik this mod fixes lua it never touched textures, so i dont think its cuz of lua patcher