Garry's Mod
1,346 voti
Lua Patcher
5
2
4
6
6
3
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
Dimensioni del file
Pubblicato in data
Aggiornato in data
46.627 KB
20 feb 2021, ore 23:50
22 mag, ore 14:47
62 note di rilascio ( visualizza )

Sottoscrivi per scaricare
Lua Patcher

Descrizione
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!
Discussioni più popolari Visualizza tutte (5)
7
4 mag, ore 23:20
Receiving Lua error with sp.zhabite.com/sharedfiles/filedetails/?id=2762448732
coolkidfunnan
2
1
2 apr, ore 20:25
VJ SNPCs stuck or having troubles recognize me.
Woody
9
5 apr, ore 5:50
Lua Error
Woody
457 commenti
Piengineer12  [autore] 7 ore fa 
Do you mean the big red flashing error models? Use the !*$%? ERRORS addon to get rid of those, this one is for patching out Lua errors.
MentalFrogSnot 8 ore fa 
im using Hivemind reborn, Hivemind, and feral rage npcs. what i am assuming are gibs are errors for me. it affects all 3 of said addons that i have. i dont know how to fix it and im starting to get hopeless as this didnt work. and. the feral rage infected that summon more (stationary infected or not) are the same model of the infected that spawned them. do you know how to fix this? i have also seen on the comments of feral rage that this is also happening to many more people.
So the out of memory error i believe it's cuz the default gmod is 32bit which is weaker especially on 64bit systems and it cant allocate as much ram using a 64bit should fix this and be so much better in everyway. I suggest using the 64-bit “x86-64” beta branch. Without it for me j cant handle 1k mods on my shitty i3 laptop with 16 gb or 8gb of ram but the beta branch i can handle 1k mods with either of those amount of ram but 16 or more is better. Plus it adds new features ans fixes ans optimizations and improvements and allow mods such as media player addon and internet browser addon access internet stuff. So you can watch YouTube abd other sites and browse the web in game ofc the cef codes fix allows for me and fixes stuff and adds better support those mods work without it but get more with it. So all around better branch in 64bit version is better then 32bit off and on beta so go to beta I suggest and use 64 but should fix your issue and improve everything.
Piengineer12  [autore] 16 ore fa 
Regarding the include and out-of-memory errors, unfortunately they're deep within C++ territory instead of Lua, so I don't know how to solve those.
Piengineer12  [autore] 16 ore fa 
Just have the addon enabled and it'll work.
Cherrie_The_Shifter ΘΔ 1 giu, ore 19:02 
Hmm idk if there way to fix it maybe the creator knows. Tho I never had that error. What mod is it. Or is it from this mod if so maybe it's not it maybe it's another made with it or something. I never had this error. Anyways idk hope you can figure it out and fix it.
The Switchsconian 1 giu, ore 10:18 
im still having this error that instantly crashes my game and says "not enough memory" despite me having a massive amount of memory. is there any way to fix this?
Vorts of the void 23 mag, ore 12:41 
the best thing is this can fix 20 year old mods,i saw buu342's cs:go weapons and it was broken,i was looking for a fix when i got reminded of lua patcher,installed it and it just worked flawlessly
Vorts of the void 23 mag, ore 12:40 
this shit fixes it all holy shit i love it
Cherrie_The_Shifter ΘΔ 21 mag, ore 23:00 
Hmm yeah sadly this mod dont seem to fix everything but it would be cool if maybe the greater can some how add fixes just for things like stuff down there. Idk if it be possible or if it'd be out of the mods scope wither. But maybe idk im dumb heh. Anyways rhis mod is great and works pretty well ^^