Garry's Mod

Garry's Mod

Ocen: 1,509
Lua Patcher
5
2
4
7
6
3
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
Rozmiar pliku
Zamieszczono
Zaktualizowano
46.627 KB
20 lutego 2021 o 23:50
22 maja o 14:47
Listy zmian: 62 ( zobacz )

Zasubskrybuj, aby pobrać
Lua Patcher

Opis
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!
Popularne dyskusje Zobacz wszystkie (6)
8
27 czerwca o 15:52
Receiving Lua error with gtm.steamproxy.vip/sharedfiles/filedetails/?id=2762448732
coolkidfunnan
2
1
2 kwietnia o 20:25
VJ SNPCs stuck or having troubles recognize me.
Woody
9
5 kwietnia o 5:50
Lua Error
Woody
Komentarzy: 474
SillySpaceCat 16 sierpnia o 10:49 
Pie, can you please fix the old VJ base addons using this?
Cherrie_The_Shifter ΘΔ 8 sierpnia o 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
mimega19 8 sierpnia o 21:19 
uh sometimes this patcher makes everything missing texture and not the weapons ALL THE FUCKING MAP
Cherrie_The_Shifter ΘΔ 3 sierpnia o 15:32 
Please add this !([ in front of tittle like this: !([Lua Patcher
Did some testing, it makes it go at top of load order and any collection its added in, so that way its above every mod map and other. so that way it loads better and faster and first, and should help make the mod work better, tested with some of my mods and it works, no i dont need it for my mods, but for lua patcher it can be useful. those char will make it higher priority!. Anyways Yeah, Please Do This, Thanks, Sorry And Goodluck, Amazing Mod/Addon ^w^

Or ig do the opposite, i believe putting stuff like ZT- at start will make it be at the exact bottom
so choose ig what would be best for the lua patcher mod, to be at fully top or fully bottom
Anyways Yeah. Please Do This, I Think Anyway Will Help, Thanks, Sorry, And Ur Amazing:)

also add both of these mods, they help fix mods
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3128989053
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3063511642
Cherrie_The_Shifter ΘΔ 3 sierpnia o 12:07 
ikr, such a legend:3
striderhiryux 3 lipca o 18:17 
Bro is a Legend.Thank you
Cherrie_The_Shifter ΘΔ 25 czerwca o 18:34 
it should be on automatically
Kookster 25 czerwca o 17:30 
how do I enable this?
Cherrie_The_Shifter ΘΔ 15 czerwca o 18:57 
Awesome 👌 👏 👍 and you're welcome
The Switchsconian 15 czerwca o 13:53 
yep all errors gone thx for the help!